ACM Transactions on Architecture and Code Optimization · 2017 · 36 citations · 28 references
ComputingComputer EngineeringComputer ScienceCompilersComputer SecurityFault-tolerant ComputingControl-flow AnalysisMicroarchitectural SecuritySecurity HardeningSoftware Fault ToleranceCompile-time OptimizationData Flow PatternsFault Attack MitigationIntermediate Representation DesignProtectionStatic CompilationTermination Conditions
Secure elements widely used in smartphones, digital consumer electronics, and payment systems are subject to fault attacks. To thwart such attacks, software protections are manually inserted requiring experts and time. The explosion of the Internet of Things (IoT) in home, business, and public spaces motivates the hardening of a wider class of applications and the need to offer security solutions to non-experts. This article addresses the automated protection of loops at compilation time, covering the widest range of control- and data-flow patterns, in both shape and complexity. The security property we consider is that a sensitive loop must always perform the expected number of iterations; otherwise, an attack must be reported. We propose a generic compile-time loop hardening scheme based on the duplication of termination conditions and of the computations involved in the evaluation of such conditions. We also investigate how to preserve the security property along the compilation flow while enabling aggressive optimizations. We implemented this algorithm in LLVM 4.0 at the Intermediate Representation (IR) level in the backend. On average, the compiler automatically hardens 95% of the sensitive loops of typical security benchmarks, and 98% of these loops are shown to be robust to simulated faults. Performance and code size overhead remain quite affordable, at 12.5% and 14%, respectively.
28
MiBench: A free, commercially representative embedded benchmark suite
Matthew R. Guthaus, Jeffrey Ringenberg, Daniel Ernst et al. · 2001 · 3.1K citations
SPEC CPU2006 benchmark descriptions
John L. Henning · ACM SIGARCH Computer Architecture News · 2006 · 2K citations
Martı́n Abadi, Mihai Budiu, Úlfar Erlingsson et al. · 2005 · 1K citations
The Sorcerer's Apprentice Guide to Fault Attacks
Hagai Bar-El, Hamid Choukri, David Naccache et al. · Proceedings of the IEEE · 2006 · 723 citations
Engineering, Computer Engineering, Electrical Engineering +15
SWIFT: Software Implemented Fault Tolerance
George A. Reis, Jonathan Chang, Neil Vachharajani et al. · 2005 · 710 citations