Non-Executable Stack: Blocking Malicious Code Execution

This security feature, often called Data Execution Prevention (DEP) or the NX bit, marks memory regions like the stack as non-executable. This prevents attackers from executing malicious code injected into data areas, effectively thwarting many code injection attacks.

The top 3

  1. NX Bit: Hardware Foundation for Non-Executable Stack: The 'No-Execute' (NX) bit, introduced by AMD and Intel (as XD bit), provided crucial hardware support for marking memory pages as non-executable, making software-only solutions more robust against buffer overflow attacks.
  2. ROP Chains: The Primary Bypass for Non-Executable Stacks: Return-Oriented Programming (ROP) allows attackers to execute arbitrary code by chaining existing code gadgets in memory, effectively bypassing non-executable stack protections and remaining a significant challenge for system security.
  3. DEP: Windows' Defense Against Executable Code: Data Execution Prevention (DEP) is Microsoft Windows' implementation of non-executable memory, leveraging hardware NX/XD bit to prevent code execution from data-only memory regions, thereby mitigating many types of exploits.

Sources

Open the full topic