law-review-docx
Pass
Audited by Gen Agent Trust Hub on Sep 7, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The
build_docx.pyscript implements a preprocessor that resolves<!-- include: PATH -->sentinels in markdown drafts to inline their contents. - Ingestion points: The script reads and processes all
.mdfiles in thedrafts/directory. - Boundary markers: The inclusion mechanism lacks boundary markers to prevent the agent from interpreting or executing instructions contained within the included files.
- Capability inventory: The script has the ability to read local files via
path.read_text()and executes system commands throughsubprocess.run(e.g., pandoc, pdftotext). - Sanitization: While the preprocessor requires absolute paths and expands
~, it does not restrict access to specific directories, allowing it to potentially read sensitive files such as SSH keys or environment variables if a malicious include directive is provided in the draft. - [COMMAND_EXECUTION]: The skill uses
subprocess.runto invokepandocfor document building andpdftotextfor widow detection. These represent significant system capabilities that rely on the integrity of the project path and file inputs. - [DYNAMIC_EXECUTION]: The
build_docx.pyscript dynamically modifies the Pythonsys.pathto import modules from relative paths outside of the skill's specific directory (e.g., a siblingbluebook-auditdirectory). This creates a runtime dependency on a specific external folder structure on the host system.
Audit Metadata