scan_security
Scan project files to detect OWASP Top-10 security vulnerabilities like SQL injection and XSS using pattern matching. Returns actionable findings in JSON.
Instructions
Scan project files for OWASP Top-10 security vulnerabilities using pattern matching. Detects SQL injection (CWE-89), XSS (CWE-79), command injection (CWE-78), path traversal (CWE-22), hardcoded secrets (CWE-798), insecure crypto (CWE-327), open redirects (CWE-601), and SSRF (CWE-918). Skips test files. Use for pattern-based security audit. For data-flow-aware analysis use taint_analysis instead. Read-only. Returns JSON: { findings: [{ rule, severity, cwe, file, line, message }], total, summary }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | Yes | Directory to scan (default: whole project) | |
| rules | Yes | Rules to apply (use ["all"] for full scan) | |
| severity_threshold | No | Minimum severity to report (default: low) |