← Back to section · Research & Analysis

A History of Side-Channel Attack and Defence: From Timing Attacks to Post-Quantum Implementation Security

An algorithm that is mathematically secure is not necessarily secure in implementation. This report traces the evolution of side-channel attacks since the timing attacks of 1996, takes stock of the exposure of post-quantum algorithms to power, electromagnetic and cache side channels, and surveys the state of defences such as masking and constant-time code.

Published 22 November 2026 · 6 min read · PQ Frontier

A History of Side-Channel Attack and Defence: From Timing Attacks to Post-Quantum Implementation Security
AI-generated site artwork
Video explainer · Special Reports: Systematic Single-Theme Studies

Scope: The Security Boundary Is at the Implementation Layer

This report discusses a special class of attack: it solves no mathematical problem, but measures physical quantities while a cryptographic device runs — execution time, power consumption traces, electromagnetic radiation, cache hit patterns — and statistically recovers the key from them. The history of side-channel attacks is, in essence, the history of the cryptographic community learning the same lesson repeatedly: security proofs for algorithms cover an abstract model, while real systems run in the physical world.

The starting point is usually traced to Kocher’s 1996 timing attack: he showed that timing differences in RSA private-key operations across different inputs suffice to recover the private key bit by bit. In 1999, Kocher and colleagues proposed differential power analysis (DPA), advancing the attack from “measuring time” to “measuring current”; almost simultaneously, defensive research began to follow. Over the next twenty-plus years, every generation of cryptographic deployment was accompanied by a generation of side-channel attack and defence: in 2005 Bernstein demonstrated a remote cache-timing attack on AES; smart cards, hardware security modules and cloud virtual machines each replayed the same script on the battlefields of power, electromagnetics and shared caches.

New Leakage Surfaces of Post-Quantum Algorithms

Post-quantum migration did not make this front disappear; it changed the terrain. The core operations of lattice cryptography — Number Theoretic Transform (NTT) polynomial multiplication, discrete Gaussian and centred binomial sampling, rejection sampling — each have their own leakage signature. Rejection sampling discards samples under secret-dependent conditions; if the branching time in an implementation is measurable, the secret leaks with it. If the plaintext confirmation and re-encryption comparison in decapsulation are not constant-time, the security argument of the Fujisaki–Okamoto transform is punctured at the implementation layer.

Concrete incidents keep sounding the alarm. The KyberSlash issues disclosed in late 2023 were a set of timing leaks present in multiple Kyber implementations: secret-dependent division operations in decapsulation made remote timing measurement sufficient to recover keys — showing that even reviewed reference ports can introduce non-constant-time operations when ported across platforms. In 2024, researchers further demonstrated single-trace and multi-trace power attacks against masked ML-KEM implementations, showing that when masking order is insufficient or mask refreshing is improperly implemented, defences are peeled away layer by layer. These attacks share a common feature: every target was an implementation, and the algorithms themselves remained intact — but for deployers, the distinction is meaningless.

The signature side is no calmer. The number of rejection-sampling iterations in lattice signatures is secret-dependent, and research recovering Dilithium keys through timing and power already exists; the choice between deterministic and randomised (hedged) signing, and the quality of randomness, both change an implementation’s leakage profile. Hash-based signatures look simple, yet leave entry points for fault injection in one-time key tree traversal and state reads.

The State of the Defensive System

Defensive techniques have formed a clearly layered toolbox. The first layer is constant-time programming discipline: eliminating secret-dependent branches, memory accesses and variable-time operations — the baseline threshold for software implementations, and the main line of defence against KyberSlash-class incidents. The second layer is masking: splitting every secret intermediate value into several random shares, so that power statistics of any bounded order cannot reconstruct the secret — at the cost of performance dropping several-fold and implementation complexity rising steeply, with tiny masking flaws voiding the whole effort. The third layer is system-level measures such as shuffling, random delays and fault detection, together with protocol-level limits on how many signatures or decapsulations a single key may perform, directly compressing the number of traces an attacker can collect.

At the standardisation level, standards such as FIPS 203 incorporate some protective checks into implementation requirements (the re-encryption consistency check in decapsulation is itself part of the FO transform), but side-channel resistance levels are mainly assessed separately by industry certification schemes such as Common Criteria; the standards’ main text gives no unified anti-side-channel grade.

Two Expansions of the Attack Surface: Faults and Remoteness

Two directions of spread in side-channel history deserve separate record. The first is fault injection: using voltage glitches, clock jitter, lasers or electromagnetic pulses to make a chip err at the critical instant of computation, then comparing correct and faulty outputs to infer secrets. For signature algorithms, a single successful fault may leak linear equations in the private key; for stateful hash-based signatures, a fault that rolls back or skips the state counter has the catastrophic consequence of leaf reuse. Faults are often combined with passive side channels, and defence requires a whole set of hardware countermeasures — error detection, redundant computation and sensors — making the cost structure of high-assurance devices completely different from ordinary software implementations.

The second is the remoteness of attacks. Early power analysis required physical contact with the device, while cache timing, branch predictor state, and even processor frequency scaling (Hertzbleed, published in 2022, proved that dynamic frequency can amplify timing differences in constant-time code into a remotely measurable signal) moved the measurement point to the other end of the network. The consequence is a permanent change in the threat model: cryptographic implementations in clouds and data centres can no longer assume the attacker “cannot touch the machine” — multi-tenant shared hardware is itself a side channel. Post-quantum implementations must therefore be designed for the worst case, in which leakage can be observed remotely, rather than proving innocence under laboratory conditions.

Open Questions

Three gaps stand out today. First, evaluation standards are missing: implementations of the same algorithm differ enormously in leakage resistance, yet buyers lack a yardstick comparable across products the way algorithm security strength is. Second, higher-order security of masking and its formal verification remain research frontiers; there is a gap between masking schemes that can be proved and masking implementations that run fast. Third, AI-assisted trace analysis is lowering the attack threshold: deep-learning profiling attacks make key recovery from few traces possible in more scenarios every year. The narrative of post-quantum migration often focuses on “changing the algorithm”, while the conclusion side-channel history offers is this: changing the algorithm only moves the contest to new terrain — what wins it remains the discipline and investment of implementation engineering.

Tags: Side ChannelsImplementation SecurityMaskingSpecial Report