Roadmap & TODOs¶
Planned and completed improvements for pwned, prioritized from peer HIBP CLI/SDK research (wKovacs64/pwned, wKovacs64/hibp, brycx/checkpwn, philnash/pwned, wneessen/go-hibp).
Completed (v0.2.0)¶
HIBP API v3 Endpoints¶
- [x] Data class descriptions (
dataclasses --descriptions) — free endpoint returning data class names with descriptions (GET /dataclasses/descriptions). - [x] k-Anonymity email breach lookup (
account-range) — query email breaches via 6-character SHA-1 email prefix without transmitting the full email (Pro/High RPM). - [x] Domain verification workflow (
domain-verify dns-token|dns-check|email) — supportProplan DNS TXT token generation, DNS TXT verification, and approval email requests directly from the CLI. - [x] Composite
search <account>command — query breaches and pastes (and optionally stealer logs) for an account in a single invocation. - [x] Raw password range lookup (
PwnedPasswordsClient.get_password_range(prefix)) — expose rawdict[str, int]suffix map for library callers doing batch or cached checks.
CLI UX, Output Formats & Global Configuration¶
- [x] Global XDG config fallback (
~/.config/pwned/.env) — load user-level config when no local.envis present so global installs (uv tool install) work from any directory. - [x]
pwned auth set|show|clearcommand — interactive setup to store/check/clear API key in~/.config/pwned/.envwith0600permissions on POSIX. - [x] Scripting exit codes & thresholds (
--fail-if-pwned,--threshold N) — clean, predictable exit codes for CI checks, pre-commit hooks, and monitoring scripts. - [x]
PwnedPasswordsClient.is_pwned(password, *, threshold=1) -> bool— ergonomic boolean helper for application signup validators. - [x] Batch account & password checks (
--file/ multi-line--stdin) — audit a list of emails or passwords in one run with automatic subscription RPM pacing (--rpmoverride) and TTY progress output on stderr. - [x] Additional output formats (
--format text|json|jsonl|csv|table) — structured exports for domain/org audits and cleaner terminal tables (respectingNO_COLORand non-TTY pipes).
Async, Caching & Vault Auditing¶
- [x]
AsyncHIBPClient&AsyncPwnedPasswordsClient— built onhttpx.AsyncClientfor FastAPI, Starlette, andasyncioapps. - [x] Expose
RateLimitError.retry_after: int | None— attach serverRetry-Afterseconds toRateLimitErrorand support configurablemax_retries(including0) andtimeout. - [x] Custom
httpx.Client/ proxy injection — allow passing an existinghttpx.Client/httpx.AsyncClientorproxyconfig for connection pooling, corporate proxies, and testing. - [x] Password-manager export auditing (
pwned audit) — locally check Bitwarden JSON/CSV, generic CSV, or KeePass.kdbxexports via k-anonymity without sending plaintext passwords over the network. - [x] Local cache option for public endpoints (
--cache,pwned cache clear) — optional file-based XDG TTL cache for/breaches,/dataclasses, and/dataclasses/descriptions.
Docs, Security & Distribution¶
- [x] Document
uvxzero-install usage inREADME.md(uvx --from git+https://github.com/domfahey/pwned.git pwned password). - [x] Group CLI commands by HIBP plan tier in
README.md(Free / Core / Pro / High RPM). - [x] Dismiss false-positive CodeQL alerts in GitHub Security tab (SHA-1 required by Pwned Passwords k-anonymity + test URL substring assertions).
- [x] Homebrew formula template (
packaging/homebrew/pwned.rb) — valid template pointing to the GitHub Release tarball for publishing via ahomebrew-taprepo. - [x] ClusterFuzzLite fuzzing (
.github/workflows/cifuzz.yml) — Atheris fuzz target covering_md4,_parse_range_response,strip_html, andparse_input_lines.
Completed (v0.3.0)¶
- [x] Update
CHANGELOG.mdand architecture doc trees — rolled post-v0.2.0fixes (ea44a3c,c835bec) and_parsers.pydoc updates intov0.3.0. - [x] Integration tests for
v0.2.0features — expandtests/integration/to coverAsyncHIBPClient,AsyncPwnedPasswordsClient,dataclasses --descriptions,get_password_range,is_pwned, andcheck_hash.
Password & Vault Auditing¶
- [x] Pre-hashed password lookups (
--hashed/check_hash()) — accept 40-char SHA-1 or 32-char NTLM hashes directly onpwned passwordand inPwnedPasswordsClient/AsyncPwnedPasswordsClient(for AD NTLM dumps and pre-hashed lists). - [x] Async concurrent password batch & vault auditing — run
batch_check_passwordsandaudit_entriesconcurrently viaAsyncPwnedPasswordsClientwith bounded concurrency (--concurrency) for ~10x faster vault audits. - [x] Reused-password detection (
pwned audit --check-reuse) — report entries sharing duplicate passwords locally during vault audits. - [x] Additional password manager & browser export formats — add zero-dep parsers for 1Password CSV/1PUX, Chrome/Edge CSV, Firefox CSV, and Apple Passwords CSV, plus optional Bitwarden encrypted JSON decryption (
cryptographyextra).
CLI UX & Library Ergonomics¶
- [x] Optional OS Keychain backend (
keyring) — optional extra (pwned[keyring]) for storing API keys in macOS Keychain / Windows Credential Manager / SecretService viapwned auth. - [x] Client-side breach filtering & sorting (
breaches/account) — add--since YYYY-MM-DD,--data-class,--verified-only,--exclude-retired, and--sort pwn-count|date. - [x] Batch summary stats (
--stats) — optional stderr summary (checked / pwned / clean / errors / elapsed) for batch runs. - [x] Shell completions (
pwned completion bash|zsh|fish) — expose Click's built-in tab-completion scripts cleanly in CLI and docs. - [x] Optional short command aliases — ergonomic shortcuts inspired by
wKovacs64/pwned(pw,ba,bar,pa,bd,sd,lb,dc). - [x] Framework password-validator recipes/helpers — thin validators/docs for Pydantic (
AfterValidator), FastAPI, and Django built onis_pwned()/AsyncPwnedPasswordsClient.is_pwned().
Completed (v0.3.0 — Offline Lookups, Monitoring & CI Integrations)¶
- [x] Offline sorted hash file lookup (
--offline-db <path>/OfflinePasswordsClient) —O(log N)binary search viaseek/mmap(stdlib only) over officialPwnedPasswordsDownloaderSHA-1/NTLM dumps for air-gapped and high-scale checks. - [x] Baseline diffing (
--baseline/--save-baseline) — snapshot known breaches/pastes/stealer logs to JSON and report/exit non-zero only on newly discovered exposures for cron/CI monitoring. - [x] SARIF output format (
--format sarif) — emit GitHub Code Scanning-compatible SARIF fromaccount,domain, andaudit. - [x] Reusable GitHub Action /
pre-commithook — compositeaction.ymlfor scheduled domain/account breach monitoring in CI. - [x] Meta-tag domain verification (
domain-verify meta-tag|meta-check) — verify and support HIBP HTML<meta>tag verification endpoints alongside DNS TXT and email verification.
Completed (v0.4.0)¶
Full HIBP API v3 Parity¶
- [x] Remove subscribed domain (
DELETE /subscribedDomains/{domain}) —HIBPClient.remove_subscribed_domain(),AsyncHIBPClient.remove_subscribed_domain(), andpwned subscribed-domains remove <domain>(retaining backwards-compatiblepwned subscribed-domains/pwned sdlisting alongsidesubscribed-domains list). - [x] Exclude unverified breaches on
GET /breaches—include_unverified=False(?includeUnverified=false) in sync/async clients andpwned breaches --no-include-unverified. - [x] Spec-compliant error body parsing (
401,404, JSON strings,text/plain) — parse JSON objects, JSON strings, andtext/plainbodies while ignoring HTML/binary error pages, surfacingverifyMetaTag404 and API-key 401 diagnostics. - [x] Complete HIBP test-account integration coverage & CC BY 4.0 attribution — cover all 16 documented
hibp-integration-tests.comaliases and document HIBP CC BY 4.0 data attribution inREADME.md.
Enterprise & Active Directory Credential Auditing¶
- [x]
ntds/secretsdump/pwdumphash-dump auditing (pwned audit --source pwdump) — parsedomain\user:RID:LM:NT:::dumps directly, check NTLM hashes via async k-anonymity (?mode=ntlm) or--offline-db, and detect shared NTLM hashes across domain accounts (--check-reuse) without plaintext passwords. - [x] Built-in resumable offline dump downloader (
pwned offline download <output>) — async resumable downloader (00000–FFFFF,--ntlm,--concurrency,--resume, ETag support) usinghttpxsoOfflinePasswordsClientworkflows work end-to-end in pure Python. - [x] Bitwarden Argon2id encrypted JSON (
kdfType == 1) — support modern Argon2id Bitwarden encrypted exports usingcryptography's nativeArgon2idwith zero new dependencies.
Vault & Password Hygiene Expansion¶
- [x] Additional password managers (
pass,gopass, LastPass, Dashlane, Proton Pass) — zero-dep CSV/JSON parsers for LastPass, Dashlane, and Proton Pass, plus optional live Unixpass/gopassstore auditing without writing plaintext exports to disk. - [x] Combined breach + reuse + weakness scoring (
pwned audit --check-strength) — flag short/low-entropy passwords alongside breached and reused entries (zero-dep heuristics or optionalzxcvbnextra) with an overall vault risk summary. - [x] Opt-in
--cachefor/range/{prefix}lookups — extendResponseCacheto optionally cache Pwned Passwords range responses (matching Cloudflare CDN caching) to speed up repeated local vault audits and batch runs.
Continuous Monitoring, Reporting & Alerting¶
- [x] Markdown & standalone HTML reports (
--format markdown/--format html) — pipe Markdown directly into PR comments or GitHub Actions$GITHUB_STEP_SUMMARY, or generate a zero-dep single-file HTML report for compliance/security reviews. - [x] Declarative monitoring config (
pwned monitor --config pwned.toml) — parse a repo-checkedpwned.toml(via stdlibtomllib) defining watched accounts/domains, filters, baseline paths, and output formats in one file instead of long cron/CI command lines. - [x] Webhook notifications on new exposures (
--notify-webhook <url>) — pair with--baseline/--save-baselineto send Slack, Discord, or generic JSON webhooks viahttpxonly when newly discovered breaches, pastes, or stealer logs appear. - [x] Domain exposure risk summary (
pwned domain-report <domain>) — cross-reference a verified domain's breached aliases (and optional stealer logs) with cached breach metadata to summarize top breaches, recency, and counts by compromisedDataClasses.
Ecosystem & Distribution¶
- [x] Local stdio MCP server (
pwned mcp, built-in zero-dependency) — local-only privacy tools complementing HIBP's remote MCP server for workflows that shouldn't cross a chat prompt: local k-anonymity/offline password checks, local vault auditing, and baseline diffing. - [x] Container image (
ghcr.io/domfahey/pwned) — publish a minimal distroless/alpine image viarelease.ymlfor air-gapped, Kubernetes CronJob, and non-Python CI environments. - [x] Async account batching (
async_batch_check_accounts) + retry jitter — mirrorasync_batch_check_passwordsfor async applications, with jittered 429 backoff.
Completed (v0.4.1)¶
- [x] Hosted MkDocs Material docs site (
domfahey.github.io/pwned) — comprehensivedocs/guides deployed via SHA-pinned GitHub Pages workflow (.github/workflows/docs.yml) with lockeddocsdependency group. - [x] Repository & developer workflow polish — organized
.github/community health files,packaging/homebrew/pwned.rb,.env.example, self-documentingMakefile+ enhancedmake doctor,Settingsextra="ignore"fix, andaction.ymlGitHub Marketplace branding + ref pinning.
Planned (v0.5.0)¶
Prioritized from cross-ecosystem research (official HaveIBeenPwned.Cli / haveibeenpwned.com/cli, DSInternals, easybill/easypwned, ScottHelme/when-pwned-passwords-bloom, alexbrazier/pwned-bloom, HaveIBeenPwned/PwnedPasswordsCloudflareWorker, Keyguard, 1Password/Bitwarden CLIs, brycx/checkpwn, and wneessen/go-hibp).
Active Directory & Enterprise Credential Hygiene¶
- [ ] Extended AD
pwdumpquality checks — detect empty NTLM hashes (31D6CFE0D16AE931B73C59D7E0C089C0), present legacy LM hashes, username-as-password matches (local MD4 ofSamAccountNameand case variants), and add--exclude-machinesfiltering for$computer accounts. - [ ] Custom organizational wordlist support (
--custom-wordlist <file>) — check passwords and NTLM dumps against company-specific banned dictionaries (brand names, seasonal patterns, default onboarding passwords) alongside HIBP.
Watchtower-Style Vault Auditing & Live CLI Connectors¶
- [ ] Live cloud vault CLI connectors (
--source bitwarden-cli/1password-cli) — audit unlockedbw/rbwandopvaults directly in memory without writing plaintext exports to disk (mirroring existingpass/gopasssupport). - [ ] Vault breach & stealer-log correlation (
pwned audit --check-breaches) — cross-reference vault entry emails and login domains against HIBP breaches and stealer logs to flag accounts on compromised sites even when the password itself has not yet appeared in Pwned Passwords.
Offline Scale & Self-Hosted Infrastructure¶
- [ ] Per-prefix offline dump directory interop (
00000.txt–FFFFF.txt) — support directory-per-prefix downloads with ETag index refreshes (--force/--overwrite) alongside single-file exports inpwned offline download, andO(1)directory lookups inOfflinePasswordsClientfor direct interoperability with officialHaveIBeenPwned.Cli(hibp password download). - [ ] Self-hosted k-anonymity HTTP server / caching proxy (
pwned serve) — expose a drop-in/range/{prefix}endpoint,/healthz, and optional Prometheus/metricsbacked by--offline-dbor an upstream TTL cache for air-gapped services and high-QPS auth backends. - [ ] Compact offline hash indexes (
pwned offline build-bloom/compact) — build sub-1 GB mmap-able Bloom filters for RAM-resident checks in containers/CI runners, plus a fixed-width binary prefix-indexed format (~50% smaller than ASCII dumps withO(1)prefix jump).
Continuous Monitoring, History & Alerting¶
- [ ] Smart
latestBreachpre-check inpwned monitor— poll unauthenticatedGET /latestBreach(Cloudflare-cached) first and skipGET /breachedDomain/{domain}queries when no new breach has been added since the last baseline snapshot. - [ ] SQLite exposure history & remediation tracking (
monitor --db) — persist first-seen and resolved exposure timestamps in a stdlibsqlite3store to track breach trends and rotated credentials across runs, feeding trend summaries intodomain-report,--format markdown, and--format html. - [ ] Expanded alert destinations — add Microsoft Teams (Adaptive Cards), PagerDuty (Events API v2), SMTP email, and GitHub Issue auto-creation/commenting for CI monitoring pipelines.
- [ ] CC BY 4.0 attribution footer in Markdown reports — append a compact HIBP attribution footer to
--format markdownbreach and paste reports (matchingREADME.mdand--format html).
CLI UX & End-User Diagnostics¶
- [ ] CLI password range lookup (
pwned password-range <5-hex>) — exposeget_password_range()on the CLI (--ntlm, padding stripped) alongsidepwned password. - [ ] Raw 6-char SHA-1 prefix support on
account-range— allow passing a pre-hashed 6-char hex prefix directly topwned account-range(matchinghibp account range <prefix>). - [ ] Non-interactive
pwned auth set --stdin— readHIBP_API_KEYfrom standard input for scripted setup without exposing secrets in shell history orpsoutput. - [ ] Global
--outfile <path>(+--force) — write formatted UTF-8 output directly to disk from any data command with safe overwrite protection (avoiding Windows PowerShell UTF-16 redirection issues). - [ ] End-user
pwned doctorCLI subcommand — verify HIBP API connectivity, subscription tier/RPM, active credential source, keyring availability, cache size, and offline DB integrity directly from installedpwnedbinaries. - [ ] Granular semantic exit codes (opt-in / v1.0 evaluation) — evaluate distinguishing auth, permission/plan, rate-limit, network, and not-found exit codes (inspired by official
hibpcodes0–9) without breaking existing0/1/2scripting contracts.
Backlog / External¶
- [ ] PyPI publishing (optional) — pick a non-colliding distribution name (since
pwnedis already taken on PyPI) while keeping thepwnedCLI entrypoint, and configure OIDC Trusted Publishing in.github/workflows/release.yml. - [ ] Homebrew tap (
domfahey/homebrew-tap) — publishpackaging/homebrew/pwned.rband automate formula URL/SHA256 updates on release tags. - [ ] GitHub Marketplace Action listing — check Publish this Action to the GitHub Marketplace on the
v0.4.1release UI after accepting the GitHub Marketplace Developer Agreement. - [ ] OpenSSF Best Practices badge — manual web registration on
bestpractices.dev.