A comprehensive Windows security auditing and threat detection toolkit. Features 58 production-ready PowerShell functions organized into 14 modules for enterprise-grade security assessment, compliance validation, and incident response.
PowerShell
v1.6.2 #6: Get-SecurityBaseline weights sum to 100 (BitLocker budget 10->20, proportional per protected volume)
Okan YILDIZ10b4c557e112
diff --git a/Core/Get-SecurityBaseline.ps1 b/Core/Get-SecurityBaseline.ps1index f5ae429..4916500 100644--- a/Core/Get-SecurityBaseline.ps1+++ b/Core/Get-SecurityBaseline.ps1@@ -17,6 +17,8 @@ function Get-SecurityBaseline {Get-SecurityBaseline -ComputerName "SERVER01" -ExportPath "C:\Audits".OUTPUTSPSCustomObject with security baseline information+ .NOTES+ Weights: Defender real-time protection 20, Firewall 30 (10 per Domain/Private/Public profile), UAC 15, BitLocker 20 (proportional to protected volumes), no pending Windows updates 15 = 100.#>[CmdletBinding()]@@ -128,13 +130,13 @@ function Get-SecurityBaseline {}if ($volume.ProtectionStatus -eq "On") { $protectedVolumeCount++ }}- # Scoring rule: BitLocker contributes a fixed 10-point budget,+ # Scoring rule: BitLocker contributes a fixed 20-point budget,# awarded proportionally to the share of protected volumes- # (all protected = 10, half = 5, none = 0). Awarding points per+ # (all protected = 20, half = 10, none = 0). Awarding points per# volume made the contribution depend on how many volumes a# machine happens to have instead of how well it is protected.if ($bitlockerVolumes.Count -gt 0) {- $results.SecurityScore += [int][Math]::Round(10 * $protectedVolumeCount / $bitlockerVolumes.Count)+ $results.SecurityScore += [int][Math]::Round(20 * $protectedVolumeCount / $bitlockerVolumes.Count)}}catch {