check_injection_risk
Detect SQL injection, XSS, and command injection vulnerabilities in source code, returning severity, file location, evidence, and fix guidance.
Instructions
Detect injection vulnerabilities in source code. Checks for SQL injection (unparameterized queries, string concatenation), XSS (dangerouslySetInnerHTML, innerHTML, document.write), and command injection (exec with interpolation, eval, new Function). Returns findings with severity, file path with line number, evidence snippet, and fix code.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_path": "<project_path>"
},
"name": "check_injection_risk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | Absolute path to the project directory to audit. Must be a directory you own or manage. |