Skip to main content
QUICK REVIEW

[Paper Review] Quantifying the Information Leak in Cache Attacks through Symbolic Execution

Sudipta Chattopadhyay, Moritz Beck|arXiv (Cornell University)|Nov 14, 2016
Security and Verification in ComputingComputer Science15 references3 citations
TL;DR

CHALICE is a symbolic execution-based framework that precisely quantifies information leakage in cache side-channel attacks by analyzing execution traces, enabling detection of critical leakage in real-world binaries. It reveals that up to 127 out of 128 bits of an AES-128 key can leak via cache timing in certain inputs, outperforming static analysis by capturing input-dependent leakage distributions.

ABSTRACT

Cache timing attacks allow attackers to infer the properties of a secret execution by observing cache hits and misses. But how much information can actually leak through such attacks? For a given program, a cache model, and an input, our CHALICE framework leverages symbolic execution to compute the amount of information that can possibly leak through cache attacks. At the core of CHALICE is a novel approach to quantify information leak that can highlight critical cache side-channel leaks on arbitrary binary code. In our evaluation on real-world programs from OpenSSL and Linux GDK libraries, CHALICE effectively quantifies information leaks: For an AES-128 implementation on Linux, for instance, CHALICE finds that a cache attack can leak as much as 127 out of 128 bits of the encryption key.

Motivation & Objective

  • To address the lack of precise, input-aware quantification of cache side-channel information leakage in real-world software.
  • To identify critical input segments that expose significantly more information than others under cache timing attacks.
  • To provide a dynamic, execution-based alternative to static analysis for detecting exploitable side-channel leaks.
  • To support secure software development by enabling debugging and optimization of high-leakage code regions.
  • To generalize across cache policies (e.g., direct-mapped, LRU) and observer models for broad applicability.

Proposed method

  • Symbolic execution is applied to concrete program inputs to derive symbolic timing traces of cache hits and misses.
  • A novel symbolic cache model is constructed to track cache state transitions alongside program state during execution.
  • Information leakage is quantified by analyzing the distribution of cache timing patterns across different input values.
  • The framework maps program variables to a modeled cache structure (e.g., direct-mapped or LRU) to simulate real cache behavior.
  • CHALICE uses Max-SMT solving to determine the number of inputs that produce identical timing patterns, revealing leakage per observation.
  • The approach is implemented on LLVM and KLEE, enabling analysis of arbitrary binary code with full symbolic state tracking.

Experimental results

Research questions

  • RQ1How much information can actually leak through cache timing attacks for a given program, cache model, and input?
  • RQ2Can symbolic execution be used to precisely quantify input-dependent information leakage in cache side channels?
  • RQ3How does the distribution of cache timing patterns affect the exploitable leakage of secret data?
  • RQ4Can CHALICE detect and rank inputs that lead to significantly higher leakage than others?
  • RQ5How does CHALICE’s dynamic analysis compare to static analysis in identifying critical leakage scenarios?

Key findings

  • For an AES-128 implementation, CHALICE identifies that certain inputs can leak up to 127 out of 128 key bits via cache timing, making brute-force recovery of the remaining 1 bit trivial.
  • In extreme cases (e.g., 213 or 279 cache misses), only 2 keys produce the same timing pattern, and CHALICE determines that 90 bits of the key leak in such scenarios.
  • For average cache timing patterns, over 13,000 keys produce the same pattern, indicating significantly lower leakage per observation.
  • CHALICE detects that input-dependent leakage varies widely—some inputs leak substantially more than others, a phenomenon missed by static upper-bound analysis.
  • The framework successfully quantifies leakage in real-world binaries from OpenSSL and Linux GDK libraries, revealing high leakage risks in production code.
  • CHALICE’s symbolic analysis reveals that uniform cache timing distribution is rare, and even well-optimized implementations may expose critical leakage under specific inputs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.