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

TruffleHog

$ trufflehog Official Med Risk
Truffle Security · Security & Secrets · AGPL-3.0 · macos / linux / windows

trufflehog scans git repos, filesystems, S3 buckets, and Docker images with 800+ secret detectors and optional live API verification. Agents should pass --no-verification for offline-only scans and suppress raw secret echo when reviewing --json output.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install trufflehog
CLI vs MCP Decision CLI Preferred vs MCP

Local repository scanning via trufflehog keeps candidate credentials inside local pipes rather than MCP JSON traffic.

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

Emits NDJSON via --json, supports --only-verified, --no-verification, and --fail CI exit codes.

  • Native --json NDJSON output and --no-update control
Trust & Safety 19 / 25

Read-only on local repos, but live verification makes outbound HTTP checks to third-party APIs and --json includes .Raw secret strings unless stripped.

  • Emits .Raw secret values in JSON and sends verification probes unless disabled
Setup & Portability 14 / 15

Single Go binary via brew, Docker, go install, and GitHub releases.

  • Cross-platform static binary
Utility & Efficiency 14 / 15

800+ detectors and live verification dramatically cut false positives compared to naive entropy scanners.

  • High-precision secret detection across git, FS, containers, and cloud
Maintenance & Lineage 9 / 10

Actively maintained by Truffle Security under AGPL-3.0.

  • High-velocity upstream repository
Docs & Verifiability 8 / 10

Detailed README covering targets, verification, and JSON schema.

  • Clear GitHub README and --help

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key
Credential Storage

None required for local scans; uses GITHUB_TOKEN or cloud credentials only when scanning remote targets.

Side Effects
Read-Only
Cost & Quotas

CLI is free OSS (AGPL-3.0); TruffleHog Enterprise is a commercial product.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# TruffleHog Agent Rules
- Pass `--no-verification --no-update` when offline/air-gapped scanning is required.
- Filter `--json` with `jq 'del(.Raw, .RawV2)'` before reading results into LLM context so raw secrets are stripped.

Agent-Ready Command Recipes

Safe Read-Only Queries

Scan local filesystem offline without outbound verification
trufflehog filesystem . --no-verification --no-update --json

Detects candidate secrets locally without contacting third-party provider APIs or auto-updating.

Scan local git history for verified active leaks
trufflehog git file://. --only-verified --no-update --json

Focuses strictly on confirmed active credentials in git history.

Strengths for Agents

  • + 800+ specialized detectors plus optional live verification eliminate most false positives.
  • + Streams structured NDJSON with --json across git, filesystems, and container images.

Caveats & Pitfalls

  • ! --json includes .Raw matched secrets by default—strip with jq 'del(.Raw, .RawV2)' before putting output in LLM context.
  • ! Live verification sends outbound network requests unless --no-verification is passed.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI