latex-document
Fail
Audited by Gen Agent Trust Hub on May 9, 2026
Risk Level: HIGHCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/install_deps.sh(sourced bysetup.shand various document automation tools) usessudoto acquire administrative privileges for installing system packages across multiple platforms (apt, brew, dnf, apk, pacman). This allows the skill to execute commands with root permissions to install heavy dependencies liketexlive,poppler, andimagemagick. - [EXTERNAL_DOWNLOADS]: Multiple Python scripts (
csv_to_latex.py,generate_chart.py,pdf_fill_form.py, etc.) contain a helper function_ensure_packagethat automatically downloads and installs missing Python libraries from PyPI usingpipat runtime. These installations are unversioned and occur without explicit user confirmation during the document processing flow. Additionally,scripts/plantuml_to_pdf.shfetches a JAR file from GitHub if not found locally, andscripts/fetch_bibtex.shperforms network requests todoi.organdarxiv.org. - [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection through its PDF-to-LaTeX conversion pipeline.
- Ingestion points: Page images extracted from user-provided PDFs via
pdf_to_images.share processed by a vision-capable AI agent as described inreferences/pdf-conversion.md. - Boundary markers: Absent; there are no specific delimiters or instructions for the agent to ignore commands within the source data in the provided prompts.
- Capability inventory: The skill can execute arbitrary shell commands via the Bash scripts, write to the local filesystem, and perform network operations via
curlandwget. - Sanitization: Absent; while LaTeX special characters are escaped for formatting, there is no filtering or validation of the semantic content extracted from source documents.
- [COMMAND_EXECUTION]: The skill uses dynamic execution patterns, including
__import__calls for runtime module loading in several Python scripts and a monkey-patch of thepypdflibrary inscripts/pdf_fill_form.pyto modify its internal behavior at runtime.
Recommendations
- AI detected serious security threats
Audit Metadata