model-router
Warn
Audited by Gen Agent Trust Hub on May 8, 2026
Risk Level: MEDIUMCOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill instructs the agent to execute shell commands to interact with different AI models.
- Evidence: The 'CLI 协议' (CLI Protocol) section defines command templates:
codex --yolo -m <model> -p "<prompt>",gemini -m gemini-3-pro -p "<prompt>", andclaude --model <model> -p "<prompt>". - [COMMAND_EXECUTION]: The inclusion of the
--yoloflag in thecodexcommand protocol is a security risk. - Evidence: In
SKILL.md, thecodexprotocol usescodex --yolo. Such flags are typically used in AI agents to suppress user confirmation dialogs and bypass execution safeguards. - [COMMAND_EXECUTION]: The skill performs dynamic assembly of shell commands based on user-provided or generated sub-task prompts.
- Evidence: The skill specifies that "CLI commands are automatically generated by the routing table" and the agent is responsible for "decomposing tasks and selecting models." If the task descriptions (interpolated into the
<prompt>parameter) are not properly sanitized, this facilitates command injection where a malicious sub-task could escape the intended command structure. - [COMMAND_EXECUTION]: The skill executes local JavaScript files using Node.js to perform routing and statistics.
- Evidence: Multiple commands refer to
node scripts/aios.mjs, includingnode scripts/aios.mjs model-router list,node scripts/aios.mjs model-router route, andnode scripts/aios.mjs model-router stats.
Audit Metadata