TL;DR
This paper introduces PagPassGPT, a novel password guessing model that leverages Generative Pretrained Transformers (GPT) to incorporate password pattern information, significantly improving guessing accuracy. To further enhance performance, they propose D&C-GEN, a divide-and-conquer algorithm that drastically reduces duplicate password generation, leading to more efficient and effective password cracking.
What Problem Does This Paper Address?
The digital age relies heavily on passwords, making password cracking a significant security concern. While deep learning models have advanced password guessing, two key challenges remain: generating high-quality, realistic passwords that adhere to user-defined patterns, and minimizing the generation of duplicate passwords, which wastes computational resources and reduces overall effectiveness. Existing models often struggle to effectively integrate pattern information or produce a large number of redundant guesses, especially in trawling attacks where the goal is to maximize hits across a broad user base.
Methods
The paper proposes two main components:
- PagPassGPT: This model builds upon the GPT-2 architecture. Unlike previous approaches that might filter tokens based on patterns, PagPassGPT integrates password patterns as an initial condition during the auto-regressive generation process. This allows the model to consider both the learned language patterns and the explicit structure of the target password pattern, leading to more accurate and contextually relevant guesses.
- D&C-GEN (Divide-and-Conquer Generation): This algorithm addresses the issue of duplicate password generation. It recursively divides the main password guessing task into smaller, non-overlapping subtasks. Each subtask inherits knowledge from its parent and focuses on specific pattern and prefix requirements. This "divide and conquer" strategy ensures that generated passwords are more diverse and less likely to be repeated, significantly reducing the repeat rate.
Datasets
The study utilized five publicly available datasets: Rockyou, LinkedIn, phpBB, MySpace, and Yahoo!. The Rockyou and LinkedIn datasets were split for training, validation, and testing, while the others were used for cross-site evaluation. The authors note that these datasets are consistent with those used in prior state-of-the-art work, with the exclusion of the Hotmail dataset due to its small size.
Key Insights and Ideas
- Pattern as Context, Not Just Filter: The core insight is that password patterns are best utilized as foundational context for generation, rather than just a post-hoc filter. This allows the model to generate passwords that are inherently more aligned with the expected structure.
- Divide and Conquer for Diversity: The D&C-GEN algorithm demonstrates that breaking down a large guessing task into smaller, specialized subtasks is an effective way to combat password duplication and increase the diversity of generated guesses.
- Complementary Strengths: The paper highlights that effective password guessing requires both strong password knowledge extraction (the "first part") and a robust generation mechanism (the "second part"), emphasizing that these components are complementary.
Key Results
- Improved Hit Rate: PagPassGPT achieved a significant increase in hit rate, particularly in pattern-guided guessing, outperforming the state-of-the-art PassGPT by up to 27.5% in some scenarios. In trawling attacks, PagPassGPT-D&C achieved a 12% higher hit rate than PassGPT at 10⁹ guesses.
- Reduced Repeat Rate: D&C-GEN drastically reduced the repeat rate. PagPassGPT-D&C generated only 9.28% duplicate passwords at 10⁹ guesses, compared to PassGPT's 34.5% (a 25% reduction).
- Better Pattern Adherence: PagPassGPT showed superior performance in guessing passwords with more complex patterns (higher number of segments), where PassGPT often failed to make correct guesses.
- Improved Distribution Alignment: PagPassGPT's generated passwords showed a closer alignment to the length and pattern distributions of the test set compared to other models, indicating higher quality and realism.
Limitations and Future Work
- Diversity Limitations: The current version of PagPassGPT has limitations in password diversity, primarily supporting patterns extracted by PCFG. It also generates passwords within a restricted length range (up to 12 characters) due to GPT's input window size.
- D&C-GEN Overhead: While effective, D&C-GEN increases the time required for password generation due to the division process.
- Future Directions: The authors suggest that training new models for longer passwords or extending the vocabulary for broader character sets are straightforward extensions. They also point to the significance of the generation algorithm itself as a key area for future research, emphasizing the need to balance computational resources, parallelization capabilities, and optimal threshold selection for D&C-GEN.
Summary updated