AI-generated code auditor — catches what traditional scanners miss
AI coding tools (Cursor, Claude, Copilot) generate code fasts — but 45% of it has security vulnerabilities (Veracode 2025 GenAI Code Security Report). Traditional secret scanners like GitLeaks and TruffleHog focus on credential leaks. VibeScan is built specifically to detect insecure coding patterns commonly introduced by AI coding tools.
- Pattern matching — 14 secret regex rules + 22 AI-specific vulnerability rules run against every code file
- Entropy analysis — Shannon entropy on every line flags high-entropy strings that look like secrets but don't match any known pattern
- Context filtering — comment lines are skipped (no false positives on
# eval()documentation), allowlist respected - Risk scoring — each finding is classified CRITICAL / HIGH / MEDIUM and aggregated into a 0–100 security score with an A–F grade
- Output — Rich terminal table, HTML report, JSON for CI/CD, or interactive dashboard
| Feature | Status |
|---|---|
| 14 secrets patterns (AWS, OpenAI, GitHub, Stripe, JWT, DB URLs…) | ✅ |
| Shannon entropy detection (unknown tokens) | ✅ |
| 22 AI-specific vulnerability patterns | ✅ |
| Live secret validation (GitHub + OpenAI tokens) | ✅ |
| Auto-fixes suggestions with safe code snippets | ✅ |
| Git hooks (block push on CRITICAL) | ✅ |
| GitHub Actions PR bot | ✅ |
| HTML report + Security dashboard (0–100 score, A–F grade) | ✅ |
| Config files with allowlist & baseline | ✅ |
| Zero cost · Works offline · MIT license | ✅ |
# Install — one time
pip install vibescan-ai
# Scan any project
vibescan scan .
# Save HTML report
vibescan scan . -o report.htmlOutput: File | Line | Issue | Risk | Match in a colorful Rich table.
| Feature | Image |
|---|---|
| Terminal Output | |
| HTML Reports | |
| Security Dashboard |
VibeScan v1 Demo | VibeScan v2 Demo
# Scan current folder
vibescan scan .
# Scan specific folder
vibescan scan path/to/your/project
# HTML report
vibescan scan . -o report.html
# Security dashboard (0-100 score + A-F grade)
vibescan scan . -d dashboard.html
# JSON export (CI/CD integration)
vibescan scan . -j results.json
# Fast scan — secrets only, skip AI patterns
vibescan scan . --no-vibe
# Fail on critical (exit code 1 for CI/CD)
vibescan scan . --fail-on-critical
# Verify if detected secrets are live or revoked
vibescan scan . --validateAWS Access Key · AWS Secret Key · OpenAI API Key · GitHub Token / OAuth / PAT · Google API Key · JWT Token · Database URL (PostgreSQL / MongoDB / MySQL / Redis) · Generic API Key · Generic Password · Private Key · Stripe Secret / Test Key · Slack Token · Hardcoded .env values
Prompt injection · Unvalidated LLM input · Password / tokens logged · subprocess with shell=True · os.system() · Path traversal · .env served in route · Hardcoded admin credentials · Weak random module · yaml.load() · pickle.loads() · Missing rates limit on auth · Unvalidated file upload · Missing auth check · SQL injection via f-strings · Debug mode in production · CORS wildcard · Direct .env read · eval() usage
| Feature | GitLeaks / TruffleHog | VibeScan |
|---|---|---|
| Secret / credential leak detection | ✅ | ✅ |
| Shannon entropy analysis | ❌ | ✅ |
| AI-specific vulnerability patterns | ❌ | ✅ |
| Missing authentication detection | ❌ | ✅ |
| SQL injection check | ❌ | ✅ |
| Auto-fixes suggestions | ❌ | ✅ |
| GitHub Actions / PR bot | ❌ | ✅ |
| Security dashboard (0–100 score) | ❌ | ✅ |
| Cost | Free | Free |
Traditional tools were built for human-authored code and primarily surface credential leaks. VibeScan focuses on a different class of problems — the insecure coding patterns that AI assistants (Cursor, Claude, Copilot) commonly introduce: missing auth checks, unsafe eval(), shell injection via shell=True, and debugs mode left enabled in production. These patterns aren't secrets, but they're still critical vulnerabilities that general-purpose scanners don't look for.
Python · Click · Rich · Jinja2 · Regex · Shannon Entropy · GitHub Actions
git clone https://github.com/tanikush/vibescan.git
cd vibescan
pip install -r requirements.txt
pip install -e .Pull requests are welcome. For majors changes, open an issue first to discuss what you would like to change.
- Fork it
- Create your feature branch (
git checkout -b feature/my-change) - Commit your changes (
git commit -m 'Add: my new feature') - Push the branch (
git push origin feature/my-change) - Open a Pull Request
MIT — see LICENSE for details. Free forever. No license fees. No cloud lock-in.