Study on Massive-Scale Slow-Hash Recovery Using Unified Probabilistic Context-Free Grammar and Symmetrical Collaborative Prioritization with Parallel Machines

Tianjun Wu, Yuexiang Yang, Chi Wang, Rui WangSymmetry 2019

TL;DR

This paper tackles the challenge of recovering slow-hash (like bcrypt) protected passwords from massive data breaches. They introduce a novel concurrent model that leverages password reuse and a unified probabilistic context-free grammar (PCFG) to prioritize cracking efforts, achieving significantly faster recovery rates than existing methods. This work highlights the underestimated threat of password reuse in large-scale breaches and offers insights for organizations to better secure their data.

What Problem Does This Paper Address?

Traditional password hashing algorithms are designed to be computationally expensive to slow down brute-force attacks. However, modern attackers can leverage massive leaked password databases to improve their guessing strategies. This paper focuses on recovering passwords hashed with "slow-hash" algorithms like bcrypt, which are designed to be resistant to traditional offline attacks. The core problem is that existing password recovery methods, especially those based on password reuse, are not efficiently scalable for massive datasets and struggle to keep up with the computational demands of slow hashes. Previous approaches often focus on individual account recovery or use models that are difficult to parallelize, making them impractical for real-world, large-scale attacks where maximizing profit against cost is key.

Methods

The authors propose a novel concurrent model that combines several key ideas:

  • Unified Probabilistic Context-Free Grammar (PCFG): This approach extends traditional PCFGs to handle both password reuse (leveraging known passwords from other breaches) and traditional dictionary/rule-based attacks. It allows for prioritizing guesses across all accounts, not just those with known leaked passwords.
  • Symmetrical Collaborative Prioritization: This involves a global ranking mechanism that dynamically prioritizes promising (account, candidate password) pairs. Instead of processing accounts sequentially, it uses a max-min heap to maintain a global order of priority, ensuring that more likely passwords are tried first.
  • Parallel Machines: The system is designed for parallel execution. It separates the computationally intensive bcrypt hashing process (handled by "Bcrypters") from the grammar expansion and candidate generation process (handled by "Selecter"). This "symmetrical multithread collaboration" allows for efficient parallelization.
  • Incremental Transformation and Materialization: To manage the complexity of generating and ranking a vast number of password candidates, the model uses incremental transformation (generating candidates step-by-step) and materialization (transferring less probable candidates to disk) to handle memory constraints and maintain efficiency.

Datasets

  • VeriClouds Corpus: This is a massive dataset of over 9 billion leaked credentials collected from various sources on the deep/dark web and paste sites. It's used as the source dataset for password reuse.
  • Target Datasets: For evaluation, the authors generated synthetic datasets mimicking the statistical features (data size, account coverage, hashing strategy, password distribution) of real-world bcrypt dumps. These include:
  • Dropbox-styled list: Based on the Dropbox breach.
  • Ashley Madison (AM)-styled list: Based on the Ashley Madison breach.
  • Edmodo-styled list: Based on the Edmodo breach.
  • CSDN-styled list (re-hashed): Based on CSDN.net, used for comparing with previous work.

Key Insights and Ideas

  • Password Reuse is a Major Threat to Slow Hashes: The paper strongly emphasizes that password reuse is not just a concern for traditional hashes but a significant vulnerability for slow hashes like bcrypt, especially when combined with large leaked password corpora.
  • Global Prioritization is Crucial for Efficiency: Treating accounts and their potential passwords holistically, rather than individually, is key to maximizing recovery speed. Dynamically ranking candidates across all accounts allows for faster identification of high-probability passwords.
  • Decoupling Hashing and Generation is Key to Parallelization: Separating the slow bcrypt hashing from the faster PCFG expansion allows for effective parallelization on multi-core systems, significantly boosting throughput.
  • Memory Management is Critical for Scale: Handling billions of potential password candidates requires sophisticated memory management techniques like materialization to avoid system degradation.

Key Results

  • Significant Speedup: The proposed method, BcryptRecover, achieved recovery speeds of up to 7200 non-identical passwords cracked per hour on a target dataset, compared to oclHashcat's 28 hashes per hour (using default settings). This translates to recovering 20.1% of accounts in one week, a task that would take months for other methods with similar resources.
  • High Overlap Exploited: The VeriClouds dataset showed a high percentage of overlap with target breaches (e.g., 59.1% for Dropbox), demonstrating the effectiveness of password reuse.
  • Effective Global Ranking: Experiments showed that global ranking significantly improves cracking speed over local ranking methods, with the incremental global approach (GlobalIncTrans) outperforming full transformation (GlobalFullTrans) due to reduced computational overhead.
  • Scalability Achieved: The system demonstrated scalability, handling large datasets and managing memory constraints through materialization.

Limitations and Future Work

  • Dataset Size: The VeriClouds corpus, while large, is still a fraction of the total data available to attackers. The potential recovery rate for a target dump could be even higher.
  • Correlation Analysis: The current method primarily uses email addresses for matching. Future work could involve more sophisticated correlation analysis (e.g., using other personal information) to improve account matching.
  • TarGuess Models: Incorporating other TarGuess models that utilize Personally Identifiable Information (PII) could further enhance the guessing accuracy.

Summary updated

BibTeX
@article{wu2019study,
  author = {Tianjun Wu and Yuexiang Yang and Chi Wang and Rui Wang},
  title = {{Study on Massive-Scale Slow-Hash Recovery Using Unified Probabilistic Context-Free Grammar and Symmetrical Collaborative Prioritization with Parallel Machines}},
  journal = {Symmetry},
  year = {2019},
  doi = {10.3390/sym11040450},
}

Loading related content...

Figure