Repository navigation
Releases
Releases · domfahey/pwned
v0.4.1
Added
- Comprehensive documentation guides in
docs/(cli-reference.md,hibp-api-coverage.md,python-api.md,vault-auditing.md,monitoring-and-ci.md,offline-and-mcp.md,roadmap.md). - Hosted MkDocs Material documentation site deployed to GitHub Pages (
mkdocs.yml,.github/workflows/docs.yml) withmake docs/make docs-servetargets. - GitHub Marketplace
branding(shield/blue) inaction.ymland self-documentingMakefiletargets (help,install-all,build,clean, enhanceddoctor).
Changed
- Organized repository root layout: moved community health files (
SECURITY.md,CONTRIBUTING.md,CODE_OF_CONDUCT.md) into.github/, movedtodos.mdtodocs/roadmap.md, moved Homebrew formula template topackaging/homebrew/pwned.rb, and renamed.env.sampleto.env.example. - Defaulted
action.ymlversioninput togithub.action_ref(falling back tomain) so pinned workflow tags execute the matchingpwnedversion.
Fixed
- Configured
Settingswithextra="ignore"so unrelated keys in local.envfiles do not cause validation failures. - Switched container release workflow from deprecated
qemu-user-statictoqemu-user-binfmtfor Ubuntu 26.04 runners and addedworkflow_dispatchsupport. - Removed
.clusterfuzzlitefrom.dockerignoreso ClusterFuzzLite PR fuzzing builds cleanly. - Updated historical
CHANGELOG.mdlink forpackaging/homebrew/pwned.rb.
v0.4.0
Added
- Full HIBP API v3 Parity:
DELETE /subscribedDomains/{domain}viaHIBPClient.remove_subscribed_domain(),AsyncHIBPClient.remove_subscribed_domain(), andpwned subscribed-domains remove <domain>(retaining backwards-compatiblepwned subscribed-domains/pwned sdlisting alongsidesubscribed-domains list).includeUnverified=falseserver-side filtering onGET /breachesviaget_breaches(include_unverified=False)andpwned breaches --no-include-unverified.- Live integration test coverage for
breaches --no-include-unverified,opt-out-breach, andpaste-sensitive-breachtest accounts, plus CC BY 4.0 HIBP data attribution inREADME.md.
- Enterprise & Active Directory Auditing:
pwdump/secretsdump/NTDShash dump auditing (pwned audit --source pwdump) parsing NTLM hashes with--check-reusesupport.- Built-in resumable Pwned Passwords dump downloader (
pwned offline download <output>) supporting--ntlm,--concurrency,--resume, and ETag caching. - Bitwarden Argon2id encrypted JSON support (
kdfType=1) usingcryptography>=44.0.
- Vault & Password Hygiene:
- Expanded password manager and browser support: LastPass CSV, Dashlane CSV, Proton Pass CSV, and live Unix
pass/gopassstore auditing. - Combined strength and risk scoring (
--check-strength) utilizing zero-dependency heuristics or optionalzxcvbn(strengthextra). - Opt-in
--cachesupport for Pwned Passwords range prefix queries (/range/{prefix}).
- Expanded password manager and browser support: LastPass CSV, Dashlane CSV, Proton Pass CSV, and live Unix
- Monitoring, Reporting & Alerting:
- Markdown (
--format markdown) and standalone HTML (--format html) report generation. - Declarative TOML exposure monitoring engine (
pwned monitor --config pwned.toml). - Webhook notifications (
--notify-webhook <url>,--webhook-format auto|slack|discord|generic) on newly discovered exposures. - Domain exposure risk summary (
pwned domain-report <domain>).
- Markdown (
- Ecosystem & Distribution:
- Built-in zero-dependency local privacy-first stdio Model Context Protocol server (
pwned mcp). - Async account batch checks (
async_batch_check_accounts) with jittered 429 backoff (retry_jitter). - Multi-architecture container images published to GitHub Container Registry (
ghcr.io/domfahey/pwned).
- Built-in zero-dependency local privacy-first stdio Model Context Protocol server (
Fixed
- Parsed JSON-string and
text/plainHIBP error bodies (while still ignoring HTML/binary error pages) and surfaced endpoint-specific401and404details (such asverifyMetaTagdiagnostics) inUnauthorizedError,NotFoundError, and CLI error output.
v0.3.0
Added
- Password Pre-Hashed Lookups & Offline Hash Files:
- Support pre-hashed 40-char SHA-1 or 32-char NTLM hashes via
--hashedinpwned passwordandcheck_hash()across sync/async Pwned Passwords clients. OfflinePasswordsClientfor fastO(log N)binary search over official local Pwned Passwords SHA-1/NTLM text dumps (--offline-db <path>).
- Support pre-hashed 40-char SHA-1 or 32-char NTLM hashes via
- Expanded Vault & Browser Audit Formats:
- Vault and browser export auditing supporting 10 source formats: Bitwarden JSON, Bitwarden Encrypted JSON (
cryptographyextra), Bitwarden CSV, 1Password CSV, 1Password 1PUX, Chrome/Edge CSV, Firefox CSV, Apple Passwords CSV, generic CSV, and KeePass.kdbx(pykeepassextra). - Reused-password detection during vault audits (
--check-reuse).
- Vault and browser export auditing supporting 10 source formats: Bitwarden JSON, Bitwarden Encrypted JSON (
- Async Concurrency & Performance:
- Bounded async concurrency (
--concurrency) for vault audits and batch password checks.
- Bounded async concurrency (
- Breach Filtering, Sorting & Monitoring:
- Client-side filtering and sorting for breaches and account checks (
--since YYYY-MM-DD,--data-class,--verified-only,--exclude-retired,--sort pwn-count|date|name). - Exposure baseline snapshotting and diffing (
--baseline,--save-baseline) for cron/CI monitoring.
- Client-side filtering and sorting for breaches and account checks (
- SARIF & Batch Summary Stats:
- GitHub Code Scanning-compatible SARIF output (
--format sarif). - Batch summary execution statistics on stderr (
--stats).
- GitHub Code Scanning-compatible SARIF output (
- Domain Verification & Shell Completions:
- HTML meta-tag domain ownership verification (
domain-verify meta-tag|meta-check). - Shell tab-completion script generation (
completion bash|zsh|fish).
- HTML meta-tag domain ownership verification (
- OS Keychain & Short Aliases:
- Optional OS Keychain credential backend via
pwned auth set|clear --backend keyring(keyringextra) with source reporting inpwned auth show. - Ergonomic short command aliases (
pw,ba,bar,pa,bd,sd,lb,dc).
- Optional OS Keychain credential backend via
- Framework Validators & CI Integration:
- Password validator factories and helpers for Pydantic, FastAPI, and Django (
pwned.validators). - Reusable GitHub Action (
action.yml) and pre-commit hook configuration (.pre-commit-hooks.yaml).
- Password validator factories and helpers for Pydantic, FastAPI, and Django (
- Expanded Integration Test Suite:
- Live API integration tests covering async clients, data class descriptions, password range/hash lookups, SARIF output, and
--fail-if-pwned.
- Live API integration tests covering async clients, data class descriptions, password range/hash lookups, SARIF output, and
Fixed
- Handled CPython
HTMLParserAssertionErroron malformed SGML marked sections instrip_html(discovered by ClusterFuzzLite). - Wired automatic subscription RPM detection, TTY stderr progress, duplicate password line-index preservation,
--no-truncatebatch rejection,NO_COLOR/TTY status styling, and missing-home resilience inauth show. - Fixed Formula/pwned.rb Ruby syntax/URL and extracted standalone
_parsers.pyso ClusterFuzzLite builds without native Rust compilation.
v0.2.0
Added
- Async HIBP & Pwned Passwords Clients:
AsyncHIBPClientandAsyncPwnedPasswordsClientbuilt onhttpx.AsyncClientfor async applications. - New HIBP API Endpoints & Features:
- Data class descriptions (
dataclasses --descriptions/client.get_data_class_descriptions()). - k-Anonymity email breach check (
account-range <email>). - Domain verification management (
domain-verify dns-token|dns-check|email). - Composite search command (
search <account>querying breaches, pastes, and stealer logs).
- Data class descriptions (
- Batch Operations & Scripting Controls:
- Batch account and password audits via
--fileor multi-line--stdinwith RPM rate limiting (--rpm). - Scripting exit codes and thresholds (
--fail-if-pwned,--threshold N,PwnedPasswordsClient.is_pwned()).
- Batch account and password audits via
- Flexible Output Formats & Local Caching:
- Structured output formats (
--format text|json|jsonl|csv|table). - File-based XDG TTL response caching for public endpoints (
--cache/--no-cache,pwned cache clear).
- Structured output formats (
- Vault Auditing:
- Password manager export auditing (
pwned audit --source bitwarden-json|bitwarden-csv|csv|keepass).
- Password manager export auditing (
- Global Configuration & XDG Credential Management:
- XDG config fallback (
~/.config/pwned/.env) andpwned auth set|show|clearcommand with secure0600permissions.
- XDG config fallback (
- Zero-Install & Packaging Improvements:
uvxzero-install guidance and optional KeePass extras (pwned[keepass]).
v0.1.1
Added
- Official HIBP MCP server reference, Python library usage snippet, badges, and See Also section in
README.md - PEP 561
py.typedmarker and full package metadata (including Python 3.14 classifier andsdistexclusions) inpyproject.toml - Open-source community files (
SECURITY.md,CONTRIBUTING.md,CODE_OF_CONDUCT.md, issue forms, PR template) - Automated release workflow (
.github/workflows/release.yml) with wheel/sdist uploads and SLSA build provenance attestations - Grouped Dependabot configuration for
uvandgithub-actions
Changed
- Hardened CI with SHA-pinned actions (
persist-credentials: false), Python 3.12–3.14 + Linux/macOS/Windows matrix, and 95% branch-coverage floor (100% achieved) - Upgraded runtime and development dependencies (
pydantic2.14.4,pydantic-settings2.16.3,click8.5.1,pytest9.2.0,mypy2.4.1,ruff0.17.6, plus security patches forcertifi,anyio,idna,python-dotenv,pygments)
Full Changelog: v0.1.0...v0.1.1
v0.1.0
Highlights
Initial release of pwned, a CLI tool and typed Python client for the Have I Been Pwned API v3 and Pwned Passwords k-anonymity API.
Features
- Pwned Passwords (no API key required):
pwned passwordsupporting interactive hidden prompt,--stdin, positional argument,--ntlm(pure-Python RFC 1320 MD4), and--padresponse padding. - Breach lookups (no API key required):
breach,breaches(--domain,--spam-list/--no-spam-list),latest-breach, anddataclasses. - Authenticated lookups (HIBP API key):
account(--no-truncate,--domain,--no-include-unverified),domain,subscribed-domains,pastes,stealer email|website|domain, andsubscription. - Global CLI options:
--api-key,--user-agent,--json(accepted before or after subcommands), and--version, plusHIBP_API_KEY/HIBP_USER_AGENT/.envconfiguration viapydantic-settings. - Python library API: Public exports from
pwned(HIBPClient,PwnedPasswordsClient, typed Pydantic response models, structured error hierarchy includingForbiddenError,UnauthorizedError,NotFoundError,RateLimitError).
Quality
- Strict
mypyacrosssrc/andtests/,rufflint + format (including BanditSrules), GitHub Actions CI, and 130 unit tests with 100% statement coverage.