Apex › Security & web

How CFI and shadow stacks kill ROP

The final, structural mitigation. Instead of guarding a secret you can leak, control-flow integrity constrains where control may go: a shadow stack (Intel CET) keeps a hardware-protected second copy of every return address and compares it on ret, so an overflow-corrupted return faults (#CP) before the gadget runs — killing ROP; forward-edge IBT makes indirect branches land only on endbr64 targets. Fire a ROP chain with the shadow stack on and off. The arc's lesson: no single mitigation is a wall — security is layers.

More in Security & web