TL;DR
This paper argues for "maximal leakage" as a superior metric for quantifying information leakage in side-channel attacks compared to traditional metrics like mutual information. They demonstrate that maximal leakage provides a more accurate assessment of an attacker's advantage and leads to more principled cost-leakage trade-offs, showing that optimal protection can often be achieved with simple deterministic schemes.
What Problem Does This Paper Address?
Side-channel attacks exploit unintended information leakage from physical implementations of systems (e.g., timing, power consumption) to extract secrets. Completely eliminating this leakage is often prohibitively expensive in terms of performance overhead. Therefore, a crucial challenge is to find a principled way to balance security (minimizing leakage) with performance (minimizing cost). This requires accurate leakage metrics that reflect the true adversary's advantage. Traditional metrics like mutual information and channel capacity, while widely used, may underestimate the threat posed by side channels, leading to suboptimal protection strategies. The paper aims to establish maximal leakage as a more robust and practical metric for this cost-leakage trade-off analysis.
Methods
The paper introduces and analyzes "maximal leakage" as a leakage metric. Key methodological contributions include:
- Theoretical Analysis: They present theoretical properties of maximal leakage, demonstrating its relationship to "multiplicative gain leakage" and its advantages over traditional metrics. They also formulate the cost-leakage optimization problem as a linear program (LP).
- Empirical Evaluation: They conduct empirical studies on real-world side channels (RSA decryption timing and VoIP packet size) to compare maximal leakage with mutual information and channel capacity.
- Optimal Protection Schemes: They prove a structural result showing that optimal protection under maximal leakage can be achieved using deterministic schemes, or mixtures of at most two deterministic schemes, under certain cost constraints.
- Heuristic Algorithm: They propose a greedy algorithm to efficiently approximate the optimal cost-leakage trade-off curve, especially when the LP becomes computationally intractable due to large alphabet sizes.
Datasets
- RSA Decryption Timing Data: The paper uses data from an RSA implementation (both square-and-multiply and GMP library) to analyze timing side channels.
- VoIP Packet Size Data: They use the Mozilla CommonVoice English dataset, processed with the Opus codec, to generate data for packet size side channels in VoIP applications.
Key Insights and Ideas
- Maximal Leakage is a Better Adversary Model: Traditional metrics like mutual information and channel capacity can significantly underestimate the adversary's actual advantage in practical side channels, leading to a false sense of security. Maximal leakage, by considering the "worst-case" scenario for the secret's distribution, provides a more pessimistic and thus safer upper bound.
- Deterministic Protection is Often Optimal: Counterintuitively, the paper shows that for many common side channels (with staircase nondecreasing cost functions), optimal protection against maximal leakage can be achieved using deterministic schemes, which are simpler to implement and analyze than stochastic ones.
- LP Formulation Simplifies Optimization: Framing the cost-leakage trade-off as a linear program makes the optimization problem tractable and allows for systematic analysis.
- Greedy Algorithm for Practicality: For large systems, the full LP solution can be computationally expensive. The proposed greedy algorithm offers a fast way to approximate the optimal trade-off curve with provable bounds on sub-optimality.
Key Results
- Empirical Underestimation: In experiments with RSA and VoIP side channels, mutual information and channel capacity showed significant gaps compared to maximal leakage, indicating they underestimate the leakage.
- Optimal Protection Structure: Theorem 1 proves that optimal protection schemes under maximal leakage can be constructed from at most two deterministic schemes, simplifying the design of secure systems.
- Greedy Algorithm Performance: The greedy algorithm was shown to be significantly faster than solving the full LP, providing an approximation of the optimal trade-off curve with minimal error in practice. For example, in the GMP RSA case, the greedy algorithm achieved a near-optimal trade-off curve.
Limitations and Future Work
- Assumptions on Cost Functions: The structural result that optimal protection can be deterministic relies on the cost function being "staircase nondecreasing." While common for timing and power channels, this might not hold for all side channels.
- Heuristic Approximation: While the greedy algorithm is efficient, it is still an approximation. The paper provides bounds on its sub-optimality, but further research could explore tighter bounds or alternative approximation methods.
- Practical Implementation of Deterministic Schemes: While deterministic schemes are theoretically optimal, their practical implementation might still involve some overhead, which is not fully detailed.
- Future Work: The authors suggest exploring the application of their findings to other types of side channels and further investigating the practical implications of deterministic protection schemes. They also hint at the need for further work on understanding the qualitative differences between MI/CC-optimal and ML-optimal schemes beyond just quantitative leakage values.
Summary updated