Side channels
Problems
- Website fingerprinting
Identify which web page a user loads over an encrypted or anonymized link from the sizes, directions and times of its packets.
advanced
Algorithms
- Correlation power analysis
Ranks key guesses by the Pearson correlation between measured power and a leakage model such as the Hamming weight of an intermediate value.
1 languagescore - Differential power analysis
Splits many power traces by a predicted intermediate bit under each key guess, and takes the guess whose difference of means shows a peak.
1 languagescore - ISW private circuits
Compiles any circuit into one secure against t probes by masking each wire with 2t+1 shares and a randomized AND gadget; later work showed t+1 shares suffice for the gadget.
1 languagesadvanced - Mutual information analysis
Ranks key guesses by the estimated mutual information between leakage and predicted values, which works without a linear leakage model.
1 languagesadvanced - Template attack
Builds multivariate Gaussian templates of the leakage of each intermediate value on a copy of the device, then ranks the key guesses of the target by maximum likelihood.
1 languagesadvanced - Constant-time verification
Proves that a program is constant time by reducing the two-run property to a safety check on a product program.
1 languagesresearch - Key rank estimation
Bounds the rank of the true key among all keys from per-byte scores of a side-channel attack, by histogram convolution, without enumerating keys.
1 languagesresearch
Techniques
- Boolean masking
Splits each secret intermediate value into random shares whose XOR is the value, so that no single leaking point depends on the secret.
1 languagescore - Constant-time programming
Writes code whose branches, memory addresses and variable-time instructions do not depend on secrets, to stop timing and cache attacks.
core - Differential fault analysis
A fault attack on ciphers that compares the correct output and a faulty output for the same input, and keeps only the keys that some fault of the model can explain.
core - Flush+Reload
A cache side channel in which an observer that shares memory with a victim learns, one memory line at a time, whether the victim used that line in each interval.
core - Prime+Probe
A cache side channel in which an observer that shares no memory with a victim learns which cache sets the victim used, through contention for the ways of each set.
core - Simple power analysis
Reads secret-dependent operations, such as squarings and multiplications in exponentiation, directly from one or a few power traces.
core - Compression side channel
A secret compressed together with data that an attacker chooses makes the compressed length depend on how well the two match, and encryption does not hide the length.
advanced - Meltdown attack
A transient execution attack class in which a load that should fault passes protected data to later transient instructions, which leave a cache trace before the fault is handled.
advanced - Rowhammer
A DRAM disturbance error in which many activations of one row in a short time flip bits in nearby rows, which breaks the isolation that memory protection assumes.
advanced - Spectre attack
A transient execution attack class in which a mispredicted branch makes the victim run a wrong path that reads a secret and leaves a cache trace after the rollback.
advanced - Test vector leakage assessment
Tests a device for leakage by a Welch t-test between traces of fixed and random inputs (the non-specific variant), with 4.5 as the conventional threshold.
1 languagesadvanced - Threshold implementation
Masking based on secret sharing with correctness, non-completeness and uniformity, which stays secure in hardware with glitches.
1 languagesresearch
Concepts
- Side-channel attack
An attack that learns secrets from physical or timing effects of a computation, such as time, power, radiation or cache state.
intro - Timing attack
The time a secret operation takes is a function of the secret. Measure it on many inputs and the key comes out, even when the algorithm itself is sound.
1 languagesadvanced
Models
- Probing model
Models an attacker who can read the values of up to t wires of a circuit, and calls the circuit secure if those values reveal nothing.
advanced