CET-Compliant Callstack Spoofing via Thread Pool & Enum Callback Trampolining (Rust PoC)
13 July 2026 at 20:31
I wrote this after spending an unreasonable amount of time making CET-compliant callstack spoofing work end-to-end on hardware with Intel CET enabled.
The technique combines three primitives: thread pool execution for a clean stack base, enum callback trampolining for a real signed mid-stack frame, and indirect syscalls.
The actual contribution is the CET compliance mechanism: a jmp-based context switch combined with direct shadow stack pointer reconciliation via RDSSPQ/INCSSPQ, without touching unwind metadata. Different approach from BYOUD.
Implemented in Rust with inline assembly.
[link] [comments]