Skip to content

2026

Build Your Own Secret-Scanning Bot in Node.js — Git History Included

Delete a token from config.env and a scan of the working tree comes back clean. The token is still in Git history, one git log -p away from anyone who clones the repo. Off-the-shelf scanners usually make you pick a workflow, an output format, and a place for the results to go. When you embed the scanner, you make those choices.

The kingfisher-secret-scanner npm package runs the Kingfisher Rust engine in-process through Node-API. It reads Git objects directly, with no git binary required. It streams typed findings as each file finishes. It can ask providers whether a leaked key still works. Native work runs off the event loop, so a bot or web service keeps handling requests while it scans. It supports ESM and CommonJS and ships TypeScript declarations. Get it on npm.

Find Leaked Keys and Prove They Still Work — From Any Python Service

Most secret scanners can tell you a string looks like an AWS key. That still leaves the question your on-call engineer actually cares about: does it work? A dead test token and a live production key look the same to a regex. Only one of them justifies paging someone.

The kingfisher-secret-scanner package gives any Python service both answers. It finds credentials in files, byte buffers, or Git history using the same Rust engine as the Kingfisher CLI. Then it asks each credential's provider whether the key still authenticates. You can run it in a Celery task, a FastAPI upload handler, a Lambda that watches a bucket, or a script on your laptop. It runs in-process with no CLI to shell out to. Get it on PyPI.

Embed a SIMD Secret Scanner in Your Rust Build — and Stop Leaks Before They Ship

Secrets don't only leak from source files. They show up in the things a build produces: a config rendered from a template, a .env copied into a container layer, a test fixture bundled into a release tarball. A pre-commit hook never sees those files. Your build does, because it just made them.

kingfisher-scanner puts the Kingfisher detection engine, with hundreds of built-in rules, inside your Rust program as a library. There's no subprocess to spawn and no CLI output to parse. You hand it paths or bytes and get typed Finding values back. So the code that assembles your artifact can also refuse to ship it. Get the crate on crates.io.

Real-time Secret Alerts: Webhooks for Slack, Teams, Discord, Mattermost, and Google Chat

A scanner that finds secrets in CI is only useful if a human sees the result in time to act on it. The default outcome — a JSON file in an artifact bucket that nobody opens until the next incident — is roughly the same as not running the scanner at all.

Kingfisher now closes that gap with first-class webhook alerting for the five major team chat platforms plus a generic JSON sink, all configurable from a single CLI flag or a project-local kingfisher.yaml.

Scanning Postman for Leaked Secrets — Including the Ones the UI Hides

Postman is everywhere — across backend teams, mobile teams, partner integrations, and the public Postman API Network. It is also a quietly prolific leak surface. CloudSEK's December 2024 audit found over 30,000 public Postman workspaces leaking access tokens across GitHub, Slack, Salesforce, Stripe, and Razorpay, among others. Postman themselves now run server-side secret scans on public content, which tells you everything you need to know about how often this happens.

Kingfisher now scans Postman workspaces directly — and finds credentials that other scanners miss, because most other tools only scan collection exports a developer has dropped into a repo. They never see the live workspace.

Beyond Detection: Live Validation, Blast Radius, and One-Command Revocation

A regex hit is the easy part. Any scanner can tell you that a string looks like an AWS access key or a GitHub token. The harder question is what to do next, and that is usually what turns a scan result into either a routine cleanup task or a real incident.

Kingfisher answers the three questions that actually matter:

  1. Is this credential alive right now?
  2. What can it reach?
  3. Can we revoke it from here?

Scanning an Entire GitHub Organization for Leaked Secrets

Most organizations have more GitHub surface area than they think: active services, abandoned repositories, internal tooling, forks, experiments, and projects inherited through acquisitions. A credential leaked in a five-year-old archived repo can still be live today.

Kingfisher can enumerate every repository in a GitHub organization, scan the full git history, and then validate which credentials are still live so you can focus on what needs rotation first.