pdf-book-assembler
Pass
Audited by Gen Agent Trust Hub on Aug 28, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/build_pdf_book.pyusessubprocess.runto interact with system PDF utilities includingpdfinfo,pdfseparate,pdfunite,gs, andpdftoppm. All commands are executed using list-based arguments withoutshell=True, which effectively prevents shell injection vulnerabilities. - [COMMAND_EXECUTION]: The script generates PostScript
pdfmarkinstructions for Ghostscript to add bookmarks to the output PDF. It includes a dedicated escaping functionescape_ps_stringthat sanitizes bookmark titles to prevent PostScript command injection. - [INDIRECT_PROMPT_INJECTION]: The skill processes external PDF files and a user-provided JSON specification. While this constitutes an attack surface for indirect prompt injection, the skill's logic is limited to page-level manipulation and metadata extraction. It does not process or interpolate PDF text content into agent prompts or execute it as code.
- [SAFE]: The skill's Python script relies on standard third-party libraries
numpyandPillowfor its whitespace detection logic, which are appropriate for the stated purpose. The script lacks network capabilities and does not attempt to access sensitive system files or establish persistence.
Audit Metadata