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
- Certificates (PKI)
- Kerberos
- Revocation & CT
- Certificate Transparency
- Sigstore (keyless signing)
- Remote attestation (TEE)
- SSH transport
- SSH tunneling (-L/-R/-D)
- Identity & Auth
- JWT & alg=none
- Email auth (SPF/DKIM)
- How your 2FA code works (TOTP)
- Passkeys (WebAuthn)
- Cookies & sessions
- CORS / Same-Origin
- Injection (SQLi/XSS)
- How a buffer overflow hijacks a program
- How NX / DEP stops your shellcode
- How ROP bypasses NX
- How ASLR randomizes the addresses
- How a stack canary catches the overflow
- Request smuggling
- SSRF
- XXE (XML entities)
- DNS rebinding
- ARP spoofing (MITM)
- Tor / onion routing
- Censorship circumvention
- ECH (encrypted SNI)
- Onion services (.onion)
- Mix networks (batching anonymity)
- Traffic correlation attack
- Firewall rules (iptables)
- SIEM log correlation
- seccomp (syscall sandbox)
- Linux capabilities
- eBPF & the verifier
- Honeypot & honeytokens
- Port knocking
- CSRF & SameSite
- DNS tunneling (C2/exfil)
- IDS / IPS detection
- Clickjacking
- HSTS & SSL stripping
- Open redirect
- Prototype pollution
- Hash flooding (DoS)
- ReDoS (regex DoS)
- Subdomain takeover
- Site isolation
- Subresource Integrity
- Content-Security-Policy
- Attacks