Tzohar/PassLLM
Über uns
World's most accurate password guessing AI tool. A PyTorch implementation of PassLLM (USENIX 2025) that leverages PII and LoRA fine-tuning to outperform existing tools by over 45% on consumer hardware.
KI und maschinelles LernenWhat you can do
- State-of-the-Art Accuracy: Achieves +45% higher success rates than leading benchmarks (RankGuess, TarGuess) in most scenarios.
- PII Inference: With sufficient information, it successfully guesses 12.5% - 31.6% of typical users within just 100 guesses.
- Efficient Fine-Tuning: Custom training loop utilizing LoRA to lower VRAM usage without sacrificing model reasoning capabilities.
- Advanced Inference: Implements the paper's algorithm to maximize probability, prioritizing the most likely candidates over random sampling.
Gemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +3
- in 1 month
- +7
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalPassLLM: AI-Based Targeted Password Guessing
About The Project
PassLLM is the world's most accurate targeted password guessing framework, outperforming other models by 15% to 45% in most scenarios. It uses Personally Identifiable Information (PII) - such as names, birthdays, phone numbers, emails and previous passwords - to predict the specific passwords a target is most likely to use. The model fine-tunes 7B/4B parameter LLMs on millions of leaked PII records using LoRA, enabling a private, high-accuracy framework that runs entirely on consumer PCs.
Capabilities
- State-of-the-Art Accuracy: Achieves +45% higher success rates than leading benchmarks (RankGuess, TarGuess) in most scenarios.
- PII Inference: With sufficient information, it successfully guesses 12.5% - 31.6% of typical users within just 100 guesses.
- Efficient Fine-Tuning: Custom training loop utilizing LoRA to lower VRAM usage without sacrificing model reasoning capabilities.
- Advanced Inference: Implements the paper's algorithm to maximize probability, prioritizing the most likely candidates over random sampling.
- Data-Driven: Can be trained on millions of real-world credentials to learn the deep statistical patterns of human passwords creation.
- Pre-trained Weights: Includes robust models pre-trained on millions of real-world records from major PII breaches (e.g., Post Millennial, ClixSense) combined with the COMB dataset.
Use Guide
Tip: You can run this tool instantly without any local installation by opening our Google Colab Demo, providing your target's PII, and simply executing each cell in order.
Installation
- Python: 3.10+
- Password Guessing: Runs on Any GPU, Nvidia or AMD. A standard CPU or Mac (M1/M2) is also sufficient to run the pre-trained model.
# 1. Clone the repository
git clone https://github.com/Tzohar/PassLLM.git
cd PassLLM
# 2. Install dependencies automatically for your hardware
python install.py
(Preview what install.py detects without installing using python install.py --dry-run.)
Configuration
Download the trained weights (~126 MB) and place them in the models/ directory.
Alternatively, via terminal:
curl -L https://github.com/Tzohar/PassLLM/releases/download/v1.3.0/PassLLM-Qwen3-4B-v1.0.pth -o models/PassLLM_LoRA_Weights.pth
Hardware backend, precision (BF16/FP16/FP32), and 4-bit quantization (for < 10 GB NVIDIA GPUs) are configured automatically at runtime.
Tip: Don't forget to customize Min/Max Chars, Token Depth, Character Bias, Epsilon (search strictness), and GPU Beam Batch Size in the WebUI or
src/config.pyaccording to your specific target's needs! If you hit GPU out-of-memory errors (especially on Windows DirectML or 8–12 GB cards), simply lower GPU Beam Batch Size (e.g., to16or32).
Password Guessing (Pre-Trained)
You can use the graphical interface (WebUI) or the command line to generate candidates.
Option A: WebUI (Recommended)
- Launch the Interface:
python webui.py
(Pass --share to create a public Gradio link; this is enabled automatically on Google Colab.)
- Generate:
- Open the local URL (e.g.,
http://127.0.0.1:7860). - Select Model: Choose your
.pthweights from the dropdown and click ⚡ Load into VRAM (or click 🔮 Generate to auto-load). - Enter PII: Fill in the target's Name, Email, Birth Year, Sister Passwords, etc., into the form.
- Click Generate: The engine streams ranked candidates in real time with a live progress bar.
Option B: Command Line (CLI)
Best for automation or headless servers.
- Create a Target File:
Create a
target.jsonlfile (or use the existing one) in the main folder. You can include any field defined insrc/config.py.
{
"name": "Johan P.",
"birth_year": "1966",
"email": "[email protected]",
"sister_pw": "Johan123"
}
- Run the Engine:
python app.py --file target.jsonl --weights models/PassLLM_LoRA_Weights.pth --fast
--file: Path to your target PII file.--weights: Path to your downloaded model weights (defaults tomodels/PassLLM_LoRA_Weights.pth).--superfast: Very quick ([10, 20, 30]), mainly for testing.--fast: Optimized, shallow beam search ([30, 50, 70]).- (default): Standard balanced beam search (
[50, 100, 150]). --deep: Deep beam search ([100, 200, 300]).--superdeep: Maximum coverage ([200, 300, 500]).
Results & Demo
{"name": "Marcus Thorne", "birth_year": "1976", "username": "mthorne88", "country": "Canada"}:
$ python app.py --file target.jsonl --superfast
--- TOP CANDIDATES ---
CONFIDENCE | PASSWORD
------------------------------
1.96% | marcus1976
1.91% | thorne1976
1.20% | mthorne1976
1.19% | marc1976 (marc is a common diminutive of Marcus, used in many passwords)
1.18% | a123456 (a high-probability global baseline across users with similar PII)
1.16% | marci1976 (another common variation of Marcus)
1.01% | winniethepooh (our training dataset demonstrated Winnie-related passwords to be common in Canada)
... (907 passwords generated)
{"name": "Elena Rodriguez", "birth_year": "1995", "birth_month": "12", "birth_day": "04", "email": "[email protected]", "id":"489298321"}:
$ python app.py --file target.jsonl --fast
--- TOP CANDIDATES ---
CONFIDENCE | PASSWORD
------------------------------
8.55% | elena1204 (all variations of name + birth date are naturally given very high probability)
8.16% | elena1995
7.77% | elena951204
6.29% | elena9512
5.37% | Elena1995
5.32% | elena1.rod51
5.00% | 120495
... (5,895 passwords generated)
{"name": "Sophia M. Turner", "birth_year": "2001", "pet_name": "Fluffy", "username": "soph_t", "email": "[email protected]", "country": "England", "sister_pw": ["soph12345", "13rockm4n", "01mamamia"]}:
$ python app.py --file target.jsonl --fast
--- TOP CANDIDATES ---
CONFIDENCE | PASSWORD
------------------------------
2.93% | sophia123 (this is a mix of the target's first name and the sister password "soph12345")
2.53% | mamamia01 (a simple variation of another sister password)
1.96% | sophia2001
1.78% | sophie123 (UK passwords often interchange between "sophie" and "sophia")
1.45% | 123456a (a very common password, ranked high due to the "12345" pattern)
1.39% | sophiesophie1
1.24% | sturner999
... (10,169 passwords generated)
{"name": "Omar Al-Fayed", "birth_year": "1992", "birth_month": "05", "birth_day": "18", "username": "omar.fayed92", "email": "[email protected]", "address": "Villa 14, Palm Jumeirah", "phone": "+971-50-123-4567", "country": "UAE", "sister_pw": "Amira1235"}:
$ python app.py --file target.jsonl
--- TOP CANDIDATES ---
CONFIDENCE | PASSWORD
------------------------------
79.75% | amira1235 (sister password, with lower case a)
43.77% | Ammira1235 (common pattern in reusing passwords)
19.14% | Omar1235 (drawing on the sister password pattern)
11.03% | Omar1234
8.52% | omarr.alfayid
8.20% | omar1235
7.52% | 051892
... (24,559 passwords generated)
Disclaimer
Please read this section carefully before using.
- Unofficial Implementation: This repository is an independent reproduction and implementation of the research paper "Password Guessing Using Large Language Models" (USENIX Security 2025). I am not the author of the original paper, nor was I involved in its research or publication. Full credit for the concept and methodology belongs to Yunkai Zou, Maoxiang An, and Ding Wang (Nankai University).
- Educational Purpose Only: This tool is intended solely for educational purposes and security research. It is designed to help security professionals, companies, institutions and casual users understand the risks of LLM-based password attacks and improve defense mechanisms.
- No Liability: The author of this repository is not responsible for any misuse of this software. You may not use this tool to attack targets without explicit, authorized consent. Any illegal use of this software is strictly prohibited.
Ähnliche Projekte entdecken
Wird geladen…