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.

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

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.19.1
File Actions
kingfisher_bin-2.19.1-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for kingfisher_bin-2.19.1-py3-none-win_arm64.whl
kingfisher_bin-2.19.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for kingfisher_bin-2.19.1-py3-none-win_amd64.whl
kingfisher_bin-2.19.1-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.19.1-py3-none-manylinux_2_17_x86_64.musllinux_1_2_x86_64.whl
kingfisher_bin-2.19.1-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.19.1-py3-none-manylinux_2_17_aarch64.musllinux_1_2_aarch64.whl
kingfisher_bin-2.19.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for kingfisher_bin-2.19.1-py3-none-macosx_11_0_arm64.whl
kingfisher_bin-2.19.1-py3-none-macosx_10_9_x86_64.whl Python 3 none macOS 10.9+ x86-64 Details for kingfisher_bin-2.19.1-py3-none-macosx_10_9_x86_64.whl

Total release size: 172.6 MB

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

Download URL kingfisher_bin-2.19.1-py3-none-win_arm64.whl
Size 40.8 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
9af8183a31a0ee634993c750c1683d3230116d518bcfd7efea881d09ea8cb6e0
BLAKE2b-256 checksum
How to use checksums
5937c0f3d46dc4e39fbcff421476489fac8d11a3bba024d004dc51ff7a14f4bc
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 17, 2026.

Transparency log

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

Download URL kingfisher_bin-2.19.1-py3-none-win_amd64.whl
Size 43.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
30b1f4182e4b00eeac8927744e03e5051f63f3ed8e0ec1531130c5902383d639
BLAKE2b-256 checksum
How to use checksums
6ce53c472ac522ee6cd89ce278db973a479a4108773c926bea62e068ba06f67e
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 17, 2026.

Transparency log

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

Download URL kingfisher_bin-2.19.1-py3-none-manylinux_2_17_x86_64.musllinux_1_2_x86_64.whl
Size 24.1 MB
Tags Linux glibc 2.17+ x86-64 Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
94d5500cce30bd54ea756694c237da60f7acbe772e671eb7a53516cc562cd563
BLAKE2b-256 checksum
How to use checksums
7c6376c62c6f7694eb5db9552dc0f4021b8a87fced108db8bb3a54043ec4e6e5
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 17, 2026.

Transparency log

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

Download URL kingfisher_bin-2.19.1-py3-none-manylinux_2_17_aarch64.musllinux_1_2_aarch64.whl
Size 22.6 MB
Tags Linux glibc 2.17+ ARM64 Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
6a756cad11ae4268da650a3b5e348fe9ec0348f2b6818b961875d8230fab5cc2
BLAKE2b-256 checksum
How to use checksums
e10df904cdfa777d7fdcb00e8fc656e362e3aec0ae2d97a8608add47aace9360
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 17, 2026.

Transparency log

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

Download URL kingfisher_bin-2.19.1-py3-none-macosx_11_0_arm64.whl
Size 19.7 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f62e4921f5a3c10ff3e4e26d91f85db09e3803b263c26b95fa400ef67ff60565
BLAKE2b-256 checksum
How to use checksums
1e20b9789c0eae746e6eb66e26882869e88585bd222b402fdf0ed07e11733cb5
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 17, 2026.

Transparency log

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

Download URL kingfisher_bin-2.19.1-py3-none-macosx_10_9_x86_64.whl
Size 22.2 MB
Tags Python 3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
6c170aa05e76667d831e434cc7f801f761caa78598bb21bb1de21537ebade8ff
BLAKE2b-256 checksum
How to use checksums
6053e0935d00dd756d5e00f83afe0c9b858f9e0ce8289958f9fc77cabe45b659
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 17, 2026.

Transparency log

Security for kingfisher-bin 2.19.1

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.19.1-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 17, 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.19.1 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