Skip to main content

Quantifying and Mitigating Cache Side Channel Leakage with Differential Set

Publication ,  Journal Article
Ma, C; Wu, D; Tan, G; Kandemir, MT; Zhang, D
Published in: Proceedings of the ACM on Programming Languages
October 16, 2023

Cache side-channel attacks leverage secret-dependent footprints in CPU cache to steal confidential information, such as encryption keys. Due to the lack of a proper abstraction for reasoning about cache side channels, existing static program analysis tools that can quantify or mitigate cache side channels are built on very different kinds of abstractions. As a consequence, it is hard to bridge advances in quantification and mitigation research. Moreover, existing abstractions lead to imprecise results. In this paper, we present a novel abstraction, called differential set, for analyzing cache side channels at compile time. A distinguishing feature of differential sets is that it allows compositional and precise reasoning about cache side channels. Moreover, it is the first abstraction that carries sufficient information for both side channel quantification and mitigation. Based on this new abstraction, we develop a static analysis tool DSA that automatically quantifies and mitigates cache side channel leakage at the same time. Experimental evaluation on a set of commonly used benchmarks shows that DSA can produce more precise leakage bound as well as mitigated code with fewer memory footprints, when compared with state-of-the-art tools that only quantify or mitigate cache side channel leakage.

Duke Scholars

Published In

Proceedings of the ACM on Programming Languages

DOI

EISSN

2475-1421

Publication Date

October 16, 2023

Volume

7

Issue

OOPSLA2

Related Subject Headings

  • 4903 Numerical and computational mathematics
  • 4613 Theory of computation
  • 4612 Software engineering
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Ma, C., Wu, D., Tan, G., Kandemir, M. T., & Zhang, D. (2023). Quantifying and Mitigating Cache Side Channel Leakage with Differential Set. Proceedings of the ACM on Programming Languages, 7(OOPSLA2). https://doi.org/10.1145/3622850
Ma, C., D. Wu, G. Tan, M. T. Kandemir, and D. Zhang. “Quantifying and Mitigating Cache Side Channel Leakage with Differential Set.” Proceedings of the ACM on Programming Languages 7, no. OOPSLA2 (October 16, 2023). https://doi.org/10.1145/3622850.
Ma C, Wu D, Tan G, Kandemir MT, Zhang D. Quantifying and Mitigating Cache Side Channel Leakage with Differential Set. Proceedings of the ACM on Programming Languages. 2023 Oct 16;7(OOPSLA2).
Ma, C., et al. “Quantifying and Mitigating Cache Side Channel Leakage with Differential Set.” Proceedings of the ACM on Programming Languages, vol. 7, no. OOPSLA2, Oct. 2023. Scopus, doi:10.1145/3622850.
Ma C, Wu D, Tan G, Kandemir MT, Zhang D. Quantifying and Mitigating Cache Side Channel Leakage with Differential Set. Proceedings of the ACM on Programming Languages. 2023 Oct 16;7(OOPSLA2).

Published In

Proceedings of the ACM on Programming Languages

DOI

EISSN

2475-1421

Publication Date

October 16, 2023

Volume

7

Issue

OOPSLA2

Related Subject Headings

  • 4903 Numerical and computational mathematics
  • 4613 Theory of computation
  • 4612 Software engineering