textproduction
Warn
Audited by Gen Agent Trust Hub on Nov 13, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
pr/press_compiler.pyexecutes local LaTeX binaries (pdflatexorxelatex) usingsubprocess.run(). While the arguments are passed as a list to prevent shell injection, the execution of external compilers introduces risks dependent on the local LaTeX environment configuration, such as the potential for arbitrary command execution ifshell-escapeis enabled. - [DYNAMIC_EXECUTION]: The skill performs runtime compilation of LaTeX source code into PDF documents. The source code is dynamically generated by the AI agent, incorporating user-provided content.
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted user requests to generate text for PR documents, which are then passed to the LaTeX compiler. The
_escape_latexfunction inpr/press_compiler.pyonly escapes a limited set of characters (&,%,#,_), failing to sanitize dangerous LaTeX commands like\input,\include, or\write18. An attacker could use indirect prompt injection to trick the AI into generating LaTeX code that reads sensitive local files or executes system commands during the compilation process. - Ingestion points: User input through the "Nutzerwunsch" trigger in
pr/WORKFLOW.md. - Boundary markers: Absent; the skill does not explicitly instruct the model to ignore instructions embedded within the user data when generating LaTeX.
- Capability inventory: File system write access (PDF output), local command execution via
subprocess.run(pdflatex). - Sanitization: Partial and insufficient;
_escape_latexinpr/press_compiler.pyignores many dangerous LaTeX control characters.
Audit Metadata