A Time-Success Ratio Analysis of wPRF-based Leakage-Resilient Stream Ciphers

Maciej SkorskiarXiv 2015

TL;DR

This paper analyzes the security of leakage-resilient stream ciphers built from weak pseudorandom functions (wPRFs). The authors introduce a unified framework using time-success ratio to compare existing security bounds, revealing significant security losses. They also identify a flaw in a recent analysis, concluding that current techniques are insufficient to prove the security of these ciphers when instantiated with standard primitives like AES.

What Problem Does This Paper Address?

Modern cryptography often assumes adversaries operate in a "black-box" manner, only observing inputs and outputs. However, in practice, adversaries can exploit physical side-channels (like power consumption or timing) to gain additional information about a system's internal state. Leakage-resilient cryptography aims to design cryptographic primitives that remain secure even when such side-channel information is leaked.

Stream ciphers are a key component in many cryptographic systems, used for efficiently encrypting data streams. Leakage-resilient stream ciphers are designed to maintain their security despite these physical leaks. A popular approach to building these ciphers uses weak pseudorandom functions (wPRFs) as building blocks. While various security bounds exist for these constructions, their tightness and practical implications are not well understood. Specifically, the paper asks:

  1. How tight are the security proofs for leakage-resilient stream ciphers built from wPRFs?
  2. Can we instantiate these ciphers with commonly used primitives (like AES) and still achieve meaningful provable security?

Methods

The core of this paper is a time-success ratio analysis, a technique introduced by Luby for measuring security. This metric quantifies security by considering both the computational resources (time) an adversary needs and their probability of success. By analyzing how security degrades from the underlying primitive (wPRF) to the constructed cipher, the authors can compare different security bounds in a unified way.

They develop a general framework for comparing reductions from a primitive P to a construction P'. This involves solving a min-max optimization problem that relates the security parameters (time and advantage) of P and P'. For algebraic reductions, they derive explicit formulas for the security loss.

A significant part of the paper also involves re-evaluating and correcting existing proofs. Specifically, they identify and correct a flaw in a recent analysis of the EUROCRYPT'09 stream cipher, which had claimed better security guarantees than previously known.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • Significant Security Loss: Even with minimal leakage (e.g., one bit per computation), current reduction proofs for leakage-resilient stream ciphers incur substantial security losses, often exceeding 75% of the original security (measured in bits). This means that to achieve a desired security level, the underlying primitive must be significantly stronger than what would be needed without leakage.
  • Flaw in Recent Analysis: A claimed improvement in the security analysis of the EUROCRYPT'09 stream cipher (which would have allowed instantiation with standard block ciphers like AES) is shown to be based on a flawed proof. This means that, with current techniques, we cannot achieve meaningful provable security for such instantiations.
  • Time-Success Ratio as a Unifier: The time-success ratio provides a powerful and consistent way to compare security bounds across different proof techniques and adversarial models, revealing the true cost of leakage resilience.
  • Ideal vs. Practical Security: The paper highlights a gap between theoretical security goals (e.g., 80-bit security) and what can be practically achieved with standard cryptographic components when accounting for leakage.

Key Results

  • The paper provides a formal framework and explicit formulas for calculating the security loss in reductions from a primitive to a leakage-resilient construction using the time-success ratio.
  • They demonstrate that for leakage-resilient stream ciphers built from wPRFs, the security loss is substantial, often requiring the underlying wPRF to have significantly more security bits than the desired cipher security level. For instance, to achieve 80 bits of security, a wPRF with at least 512 bits of security might be needed.
  • A flaw is identified in the TCC'14 analysis of the EUROCRYPT'09 stream cipher, invalidating its claim of achieving meaningful security with standard block ciphers like AES.
  • The analysis suggests that current techniques are insufficient to prove the security of leakage-resilient stream ciphers instantiated with standard primitives like AES, even when considering significant leakage.

Limitations and Future Work

  • Current Proof Techniques are Limited: The paper concludes that current proof techniques are not strong enough to instantiate leakage-resilient stream ciphers with standard primitives like AES and achieve provable security. This suggests a need for new theoretical tools or models.
  • Need for Stronger Primitives: The results imply that to achieve practical security levels with leakage resilience, one must start with much stronger underlying primitives than typically required in non-leakage settings.
  • Future Work: The authors suggest exploring alternative constructions or proof techniques that can bridge the gap between theoretical security and practical instantiations. Further research into understanding the exact security loss associated with different leakage models and primitive instantiations is also warranted. The paper also implicitly calls for new methods to analyze the security of wPRFs themselves in the context of leakage.

Summary updated

Abstract

Weak pseudorandom functions (wPRFs) found an important application as main building blocks for leakage-resilient ciphers (EUROCRYPT'09). Several security bounds, based on different techniques, were given to these stream ciphers. The security loss in these reduction-based proofs is always polynomial, but has not been studied in detail. The aim of this paper is twofold. First, we present a clear comparison of quantitatively different security bounds in the literature. Second, we revisit the current proof techniques and answer the natural question of how far we are from meaningful and provable security guarantees, when instantiating weak PRFs with standard primitives (block ciphers or hash functions). In particular, we demonstrate a flaw in the recent (TCC'14) analysis of the EUROCRYPT'09 stream cipher, which means that we still don't know if it offers provable security when instantiated with a standard block cipher. Our approach is a \emph{time-to-success Ratio} analysis, a universal measure introduced by Luby, which allow us to compare different security bounds.
BibTeX
@misc{skorski2015time,
  author = {Maciej Skorski},
  title = {{A Time-Success Ratio Analysis of wPRF-based Leakage-Resilient Stream Ciphers}},
  year = {2015},
  eprint = {1505.06765},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1505.06765},
}
Figure