rag-agent-builder
Pass
Audited by Gen Agent Trust Hub on Feb 17, 2026
Risk Level: SAFEPROMPT_INJECTION
Full Analysis
- PROMPT_INJECTION (LOW): The implementation in
examples/agentic_rag.pyandexamples/basic_rag.pyinterpolates external data directly into LLM prompts using f-strings (e.g.,decision_prompton line 53 andanswer_prompton line 193 ofagentic_rag.py). This creates a vulnerability where malicious instructions within retrieved documents could override the agent's behavior. - Indirect Prompt Injection (LOW): Mandatory Evidence Chain: 1. Ingestion points:
queryandcontextparameters inagentic_rag.pyandbasic_rag.py. 2. Boundary markers: Absent; retrieved context chunks are joined with simple double newlines. 3. Capability inventory: The skill is limited to vector database queries and LLM generation; no high-privilege capabilities likesubprocess.run,eval(), or file system writes were found. 4. Sanitization: No escaping, filtering, or structured validation is applied to the retrieved text before it is inserted into the final prompt.
Audit Metadata