beamer-compile-qa
Warn
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The script is vulnerable to path traversal through the
--outputscommand-line argument. When constructing the paths for the PDF and build report, it joins the workspace directory with the user-provided output paths usingpathlib.Path. If an absolute path is provided in the--outputsargument, the resulting path will resolve to that absolute location, potentially allowing the skill to overwrite files outside of the designated workspace. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted LaTeX source code and includes compiler output in a report, which constitutes an indirect prompt injection surface.
- Ingestion points: The script reads the LaTeX source file (
latex/slides/main.tex) indirectly via the compiler and directly reads the compilation logs and standard output/error streams inscripts/run.py. - Boundary markers: The generated
output/SLIDES_BUILD_REPORT.mduses markdown sections but lacks explicit delimiters or instructions to prevent downstream agents from interpreting content within the logs as commands. - Capability inventory: The skill can execute shell commands via
subprocess.run(forlatexmk,xelatex, andpdfinfo) and perform file system write operations usingshutil.copy2andatomic_write_text. - Sanitization: There is no evidence of sanitization or escaping of the compiler's stdout, stderr, or log file content before it is embedded in the markdown report.
- [DYNAMIC_EXECUTION]: The script dynamically invokes system binaries (
latexmk,xelatex,pdfinfo) usingsubprocess.run. While it avoidsshell=True, it operates on files within a workspace that may contain attacker-controlled content.
Audit Metadata