Apex › Systems & OS

Spectre — leaking secrets through speculation

How the 2018 attack reads memory it isn't allowed to, by abusing speculative execution. The CPU runs ahead past a bounds check it mispredicts, speculatively reads a secret byte, and leaves a trace in the cache — which timing (Flush+Reload) then recovers. Step through the leak and watch the secret appear byte by byte, then flip on the lfence barrier and watch it stop.

More in Systems & OS