See It In Action
Basic Scan
Interactive Mode
Watch Mode
🛡️ AI Code Guardian - Security Scan
Scanning: ./src
❌ HIGH (Risk: 85): Hardcoded API Key
File: api.js:12
Code: const API_KEY = "sk-1234567890abcdef"
Risk: API key found in source code. Store in environment variables instead.
Fix: Use process.env.API_KEY or import from .env file
❌ HIGH (Risk: 85): SQL Injection Risk
File: db.js:45
Code: query = "SELECT * FROM users WHERE id = " + userId
Risk: String concatenation in SQL query. Use parameterized queries.
Fix: Use parameterized queries: db.query('SELECT * FROM users WHERE id = ?', [userId])
❌ MEDIUM (Risk: 50): Insecure HTTP Connection
File: api.js:8
Code: fetch("http://api.example.com/data")
Risk: Using HTTP instead of HTTPS. Data transmitted in plain text.
Fix: Change to HTTPS: https://...
Scan complete: 3 issues found (2 high, 1 medium, 0 low)
Scanned 15 files
🛡️ AI Code Guardian - Interactive Mode
┌─ Issues ────────────────────────────────────────────────┐
│ HIGH - Hardcoded API Key - api.js:12 │
│ HIGH - SQL Injection Risk - db.js:45 │
│ MEDIUM - Insecure HTTP Connection - api.js:8 │
└─────────────────────────────────────────────────────────┘
┌─ Details ───────────────────────────────────────────────┐
│ File: api.js:12 │
│ Code: const API_KEY = "sk-1234567890abcdef" │
│ Risk: API key found in source code │
│ Fix: Use process.env.API_KEY or import from .env │
└─────────────────────────────────────────────────────────┘
↑/k: Up | ↓/j: Down | f: Mark False Positive | q: Quit
🛡️ AI Code Guardian - Watch Mode
Watching: ./src
Press Ctrl+C to stop
Running initial scan...
✅ No security issues found!
Scanned 15 files
👀 Watching for changes...
📝 File changed, rescanning...
❌ HIGH (Risk: 85): Hardcoded API Key
File: api.js:12
Code: const API_KEY = "sk-1234567890abcdef"
Fix: Use process.env.API_KEY or import from .env file
👀 Watching for changes...