deep_scan
Use AI to find hidden security flaws—IDOR, business logic bugs, race conditions—that pattern-based scanners miss. Focus scans on specific vulnerability classes.
Instructions
LLM-powered deep security analysis for vulnerabilities that pattern-matching cannot detect: IDOR, business logic flaws, race conditions, stale auth, mass assignment, privilege escalation. Defaults to Claude Haiku 4.5 (~cents per scan); pass model: 'sonnet' for deeper analysis at higher cost. Requires ANTHROPIC_API_KEY or OPENAI_API_KEY env var.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Code to analyze | |
| language | Yes | Programming language | |
| context | No | Additional context (e.g., 'This is a payment endpoint') | |
| existingFindings | No | Already-detected findings to avoid duplicating | |
| focus | No | Focus area — narrows the prompt to a specific vulnerability class | all |
| model | No | LLM model. haiku = fast & cheap (default), sonnet = deeper analysis | haiku |
| maxBytes | No | Max prompt size in bytes — caps cost. Code over this limit is truncated. | |
| format | No | Output format | markdown |