check_cua_code_audit
Statically scan AI agent source code to detect dangerous imports, eval/exec, shell injection risks, and missing sandboxing—no LLM needed.
Instructions
CUA 代码审计:静态分析 Agent 源码,检测危险导入(subprocess/os.system 等)、权限边界(eval/exec)、注入面(字符串拼接 shell)、危险默认值、沙箱缺失。纯规则扫描,不调 LLM、不耗额度。支持单文件或多文件扫描。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | 单文件模式:要扫描的源代码文本(≤50000 字符),与 files 二选一 | |
| files | No | 多文件模式:[{path, content, language?}] 数组,与 code 二选一 | |
| filename | No | 单文件模式:文件名,用于报告中标识(默认 input.py) | |
| language | No | 语言提示,auto 时按 filename 扩展名推断(默认 auto) |