sast_scan
Run static application security testing on local code: upload it to Kali, run Semgrep, Bandit, Gitleaks, and Graudit in parallel, then save a versioned report and delete uploaded code.
Instructions
Perform Static Application Security Testing (SAST) on a local code directory. Syncs code to Kali Linux via SFTP, runs Semgrep (multi-language), Bandit (Python), Gitleaks (secrets), and Graudit (language-targeted pattern matching) in parallel, then generates a versioned consolidated security report saved to the Kali machine. Uploaded source code is deleted after scanning.
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": {
"local_path": "<local_path>",
"project_name": "<project_name>"
},
"name": "sast_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tools | No | Which SAST tools to run. Defaults to all four. Bandit is automatically skipped when no Python files are found regardless of this setting. | |
| local_path | Yes | Absolute path to the local code directory to scan. Example: "/Users/me/projects/myapp" | |
| project_name | Yes | Project name used to organise versioned reports. Example: "myapp" or "backend-api" | |
| exclude_patterns | No | File/directory names to exclude from upload and scanning. |