TL;DR
This paper introduces a novel method for generating "honeywords" – fake passwords designed to detect data breaches – using large language models like GPT-3. Unlike previous methods that assume attackers have no user information, this approach generates honeywords that retain personal identifiable information (PII) from real passwords, making them much harder for attackers to distinguish and thus significantly improving breach detection.
What Problem Does This Paper Address?
Password-based authentication systems remain prevalent despite their known vulnerabilities. A major concern is the detection of password breaches. When a database of hashed passwords is leaked, attackers can spend considerable time and resources cracking them. Honeywords are a security mechanism where decoy passwords are added to a user's password set. If an attacker uses a honeyword, the system can detect the breach. However, a critical challenge is creating honeywords that are indistinguishable from real passwords, especially when attackers can leverage user PII (like names or birthdates) to guess passwords. Existing honeyword generation techniques often fail in these "targeted attack" scenarios because they don't account for the attacker's knowledge of user PII. This paper aims to bridge this gap by generating honeywords that are resistant to such targeted attacks.
Methods
The core of this paper's contribution lies in using off-the-shelf pre-trained language models, specifically GPT-3, for honeyword generation. The proposed approach, termed "HoneyGAN," leverages GPT-3's ability to understand and generate human-like text. Instead of training a model on a dataset of real passwords, HoneyGAN uses a prompt-based approach. The real password is provided as input, along with a prompt that instructs GPT-3 to generate similar passwords. The key innovation is that the prompts are designed to encourage GPT-3 to retain PII present in the original password while subtly altering other parts. This ensures that the generated honeywords are plausible and personalized, making them difficult for attackers to identify as fake, even if they have access to the user's PII. The paper also explores the impact of prompt specificity and temperature settings on the quality and diversity of generated honeywords.
Datasets
The paper mentions using real passwords from a leaked compilation of various password breaches over time. This dataset, discovered by 4iQ, contains 1.4 billion email-password pairs, with 1.1 billion unique emails and 463 million unique passwords. For the experiment, they specifically selected email-password pairs where the password included information from the email address, using the part before the "@" symbol as the username for participants. No new benchmark datasets were introduced.
Key Insights and Ideas
- PII is the key differentiator: The paper highlights that attackers often leverage user PII to guess passwords. Therefore, effective honeywords must incorporate or mimic this PII to be convincing.
- Language models as a powerful tool: GPT-3, a large language model, proves capable of generating sophisticated honeywords without requiring specific training on password datasets. Its ability to understand context and generate human-like text is crucial.
- Prompt engineering is critical: The quality and relevance of the generated honeywords are highly dependent on the prompt given to GPT-3. Specific and well-crafted prompts lead to more effective honeywords.
- Temperature influences diversity: The "temperature" parameter in GPT-3 controls the randomness of its output. A higher temperature leads to more diverse honeywords, but a lower temperature can result in more predictable and potentially more PII-preserving ones.
- Distinguishing honeywords is hard: Even in a pilot study with researchers, it was extremely difficult to differentiate between real passwords and GPT-3 generated honeywords, suggesting the effectiveness of the approach.
Key Results
The paper reports on a pilot study where two researchers were asked to distinguish between real passwords and honeywords generated by GPT-3 and a "chaffing-by-tweaking" method. The results indicated that it was extremely difficult to distinguish real passwords from the artificial ones generated by both methods. While a statistically significant difference between the two methods was not found due to the small sample size, participants found the task very challenging, taking an average of 17 minutes and 7 seconds to complete 12 questions. The authors speculate that a larger sample size would likely reveal a significant difference, favoring their proposed GPT-3 approach.
Limitations and Future Work
The authors acknowledge several limitations:
- Small sample size for evaluation: The pilot study involved only two participants, making it difficult to draw statistically significant conclusions about the difference between GPT-3 and the control method.
- Lack of quantitative assessment: The current evaluation is qualitative, and the authors plan to develop quantitative analysis to demonstrate the resilience of their HGT against targeted attacks.
- Limited PII in dataset: Due to data constraints, only email addresses were used as PII. Future work could explore other forms of PII.
- Prompt engineering complexity: While GPT-3 is easy to integrate, finding the optimal prompts and temperature settings for various scenarios might require further research.
Future work includes conducting a larger human study with a greater sample size (potentially using crowdsourcing platforms) to establish a significant difference between their method and others. They also aim to draw more attention to targeted honeyword generation, as it is an under-researched area compared to general password cracking. The team is also working on quantitative analysis to better demonstrate the effectiveness of their approach.
Summary updated