trufflehog-cli

Detect leaked credentials in local Git history and remote repositories with TruffleHog CLI.

42|7|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/addxai/enterprise-harness-engineering --skill trufflehog-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trufflehog-cli
Source: https://github.com/addxai/enterprise-harness-engineering/tree/main/skills/trufflehog-cli
Command: npx skills add https://github.com/addxai/enterprise-harness-engineering --skill trufflehog-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl, tar, git, trufflehog, cosign, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

Undetected leaked credentials in local workstations, Git history, and remote repositories pose critical security risks including unauthorized access, data breaches, and compliance violations. This Skill provides a standardized, secure workflow to identify and validate these leaks using TruffleHog CLI.

Core Features & Use Cases

  • Local Secret Scanning: Scan developer workstations and local Git history for exposed credentials.
  • Pre-commit Integration: Block secret leaks before they are committed to version control.
  • Remote Repository Scanning: Audit HTTPS remote GitLab repositories for historical credential leaks.
  • Credential Verification: Confirm if a suspected leaked credential is still active after rotation. Common use cases include developer self-security checks, team-wide pre-commit security gates, remote repo onboarding audits, and post-rotation credential validation.

Quick Start

Use the trufflehog-cli skill to scan your current local repository for leaked credentials and generate a redacted report of verified findings in a temporary directory.

Frequently Asked Questions about trufflehog-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan my local Git history for leaked credentials?

TruffleHog CLI detects leaked credentials by scanning your local Git history and developer workstation. It verifies suspected secrets and outputs a redacted, auditable report to a temporary directory, preventing sensitive data exposure during security checks.

Can I use TruffleHog as a pre-commit hook to block secret leaks?

Yes, TruffleHog CLI integrates with pre-commit hooks to block secret leaks before they enter version control. This prevents exposed credentials from being committed, enforcing secure baselines and stopping sensitive data exposure at the source.

What's the best way to audit remote Git repositories for historical credential leaks?

The best way to audit remote repositories for credential leaks is using TruffleHog CLI to scan HTTPS remote GitLab repositories. It enforces least-privilege authentication and delivers redacted, auditable reports to securely identify historical credential exposures.

Do I need cosign and curl installed to run secret scanning workflows?

Yes, running secure secret scanning workflows with TruffleHog CLI requires curl, tar, git, trufflehog, and cosign. These dependencies enable secure installation baselines, remote repository auditing, and verified credential leak detection across your environment.

How does credential verification work after a secret rotation?

Post-credential-rotation validation uses TruffleHog CLI to verify if suspected leaked credentials are still active. This confirmation workflow ensures rotated secrets are successfully invalidated, mitigating unauthorized access risks and compliance violations.

Are there limitations when scanning for exposed secrets in large remote repositories?

Limitations when scanning large remote repositories include enforcing least-privilege authentication for GitLab HTTPS access and managing redacted output rules. TruffleHog CLI requires secure installation baselines to safely generate auditable reports without exposing sensitive leaked credentials.