code_audit
Run a deterministic security audit on code snippets or local paths to detect AI-specific risks like hidden characters, encoded payloads, and prompt injection in comments/configs.
Instructions
Run a deterministic security audit (PITAX rule set) over a code snippet or a local path.
Use when the user asks to review a code snippet or a repository for AI-specific
security issues (prompt injection in comments/docs/configs, invisible characters,
encoded payloads, trojan-source patterns).
Hidden characters, encoded payloads, or split/override instructions INSIDE code,
code comments, or config values are mine, not pitax_scan's — if the suspicious
text sits in a code context (even one line like x = 1 # <payload>), call
code_audit.
If the content is pasted inline in the user's message, pass it via code — do not
guess paths or scan unrelated workspace files (e.g. policy/instruction documents).
Pass exactly one of code or path. language is optional (python, js, ts, go, …).
formats (optional, "json,sarif,markdown,html" subset) writes full report artifacts
locally and returns their paths.
Not for: full multi-agent verdicts or attack-chain reasoning — this is the
deterministic rules layer only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "code_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| path | No | ||
| formats | No | ||
| language | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |