Repository navigation
Expand file tree
/
Copy pathExploit-guards
More file actions
48 lines (23 loc) · 1.68 KB
/
Copy pathExploit-guards
File metadata and controls
48 lines (23 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
https://learn.microsoft.com/en-us/defender-endpoint/enable-exploit-protection
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
(Opens Windows Defender / Windows Security settings / App & Browser Control → Exploit Protection settings)
Start ms-settings:windowsdefender
**********************************************
(Shows global system protections (mitigations) set for the entire Windows)
Get-ProcessMitigation -System
**********************************************
(Shows what exploit protections are set for a specific process, here for Microsoft Edge)
Get-ProcessMitigation -Name msedge.exe
**********************************************
(This command ALREADY changes system settings) Globally enables: DEP (Data Execution Prevention) SEHOP (Structured Exception Handler Overwrite Protection) CFG (Control Flow Guard)
Set-ProcessMitigation -System -Enable DEP,SEHOP,CFG
**********************************************
DEP blocks execution of code in data memory
SEHOP makes it harder for exploits to hijack exception handling
CFG makes it harder to jump to malicious code / ROP exploits
**********************************************
Get-MpPreference | Select-Object AttackSurfaceReductionRules_Ids, AttackSurfaceReductionRules_Actions
Set-MpPreference -AttackSurfaceReductionRules_Ids <GUID> -AttackSurfaceReductionRules_Actions Enabled
Add-MpPreference -AttackSurfaceReductionRules_Ids <GUID> -AttackSurfaceReductionRules_Actions AuditMode
Get-MpPreference | Select-Object -ExpandProperty AttackSurfaceReductionRules_Ids
**********************************************