PassGAN: A deep learning approach for password guessing

Briland Hitaj, Paolo Gasti, Giuseppe Ateniese, Fernando Perez-Cruz

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

160 Scopus citations

Abstract

State-of-the-art password guessing tools, such as HashCat and John the Ripper, enable users to check billions of passwords per second against password hashes. In addition to performing straightforward dictionary attacks, these tools can expand password dictionaries using password generation rules, such as concatenation of words (e.g., “password123456”) and leet speak (e.g., “password” becomes “p4s5w0rd”). Although these rules work well in practice, creating and expanding them to model further passwords is a labor-intensive task that requires specialized expertise. To address this issue, in this paper we introduce PassGAN, a novel approach that replaces human-generated password rules with theory-grounded machine learning algorithms. Instead of relying on manual password analysis, PassGAN uses a Generative Adversarial Network (GAN) to autonomously learn the distribution of real passwords from actual password leaks, and to generate high-quality password guesses. Our experiments show that this approach is very promising. When we evaluated PassGAN on two large password datasets, we were able to surpass rule-based and state-of-the-art machine learning password guessing tools. However, in contrast with the other tools, PassGAN achieved this result without any a-priori knowledge on passwords or common password structures. Additionally, when we combined the output of PassGAN with the output of HashCat, we were able to match 51%–73% more passwords than with HashCat alone. This is remarkable, because it shows that PassGAN can autonomously extract a considerable number of password properties that current state-of-the art rules do not encode.

Original languageEnglish
Title of host publicationApplied Cryptography and Network Security - 17th International Conference, ACNS 2019, Proceedings
EditorsMoti Yung, Martín Ochoa, Robert H. Deng, Valérie Gauthier-Umaña
Pages217-237
Number of pages21
DOIs
StatePublished - 2019
Event17th International Conference on Applied Cryptography and Network Security, ACNS 2019 - Bogota, Colombia
Duration: 5 Jun 20197 Jun 2019

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume11464 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference17th International Conference on Applied Cryptography and Network Security, ACNS 2019
Country/TerritoryColombia
CityBogota
Period5/06/197/06/19

Keywords

  • Deep learning
  • Generative Adversarial Networks (GAN)
  • Passwords
  • Privacy

Fingerprint

Dive into the research topics of 'PassGAN: A deep learning approach for password guessing'. Together they form a unique fingerprint.

Cite this