Awesome Reviewers checks + prompts

Secret scanning

Finds credentials and tokens in the working tree and in history before they are pushed or published.

V1008 technique
tactic Static analysis
5 of 256 scanned repositories run it (2%)

Sub-techniques

3

IDNameDescription
V1008.001Pre-commit secret scanBlock the commit locally, before the secret reaches a remote.
V1008.002History scanScan full git history, since deleting a secret in a later commit does not remove it.
V1008.003Live verificationTest whether a found credential is still valid to prioritise rotation.

Craft it

  1. Add a pre-commit hook and a CI job running the same scanner and config.
  2. Keep a baseline or allow-list for test fixtures, reviewed like code.
  3. Scan full history once and rotate anything found.

Reverse engineer it

Signs that a codebase already runs this technique, and where to read how it is configured.

  • .gitleaks.toml, .secrets.baseline or a trufflehog step in CI.
  • A gitleaks or detect-secrets hook in .pre-commit-config.yaml.

Where the scanned repositories configure it:

  • .gitleaks.toml in 3 repositories
  • .pre-commit-config.yaml in 3 repositories
  • .github/workflows/*.yml in 2 repositories
  • .husky/pre-commit in 1 repositories

Detected by the scanner as: Secret scanning (credentials and tokens committed to the repository.)

Open-source packages

3

Tools seen in scans

by repositories that run them

ToolReposCommand seenRuns inDocs
gitleaks 7 gitleaks git --pre-commit --redact --staged --verbose pre-commit, ci docs

Procedure examples

repositories that run it, most-starred first

RepositoryToolsRuns inEvidence
cline/cline gitleaks pre-commit .husky/pre-commit line 8
awslabs/mcp gitleaks pre-commit, ci .github/workflows/pre-commit.yml jobs.pre-commit.steps[5]
maximhq/bifrost gitleaks pre-commit .pre-commit-config.yaml hooks.gitleaks
snyk/cli gitleaks pre-commit .pre-commit-config.yaml hooks.gitleaks
awslabs/aidlc-workflows gitleaks ci .github/workflows/security-scanners.yml jobs.gitleaks.steps[1] (Install Gitle...