Lune

S&P2023Top-tier venue

Towards a Rigorous Statistical Analysis of Empirical Password Datasets

Jeremiah Blocki, Peiyuan Liu

Abstract

A central challenge in password security is to characterize the attacker's guessing curve i.e., what is the probability that the attacker will crack a random user's password within the first G guesses. A key challenge is that the guessing curve depends on the attacker's guessing strategy and the distribution of user passwords both of which are unknown to us. In this work we aim to follow Kerckhoffs's principal and analyze the performance of an optimal attacker who knows the password distribution. Let λG denote the probability that such an attacker can crack a random user's password within G guesses. We develop several statistically rigorous techniques to upper and lower bound λG given N independent samples from the unknown password distribution P{\mathcal{P}}. We show that our upper/lower bounds on λG hold with high confidence and we apply our techniques to analyze eight large password datasets. Our empirical analysis shows that even state-of-the-art password cracking models are often significantly less guess efficient than an attacker who can optimize its attack based on its (partial) knowledge of the password distribution. We also apply our statistical tools to re-examine different models of the password distribution i.e., the empirical password distribution and Zipf's Law. We find that the empirical distribution closely matches our upper/lower bounds on λG when the guessing number G is not too large i.e., G ≪ N. However, for larger values of G our empirical analysis rigorously demonstrates that the empirical distribution (resp. Zipf's Law) overestimates the attacker's success rate. We apply our statistical techniques to upper/lower bound the effectiveness of password throttling mechanisms (key-stretching) which are used to reduce the number of attacker guesses G. Finally, if we are willing to make an additional assumption about the way users respond to password restrictions, we can use our statistical techniques to evaluate the effectiveness of various password composition policies which restrict the passwords that users may select.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Protecting accounts from credential stuffing with password breach alerting cites Protocols for Checking Compromised Credentials
  • Protocols for Checking Compromised Credentials cites Fast, Lean, and Accurate: Modeling Password Guessability Using Neural Networks
  • Conditional Encryption with Applications to Secure Personalized Password Typo Correction cites On the Economics of Offline Password Cracking
  • Conditional Encryption with Applications to Secure Personalized Password Typo Correction cites Fast, Lean, and Accurate: Modeling Password Guessability Using Neural Networks
  • On the Economics of Offline Password Cracking cites Fast, Lean, and Accurate: Modeling Password Guessability Using Neural Networks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Conditional Encryption with Applications to Secure Personalized Password Typo CorrectionMohammad Hassan Ameri, Jeremiah BlockiCCS 2024

Builds on10

  1. Fast, Lean, and Accurate: Modeling Password Guessability Using Neural NetworksWilliam Melicher, Blase Ur, Sean M. Segreti, Saranga Komanduri et al.USENIX Security 2016 · 331 citations
  2. Protecting accounts from credential stuffing with password breach alertingKurt Thomas, Jennifer Pullman, Kevin Yeo, Ananth Raghunathan et al.USENIX Security 2019 · 154 citations
  3. Protocols for Checking Compromised CredentialsLucy Li, Bijeeta Pal, Junade Ali, Nick Sullivan et al.CCS 2019 · 80 citations
  4. On the Economics of Offline Password CrackingJeremiah Blocki, Benjamin Harsha, Samson ZhouS&P 2018 · 79 citations
  5. pASSWORD tYPOS and How to Correct Them SecurelyRahul Chatterjee, Anish Athayle, Devdatta Akhawe, Ari Juels et al.S&P 2016 · 68 citations

Related papers

  1. Confident Monte Carlo: Rigorous Analysis of Guessing Curves for Probabilistic Password ModelsPeiyuan Liu, Jeremiah Blocki, Wenjie BaiS&P 2023
  2. Targeted Online Password Guessing: An Underestimated ThreatDing Wang, Zijian Zhang, Ping Wang, Jeff Yan et al.CCS 2016 · 385 citations
  3. Reasoning Analytically about Password-Cracking SoftwareEnze Liu, Amanda Nakanishi, Maximilian Golla, David Cash et al.S&P 2019 · 33 citations
  4. Chunk-Level Password Guessing: Towards Modeling Refined Password Composition RepresentationsMing Xu, Chuanwang Wang, Jitao Yu, Junjie Zhang et al.CCS 2021 · 32 citations
  5. RankGuess: Password Guessing Using Adversarial RankingTao Yang, Ding WangS&P 2025
Dusk over the sea between two cliffs drawn in fine vertical lines