8000 GitHub - tanikush/vibescan: VibeScan detects security vulnerabilities specifically introduced by AI coding tools (Cursor, Claude, GitHub Copilot) — patterns that traditional tools like GitLeaks and TruffleHog miss. · GitHub
[go: up one dir, main page]

Skip to content
tanikushPublic

About

VibeScan detects security vulnerabilities specifically introduced by AI coding tools (Cursor, Claude, GitHub Copilot) — patterns that traditional tools like GitLeaks and TruffleHog miss.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

VibeScan

AI-generated code auditor — catches what traditional scanners miss

License: MIT

Python 3.9+ GitHub Actions


The Problems

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.


Architecture

Structure

How ItS Works

image
  1. Pattern matching — 14 secret regex rules + 22 AI-specific vulnerability rules run against every code file
  2. Entropy analysis — Shannon entropy on every line flags high-entropy strings that look like secrets but don't match any known pattern
  3. Context filtering — comment lines are skipped (no false positives on # eval() documentation), allowlist respected
  4. Risk scoring — each finding is classified CRITICAL / HIGH / MEDIUM and aggregated into a 0–100 security score with an A–F grade
  5. 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 ✅

Quick Start

# Install — one time
pip install vibescan-ai

# Scan any project
vibescan scan .

# Save HTML report
vibescan scan . -o report.html

Output: File | Line | Issue | Risk | Match in a colorful Rich table.


📸 Screenshots

Feature Image
Terminal Output
HTML Reports
Security Dashboard

Demo

VibeScan v1 Demo | VibeScan v2 Demo


UsageS

# 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 . --validate

Detected Issues

Secrets

AWS 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

AI-Specific Vulnerabilities

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


How VibeScan Compares to Traditional Scanners

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.


Tech Stacks

Python · Click · Rich · Jinja2 · Regex · Shannon Entropy · GitHub Actions


InstallationS (from source)

git clone https://github.com/tanikush/vibescan.git
cd vibescan
pip install -r requirements.txt
pip install -e .

Contributing

Pull requests are welcome. For majors changes, open an issue first to discuss what you would like to change.

  1. Fork it
  2. Create your feature branch (git checkout -b feature/my-change)
  3. Commit your changes (git commit -m 'Add: my new feature')
  4. Push the branch (git push origin feature/my-change)
  5. Open a Pull Request

LicenseS

MIT — see LICENSE for details. Free forever. No license fees. No cloud lock-in.

About

VibeScan detects security vulnerabilities specifically introduced by AI coding tools (Cursor, Claude, GitHub Copilot) — patterns that traditional tools like GitLeaks and TruffleHog miss.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0