Using Parallel Techniques to Accelerate PCFG-Based Password Cracking Attacks
Textual passwords play an important role among access-control mechanisms and are usually stored as ciphertext in the server. However, an attacker may attempt to hash a large number of candidate passwords to find the match of the target hash of a password database. To crack the password database, attackers in industry usually use the cracking software like Hashcat. Academic researchers recently proposed many data-driven probabilistic models, in which the Probabilistic Context-free Grammars (PCFG, for short) stand out. Despite the great cracking efficiency, the data-driven models are seldom used by industrial practice due to the significant slow generation speed of password candidates. To bridge the gap and promote the efficient data-driven models being practically used in industry, we propose that using parallel techniques to accelerate the candidate password generation, enabling the integration of PCFG models into the practically-used Hashcat tool. To this end, we mainly propose two algorithms to accelerate the password generation for PCFG-based models: first, we design a storage structure with the memory load balance strategy to more evenly store the data structures used to generate passwords; second, we design an algorithm to produce candidate passwords in parallel by different threads. Based on the two algorithms, we propose <monospace xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Parallel_PCFG</monospace>, and implement <monospace xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Parallel_PCFG</monospace> upon Hashcat based on its built-in GPU kernel. We comprehensively evaluate <monospace xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Parallel_PCFG</monospace> against state-of-the-art data-driven models, and find that <monospace xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Parallel_PCFG</monospace> only takes 14.33% of time to achieve the same cracking rates compared with the best-performing models, paving a way about the integration between PCFG-based models and Hashcat.
Authors
- Weili Han (ORCID: https://orcid.org/0000-0001-8663-436X)
- Jitao Yu (ORCID: https://orcid.org/0009-0005-7225-0230)
- Shenghao Zhang (ORCID: https://orcid.org/0000-0002-3649-6306)
- Kai Zhang (ORCID: https://orcid.org/0000-0001-7518-5466)
- Junjie Zhang (ORCID: https://orcid.org/0000-0002-0855-4118)
- Cheng Li (ORCID: https://orcid.org/0000-0003-4366-6139)
- Ming Xu (ORCID: https://orcid.org/0000-0003-1061-819X)
- Haodong Zhang (ORCID: https://orcid.org/0000-0002-1186-8732)
Institutions
- Fudan University (CN)
Publication Details
- Journal
- IEEE Transactions on Dependable and Secure Computing
- Published
- 2025-01-22
- DOI
- https://doi.org/10.1109/tdsc.2025.3532804
- Citations
- 2
- Primary Topic
- User Authentication and Security Systems
- Type
- article
- Field-Weighted Citation Impact
- 6.49
Funders
- National Natural Science Foundation of China