explained-diff-review
Pass
Audited by Gen Agent Trust Hub on Sep 5, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/review_tool.pyuses thesubprocess.runfunction to execute multiplegitcommands. - Evidence: The function
run_gitinscripts/review_tool.pyinvokessubprocess.run(["git", "-C", repo, *args], capture_output=True). - Risk: Although
shell=Trueis not used, the script performs file system operations based on repository paths and untracked file paths passed as command-line arguments by the agent. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted content from the git repository (source code, diffs, and untracked files) which could contain malicious instructions designed to influence the agent's behavior during the review process.
- Ingestion points:
scripts/review_tool.pyingests data viagit diffand direct file reads of untracked files (usingPath.read_bytes). - Boundary markers: The widget template in
assets/review-widget.htmluses structured JSON inside a script tag and DOM APIs liketextContentto render data safely in the browser. Theverifysubcommand inscripts/review_tool.pyvalidates the schema of Base64-encoded payloads returned by the user. - Capability inventory: The skill has the capability to execute
gitcommands and read/write files in the local workspace/scratchpad viascripts/review_tool.py. - Sanitization: The script uses
html.escapewithin thewrap_pagefunction inscripts/review_tool.pyto sanitize metadata like the task title before embedding it in the HTML wrapper.
Audit Metadata