distill-book
Pass
Audited by Gen Agent Trust Hub on Aug 29, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted content from external book files, which may contain adversarial instructions designed to influence the agent's summary or distillation logic.
- Ingestion points:
SKILL.mdidentifies EPUB, PDF, text, Markdown, HTML, and DOCX files as supported inputs for distillation. - Boundary markers: The workflow in
SKILL.mddefines specific labeling rules for "Author's claim", "Direct quote", and "Analysis" to help distinguish source content from AI reasoning. - Capability inventory: The agent can execute local Python scripts (
scripts/extract_epub.pyandscripts/build_html_report.py) to process files and write output. - Sanitization: The
extract_epub.pyscript useshtml.parserand regex to clean extracted text. Thebuild_html_report.pyscript applies HTML escaping to content before rendering the final interactive reader, though it retains a potential surface for link-based XSS if the agent is induced to generate malicious URLs in the Markdown report. - [COMMAND_EXECUTION]: The skill uses shell commands to invoke local Python scripts for document parsing and report generation.
- Evidence:
SKILL.mdworkflow steps 2 and 6 executepython3 scripts/extract_epub.pyandpython3 scripts/build_html_report.py. These scripts use only standard library modules and do not perform network operations or download remote code.
Audit Metadata