latex-polish
Pass
Audited by Gen Agent Trust Hub on Aug 24, 2026
Risk Level: SAFEPROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted user-provided content (PDF files and LaTeX logs) and provides this data to a vision model for layout analysis. An attacker could potentially embed instructions within a document's text or layout that influence the vision model's verdict or the agent's final report.
- Ingestion points: Processes
.pdffiles (rendered to images) andout/main.logfiles. - Boundary markers: The vision prompts in
references/vision-prompts.mddo not include explicit delimiters or instructions for the model to ignore potential commands embedded in the visual content. - Capability inventory: The skill has access to
Bashfor command execution,Writefor generating reports, andEditfor modifying source files. - Sanitization: No sanitization or filtering is applied to the rendered images or log content before processing.
- [COMMAND_EXECUTION]: The skill executes shell commands using arguments derived from local project files, which is a common vulnerability surface.
- Evidence: In Phase 3, page numbers are extracted from
out/main.logusingawkand then iterated over in a shell loop to executepdftoppm. While the extraction logic is constrained to digits, it still represents a dependency on untrusted file content for shell command construction.
Audit Metadata