extract-template
Fail
Audited by Gen Agent Trust Hub on Sep 23, 2026
Risk Level: HIGHPRIVILEGE_ESCALATIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [PRIVILEGE_ESCALATION]: The script
presentation/scripts/libreoffice.mjscontains logic to detect and usesudoto executeapt-get installfor system dependencies such aslibreoffice-impress,libreoffice-writer, andpoppler-utils. This is an attempt to gain root privileges to modify the system's installed packages. - [COMMAND_EXECUTION]: Multiple scripts within the skill (
docx/scripts/build_reference.py,pdf/scripts/analyze_pdf.py,presentation/scripts/libreoffice.mjs, and others) usesubprocess.runorspawnSyncto execute system commands includingpandoc,soffice,pdftocairo,ffmpeg, andapt-get. These commands are used to convert documents and analyze visual styles. - [EXTERNAL_DOWNLOADS]: The skill uses
docx/scripts/ensure_pandoc.pyandpdf/scripts/ensure_pandoc.pyto download portablepandocbinaries from its official GitHub releases page (https://github.com/jgm/pandoc/releases). These downloads are performed using theurllib.requestmodule. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted user-uploaded documents (PPTX, DOCX, PDF) and images to extract visual styles and content structures. This information is then used to generate new prompts and templates, which could lead to the agent following malicious instructions embedded in the source files.
- Ingestion points: User-provided files processed by
render-document.mjs,render-pages.mjs, and the analysis scripts in thedocx,pdf, andillustrationdirectories. - Boundary markers: The instructions do not include explicit delimiters or warnings to ignore instructions that may be embedded in the ingested documents.
- Capability inventory: The skill has the ability to write to the file system, execute system commands via subprocesses, and access the network for dependency downloads.
- Sanitization: The scripts use structured parsing (e.g.,
pymupdffor PDFs andxml.etree.ElementTreefor DOCX) to extract specific metrics, which provides some protection against direct text injection but does not fully eliminate the risk of the agent interpreting embedded malicious content.
Recommendations
- AI detected serious security threats
Audit Metadata