adversarial-review/Revisão Adversarial

Warn

Audited by Gen Agent Trust Hub on Jun 3, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill instructions in Step 3 describe the construction of shell commands (e.g., codex exec --skip-git-repo-check -o "$REVIEW_DIR/skeptic.md" "prompt") where the "prompt" variable is built from external input including code diffs and intent descriptions. If this content contains shell metacharacters such as backticks or command substitution sequences, it could lead to arbitrary command execution within the agent's environment.
  • [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection because it incorporates untrusted external data into prompts for other AI models without sufficient isolation.
  • Ingestion points: In Step 2, the skill reads "recent diffs, referenced plans, user message" to determine the scope of the review.
  • Boundary markers: The prompt template provided in Step 3 lacks explicit delimiters (e.g., XML tags or unique markers) or system-level instructions to ignore malicious commands embedded within the code diffs.
  • Capability inventory: The skill possesses the capability to execute shell commands (codex, claude) and create/read files in the filesystem.
  • Sanitization: There is no evidence of sanitization or escaping of the ingested diff content before it is interpolated into the prompts for the adversarial reviewers.
  • [EXTERNAL_DOWNLOADS]: The skill relies on external command-line tools (codex and claude) to perform its primary function. While these tools are standard for this use case, their invocation involves sending local project context and code to external processing services.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Jun 3, 2026, 10:57 PM