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.js invokes the pandoc command-line utility to convert generated Markdown files into DOCX format. This execution is performed using child_process.spawnSync with 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.json file, specifically fields like legal, juris, addr, and the schedule array.
  • 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 pandoc binary.
  • Sanitization: The encodeScheduleCell function 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 pandoc converter 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
Risk Level
SAFE
Analyzed
Nov 3, 2026, 01:30 AM