Power Analysis Attack: Correlation Trace Lab
Interactive 2D correlation power analysis (CPA) simulator: watch a scrolling oscilloscope of simulated power traces, a live 256-hypothesis correlation heatmap, and a trace-count convergence chart as a side-channel attack pulls one secret AES key byte out of the noise floor.
Every time a mobile secure-enclave chip runs a key through the AES S-box, its instantaneous power draw leaks a tiny signal correlated with the data being processed. This 2D simulator captures that leakage as a stream of noisy power traces and runs a real Correlation Power Analysis (CPA) attack against all 256 possible values of one secret key byte: for each trace it computes the Hamming weight of the hypothetical S-box output under every key guess, then Pearson-correlates that hypothesis against the measured power stream. Unlike a single static readout, this lab shows the attack unfold across three linked panels — a scrolling oscilloscope of the raw captured power trace, a 16×16 heatmap of every key hypothesis's live |correlation|, and a trace-count convergence chart that plots the true key's correlation against the noise floor formed by the 255 wrong guesses. Tune the noise level and trace rate to see exactly how many traces it takes for the true key's line to climb clear of the noise floor, and compare the live best guess against the revealed ground-truth key.
An interactive 2D correlation power analysis (CPA) simulator: watch a scrolling oscilloscope of simulated power traces, a live 256-hypothesis correlation heatmap, and a trace-count convergence chart as a side-channel attack pulls one secret AES key byte out of the noise floor.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install