Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacyΒ© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
claudleak β€” Hunt for AI coding artifacts containing secrets. | Kitploit
Tools/GitHubGitHub/hazcod/claudleak
OSINT (Open Source Intelligence)Vulnerability AnalysisCode AnalysisInformation GatheringCloud SecuritySecret Detection
GitHubhazcod/claudleak

claudleak

Hunt for AI coding artifacts containing secrets.

View Repository
578177 months agoReviewed by Kitploit

Most Popular

View all β†’

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools β†’
Share
Website

claudleak

Scans public GitHub repositories for leaked credentials in AI coding tool configuration files (.claude/, .cursor/, .continue/, .codex/, CLAUDE.md, AGENTS.md, etc.).

Uses TruffleHog for secret detection.

Example .claude/ directory:

{
  "permissions": {
    "allow": [
      "Bash(go build:*)",
      "Bash(RAPID7_ENCRYPTED_CREDS='**eP3g488hQ23QiU4kJahhwPKs3PyE**' go test ./pkg/agents/ -run TestRules -v -count=1 -timeout 30s)",
      "Bash(gcloud sql instances list:*)",
    ]
  }
}

Install

go install github.com/niels/claudleak/cmd/claudleak@latest

Or build from source:

git clone https://github.com/niels/claudleak.git
cd claudleak
go build -o claudleak ./cmd/claudleak/

Usage

GITHUB_TOKEN="ghp_..." ./claudleak

Flags

FlagDefaultDescription
--token$GITHUB_TOKENGitHub personal access token
--max-repos100Maximum repositories to scan
--workersCPU countConcurrent clone/scan workers
--jsonfalseOutput results as JSON
--outputstdoutWrite results to file
--verified-onlyfalseOnly show verified credentials
--org / --userOnly scan repos owned by this GitHub user or org
--verbosefalseShow progress/debug info

Examples

# Scan up to 50 repos, output JSON to file
claudleak --max-repos 50 --json --output results.json

# Verbose scan with 4 workers
claudleak --workers 4 --verbose

# Scan a specific org, only verified secrets
claudleak --org microsoft --verified-only

How It Works

  1. Discovery β€” Searches GitHub Code Search for repositories containing AI coding tool config files
  2. Clone β€” Clones matching repositories to a temp directory
  3. Scan β€” Runs TruffleHog against each clone, filtering findings to AI config paths
  4. Report β€” Outputs a table (or JSON) of detected secrets

Project Structure

cmd/claudleak/main.go    CLI entrypoint
pkg/config/              Config parsing
pkg/discovery/           GitHub repo discovery
pkg/cloner/              Git clone operations
pkg/scanner/             TruffleHog secret scanning
pkg/reporter/            Table/JSON output

Exit Codes

  • 0 β€” No secrets found
  • 1 β€” Secrets found (or runtime error)
  • 2 β€” Configuration error
Download Tool