pdf-generation
Pass
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes markdown files from a user-provided directory using Pandoc and WeasyPrint. This creates a surface where malicious instructions or rendering exploits (e.g., CSS injection) could be embedded in the documentation files processed by the agent.
- Ingestion points: Markdown files are collected from
<input-dir>inscripts/generate-pdf.shusing glob patterns like[0-9][0-9]-*.md. - Boundary markers: None; the content is passed directly to the conversion tools.
- Capability inventory: The script executes
pandoc(conversion) andweasyprint(rendering), which are powerful document processing engines. - Sanitization: No sanitization is performed on the content of the markdown chapters or the derived titles before processing.
- [DYNAMIC_EXECUTION]: The script
generate-pdf.shdynamically generates asedcommand file at runtime based on filenames and heading text found in the input directory. - Evidence: The script constructs
$SED_SCRIPTby appending substitution commands usingechoand then executes it viased -f "$SED_SCRIPT". - Risk: If a filename matches the glob pattern but contains the pipe character
|(e.g.,01-|malicious|.md), it could break thesedcommand syntax (s|...|...|g), potentially leading to logic corruption or execution errors during the link resolution phase. - [COMMAND_EXECUTION]: The skill relies on the execution of external binaries including
pandoc,weasyprint, andsed. While these are necessary for the primary purpose of the skill, they represent a high-capability execution environment that handles untrusted file data.
Audit Metadata