Coco: Co-Design and Co-Verification of Masked Software Implementations on CPUs

The work

AuthorsBarbara Gigerl; Vedad Hadzic; Robert Primas; Stefan Mangard; Roderick Bloem
Editors
Typeinproceedings
Year2021
Citekeygigerl2021coco

Where it appeared

Published in30th USENIX Security Symposium (USENIX Security 21)
PublisherUSENIX Association
Pages1469--1486

Related

Distinct frombloem2018formal
Distinct frommeunier2023verifmsi

From bibtex.

Abstract

The protection of cryptographic implementations against power analysis attacks is of critical importance for many applications in embedded systems. The typical approach of protecting against these attacks is to implement algorithmic countermeasures, like masking. However, implementing these countermeasures in a secure and correct manner is challenging. Masking schemes require the independent processing of secret shares, which is a property that is often violated by CPU microarchitectures in practice. In order to write leakage-free code, the typical approach in practice is to iteratively explore instruction sequences and to empirically verify whether there is leakage caused by the hardware for this instruction sequence or not. Clearly, this approach is neither efficient, nor does it lead to rigorous security statements. In this paper, we present the first approach for co-design and co-verification of masked software implementations on CPUs. First, we present Coco, a tool that allows us to provide security proofs at the gate-level for the execution of a masked software implementation on a concrete CPU. Using Coco, we analyze the popular 32-bit RISC-V Ibex core, identify all design aspects that violate the security of our tested masked software implementations and perform corrections, mostly in hardware. The resulting secured Ibex core has an area overhead around 10 percent, the runtime of software on this core is largely unaffected, and the formal verification with Coco of a first-order masked Keccak S-box running on the secured Ibex core takes around 156 seconds. To demonstrate the effectiveness of our suggested design modifications, we perform practical leakage assessments using an FPGA evaluation board.

A copy is held

pdf, 684.1 kB. Not published — it may be under copyright. The facts and links here are.

How it got here

How it got hereagent via bibtex
Added2026-09-17 14:24 UTC
Approved bya person 2026-09-18 10:10 UTC

Cite it as

@inproceedings{gigerl2021coco,
  title        = {Coco: Co-Design and Co-Verification of Masked Software Implementations on CPUs},
  author       = {Barbara Gigerl and Vedad Hadzic and Robert Primas and Stefan Mangard and Roderick Bloem},
  year         = {2021},
  booktitle    = {30th USENIX Security Symposium (USENIX Security 21)},
  publisher    = {USENIX Association},
  pages        = {1469--1486},
}

This record lives at https://refs.drheap.org/gigerl2021coco/ and will keep doing so.