@@ -2490,17 +2490,57 @@ If($ApplySTIGItems -or $ApplyEMETMitigations)
2490
2490
}
2491
2491
2492
2492
Foreach ($Mitigation in $ApplicationMitigationsDep.GetEnumerator ()){
2493
- Write-LogEntry (" Applying STIG Rule ID: {0}: Enabling Exploit Protection mitigations for {1}..." -f $Mitigation.Key , $Mitigation.Value ) - Severity 1 - Outhost
2493
+ Write-LogEntry (" Applying STIG Rule ID: {0}: Enabling Exploit Protection mitigation [DEP : ON] for {1}..." -f $Mitigation.Key , $Mitigation.Value ) - Severity 1 - Outhost
2494
2494
If (-not (Get-ProcessMitigation - Name $Mitigation.Value )){
2495
2495
Set-ProcessMitigation $Mitigation.Value - enable DEP
2496
+ }
2497
+ }
2498
+
2499
+ Foreach ($Mitigation in $ApplicationMitigationsASLR_BU.GetEnumerator ()){
2500
+ Write-LogEntry (" Applying STIG Rule ID: {0}: Enabling Exploit Protection mitigation [ASLR:BottomUp : ON] for {1}..." -f $Mitigation.Key , $Mitigation.Value ) - Severity 1 - Outhost
2501
+ If (-not (Get-ProcessMitigation - Name $Mitigation.Value )){
2496
2502
Set-ProcessMitigation $Mitigation.Value - enable BottomUp
2503
+ }
2504
+ }
2505
+
2506
+ Foreach ($Mitigation in $ApplicationMitigationsASLR_FRI.GetEnumerator ()){
2507
+ Write-LogEntry (" Applying STIG Rule ID: {0}: Enabling Exploit Protection mitigation [ASLR:ForceRelocateImages : ON] for {1}..." -f $Mitigation.Key , $Mitigation.Value ) - Severity 1 - Outhost
2508
+ If (-not (Get-ProcessMitigation - Name $Mitigation.Value )){
2497
2509
Set-ProcessMitigation $Mitigation.Value - enable ForceRelocateImages
2510
+ }
2511
+ }
2512
+
2513
+ Foreach ($Mitigation in $ApplicationMitigationsImageLoad.GetEnumerator ()){
2514
+ Write-LogEntry (" Applying STIG Rule ID: {0}: Enabling Exploit Protection mitigation [BlockRemoteImageLoads : ON] for {1}..." -f $Mitigation.Key , $Mitigation.Value ) - Severity 1 - Outhost
2515
+ If (-not (Get-ProcessMitigation - Name $Mitigation.Value )){
2516
+ Set-ProcessMitigation $Mitigation.Value - enable BlockRemoteImageLoads
2517
+ }
2518
+ }
2519
+
2520
+ Foreach ($Mitigation in $ApplicationMitigationsAllPayload.GetEnumerator ()){
2521
+ Write-LogEntry (" Applying STIG Rule ID: {0}: Enabling Exploit Protection mitigation[Payload:Export & Rop* : ON] options for {1}..." -f $Mitigation.Key , $Mitigation.Value ) - Severity 1 - Outhost
2522
+ If (-not (Get-ProcessMitigation - Name $Mitigation.Value )){
2498
2523
Set-ProcessMitigation $Mitigation.Value - enable EnableExportAddressFilter
2499
2524
Set-ProcessMitigation $Mitigation.Value - enable EnableExportAddressFilterPlus
2500
2525
Set-ProcessMitigation $Mitigation.Value - enable EnableImportAddressFilter
2501
2526
Set-ProcessMitigation $Mitigation.Value - enable EnableRopStackPivot
2502
2527
Set-ProcessMitigation $Mitigation.Value - enable EnableRopCallerCheck
2503
2528
Set-ProcessMitigation $Mitigation.Value - enable EnableRopSimExec
2529
+ }
2530
+ }
2531
+
2532
+ Foreach ($Mitigation in $ApplicationMitigationsPayloadROP.GetEnumerator ()){
2533
+ Write-LogEntry (" Applying STIG Rule ID: {0}: Enabling Exploit Protection mitigation [Payload:Rop* : ON] for {1}..." -f $Mitigation.Key , $Mitigation.Value ) - Severity 1 - Outhost
2534
+ If (-not (Get-ProcessMitigation - Name $Mitigation.Value )){
2535
+ Set-ProcessMitigation $Mitigation.Value - enable EnableRopStackPivot
2536
+ Set-ProcessMitigation $Mitigation.Value - enable EnableRopCallerCheck
2537
+ Set-ProcessMitigation $Mitigation.Value - enable EnableRopSimExec
2538
+ }
2539
+ }
2540
+
2541
+ Foreach ($Mitigation in $ApplicationMitigationsChild.GetEnumerator ()){
2542
+ Write-LogEntry (" Applying STIG Rule ID: {0}: Enabling Exploit Protection mitigation [DisallowChildProcessCreation : ON] for {1}..." -f $Mitigation.Key , $Mitigation.Value ) - Severity 1 - Outhost
2543
+ If (-not (Get-ProcessMitigation - Name $Mitigation.Value )){
2504
2544
Set-ProcessMitigation $Mitigation.Value - enable DisallowChildProcessCreation
2505
2545
}
2506
2546
}
0 commit comments