windows-mitigations

Analyze Windows exploit mitigations including ASLR, DEP, CFG, CET, and SEHOP with bypass techniques.

Updated Jun 26, 2026
One-click install
npx skills add https://github.com/brukal001/brukal --skill windows-mitigations-brukal001
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: windows-mitigations
Source: https://github.com/brukal001/brukal/tree/main/skills/claude-red/infrastructure/offensive-windows-mitigations
Command: npx skills add https://github.com/brukal001/brukal --skill windows-mitigations-brukal001

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Security researchers and exploit developers need to understand how Windows defensive mechanisms work before they can diagnose why exploits fail, analyze crash dumps, or plan mitigation bypass strategies in authorized testing environments. ## Core Features & Use Cases - Mitigation Deep-Dive: Covers ASLR, DEP/NX, CFG, CET/Shadow Stack, SEHOP, Heap Guard, and ACG with both protection mechanics and known bypass approaches. - Crash Dump Diagnosis: Maps exception codes (0xC0000005, 0xC0000409, 0xC0000374) to the specific mitigation that terminated a process, using WinDbg analysis workflows. - Hands-On Lab Methodology: Provides compiler/linker flag references, test binaries, and pwntools scripts to verify each mitigation's effect on Week 5-style exploits. - Use Case: When a stack overflow exploit crashes with exit code 0xC0000409 on a hardened Windows target, use this Skill to identify the /GS cookie check as the cause and plan the appropriate bypass research path. ## Quick Start Use the windows-mitigations skill to explain why my exploit against a /guard:cf compiled binary fails with a CFG validation error and how to verify it in WinDbg.

Frequently Asked Questions about windows-mitigations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify which Windows mitigation blocked my exploit?▼

Check the process exit code or WinDbg exception code from the crash. 0xC0000005 with parameter 8 indicates DEP, 0xC0000409 subcode 2 indicates /GS stack cookies, subcode 10 indicates CFG, and 0xC0000374 indicates heap integrity checks.

How to check if a Windows binary has ASLR, DEP, and CFG enabled?▼

Run dumpbin /headers on the binary and look for "NX compatible", "Dynamic base", and "High Entropy Virtual Addresses". For CFG, check the load configuration directory, and for /GS disassemble functions to find __security_cookie references.

Why does my ROP exploit work on one binary but crash with access violation on another?▼

ASLR randomizes the binary base address, so hardcoded gadget addresses from the binary become invalid pointers. Compile a test binary with /DYNAMICBASE:NO /FIXED to confirm ASLR is the cause of the failure.

What is the difference between CFG and CET shadow stack protection?▼

CFG validates indirect call targets before forward-edge transfers, while CET shadow stack protects return addresses on the backward edge by comparing them against a hardware-protected stack copy. Both raise __fastfail exceptions but with different status codes.

Can I disable Windows mitigations for a single binary without rebooting?▼

Yes, use Set-ProcessMitigation in an admin PowerShell session to enable or disable DEP, ForceRelocateImages, and BottomUp per executable. Per-binary linker flags like /NXCOMPAT:NO also work without system-wide changes.