citations-retrieval
Pass
Audited by Gen Agent Trust Hub on Aug 13, 2026
Risk Level: SAFEPROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill implements a Retrieval-Augmented Generation (RAG) workflow that is inherently vulnerable to indirect prompt injection. Specifically, the
add_chunk_contextfunction inSKILL.mdinterpolates raw, untrusted document content (full_documentandchunk) directly into an LLM prompt. This creates a vector where malicious instructions embedded in a processed document could override the agent's behavior during the contextual retrieval phase. - Ingestion points: Untrusted data enters the agent context via the
full_documentandchunkvariables used in thecontext_prompttemplate withinSKILL.mdandRESEARCH-SUMMARY.md. - Boundary markers: The implementation uses minimal XML-style tags (
<document>,<chunk>) to delimit data, but lacks explicit system instructions or guardrails advising the model to ignore potentially malicious commands within that data. - Capability inventory: The skill is granted access to high-privilege tools including
Bash,Write,Edit, andWebFetch, which could be abused if an injection attack succeeds. - Sanitization: No sanitization, escaping, or validation of the external document content is performed before it is interpolated into the prompt.
Audit Metadata