← Back to section · Research Resources

Side-Channel Evaluation Tools: From Timing-Leak Detection to Power Analysis

An implementation can be algorithmically correct and still leak secrets through time, power and electromagnetic radiation. This article maps three classes of evaluation tools — statistical timing-leak detection, the TVLA methodology, and power/EM capture platforms — with their principles, reading rules and limits.

Published 22 November 2026 · 5 min read · PQ Frontier

Side-Channel Evaluation Tools: From Timing-Leak Detection to Power Analysis
AI-generated site artwork
Video explainer · Tool Navigation: choosing tools by task

Correct algorithm, leaking implementation

The mathematical security of post-quantum algorithms is assessed by cryptanalysis, but deployed implementations also leak through physical channels: execution time varies with secrets, power traces correlate with intermediate values, and electromagnetic radiation carries processing artefacts. Post-quantum implementations are especially sensitive — rejection sampling in decapsulation, message encoding and decoding, and polynomial arithmetic all contain data-dependent behaviour, and published attack research has repeatedly recovered keys from timing and power channels. Side-channel evaluation tools are the instruments and methods for systematically hunting these leaks in the laboratory; this article maps three classes by channel.

Timing-leak detection: dudect-style statistical tools

The classical approach to timing detection is statistical comparison: fix one class of inputs, generate another class at random, measure the execution time of the target operation for each, and use a statistical test to judge whether the two timing distributions are distinguishable. The open-source tool dudect standardises this flow: it drives the code under test repeatedly with the two input classes, continuously applies a t-test, and reports how the statistic evolves with sample count. It needs no special hardware and is the first screen for constant-time discipline.

Two points matter when reading its output. First, when the statistic crosses the threshold, it shows “a timing difference correlated with the input class” — the next step is localising which code causes it: a secret-dependent branch, a memory access pattern, or measurement noise from system scheduling. Second, staying below the threshold only means no leak was detected at the current sample size and measurement conditions; a slow leak may need far more samples to surface. Writing “ran dudect with no alarm” as “constant-time verified” is the most common overclaim for this class of tool.

Power and EM analysis: capture platforms and TVLA

Power and electromagnetic evaluation needs hardware: an oscilloscope or a dedicated capture board (open capture platforms such as ChipWhisperer are the typical example) records the target device’s power waveform or near-field EM signal in sync with its operation, and analysis happens offline. The mainstream framework is TVLA (Test Vector Leakage Assessment): statistical tests are applied sample-point by sample-point to traces from fixed versus random inputs, producing a leakage-over-time plot in which leakage points appear as spikes crossing the confidence threshold.

TVLA’s positioning must be kept straight: it is a non-specific detection method. It answers “does this trace set contain a statistically detectable component correlated with the secret”, not “how many traces and which model would an attacker need to recover the key”. Between detected leakage and actual key recovery lies modelling and exploitation research; conversely, a TVLA non-detection does not rule out a specific attack path. The proper way to write an evaluation report is therefore to state the capture conditions, the number of traces, the test method and the threshold, so readers can judge the sensitivity boundary of a “not detected” result. Further exploitability analysis — such as correlation power analysis (CPA), which ranks key hypotheses directly — belongs to attack research and is normally undertaken after leakage has been detected.

The rest of the toolchain

A complete side-channel evaluation involves several supporting tools. Triggering and synchronisation tools align traces with the target operation, and capture quality caps everything downstream. Trace pre-processing tools align, filter and compress large capture sets. For countermeasures such as masking, there are dedicated verification approaches: the evaluation target becomes combinations of intermediate values, checking whether the protection order holds as designed. When reading others’ evaluation conclusions, note which link of this chain the evidence comes from — screening-grade, detection-grade or exploitation-grade evidence differ greatly in strength.

What is different when evaluating post-quantum implementations

Applying this toolkit to post-quantum implementations, several spots deserve priority scheduling. First, the decapsulation path: KEM decapsulation contains decoding, re-encryption comparison and implicit-rejection branches, with dense secret-dependent control flow — the first choice for timing and power evaluation. Second, sampling: signatures and key generation based on rejection sampling naturally have running times that vary with the number of rejections, and one must distinguish “acceptable public randomness” from “rejection patterns that leak the secret”. Third, memory access in polynomial arithmetic: if the access patterns of core operations such as the NTT vary with secret coefficients, cache channels become a realistic threat in shared-machine settings. A common balance of cost and coverage is to screen all sensitive paths for timing first, then apply trace-level detection to the priority spots.

Scope and common misuses

First, laboratory conditions are not deployment conditions: capture distance, device samples and firmware versions may all differ from the field, and conclusions need margin when transferred. Second, software-level timing tools cannot see channels beyond the microarchitecture, and hardware trace analysis does not cover remote timing attacks; tool choice must follow the threat model. Third, statistical conclusions are sample-size sensitive: a report that says “passed TVLA” without stating the number of traces has effectively said nothing. Fourth, countermeasures and evaluation are an iterative loop — detect leakage, fix the implementation, re-evaluate — and treating a single evaluation as a lifetime verdict is the most fundamental misuse of this class of tools.

Closing

What side-channel evaluation tools share is that they turn “does the implementation leak” from intuition into reproducible measurement. But every conclusion they give is conditional: under a specific channel, sample size and method, leakage was detected or not detected. When navigating this class of tools, choose the channel by threat model first, read conclusions by evidence grade second, and require reports to state their evaluation conditions last — only then do the numbers become genuinely usable.

Tags: side channelsleakage detectionTVLAimplementation security