Advanced Assembly Language
Q97 / 100

What is a shadow stack and how does it prevent ROP?

Correct! Well done.

Incorrect.

The correct answer is B) A hardware-protected secondary stack storing only return addresses; RET must match both stacks, preventing ROP from overwriting return addresses

B

Correct Answer

A hardware-protected secondary stack storing only return addresses; RET must match both stacks, preventing ROP from overwriting return addresses

Explanation

Intel CET (Control-flow Enforcement Technology) provides a shadow stack. CALL pushes to both stacks; RET checks they match. Mismatches (ROP) cause a fault.

Progress
97/100