Security Engineering

A legacy server runs a network service with a known buffer overflow that lets attackers place shellcode in a data buffer. The team cannot change the application's source code. Which hardware-level control best stops that injected code from executing?

Show the answer

Correct answerD. Execute Disable (NX) bit

AWhy not this: Measured boot attests the boot chain at startup. It does nothing about code injected into a running process.

BWhy not this: An HSM protects and uses cryptographic keys. It does not control which memory pages the CPU may execute.

CWhy not this: An enclave isolates only what is loaded into it. The vulnerable service's own data buffers stay executable if they are outside it.

DWhy this is right: The CPU enforces non-executable data pages, so shellcode in a buffer faults instead of running, with no application change.

The NX (Execute Disable) CPU extension marks data pages non-executable, so the processor refuses to run shellcode from a buffer without any code change. A secure enclave only protects code and data placed inside it, so it would not stop injection into the rest of the service.