In this blog post, we discuss the importance of verification when designing countermeasures against physical attacks, and present our set of tools for verification of side-channel and fault resistant implementations.
Side-Channel Analysis and Fault Attacks are known to exploit the physical properties of a cryptographic implementation to break its security. They have been significantly studied in the literature, together with countermeasures to prevent them. As important as it is to devise new and efficient countermeasures against these attacks, it is also crucially important to verify their correct functionality. The design and implementation of countermeasures against physical attacks need high expertise. Furthermore, they are highly susceptible to errors, and continuous verification is imperative.
Similarly to functional verification, security verification should happen too at every stage of the design flow. Thus, we need tools to work at the algorithmic, implementation, and physical level, with their corresponding trade-offs.
On the one hand, tools at the algorithmic level are more exhaustive but need an abstraction model of reality. On the other hand, tools at the physical level cannot cover all possible cases and may need higher expertise, but provide a more realistic assessment. Lots of tools have been presented to evaluate resistance against side-channel analysis, but no publicly available tools are known to aid in the evaluation of fault resistant countermeasures.
We have recently released our set of tools, VerMFi, composed of VerMI and VerFI, each published in two different works [1] and [2] (to appear at HOST 2020). They are designed to provide a highly practical security assessment, working at the implementation level.
VerMI is used to verify the security against side-channel analysis. It checks the correct application of Non-completeness and Uniformity, which are properties proposed in the masking scheme known as Threshold Implementations [3]. We highlight the ability of the tool to handle full implementations for evaluating Non-completeness, which allows the tool to check this property for the complete design.
VerFI is designed for verification of countermeasures against fault attacks. To the best of our knowledge, is the first tool publicly available of this kind. It works as a fault simulator, implementing the concepts defined in the original work as Cryptographic Fault Diagnosis [2]. It features an extremely flexible injection mechanism that makes the tool able to adapt to virtually any fault model required by the user. Thus, suitable for the analysis of any fault countermeasure.
You can find these tools available at https://github.com/vmarribas/VerMFi.
Give it a try, and if you have questions or suggestions, you can contact me.
[1] V. Arribas, S. Nikova, and V. Rijmen, “VerMI: Verification Tool for Masked Implementations,” in 25th IEEE International Conference on Electronics, Circuits, and Systems. Bordeaux,FR: IEEE, 2018, p. 4.
[2] V. Arribas, F. Wegener, A. Moradi, and S. Nikova, “Cryptographic fault diagnosis using verfi,” Cryptology ePrint Archive, Report 2019/1312, 2019, https://eprint.iacr.org/2019/1312.
[3] S. Nikova, C. Rechberger, and V. Rijmen, “Threshold implementations against side-channel attacks and glitches,” in Information and Communications Security, 8th International Conference, ICICS 2006, Raleigh, NC, USA.


