Security Engineering

A vendor service cannot be recompiled. Attackers bypass its enforced NX bit by chaining existing code fragments at fixed library addresses. Which control best disrupts this?

Show the answer

Correct answerA. Address space layout randomization

AWhy this is right: ASLR randomizes library and stack locations at load time without recompiling, so the attacker cannot predict fragment addresses.

BWhy not this: Canaries must be compiled into the binary, and the service cannot be rebuilt.

CWhy not this: NX is already enforced, and code-reuse attacks run only existing executable code, so tightening it changes nothing.

DWhy not this: Memory encryption guards against physical reads of RAM and does not stop an in-process code-reuse exploit.

ROP reuses code already in memory, so NX does not stop it. ASLR is applied by the OS without recompiling and makes the fragment addresses unpredictable. Stack canaries need a rebuild, so they are ruled out.