ebook-extractor
Pass
Audited by Gen Agent Trust Hub on Oct 11, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The skill executes the
ebook-convertcommand-line utility to handle MOBI file conversions.\n - Evidence:
scripts/extract_mobi.pyusessubprocess.run(['ebook-convert', mobi_path, tmp_epub])to perform local conversions.\n- [EXTERNAL_DOWNLOADS]: The skill installs necessary Python dependencies from the official Python Package Index (PyPI) during setup.\n - Evidence:
setup.shexecutespip3 install -q -r "$SCRIPT_DIR/requirements.txt"to fetch standard libraries includingebooklib,beautifulsoup4, andPyMuPDF.\n- [INDIRECT_PROMPT_INJECTION]: The skill acts as a processing pipeline for untrusted external data (ebook files), creating a potential vector for indirect prompt injection attacks.\n - Ingestion points: Untrusted content is read in
scripts/extract_epub.py(EPUB),scripts/extract_mobi.py(MOBI), andscripts/extract_pdf.py(PDF).\n - Boundary markers: The skill does not implement specific boundary markers or instructions to the agent to ignore instructions embedded within the extracted text.\n
- Capability inventory: The skill has file system write access via
Path.write_textinscripts/extract.pyand local command execution viasubprocess.runinscripts/extract_mobi.py.\n - Sanitization: The
scripts/extract_epub.pyscript utilizesBeautifulSoupto removescript,style, andnavtags from EPUB documents prior to text extraction.
Audit Metadata