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-convert command-line utility to handle MOBI file conversions.\n
  • Evidence: scripts/extract_mobi.py uses subprocess.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.sh executes pip3 install -q -r "$SCRIPT_DIR/requirements.txt" to fetch standard libraries including ebooklib, beautifulsoup4, and PyMuPDF.\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), and scripts/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_text in scripts/extract.py and local command execution via subprocess.run in scripts/extract_mobi.py.\n
  • Sanitization: The scripts/extract_epub.py script utilizes BeautifulSoup to remove script, style, and nav tags from EPUB documents prior to text extraction.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 11, 2026, 10:45 AM