Secrets & personal-data scanner
Find the secrets hiding in your git history.
reposcan scans every commit on every branch for leaked credentials and personal data. Deleting a password in a later commit doesn't remove it from history, so reposcan looks at everything that was ever added, and reports what it finds without ever writing the secret itself down.
Benchmark results
Tested against Plazmaz/leaky-repo, a public repository of planted fake secrets with a published answer key.
- 90/96real secrets caught
- 42/42files with secrets flagged
- 0false-positive files
- ~3sto scan its full history
Out-of-the-box gitleaks rules caught 21 of the 96. reposcan's own credential rules, for passwords in config files, password hashes and known credential files, took that to 90. A regression test re-runs the benchmark so later tuning can't quietly lower it. Separately, tuning against OWASP Juice Shop cut false positives on that codebase from 16,466 findings to about 1,600.
What it finds
-
Secrets
API keys and tokens, private keys, passwords in config files (
.env, PHP, YAML, JSON, XML, INI), password hashes, credentials embedded in URLs, and files that are credential stores by name, such as.pgpassor.htpasswd.- Engine
- gitleaks plus reposcan's bundled rules
-
Personal data
Australian tax file and Medicare numbers, US Social Security numbers, payment card numbers, IBANs and email addresses, including internal-only addresses, in every line ever added to the repository.
- Engine
- Microsoft Presidio recognisers
Built for audit, not just alerts
-
Values stay masked
Reports show only the first few characters of a value and its length. Private keys show no key material at all. The scanner's raw output is read from a private temporary folder and deleted.
-
Mapped to controls
Each finding carries a severity, a CWE (such as CWE-798, hard-coded credentials) and the ISO/IEC 27001 controls it relates to, plus a fix.
-
Reports that fit your tools
HTML for people, JSON for pipelines, and SARIF for GitHub code scanning.
--fail-on highfails a CI build on serious findings. -
Accepted risk, on the record
A baseline file suppresses accepted findings by fingerprint, with a reason, who accepted it and an expiry date. Fingerprints hash where a finding is, not its value.
How it works
-
Authorise
It won't run without a recorded authorisation reference, and remote repositories must belong to an owner you've listed.
-
Clone everything
A mirror clone brings in every branch and tag, including branches that were never merged.
-
Scan and mask
Secrets and personal data are detected, then each finding is masked and fingerprinted before anything is written.
-
Report and fix
Findings come out ranked by severity. The advice is always the same: rotate the credential first, then rewrite history.