draft-marker-discipline
Pass
Audited by Gen Agent Trust Hub on Oct 17, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/prose_wordcount.pyexecutes the system utilitydetexto process LaTeX content. - Evidence:
subprocess.run(["detex", "-n"], input=text, capture_output=True, text=True)inscripts/prose_wordcount.py. The implementation uses a fixed argument list and avoids shell invocation, minimizing injection risk from command arguments. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and interpret user-provided manuscripts, which creates an attack surface for indirect prompt injection.
- Ingestion points:
scripts/prose_wordcount.pyreads local.texfiles and recursively resolves\inputand\includedirectives to build the full text of the manuscript. - Boundary markers: The skill does not provide the agent with explicit instructions or delimiters to distinguish between manuscript text and administrative instructions during audit passes.
- Capability inventory: The skill provides logic for the agent to execute shell commands via the word count script and perform automated text substitutions (
replace_exactly) across files. - Sanitization: The
resolve_inputsfunction does not validate or restrict the file paths provided in\inputdirectives, which could be exploited to read sensitive files if a manuscript contains malicious path references.
Audit Metadata