Skip to main content
QUICK REVIEW

[Paper Review] Reducing Bias in Modeling Real-world Password Strength via Deep Learning and Dynamic Dictionaries

Dario Pasquini, Marco Cianfriglia|arXiv (Cornell University)|Oct 23, 2020
User Authentication and Security SystemsComputer Science31 references9 citations
TL;DR

This paper introduces AdaMs, a deep learning-powered adaptive dictionary attack that dynamically generates mangling rules per password candidate, reducing overestimation of password strength by modeling real-world attacker behavior. By using neural networks to tailor rules at runtime and enabling dynamic adaptation, AdaMs achieves superior attack effectiveness and resilience to poor initial configurations, outperforming standard off-the-shelf setups and even optimal static dictionaries in key benchmarks.

ABSTRACT

Password security hinges on an in-depth understanding of the techniques adopted by attackers. Unfortunately, real-world adversaries resort to pragmatic guessing strategies such as dictionary attacks that are inherently difficult to model in password security studies. In order to be representative of the actual threat, dictionary attacks must be thoughtfully configured and tuned. However, this process requires a domain-knowledge and expertise that cannot be easily replicated. The consequence of inaccurately calibrating dictionary attacks is the unreliability of password security analyses, impaired by a severe measurement bias. In the present work, we introduce a new generation of dictionary attacks that is consistently more resilient to inadequate configurations. Requiring no supervision or domain-knowledge, this technique automatically approximates the advanced guessing strategies adopted by real-world attackers. To achieve this: (1) We use deep neural networks to model the proficiency of adversaries in building attack configurations. (2) Then, we introduce dynamic guessing strategies within dictionary attacks. These mimic experts' ability to adapt their guessing strategies on the fly by incorporating knowledge on their targets. Our techniques enable more robust and sound password strength estimates within dictionary attacks, eventually reducing overestimation in modeling real-world threats in password security. Code available: https://github.com/TheAdamProject/adams

Motivation & Objective

  • To address the persistent overestimation of password strength in security analyses due to suboptimal, static dictionary attack configurations.
  • To model real-world attacker behavior—particularly dynamic, expert-level adaptation—without requiring manual tuning or domain expertise.
  • To reduce measurement bias in password strength estimation by automating the creation of highly effective, context-aware guessing strategies.
  • To develop a framework that systematically improves the accuracy of adversarial modeling in password security research.

Proposed method

  • Employing deep neural networks to predict and generate optimal mangling rules at runtime, conditioned on individual dictionary words.
  • Introducing dynamic guessing strategies that adapt during the attack based on real-time feedback and target-specific knowledge.
  • Combining adaptive rule generation with dynamic dictionary augmentation to improve coverage and effectiveness without prior knowledge of the target set.
  • Using a two-part evaluation setup: attacking a target set with both an optimal internal dictionary and an external sub-optimal one (e.g., RockYou), to test convergence toward optimal performance.
  • Training and deploying a neural model that maps dictionary entries to rule sets, enabling on-the-fly rule selection and transformation.
  • Evaluating the attack using real password leaks (e.g., MyHeritage, youku, phpBB) to compare hit rates and convergence speed against standard and optimal configurations.

Experimental results

Research questions

  • RQ1Can deep learning be used to automatically generate effective, context-specific mangling rules that outperform static, off-the-shelf rule sets?
  • RQ2To what extent does dynamic adaptation during dictionary attacks improve guessing effectiveness compared to static strategies?
  • RQ3How does the AdaMs framework reduce measurement bias in password strength estimation caused by poor initial configurations?
  • RQ4Can a dynamically adaptive attack converge to the performance of an a priori optimal dictionary without prior knowledge of the target set?

Key findings

  • AdaMs achieved comparable or better hit rates than the optimal internal dictionary within the first 10^11 guesses for the MyHeritage dataset, demonstrating superior convergence.
  • For the youku dataset, AdaMs outperformed the optimal dictionary in the first 10^11 guesses despite the initial dictionary (RockYou) being poorly matched to the target set.
  • The attack reduced the influence of initial dictionary choice, such that a small dictionary like phpBB achieved performance comparable to RockYou, which is two orders of magnitude larger.
  • The adaptive framework proved more resilient to misconfigurations, consistently reducing overestimation of password strength across multiple real-world password leaks.
  • AdaMs significantly outperformed standard attacks using off-the-shelf dictionaries and rules-sets, with performance gains up to an order of magnitude in the number of guesses required to break passwords.
  • The study confirmed that mangling rules have a conditional nature that must be modeled explicitly, as static rule application is sub-optimal and often ineffective.

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.