Algorithm Search⌘K

Modeladvanced

Probing model

Also called t-probing model, ISW 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.

The probing model is a model of the attacker against a masked implementation. The implementation is a Boolean circuit that also has gates that output fresh random bits. Before a run, the attacker chooses a set of at most tt wires, and after the run it learns the values on those wires. The circuit is secure at order tt if the values on any such set have a distribution that does not depend on the secret. Ishai, Sahai and Wagner (2003) defined the model and gave a compiler that makes any circuit secure in it. The model abstracts a side-channel attack of order tt: an attacker who combines the leaks of tt intermediate values, each with no noise. It counts the number of shares and the gates and random bits needed for a given tt.

The machine

  • The circuit. A circuit over GF(2) with gates for XOR, AND and NOT, and random gates with no inputs, each of which outputs a fresh uniform bit in each run. Other works use circuits over a larger field, such as GF(282^8) for the AES, with the same rules.
  • The encoding. A secret input xx enters as a sharing: nn shares x1,…,xnx_1, \ldots, x_n with x=x1⊕⋯⊕xnx = x_1 \oplus \cdots \oplus x_n, made by an encoder from n−1n - 1 fresh random values, as in Boolean masking. The output leaves as a sharing too. The encoder and the decoder are outside the attack; the attacker can probe only the wires of the circuit between them.
  • The attacker. The attacker chooses a set PP of at most tt wires before the run. In one run, it sees the values of the wires in PP and nothing else. The wires carry one value each, and they do not leak anything that is not on them.
  • Security. The circuit is tt-probing secure if for every set PP with ∣P∣≤t|P| \le t there is a simulator that, without the secret, outputs values with the same joint distribution as the wires in PP. For a fixed PP, this is the same as asking that the distribution of the values on PP is the same for every secret.
  • Stateful circuits. Ishai, Sahai and Wagner also define circuits with memory that run for many clock cycles. The memory holds a sharing that is refreshed in each cycle, and the attacker may choose a new set of tt wires in each cycle.

A small example from the ISW page: the masked AND gate for two shares has 13 wires. Each single wire has the same distribution for each of the 4 pairs of input bits, so the gate is 1-probing secure. But 22 of the 78 pairs of wires depend on the inputs, so it is not 2-probing secure. With 3 shares the gate has 30 wires, every set of at most 2 wires is secure, and 197 of the 4060 sets of 3 wires are not.

What it counts

  • The order tt. The largest number of probes for which the circuit is secure. Order 1 is first-order masking.
  • The number of shares nn. At least t+1t + 1 shares are needed, because tt probes on the shares of a value with n≤tn \le t shares give the value.
  • The size. The number of gates of the compiled circuit, against the size ss of the original circuit, and the number of random bits. For a multiplication with nn shares, the ISW gadget uses n(n−1)/2n(n - 1)/2 random bits and Θ(n2)\Theta(n^2) gates.
  • Exhaustive checks. For a small gadget, security can be checked by listing every set of at most tt wires and comparing the distributions for every secret. The number of sets grows as (Wt)\binom{W}{t} for WW wires, so this works only for small gadgets and small tt; tools that verify masking use more clever methods.

Relation to other models

  • The noisy leakage model. Each operation leaks a noisy function of all its inputs, as in the model of Chari, Jutla, Rao and Rohatgi for Boolean masking and in the model of Prouff and Rivain (2013). This is closer to real power traces. Duc, Dziembowski and Faust (2014) showed that security in the probing model implies security in the noisy leakage model, through the random probing model, with a loss in the noise parameter.
  • The random probing model. Each wire leaks its value with a fixed probability ε\varepsilon, independently of the others. It sits between the noisy model and the tt-probing model in the reduction of Duc and others.
  • Non-interference. The security of a gadget can be stated as a noninterference property: the values on the probed wires depend on at most a given number of shares of each input. Barthe and others (2016) define tt-non-interference (tt-NI) and tt-strong non-interference (tt-SNI), in which the probes on internal wires must be simulated with a number of input shares that does not grow with the probes on the outputs.
  • Glitches and transitions. The model assumes that a wire carries one value. In hardware, a glitch can carry a function of several shares, and a register can leak the Hamming distance of two values. Threshold implementations were made for this case. Later work extends the probes so that one probe on a wire also gives the inputs of the gates that feed it, back to the last register.
  • Statistics of attacks. A tt-th order DPA or a tt-th order TVLA test combines tt samples of the traces. The probing model says such attacks and tests find nothing for a tt-probing secure circuit, if each sample depends on one wire.

Known results in the model

  • The ISW compiler. Ishai, Sahai and Wagner (2003) compile any circuit of size ss into one that is tt-probing secure, with 2t+12t + 1 shares of each wire and a size of O(st2)O(s t^2). Linear gates work share by share; each AND gate uses the ISW gadget with random bits.
  • t+1t + 1 shares. Rivain and Prouff (2010) proved that the ISW multiplication is tt-probing secure with t+1t + 1 shares, which is optimal, and used it in GF(282^8) to mask the AES S-box at any order.
  • Composition. Secure gadgets do not always compose into a secure circuit. Coron, Prouff, Rivain and Roche (2013) found a flaw in the composition of the gadgets of Rivain and Prouff with a weak mask refresh, and fixed it with a refresh based on the multiplication gadget. Barthe and others (2016) showed that the ISW multiplication is tt-SNI and that a circuit made of tt-NI and tt-SNI gadgets, with SNI refresh gadgets at the right places, is tt-probing secure.
  • Noisy leakage. Prouff and Rivain (2013) proved the security of masked computation in a noisy leakage model, and Duc, Dziembowski and Faust (2014) reduced the noisy model to the probing model, so that a tt-probing secure circuit with enough noise resists attacks on noisy traces.
  • Lower bound on shares. No circuit with n≤tn \le t shares of a secret input is tt-probing secure, because the nn input wires together give the secret.

References

  1. Yuval Ishai, Amit Sahai and David Wagner, Private circuits: securing hardware against probing attacks, CRYPTO 2003, LNCS 2729, pages 463 to 481, the definition of t-private circuits by a simulator, the stateless and stateful variants, and the compiler with 2t + 1 shares
  2. Matthieu Rivain and Emmanuel Prouff, Provably secure higher-order masking of AES, CHES 2010, LNCS 6225, pages 413 to 427, the proof that the multiplication gadget is secure against t probes with t + 1 shares
  3. Jean-Sébastien Coron, Emmanuel Prouff, Matthieu Rivain and Thomas Roche, Higher-order side channel security and mask refreshing, FSE 2013, LNCS 8424, pages 410 to 424, the flaw in the composition of gadgets with a weak mask refresh, and the refresh based on the multiplication gadget
  4. Emmanuel Prouff and Matthieu Rivain, Masking against side-channel attacks: a formal security proof, EUROCRYPT 2013, LNCS 7881, pages 142 to 159, the noisy leakage model and the proof of masked computation in it
  5. Alexandre Duc, Stefan Dziembowski and Sebastian Faust, Unifying leakage models: from probing attacks to noisy leakage, EUROCRYPT 2014, LNCS 8441, pages 423 to 440, the reduction from the noisy leakage model to the random probing and the t-probing models
  6. Gilles Barthe, Sonia Belaïd, François Dupressoir, Pierre-Alain Fouque, Benjamin Grégoire, Pierre-Yves Strub and Rébecca Zucchini, Strong non-interference and type-directed higher-order masking, ACM CCS 2016, pages 116 to 129, the definitions of t-non-interference and t-strong non-interference and the composition theorems

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/2H1XG6/text.yaml