latex-document
Warn
Audited by Gen Agent Trust Hub on Apr 17, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses
sudoto install system packages across multiple platforms (Debian, macOS, Fedora, Alpine, Arch) inscripts/install_deps.shandsetup.sh. - The script
scripts/latex_diff.shalso attempts to runsudo apt-get installto install thelatexdiffutility if it is missing. - There is extensive use of
subprocess.runandsubprocess.check_callthroughout the Python scripts to execute shell commands for document compilation and dependency management. - [REMOTE_CODE_EXECUTION]: Several Python scripts (
scripts/generate_chart.py,scripts/csv_to_latex.py,scripts/pdf_fill_form.py, etc.) contain a bootstrapping function_ensure_packagethat dynamically installs missing Python dependencies at runtime usingpip install. These installations are unversioned and happen without explicit user confirmation. scripts/mermaid_to_image.shusesnpxto download and execute the@mermaid-js/mermaid-clipackage on demand.scripts/pdf_fill_form.pyperforms monkeypatching on thepypdflibrary at runtime (DictionaryObject.get_inherited = patched_get_inherited), which is a form of dynamic code modification.- [EXTERNAL_DOWNLOADS]: The script
scripts/plantuml_to_pdf.shautomatically downloads a JAR file from a GitHub repository if the local executable is not found. scripts/fetch_bibtex.shusescurlto fetch bibliography data fromdoi.organdarxiv.orgbased on user-provided identifiers.- [PROMPT_INJECTION]: The skill processes untrusted user-supplied data from CSV and JSON files (
mail_merge.py,csv_to_latex.py) and interpolates it into LaTeX templates. While it includes escaping mechanisms,mail_merge.pyhas a functionescape_latex_preserve_commandsthat explicitly allows content starting with a backslash to bypass escaping, creating a surface for indirect prompt injection or malicious LaTeX command injection. - The skill also processes PDF files for OCR and form filling, another vector for ingesting untrusted data that influences the agent's context.
Audit Metadata