2018 · 99 citations · 61 references
ComputingComputer EngineeringComputer ScienceComputer SecurityCryptographyProgramming LanguagesSide-channel AnalysisSide-channel AttacksCache Side-channel AttacksCryptographic ApplicationsData Cache BehaviorInstruction Cache BehaviorInstruction Timing AnalysisMicroarchitectural Information LeakageMicroarchitectural Side-channel AnalysisTiming Side-channel Analysis
We propose a method, based on program analysis and transformation, for eliminating timing side channels in software code that implements security-critical applications. Our method takes as input the original program together with a list of secret variables (e.g., cryptographic keys, security tokens, or passwords) and returns the transformed program as output. The transformed program is guaranteed to be functionally equivalent to the original program and free of both instruction- and cache-timing side channels. Specifically, we ensure that the number of CPU cycles taken to execute any path is independent of the secret data, and the cache behavior of memory accesses, in terms of hits and misses, is independent of the secret data. We have implemented our method in LLVM and validated its effectiveness on a large set of applications, which are cryptographic libraries with 19,708 lines of C/C++ code in total. Our experiments show the method is both scalable for real applications and effective in eliminating timing side channels.
61
A Mathematical Theory of Communication
Claude E. Shannon · Bell System Technical Journal · 1948 · 80.7K citations
Patrick Cousot, Radhia Cousot · 1977 · 6.2K citations
Nathan Binkert, Bradford M. Beckmann, Gabriel Black et al. · ACM SIGARCH Computer Architecture News · 2011 · 4.9K citations
IEEE Software · 2011 · 2K citations