implementing-memory-protection-with-dep-aslr

Featured

Implements memory protection mechanisms including DEP (Data Execution Prevention), ASLR (Address Space Layout Randomization), CFG (Control Flow Guard), and other exploit mitigations to prevent memory corruption attacks. Use when hardening endpoints against buffer overflow exploits, ROP chains, and code injection. Activates for requests involving memory protection, exploit mitigation, DEP, ASLR, or CFG configuration.

AI & Automation 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Implementing Memory Protection with DEP and ASLR ## When to Use Use this skill when hardening endpoints against memory-based exploits by configuring DEP, ASLR, CFG, and Windows Exploit Protection system-wide and per-application mitigations. ## Prerequisites - Windows 10/11 or Windows Server 2016+ with administrative privileges - Group Policy management access for enterprise-wide deployment - Understanding of memory corruption attack techniques (buffer overflow, ROP chains) - Test environment for validating application compatibility with exploit mitigations ## Workflow ### Step 1: Configure System-Level Mitigations ```powershell # Enable system-wide DEP (Data Execution Prevention) # Boot configuration: OptIn (default), OptOut (recommended), AlwaysOn bcdedit /set nx AlwaysOn # Verify ASLR status (enabled by default on modern Windows) Get-ProcessMitigation -System # MandatoryASLR, BottomUpASLR, HighEntropyASLR should be ON # Enable all system-level mitigations Set-ProcessMitigation -System -Enable DEP,SEHOP,ForceRelocateImages,BottomUp,HighEntropy ``` ### Step 2: Configure Per-Application Mitigations ```powershell # Harden high-risk applications (browsers, Office, PDF readers) Set-ProcessMitigation -Name "WINWORD.EXE" -Enable DEP,SEHOP,ForceRelocateImages,CFG,StrictHandle Set-ProcessMitigation -Name "EXCEL.EXE" -Enable DEP,SEHOP,ForceRelocateImages,CFG,StrictHandle Set-ProcessMitigation -Name "AcroRd32.exe" -Enable DEP,SEHOP,ForceRelocateImages,CFG Set-ProcessMitiga...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Listed

defend-memory-corruption

Compiler and allocator hardening against memory-corruption exploitation - stack and heap buffer overflows, use-after-free, and integer overflows that attackers turn into code execution (MITRE ATT&CK T1203, T1068, T1210; D3FEND D3-PSEP, D3-SAOR, D3-SFCV, D3-SSC, D3-EHPV). Signals live in the Windows Application log (Event ID 1000, exception codes 0xc0000409, 0xc0000374, 0xc0000005), the Security-Mitigations channels, Sysmon process-creation events, and Linux journald/auditd segfault and glibc abort messages. Gives which hardening flags and allocator settings to deploy, how to verify posture across a fleet, and how to spot failed exploit attempts in crash telemetry. Use when hardening C or C++ builds, choosing GCC/Clang or MSVC security flags, enabling DEP/ASLR/CFG/CET or a hardened allocator, auditing exploit-protection posture, triaging repeated crashes on an internet-facing service, or hunting memory-corruption exploitation.

0 Updated 5 days ago
umbrasec-labs
AI & Automation Listed

defend-exploit-mitigations

Coverage-and-gaps methodology for the memory-corruption exploit mitigations that break an exploit before it runs attacker code: ASLR, DEP/NX, Control Flow Guard (CFG), and CET shadow stack (MITRE ATT&CK T1203, T1190, T1068, T1211, T1210; mitigation M1050). Signals: Windows Security-Mitigations channels, Application log Event IDs 1000 and 1001 with fast-fail and access-violation codes, Defender for Endpoint ExploitGuard events, and Linux auditd ANOM_ABEND, dmesg segfaults, and randomize_va_space. Shows which mitigations are enforced per image and host, how to find gaps with Get-ProcessMitigation, dumpbin, BinSkim, winchecksec, and checksec, how to hunt crash clusters, and how to harden with the Essential Eight. Use when verifying ASLR, DEP, CFG, or CET coverage, auditing exploit protection on a fleet, finding binaries without CFG or CETCOMPAT, triaging a 0xc0000409 fast-fail crash cluster, or building an exploit-mitigation baseline.

0 Updated 5 days ago
umbrasec-labs
AI & Automation Featured

offensive-windows-mitigations

Deep-dive on Windows exploit mitigations: ASLR, DEP/NX, CFG, CET/Shadow Stack, SEHOP, Heap Guard, ACG, Arbitrary Code Guard. Covers both the protection mechanism and known bypass techniques. Use when researching Windows exploit mitigations, planning bypass strategies, or understanding protection depth.

11,204 Updated yesterday
SnailSploit