Leakage Distribution Network for Masking Schemes

Masking schemes, such as Threshold Implementations (TI), are the most popular technique for countering side-channel attacks (SCA). They decorrelate  the computation from the resulting physical emanations by splitting the target function into multiple shares. For example, a variable \(x\) can be shared into \(N\) shares by randomly generating \(N-1\) values \(x_1\), …, \(x_{N-1}\) and calculating \(x_N\) such that the equation bellow holds, where \(\circ\) is the sharing operator.

$$ x = x_1 \circ x_2 \circ … x_N$$

Thus each execution is randomized and as long as each share operates independently, no inferences of the sensitive material can be made by the attackers. This is the fundamental assumption of masking schemes called the independence assumption. Concrete masking schemes may introduce additional criteria for constructing shares. For example, in Threshold Implementations (TI) independence assumption is called non-completeness. Furthermore, TI requires the computation to be equivalent to the unshared one (correctness) and both inputs and outputs of each TI circuit must be uniform (uniformity).

Reasons for the wide-spread adoption of masking schemes are twofold:

  1. well-understood theoretical background that allows provable SCA security, given the underlying assumptions;
  2. compatibility with the standard-cell ASIC design flow.

Masking schemes make no assumptions on the implementation of individual shares, hence they can be freely implemented using standard-cell libraries. As each share consists of standard logic cells, all the gate-level modeling and experience from the electronic design automation (EDA) directly applies to these designs.

In theory, assuming structural model of logic gates, independence assumption is achieved trivially by not sharing logic gates among the shares. In practice all these gates are placed in the same silicon bed. Many of these physical phenomena may occur and break the independence assumption. Initially the main concern were the parasitic capacitances that may occur between the wires carrying signals from different shares. Although these coupling capacitors inevitably occur, it remains an open question to which extent they can make the computation of shares dependent. Effects of such coupling on performance is well-studied, but there are no works dedicated to SCA.

Impact of physical placement and routing on the security of a masking scheme was first practically demonstrated by De Cnudde et al. [1] in COSADE 2017. Authors implemented a version of KATAN protected using TI on an FPGA board. When placing the shares tightly together (unconstrained placement) they observed lower SCA security, compared to the shares being forced far apart (constrained placement). As the experiments were performed on an FGPA, layout of which is proprietary and the structure vastly different from a standard-cell ASIC, authors could not exactly pinpoint the source of exhibited information leakage. Nevertheless, authors make a good case to suspect the following two phenomena:

  1. capacitive coupling between multiple shares (as previously done);
  2. resistive voltage drop (IR drop) across the power-supply rails.

The latter point De Cnudde et al. [1] make is completely overlooked by the mathematical, logical and structural models inherent to masking schemes. Physical properties of the power distribution network are layout-specific and are difficult to infer from the circuits digital functionality.

Expanding on the work of De Cnudde et al. [1], Levi et al. [2] showed the potential severity of coupling through the PDN in CHES 2019. For both a hardware and software target, they managed to detect and exploit SCA information. Moreover, they show how addition of a simple resistor in the supply current measurement circuit can be used to enhance the amount of information leaked by the target device. Such a setup simple manipulation demonstrates the inherent coupling that occurs through the power distribution network in masked designs.

Therefore, the question of designing power distribution networks that do not couple computation of different shares and are immune to such external manipulation arises. Frameworks such as the one presented in [3] can be  used to leverage a more hardware-oriented perspective of the ASIC design.

[1] Thomas De Cnudde, Begül Bilgin, Benedikt Gierlichs, Ventzislav Nikov, Svetla Nikova, Vincent Rijmen:
Does Coupling Affect the Security of Masked Implementations?”, COSADE 2017.

[2] Itamar Levi, Davide Bellizia, François-Xavier Standaert: “Reducing a Masked Implementation’s Effective Security Order with Setup Manipulations And an Explanation Based on Externally-Amplified Couplings”, IACR TCHES 2019.

[3] Danilo Šijačić, Josep Balasch, Bohan Yang, Santosh Ghosh, and Ingrid Verbauwhede, “Towards Efficient and Automated Side Channel Evaluations at Design Time,” PROOFS 2018.