Code Encryption for Confidentiality and Execution Integrity Down to Control Signals

Embedded devices face software and physical fault injections to either extract or tamper with code in memory. The code execution and code intellectual property are threatened. Some existing countermeasures provide Control Flow Integrity (CFI) with the confidentiality and integrity of the instructions by chaining all of them through a cryptographic encryption primitive. While tampering with instructions in memory is prevented, fault injection attacks can still target the microarchitecture. In this work, we introduce a new scheme by chaining the instructions through an encryption with associated control signals. This provides additional authenticity and integrity properties down to the control signals of the microarchitecture's pipeline. The instructions are stored encrypted in memory. At runtime, prior to being executed, the fetched instructions are decrypted depending on the control signals in the pipeline and all the previously decrypted instructions. In case of fault injections, targeting either instructions or control signals, the decryption process fails and generates random instructions, instead of the original ones. This quickly leads to an invalid instruction exception: the fault attack is thwarted. Our scheme was implemented on FPGA, into the 4-stage pipeline of the RISC-V CV32E40P core, using Ascon for encryption/decryption. When running and validating Embench program executions, we observed at least: a LUT overhead of 28.9 %, a reduction of the maximum core frequency of about −29.6%. While patches have to be stored, there is neither clock cycle overhead nor instructions inserted in the code.

Authors

Institutions

Publication Details

Published
2025-05-05
DOI
https://doi.org/10.1109/host64725.2025.11050061
Citations
1
Primary Topic
Cryptographic Implementations and Security
Type
article
Field-Weighted Citation Impact
2.48
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Code Encryption for Confidentiality and Execution Integrity Down to Control Signals

Olivier Potin, Jean-Baptiste Rigaud, Jean-Max Dutertre, Théophile Gousselot
1 citations
Cryptographic Implementations and Security
2.48
article

Code Encryption for Confidentiality and Execution Integrity Down to Control Signals

Olivier Potin, Jean-Baptiste Rigaud, Jean-Max Dutertre, Théophile Gousselot
article en
1 citations

Abstract

Embedded devices face software and physical fault injections to either extract or tamper with code in memory. The code execution and code intellectual property are threatened. Some existing countermeasures provide Control Flow Integrity (CFI) with the confidentiality and integrity of the instructions by chaining all of them through a cryptographic encryption primitive. While tampering with instructions in memory is prevented, fault injection attacks can still target the microarchitecture. In this work, we introduce a new scheme by chaining the instructions through an encryption with associated control signals. This provides additional authenticity and integrity properties down to the control signals of the microarchitecture's pipeline. The instructions are stored encrypted in memory. At runtime, prior to being executed, the fetched instructions are decrypted depending on the control signals in the pipeline and all the previously decrypted instructions. In case of fault injections, targeting either instructions or control signals, the decryption process fails and generates random instructions, instead of the original ones. This quickly leads to an invalid instruction exception: the fault attack is thwarted. Our scheme was implemented on FPGA, into the 4-stage pipeline of the RISC-V CV32E40P core, using Ascon for encryption/decryption. When running and validating Embench program executions, we observed at least: a LUT overhead of 28.9 %, a reduction of the maximum core frequency of about −29.6%. While patches have to be stored, there is neither clock cycle overhead nor instructions inserted in the code.

Commissariat à l'Énergie Atomique et aux Énergies Alternatives (FR), Mines Saint-Étienne (FR), Laboratoire d'Électronique des Technologies de l'Information (FR)
Openalex Percentile: Top 12%
Cryptographic Implementations and Security
2.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Code Encryption for Confidentiality and Execution Integrity Down to Control Signals — Olivier Potin, Jean-Baptiste Rigaud, et al. · (2025) | TGRS Research Map | TGRS