adversarial-review
Pass
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes the
Bashtool to perform repository-level operations likegit diffand to invoke thecodexCLI tool. It includes complex logic for environment detection (which codex) and performs a 'smoke test' by executing a temporary command to ensure the toolchain is functional. - [EXTERNAL_DOWNLOADS]: The skill relies on external communication with third-party LLM providers (specifically OpenAI and OpenRouter) via the
codexCLI orcodex-mcptools to conduct its reviews. These communications involve sending user workspace data to external endpoints for processing. - [INDIRECT_PROMPT_INJECTION]: The skill has a significant exposure to indirect prompt injection as it ingests untrusted data from the local workspace (code, diffs, and plans) and external LLM responses. Malicious instructions embedded in the reviewed code could potentially influence the agent's behavior. The skill attempts to mitigate this by using boundary markers, structured output schemas, and a mandatory 'finding verification' phase (S5) where every claim must be backed by local evidence.
- Ingestion points: Reads
git diffoutput, local file contents (via--codeor--planflags), and responses from external LLM services. - Boundary markers: Employs structural headers like
## 审查请求and## 外部审查结论(原始), and enforces a mandatory termination string=== END OF REVIEW ===to ensure complete output capture. - Capability inventory: Uses
Bashfor command execution and file manipulation,Readfor data ingestion,AskUserQuestionfor user-in-the-loop confirmation, andmcp__codex-mcpfor task delegation. - Sanitization: Uses shell heredocs (
cat <<'EOF') to safely pass data to CLI tools and requires a manual verification step where the agent must independently confirm findings before presenting them to the user. - [DYNAMIC_EXECUTION]: The skill dynamically generates shell commands and interaction prompts at runtime based on user parameters and workspace state. It also parses and processes external JSON payloads and text output to populate its internal history and reports.
Audit Metadata