scan4secrets
scan4secrets is a free, MIT-licensed command-line tool for scanning source trees, running web apps, and CI logs for exposed credentials, code vulnerabilities…
What scan4secrets is
scan4secrets is a free, MIT-licensed command-line tool for scanning source trees, running web apps, and CI logs for exposed credentials, code vulnerabilities, and misconfigurations. Its listed coverage is 416 rules: 193 for secrets and 223 for vulnerabilities or configuration problems. The SAST engine detects issues including injection, SSRF, XSS, weak cryptography, JWT flaws, and infrastructure configuration problems. For web scans, its crawler parses JavaScript source maps to extract endpoints and checks response headers. Authenticated DAST can use cookies, headers, and Burp or ZAP proxies; optional live verification probes vendor APIs to check whether discovered tokens are active. Reports can be exported as SARIF, JSON, JSONL, CSV, HTML, Excel, or PDF. Users can add secret and vulnerability rules by editing YAML files. The maker documents CI examples for pre-commit, GitHub Actions, GitLab CI, Jenkins, and Docker in CI. The tool supports Linux and Windows, and installation options include source, pipx, and Docker. Its architecture documentation lists a default maximum file size of 10 MB and maximum line length of 4096 characters. Secret values appear in full by default, so the maker recommends using --mask before sharing reports in artifact stores.
Good
- Scans source trees, web apps, and CI logs.
- Lists 416 secret, vulnerability, and misconfiguration rules.
- Supports authenticated DAST with cookies, headers, Burp, or ZAP.
- Reports can be exported in seven listed formats.
- Users can add rules by editing YAML files.
Watch out
- Linux and Windows are the listed platforms.
- Default maximum file size is 10 MB.
- Secret values appear in full unless masked.
Who it suits
scan4secrets suits teams scanning code and live staging or production systems, including teams that want CI and pre-commit scanning. The maker describes it as complementary to gitleaks for that use.
Verdict
scan4secrets covers secrets, vulnerabilities, and misconfigurations across source, web, and CI contexts. Before sharing reports, account for the default unmasked secret values and use the documented masking option.
Plans and prices
From scan4secrets's own pricing page, checked 5 Oct 2026.
| Plan | Price | What it gives you |
|---|---|---|
| MIT-licensed open-source CLI | Free | MIT License · source, pipx, and Docker installation |
The facts
Each one read from scan4secrets's own pages, with the date it was checked.
What it does
- Authenticated scans
- Authenticated DAST supports cookies, headers, and Burp or ZAP proxies.checked 5 Oct 2026
- CI integrations
- The maker documents integration examples for pre-commit, GitHub Actions, GitLab CI, Jenkins, and Docker in CI.checked 5 Oct 2026
- DAST
- Its web crawler parses JavaScript source maps, extracts endpoints, and scans response headers.checked 5 Oct 2026
- Intended users
- The maker describes the tool as complementary to gitleaks for teams scanning live staging or production systems alongside source code.checked 5 Oct 2026
- License
- The project is MIT licensed.checked 5 Oct 2026
- Live verification
- An optional verification mode probes vendor APIs to check whether detected tokens are live.checked 5 Oct 2026
- Performance limits
- The architecture page gives a default maximum file size of 10 MB and maximum line length of 4096 characters.checked 5 Oct 2026
- Purpose
- The tool scans source trees, running web apps, and CI logs for leaked credentials, code vulnerabilities, and misconfigurations.checked 5 Oct 2026
- Report masking
- Secret values appear in full by default, and the maker recommends using --mask before uploading reports to shared artifact stores.checked 5 Oct 2026
- Reports
- Output formats include SARIF, JSON, JSONL, CSV, HTML, Excel, and PDF.checked 5 Oct 2026
- Rule coverage
- It lists 416 rules: 193 secret rules and 223 vulnerability or misconfiguration rules.checked 5 Oct 2026
- Rule customization
- Users can add secret and vulnerability rules by editing YAML files without changing code.checked 5 Oct 2026
- Vulnerability coverage
- The SAST engine detects issues including injection, SSRF, XSS, weak cryptography, JWT flaws, and infrastructure configuration problems.checked 5 Oct 2026
Alternatives to scan4secrets
- 1

DeepSource
Free planWebAPILinuxmacOS8.0From $30 a month - 2

Endor Labs
Free planWebAPIExtensionLinux7.4Free plan - 3

Vooda AI
Free planWebAPILinuxmacOS6.9Free plan - 4

Arnica Secrets Security
Free planWebAPISelf-hosted6.6From $300 a year - 5

GitGuardian
Free planWebAPILinuxmacOS6.6Free plan - 6
detect-secrets
Free planLinuxmacOSSelf-hostedWindows6.5Free plan
