Prover - Toward More Efficient Formal Verification of Masking in Probing Model

Authors

  • Feng Zhou University of Chinese Academy of Sciences, Beijing, China; TCA Laboratory, Institute of Software, Chinese Academy of Sciences, Beijing, China; Zhongguancun Laboratory, Beijing, China
  • Hua Chen TCA Laboratory, Institute of Software, Chinese Academy of Sciences, Beijing, China
  • Limin Fan TCA Laboratory, Institute of Software, Chinese Academy of Sciences, Beijing, China

DOI:

https://doi.org/10.46586/tches.v2025.i1.552-585

Keywords:

Side-Channel Attacks, Masking, Formal Verification, Glitch-Extended Probing Security, Reduced Ordered Binary Decision Diagrams

Abstract

In recent years, formal verification has emerged as a crucial method for assessing security against Side-Channel attacks of masked implementations, owing to its remarkable versatility and high degree of automation. However, formal verification still faces technical bottlenecks in balancing accuracy and efficiency, thereby limiting its scalability. Former tools like maskVerif and CocoAlma are very efficient but they face accuracy issues when verifying schemes that utilize properties of Boolean functions. Later, SILVER addressed the accuracy issue, albeit at the cost of significantly reduced speed and scalability compared to maskVerif. Consequently, there is a pressing need to develop formal verification tools that are both efficient and accurate for designing secure schemes and evaluating implementations. This paper’s primary contribution lies in proposing several approaches to develop a more efficient and scalable formal verification tool called Prover, which is built upon SILVER. Firstly, inspired by the auxiliary data structures proposed by Eldib et al. and optimistic sampling rule of maskVerif, we introduce two reduction rules aimed at diminishing the size of observable sets and secret sets in statistical independence checks. These rules substantially decrease, or even eliminate, the need for repeated computation of probability distributions using Reduced Ordered Binary Decision Diagrams (ROBDDs), a time-intensive procedure in verification. Subsequently, we integrate one of these reduction rules into the uniformity check to mitigate its complexity. Secondly, we identify that variable ordering significantly impacts efficiency and optimize it for constructing ROBDDs, resulting in much smaller representations of investigated functions. Lastly, we present the algorithm of Prover, which efficiently verifies the security and uniformity of masked implementations in probing model with or without the presence of glitches. Experimental results demonstrate that our proposed tool Prover offers a better balance between efficiency and accuracy compared to other state-of-the-art tools (IronMask, CocoAlma, maskVerif, and SILVER). In our experiments, we also found an S-box that can only be verified by Prover, as IronMask cannot verify S-boxes, and both CocoAlma and maskVerif suffer from false positive issues. Additionally, SILVER runs out of time during verification.

Downloads

Published

2024-12-09

Issue

Section

Articles

How to Cite

Prover - Toward More Efficient Formal Verification of Masking in Probing Model. (2024). IACR Transactions on Cryptographic Hardware and Embedded Systems, 2025(1), 552-585. https://doi.org/10.46586/tches.v2025.i1.552-585