Kingfisher secret scanning CLI (packaged binary)
Actively maintained. Last release 8 days ago, commits in 24 of the last 26 weeks. A safe choice.
pip install kingfisher-binKingfisher CLI (kingfisher-bin)
Find leaked secrets. Validate what is live. Map access. Revoke supported credentials.
Kingfisher is MongoDB's open-source secret scanner and credential response tool, built in Rust. Scan source code, Git history, archives, cloud storage, container images, and developer platforms with a bundled rule catalog.
kingfisher-bin installs the kingfisher command, including a precompiled binary for
your platform. You do not need Rust or a separate Kingfisher installation.
No Git executable required. The CLI reads local Git history and staged changes and clones repositories over HTTPS using native Rust libraries. SSH remotes require an SSH client.
Looking for a Python API? Install
kingfisher-secret-scanner
and import kingfisher_sdk for native, in-process scanning. The CLI and SDK can be
installed together.
What you can do
- Detect exposed credentials in local files, repositories, Git history, and archives.
- Scan remote repositories, cloud storage, Docker images, and collaboration platforms.
- Validate credentials, inspect supported identities and permissions, and explicitly revoke supported secrets.
- Export JSON, JSONL, SARIF, TOON, BSON, or HTML reports and triage findings in a local browser.
- Use custom Kingfisher YAML or Betterleaks TOML rules alongside the built-in catalog.
Install
With uv (recommended):
uv tool install kingfisher-bin
kingfisher --version
To upgrade an existing uv tool installation, run uv tool upgrade kingfisher-bin.
Or with pip, preferably inside a virtual environment:
python -m pip install --upgrade kingfisher-bin
kingfisher --help
You can also run uvx --from kingfisher-bin kingfisher --help without a persistent tool installation.
If the console command is not on your PATH, use python -m kingfisher in the environment
where you installed the package.
Run kingfisher --help to explore commands or kingfisher scan --help for scanning options.