EC-CFI: Control-Flow Integrity via Code Encryption Counteracting Fault Attacks
Pascal Nasahl, Salmin Sultana, Hans Liljestrand, Karanvir Grewal,, Michael LeMay, David M. Durham, David Schrammel, Stefan Mangard

TL;DR
EC-CFI is a software-based control-flow integrity scheme that encrypts functions with unique keys and uses hardware features on Intel platforms to prevent fault attacks without detection latency.
Contribution
It introduces a novel function-level encryption scheme using extended page table aliasing on Intel hardware, enabling effective control-flow protection with minimal overhead.
Findings
Successfully prevents control-flow manipulation via fault attacks.
Achieves low detection latency using hardware features.
Demonstrates effectiveness on SPEC CPU2017 and Embench-IoT benchmarks.
Abstract
Fault attacks enable adversaries to manipulate the control-flow of security-critical applications. By inducing targeted faults into the CPU, the software's call graph can be escaped and the control-flow can be redirected to arbitrary functions inside the program. To protect the control-flow from these attacks, dedicated fault control-flow integrity (CFI) countermeasures are commonly deployed. However, these schemes either have high detection latencies or require intrusive hardware changes. In this paper, we present EC-CFI, a software-based cryptographically enforced CFI scheme with no detection latency utilizing hardware features of recent Intel platforms. Our EC-CFI prototype is designed to prevent an adversary from escaping the program's call graph using faults by encrypting each function with a different key before execution. At runtime, the instrumented program dynamically derives…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSecurity and Verification in Computing · Advanced Malware Detection Techniques · Cryptographic Implementations and Security
