Skip to content

A Kali-friendly tool to scan for leaked or exposed API keys and identify which service they belong to, using over 1000 known patterns.

Notifications You must be signed in to change notification settings

hussein-kaplan/Api-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🔍 API Key Scanner

A Kali-friendly tool to scan for leaked or exposed API keys and identify which service they belong to, using over 1000 known patterns.

  • ✅ Supports GitHub, Stripe, Google, AWS, and 1000+ more.
  • 🧠 Uses secrets-patterns-db and trufflehog regex sources.
  • 📦 Lightweight, works with Python 3.

🚀 Usage

# Install dependencies pip install -r requirements.txt # Update pattern database (recommended once) python3 cli.py update-patterns # Scan for API keys python3 cli.py scan keys.txt

You can also use stdin:

cat keys.txt | python3 cli.py scan -

🛠️ Example Output:

API Key Service Confidence
sk_test_abc123 Stripe 0.97
ghp_abcdEFGHijklMNOP1234567890 GitHub 0.99

📁 Files

  • cli.py: The main CLI script
  • requirements.txt: Python dependencies
  • banner.txt: ASCII banner (optional)

About

A Kali-friendly tool to scan for leaked or exposed API keys and identify which service they belong to, using over 1000 known patterns.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages