Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Betterleaks

$ betterleaks Official Low Risk
Aikido Security · Security & Secrets · MIT · macos / linux / windows

Betterleaks is an MIT-licensed successor to Gitleaks maintained by Aikido Security that adds CEL-based live credential validation (--validate). Local git, fs, and stdin scans run completely offline unless -v/--validate or -a/--analyze is explicitly enabled, and emit JSON or SARIF reports via -f.

FCRS-1.0 Score
88 /100
Good
Medium Confidence
Zero-Friction Install
brew install betterleaks
CLI vs MCP Decision CLI Only

Scanning local Git history and files with betterleaks keeps potential secrets local and streams JSON/SARIF directly without transferring code to an MCP server.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Clean non-interactive git, fs, and stdin subcommands with -f json|sarif, -o - stdout support, and --no-banner.

  • Supports -f json, -f sarif, -o -, and --no-banner
Trust & Safety 22 / 25

Runs locally offline with zero provider requests unless -v/--validate or -a/--analyze is explicitly requested; read-only scan unless -o writes a report file.

  • Offline-by-default v2 validation behavior
Setup & Portability 14 / 15

Single static Go binary available via brew install betterleaks and GitHub Releases for macOS, Linux, and Windows.

  • Homebrew formula and multi-OS release binaries
Utility & Efficiency 14 / 15

Drop-in .gitleaks.toml compatibility plus CEL-driven validation and identity analysis when enabled.

  • High-speed regex/entropy scanning with optional CEL verification
Maintenance & Lineage 8 / 10

Actively developed open-source successor to Gitleaks backed by Aikido Security.

  • Maintained under github.com/betterleaks/betterleaks
Docs & Verifiability 8 / 10

Clear README covering subcommands, -f formats, and validation/analysis flags.

  • Official docs in repository README

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key Config File
Credential Storage

Offline by default; github/gitlab remote scans or custom configs read provider tokens from env vars or .betterleaks.toml.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free and open-source (MIT).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Betterleaks Agent Rules
- Keep scans offline by default; pass `--validate` (`-v`) only when live credential checks against external providers are explicitly authorized.
- Always pass `--no-banner -f json` for machine parsing and avoid logging raw secret matches.

Agent-Ready Command Recipes

Safe Read-Only Queries

Scan working directory offline with JSON output
betterleaks fs . -f json -o - --no-banner

Scans files without Git history, skips live validation by default, and writes JSON findings directly to stdout (-o -).

Scan Git history and output SARIF report
betterleaks git . -f sarif -o betterleaks.sarif --no-banner

Audits commit history and emits a SARIF v2.1 report to betterleaks.sarif.

Strengths for Agents

  • + Offline-by-default scanning avoids accidental outbound provider calls unless --validate is passed.
  • + Supports -f json and -f sarif with -o - stdout piping and --no-banner.

Caveats & Pitfalls

  • ! Non-zero exit code on findings requires handling in CI/agent scripts.
  • ! JSON findings may include unredacted secret matches unless downstream output is filtered.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI