zotero-rag
Pass
Audited by Gen Agent Trust Hub on Oct 29, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests data from external document files (PDF/EPUB) which are converted to markdown and indexed for semantic search. The LLM processes search results containing this untrusted text, which could contain malicious instructions.
- Ingestion points: The
scripts/ingest.pyscript reads user-provided PDF and EPUB files and converts them to markdown files inlibrary/markdown/. - Boundary markers: No specific delimiters or instructions are provided to the agent to treat the indexed text chunks as untrusted content when they are retrieved via
rag.py searchorrag.py context. - Capability inventory: The skill utilizes
subprocess.runto execute conversion tools and performs file write operations to the local library and bibliography files. - Sanitization: There is no evidence of text sanitization or filtering to remove potential prompt injection sequences from the documents before they are indexed or returned to the agent.
- [EXTERNAL_DOWNLOADS]: The skill performs network operations to fetch metadata and models.
- Metadata APIs:
scripts/ingest.pyfetches bibliographic data fromapi.crossref.organdopenlibrary.org. - Embedding Model:
scripts/rag.pyutilizessentence-transformerswhich downloads theall-MiniLM-L6-v2model from Hugging Face on the first run. - [COMMAND_EXECUTION]: The
scripts/ingest.pyscript usessubprocess.runto call external utilities for file conversion. - Evidence: It executes
doclingfor PDF-to-markdown conversion andpandocfor EPUB-to-markdown conversion. These calls use list-based arguments rather than shell strings, reducing the risk of shell injection.
Audit Metadata