Weave profile data into targeted credential wordlists.
CredWeaver is a fast, profile-driven credential wordlist generator built for authorized penetration testing, CTF competitions, and security research.
It takes personal information about a target (name, birth date, pet names, company, etc.) and weaves it into a tailored, high-quality password wordlist — far more effective than generic dictionaries.
Built as a modern Python + Rust hybrid, CredWeaver is a complete redesign of the classic CUpp (Common User Passwords Profiler) tool, which has been largely unmaintained since 2021. CredWeaver keeps the core idea — profile-based generation — and rebuilds it with:
- Streaming pipeline (no RAM loading of full wordlist)
- Modular plugin architecture
- Pydantic v2 config and profile validation
- Rust engine (PyO3 + maturin) for compute-intensive paths
- Docker and Kubernetes support
- Full CI/CD, test suite, and type checking
- Profile-driven generation — name, surname, dates, pets, company, keywords
- 4 built-in strategies — concatenation, date-based, keyboard patterns, common passwords
- Layered mutations — leet (3 levels), case (5 modes), append numbers/years/symbols
- Streaming output — generates millions of passwords without loading into RAM
- Bloom filter dedup — removes duplicates without a HashSet blowup
- Rust engine — multiplicative mutations via
credweaver_engine(PyO3) - Config presets —
fast,default,aggressive - Multiple input formats — interactive, YAML profile, JSON profile
- Compressed output — write
.txtor.gzdirectly - Docker + Kubernetes — production-ready deployment
docker pull ghcr.io/Gerijacki/credweaver:latest
docker run --rm ghcr.io/Gerijacki/credweaver:latest --helppip install credweaver
credweaver generate --interactivegit clone https://github.com/Gerijacki/credweaver
cd credweaver
python3 -m venv .venv && source .venv/bin/activate
pip install maturin pydantic pyyaml typer rich
maturin develop --release
credweaver --help- Python 3.11+
- Rust stable (only for building from source)
pip install credweavergit clone https://github.com/Gerijacki/credweaver
cd credweaver
python3 -m venv .venv && source .venv/bin/activate
pip install maturin pydantic pyyaml typer rich pytest
export PATH="$HOME/.cargo/bin:$PATH"
maturin develop --releasecredweaver generate --interactivecredweaver generate --profile profiles/example_target.yaml --output wordlist.txtcredweaver generate --profile target.yaml --preset aggressive --output out.txtcredweaver enhance --wordlist rockyou.txt --output enhanced.txtcredweaver profile init --output target.yaml
# edit target.yaml, then:
credweaver generate --profile target.yamlcredweaver benchmarkcredweaver strategies# target.yaml
name: "john"
surname: "doe"
nickname: "johnny"
birthdate:
day: 15
month: 6
year: 1990
partner_name: "jane"
pet_name: "rex"
company: "acme"
keywords:
- "security"
- "hacker"Override defaults with --config credweaver.yaml:
generation:
max_depth: 3 # token combination depth
separators: ["", "_", "-", "."]
use_rust_engine: true
mutations:
leet:
enabled: true
level: 2 # 1=basic, 2=medium, 3=all combos
case:
modes: [lower, title, upper]
append:
numbers: true
numbers_range: [0, 99]
symbols: ["!", "@", "123"]
years: true
years_range: [1970, 2025]
filters:
min_length: 6
max_length: 20
dedup: trueProfile (YAML/JSON/interactive)
↓
Token Extractor (name variations, dates, keywords)
↓
Strategy Engine ──────────────────────────────────
[Concatenation] [DateBased] [Keyboard] [Common]
↓
Pipeline ─────────────────────────────────────────
Rust engine (credweaver_engine via PyO3)
↓ collect_batch(4096) — minimal FFI overhead
OR Python fallback (automatic)
↓
Filters (length · charset · Bloom dedup)
↓
Streaming writer → .txt / .gz
Rust engine (credweaver_engine) handles the hot paths:
- Cartesian product combinator
- Multiplicative mutations (all combos of leet × case × append)
- Bloom filter deduplication
- Shannon entropy scoring
- Markov chain generation
→ See docs/architecture.md for full details.
# Build
docker build -t credweaver .
# Run against a profile
docker run --rm \
-v $(pwd)/profiles:/home/credweaver/profiles:ro \
-v $(pwd)/output:/output \
credweaver generate \
--profile /home/credweaver/profiles/example_target.yaml \
--output /output/wordlist.txt
# Dev shell
docker compose up credweaver-dev# Create namespace and deploy
kubectl apply -f k8s/namespace.yaml
kubectl apply -f k8s/configmap.yaml
kubectl apply -f k8s/pvc.yaml
kubectl apply -f k8s/job.yamlSee k8s/README.md for full deployment guide.
# Setup
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
maturin develop --release
# Tests
pytest tests/unit/ tests/integration/ -v
# Lint + format
ruff check credweaver/ tests/
ruff format credweaver/ tests/
mypy credweaver/
# Rebuild Rust engine after .rs changes
maturin develop --releaseCredWeaver uses pre-commit for automated quality gates. Run once after cloning:
bash scripts/install-hooks.shThis installs two hooks:
| Hook | Trigger | Checks |
|---|---|---|
| pre-commit | git commit |
ruff lint, ruff format, mypy, cargo fmt, cargo clippy |
| pre-push | git push |
full pytest suite, cargo test |
Manual run (without committing):
pre-commit run --all-files # all pre-commit checksEmergency bypass (use sparingly — CI will still catch failures):
git commit --no-verify
git push --no-verifyThe pre-commit hook configuration lives in .pre-commit-config.yaml. The pre-push hook script is at scripts/pre-push.
# credweaver/strategies/my_strategy.py
from credweaver.strategies.base import Strategy
from credweaver.strategies.registry import register
@register("my_strategy")
class MyStrategy(Strategy):
description = "My custom strategy"
def generate(self, profile):
yield f"{profile.name}custom"CredWeaver is inspired by CUpp (Common User Passwords Profiler), originally written by Mebus. CUpp pioneered the idea of profile-driven password generation but has been largely unmaintained since 2021.
CredWeaver is a ground-up redesign that keeps the core concept and adds:
- Streaming (no RAM blowup)
- Plugin system
- Rust engine
- Modern Python tooling (Pydantic v2, Typer, ruff)
- Docker/K8s deployment
- Full test suite and CI/CD
CUpp remains the original inspiration and reference implementation.
CredWeaver is intended exclusively for:
- Authorized penetration testing
- Security audits with written permission
- CTF competitions
- Security research and education
Using this tool against systems you do not own or have explicit written authorization to test is illegal and unethical.
The authors accept no liability for misuse.
- Fork and clone
- Set up the dev environment (see Development above)
- Install git hooks:
bash scripts/install-hooks.sh - Create a branch:
git checkout -b feat/my-feature - Make changes and add tests — hooks enforce quality automatically
- Open a pull request
MIT — see LICENSE.