contract-review
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses
subprocess.runto call external utilitiespandoc(inscripts/contract_analyzer.py) andmmdc(Mermaid CLI, inscripts/mermaid_renderer.py). These invocations are necessary for the skill's primary functions: extracting text from Word documents and rendering business flowcharts to images. The calls use specific arguments targeting local file paths. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted user-provided contract files, which creates a potential surface for indirect prompt injection where an attacker could embed malicious instructions in the contract text.
- Ingestion points: Contract text is read in
scripts/contract_analyzer.pyviapandocand the document structure is unpacked inscripts/ooxml/unpack.py. - Boundary markers: The reference prompts in
references/do not currently define explicit boundary markers or "ignore" instructions for the ingested text. - Capability inventory: The skill has the ability to execute shell commands (
pandoc,mmdc) and write files to the local system (reports, annotated documents, and images). - Sanitization: The skill follows security best practices by using
defusedxmlinscripts/document.pyandscripts/utilities.pyto prevent XML External Entity (XXE) attacks. It also normalizes Mermaid syntax inscripts/mermaid_renderer.pybefore execution.
Audit Metadata