scanned-pdf-to-epub
Pass
Audited by Gen Agent Trust Hub on Aug 9, 2026
Risk Level: SAFE
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/md_to_epub.pyutilizessubprocess.runto execute thepandoccommand-line tool. This is a legitimate operation required for converting Markdown files to EPUB format. The command is constructed using a list of arguments, which is a secure practice that prevents shell command injection. - [DYNAMIC_EXECUTION]: The script
scripts/extract.pycontains a helper function_importablethat uses__import__to check for the presence of optional dependencies such aspypandocandebooklib. The module names are hardcoded in the script, posing no risk of arbitrary code execution. - [EXTERNAL_DOWNLOADS]: The
SKILL.mdinstructions recommend installing standard, reputable packages (e.g.,pymupdf,pypandoc-binary,ebooklib) using official package managers likepip,brew, orwingetto support the skill's functionality. These are standard development dependencies. - [PROMPT_INJECTION]: The skill processes external data (PDF images) through a vision-capable sub-agent. While this presents an indirect prompt injection surface where instructions could be embedded in the images, the skill provides strict instructional boundaries in
references/subagent_prompt.md. These instructions mandate that the agent only outputs verbatim recognized text and disregards non-document content, mitigating the risk of the agent following instructions found within the scanned documents.
Audit Metadata