contract-review
Pass
Audited by Gen Agent Trust Hub on Oct 26, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses
subprocess.runto call external binaries, specificallypandocinscripts/contract_analyzer.pyfor text extraction andmmdc(Mermaid CLI) inscripts/mermaid_renderer.pyfor flowchart rendering. While these are executed with list-based arguments to prevent shell injection, they represent a dependency on local system tools. - [INDIRECT_PROMPT_INJECTION]: The core functionality involves the agent reading and analyzing untrusted text provided in contract files (.docx). Maliciously crafted contracts could contain embedded instructions designed to influence the agent's review logic, bypass the provided checklist, or bias the generated opinions and summaries. The skill lacks specific boundary markers or instructions to the agent to disregard such embedded commands.
- [DYNAMIC_EXECUTION]: The
scripts/mermaid_renderer.pymodule renders Mermaid diagrams usingmmdc, which typically invokes a headless browser (Puppeteer). The script includes fallback logic to locate local Chrome or Chromium installations and generates a temporary Puppeteer configuration using the--no-sandboxflag, which is a common but less secure execution mode for browser processes. - [COMMAND_EXECUTION]: The
scripts/ooxml/unpack.pyutility useszipfile.extractall()to decompress .docx files. This operation can be vulnerable to path traversal (ZipSlip) attacks if the input file contains malicious relative paths designed to overwrite files outside the intended target directory, although the workflow attempts to scope the extraction to a generated output folder.
Audit Metadata