Skip to main content

Kingfisher 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.

Run your first scan

Replace ./my-project with a directory or local repository you are authorized to inspect:

kingfisher scan ./my-project --no-validate --no-update-check --redact

This performs local detection without credential-validation requests or release update checks. Git history is scanned by default when present; add --git-history=none for working-tree files only. --redact protects finding values in the output.

Live validation is enabled by default when --no-validate is omitted and can send discovered credentials to provider APIs. Only validate credentials you are authorized to test. Blast-radius mapping is available with --blast-radius; revocation is a separate, explicit action.

Save and inspect reports

Write a redacted JSON report, then open it in the bundled browser-based viewer:

kingfisher scan ./my-project --no-validate --no-update-check --redact --format json --output findings.json
kingfisher view findings.json

Reports can still contain sensitive paths, source context, and metadata. Store and share them securely, even when redaction is enabled.

For LLM and agent workflows, use token-efficient TOON output:

kingfisher scan ./my-project --no-validate --no-update-check --redact --format toon

Automation and exit codes

Finding secrets is an expected scan outcome, not a crash. Account for these exit codes in scripts and CI:

Exit code Meaning
0 No visible findings.
200 Visible findings.
205 Visible findings confirmed active by validation.

Choose how findings should affect your CI policy rather than treating every nonzero exit code as a scanner failure. Finding exit codes do not guarantee complete scan coverage; inspect coverage errors too. See the exit-code reference for error codes and coverage guidance.

Compatibility

Requires Python 3.8+. Published wheels cover:

Platform Architectures
Linux (glibc or musl) x86-64, ARM64
macOS Intel x86-64, Apple silicon (ARM64)
Windows x86-64, ARM64

Wheels are platform-specific. If pip cannot find a matching distribution, check that pip is current and your environment matches a supported platform. Other installation methods are listed in the installation guide.

Documentation and support

Kingfisher is licensed under Apache 2.0.

For package development, build the Rust binary for your target first, then use the repository's wheel-builder script to package it. This is not required to install a published wheel.

Metadata

Release files for kingfisher-bin 2.20.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for kingfisher-bin 2.20.0
File Actions
kingfisher_bin-2.20.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for kingfisher_bin-2.20.0-py3-none-win_arm64.whl
kingfisher_bin-2.20.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for kingfisher_bin-2.20.0-py3-none-win_amd64.whl
kingfisher_bin-2.20.0-py3-none-manylinux_2_17_x86_64.musllinux_1_2_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64, Linux musl 1.2+ x86-64 Details for kingfisher_bin-2.20.0-py3-none-manylinux_2_17_x86_64.musllinux_1_2_x86_64.whl
kingfisher_bin-2.20.0-py3-none-manylinux_2_17_aarch64.musllinux_1_2_aarch64.whl Python 3 none Linux musl 1.2+ ARM64, Linux glibc 2.17+ ARM64 Details for kingfisher_bin-2.20.0-py3-none-manylinux_2_17_aarch64.musllinux_1_2_aarch64.whl
kingfisher_bin-2.20.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for kingfisher_bin-2.20.0-py3-none-macosx_11_0_arm64.whl
kingfisher_bin-2.20.0-py3-none-macosx_10_9_x86_64.whl Python 3 none macOS 10.9+ x86-64 Details for kingfisher_bin-2.20.0-py3-none-macosx_10_9_x86_64.whl

Total release size: 174.4 MB

Release files / kingfisher_bin-2.20.0-py3-none-win_arm64.whl

Download URL kingfisher_bin-2.20.0-py3-none-win_arm64.whl
Size 41.2 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
3f11b283edd1bde1de0e742c8f24a8721ed77af6c648de8d8241a5d945f143bb
BLAKE2b-256 checksum
How to use checksums
bbec2d061a9f35216bac0e46bb27c46da14ded83d1b6085ce80294e5cf34999c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / kingfisher_bin-2.20.0-py3-none-win_amd64.whl

Download URL kingfisher_bin-2.20.0-py3-none-win_amd64.whl
Size 43.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
fb6918a82ce83e7d829f8291b70a2cb8d863d625bcbd432725f5e2e1286c3e4e
BLAKE2b-256 checksum
How to use checksums
a225449a143b62b40e77d7e360ed68e668f3b3cc7a42aa563e73c2c308ead8eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / kingfisher_bin-2.20.0-py3-none-manylinux_2_17_x86_64.musllinux_1_2_x86_64.whl

Download URL kingfisher_bin-2.20.0-py3-none-manylinux_2_17_x86_64.musllinux_1_2_x86_64.whl
Size 24.3 MB
Tags Linux glibc 2.17+ x86-64 Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
2a748e6154ca6df9b37b1e5dab9a799b161c421adcc40b399a8213ce9935d570
BLAKE2b-256 checksum
How to use checksums
b87b03fe5a442076d58b2e9451573421f3aa32939cb3f96382d87ad6f0271b46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / kingfisher_bin-2.20.0-py3-none-manylinux_2_17_aarch64.musllinux_1_2_aarch64.whl

Download URL kingfisher_bin-2.20.0-py3-none-manylinux_2_17_aarch64.musllinux_1_2_aarch64.whl
Size 22.8 MB
Tags Linux glibc 2.17+ ARM64 Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
e5c98fd46fac8f56df05932c8cf1082d017d19b59a10624e9c916243c01a1671
BLAKE2b-256 checksum
How to use checksums
84a816144194404abd369371a1adaaa52cf7b80f809c6d040a3b90d1b4a69d0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / kingfisher_bin-2.20.0-py3-none-macosx_11_0_arm64.whl

Download URL kingfisher_bin-2.20.0-py3-none-macosx_11_0_arm64.whl
Size 19.9 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d3f9041014f24e4bdef2f2b06233ca36621dcbde7962dcdc69846e274397dc80
BLAKE2b-256 checksum
How to use checksums
b203bd607e7eb553e58842b40adceb37ab6f7aee16cad2c1a143fe1d21e6e93a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / kingfisher_bin-2.20.0-py3-none-macosx_10_9_x86_64.whl

Download URL kingfisher_bin-2.20.0-py3-none-macosx_10_9_x86_64.whl
Size 22.4 MB
Tags Python 3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
c3c071dbae6012d52cc531d5634a8b987ef66f8aac3f5f9b15b77882925b6d60
BLAKE2b-256 checksum
How to use checksums
d08c15e23b40f17e0289695faa690e6d7fdccd35f9f25ad85136ffa2eb8d6ec5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for kingfisher-bin 2.20.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for kingfisher_bin-2.20.0-py3-none-win_arm64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.20.0 This release

6 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page