PassGPT: Password Modeling and (Guided) Generation with Large Language Models

Javier Rando, Fernando Perez-Cruz, Briland Hitaj
6/2/2023
40 citations
cs.CLcs.AIcs.CR

Official code: javirandor/passgpt (102 stars, Python, last commit 2025-03-13).

Abstract

Large language models (LLMs) successfully model natural language from vast amounts of text without the need for explicit supervision. In this paper, we investigate the efficacy of LLMs in modeling passwords.

Show full abstract

We present PassGPT, a LLM trained on password leaks for password generation. PassGPT outperforms existing methods based on generative adversarial networks (GAN) by guessing twice as many previously unseen passwords. Furthermore, we introduce the concept of guided password generation, where we leverage PassGPT sampling procedure to generate passwords matching arbitrary constraints, a feat lacking in current GAN-based strategies. Lastly, we conduct an in-depth analysis of the entropy and probability distribution that PassGPT defines over passwords and discuss their use in enhancing existing password strength estimators.

View on arXivView PDF

Code Implementations(1)

javirandor/passgptOfficial100%
10229Python, Jupyter NotebookJun 13, 20231 years agoNOASSERTION

Similar Papers

Cite this paper

@article{rando2023passgpt,
  title  = {PassGPT: Password Modeling and (Guided) Generation with Large Language Models},
  author = {Javier Rando and Fernando Perez-Cruz and Briland Hitaj},
  year   = {2023},
  eprint = {2306.01545},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.01545v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.01545.svg)](https://codeofpaper.com/paper/2306.01545)

Discussion