Skip to main content
v2  ·  170+ rules  ·  live verification

Find leaked secrets across code, web apps, and CI.

DAST + SAST secret scanner with live verification, source-map parsing, and CI-native reporting

pipxdockerrelease
# install with pipx (recommended)
pipx install git+https://github.com/m14r41/scan4secrets

# OR run via Docker
docker run --rm -v $(pwd):/scan ghcr.io/m14r41/scan4secrets:latest --path /scan

# OR grab a prebuilt binary
# Windows64 and Linux amd64: /docs/downloads
170+
Detection rules
1279
DAST wordlist paths
7
Report formats
20+
Live vendor probes

What makes it different

Six things gitleaks, trufflehog, and detect-secrets cannot do.

DAST live web crawl

Crawls staging or prod, parses JS source-maps, extracts endpoints, scans response headers. Catches secrets no SAST will ever see.

Live verification

Twenty plus vendor probes confirm a token is live in one HTTP call. Hypothesis becomes evidence before you write the report.

170+ rules out of the box

Cloud, payments, AI/ML, messaging, monitoring, databases, JWT, PEM keys. Add your own with a YAML block. No code change.

CI native reporting

SARIF for GitHub code-scanning, JSONL for SOAR, Excel and PDF and HTML for client reports. Exit-code gate on severity.

Authenticated DAST

Cookies, headers, Burp or ZAP proxy. Scan behind login with the same engine and rules you use everywhere else.

Fast and safe

Aho-Corasick keyword pre-filter, binary skip, line-length cap, scope honoring, hard caps on URLs and depth. No accidental DoS.

How it compares

scan4secrets is meant to sit alongside gitleaks, not replace it. Use both.

Capabilitygitleakstrufflehogdetect-secretsscan4secrets
SAST secret detectionYesYesYesYes
DAST live web crawlNoNoNoYes
JS source-map parsingNoNoNoYes
JS endpoint extractionNoNoNoYes
HTTP header secret scanNoNoNoYes
Live token verificationNoYesNoYes
SARIF outputYesNoNoYes
Excel, PDF, HTML reportsNoNoNoYes
Authenticated DAST (cookie, header, proxy)NoNoNoYes

Ready to scan?

One command. SAST and DAST. SARIF for code-scanning, PDF for clients.