Skip to main content
416 rules  ·  secrets + vulnerabilities  ·  live verification

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

DAST + SAST scanner for leaked secrets and code vulnerabilities — live verification, source-map parsing, CI-native reporting

# Install with pipx (recommended, isolated env, single binary on PATH)
pipx install scan4secrets

# Verify
scan4secrets --version

# Run your first scan
scan4secrets --path . --report sarif --output reports/scan
416
Detection rules
223
Vulnerability & misconfig rules
7
Report formats
17
Languages scanned

What makes it different

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.

416 rules out of the box

193 secret rules plus 223 vulnerability and misconfiguration rules. Cloud, payments, AI/ML, messaging, monitoring, databases, JWT, PEM keys. Add your own with a YAML block. No code change.

SAST vulnerability & misconfig scanning

Run --misconfig to also find SQLi, command injection, SSTI, XXE, deserialization, SSRF, XSS, weak crypto, JWT flaws, and IaC misconfig across 17 languages. Each finding carries CWE, OWASP, and secure-code remediation.

Context-aware secret detection

A whole-file pass catches secrets in nested XML tags, split key/value pairs, JSON objects, multi-line YAML/properties, and Base64. Credential-named assignments are caught with no entropy floor, so low-entropy secrets are not dropped.

CI native reporting

SARIF for GitHub code-scanning, JSONL for SOAR, Excel and PDF for client reports, and a collapsible HTML report with expandable per-finding cards. 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
SAST vulnerability & misconfig scanningNoNoNoYes
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.