Apex › Security & web

How NX / DEP stops your shellcode

The first mitigation in the exploitation arms race. The overflow still overwrites the return address, but every memory page now carries an execute bit and the stack is marked writable-but-not-executable (W^X) — so the jump into your shellcode faults instead of running. A walk through page permissions, the fault, and why it forces attackers to reuse existing code (return-to-libc / ROP). Toggle NX and watch the same overflow run or die.

More in Security & web