gitleaks

Tool · Text & code

Scans code repositories and commit history for exposed passwords, API keys and tokens, and can block them before they are committed.

mixed

Recommended pre-commit secret scanner, but missed some secrets inside shell commands

Latest · Nov 22Generic secret scanners such as gitleaks and TruffleHog did not flag all the exposed secrets, mostly because they were embedded inside shell commands.

Who says what

Early days

Attekita Dev, recommending it

Calls it a mandatory pre-commit check to catch exposed keys and tokens before they reach the repository. Adds that an AI agent like Claude can install it and set up the hook.

Apiiro, in its report

Generic secret scanners such as gitleaks and TruffleHog did not flag all the exposed secrets, mostly because they were embedded inside shell commands.

What would settle it. A published count of how many shell-embedded secrets gitleaks alone catches, with and without custom rules.

Evidence

  1. Nov 12
    Recommended as a mandatory pre-commit check to catch exposed keys and tokens before they reach the repository
    ReportedAttekita DevPortuguese
  2. Nov 12
    Says an AI agent like Claude can install and set it up as a pre-commit hook and workflow for you
    ReportedAttekita DevPortuguese

Everything said about gitleaks, on the wire

Cost to run

Alternatives