Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 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
57826 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:

root@kitploit:~
{
  "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

root@kitploit:~
go install github.com/niels/claudleak/cmd/claudleak@latest

Or build from source:

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

Usage

root@kitploit:~
GITHUB_TOKEN="ghp_..." ./claudleak

Flags

Examples

root@kitploit:~
# 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

root@kitploit:~
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
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