master-agreement-generator
Pass
Audited by Gen Agent Trust Hub on Nov 3, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The script
build-agreement.jsinvokes thepandoccommand-line utility to convert generated Markdown files into DOCX format. This execution is performed usingchild_process.spawnSyncwith direct argument passing, which avoids shell-based injection vulnerabilities. - [INDIRECT_PROMPT_INJECTION]: The skill processes counterparty-specific data from JSON files which are then interpolated into a Markdown template.
- Ingestion points: Data enters via the
spec.jsonfile, specifically fields likelegal,juris,addr, and theschedulearray. - Boundary markers: The generated output is explicitly prepended with a
**DRAFT**notice to warn users against treating the artifact as a final execution copy. - Capability inventory: The script performs local file reads/writes and executes the
pandocbinary. - Sanitization: The
encodeScheduleCellfunction sanitizes the contents of the schedule table by encoding Markdown syntax characters (e.g., backslashes, pipes, backticks, asterisks, underscores, and brackets) into their corresponding HTML entities. - [EXTERNAL_DOWNLOADS]: The documentation indicates that the
pandocconverter may attempt to resolve external resources if they are referenced within the Markdown template. The skill does not provide a sandbox for these operations, instead advising users to run the build process in a restricted environment. - [DATA_EXFILTRATION]: The script includes defensive code to prevent unauthorized file access or overwriting. It validates the output filename against path traversal sequences and reserved Windows device names, and verifies that the target output path is not a symbolic link before writing.
Audit Metadata