llamaindex
Pass
Audited by Gen Agent Trust Hub on Sep 17, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill documents the implementation of retrieval-augmented generation (RAG) systems that ingest data from various external and potentially untrusted sources, including web pages via
SimpleWebPageReader, GitHub repositories viaGithubRepositoryReader, and external APIs viaJSONReader. The provided code snippets demonstrate interpolating this external data directly into prompt templates (e.g., theqa_promptandrefine_promptexamples) without providing guidance on sanitization, filtering, or the use of strict boundary markers to prevent malicious instructions embedded in the data from influencing the agent's behavior. - Ingestion points:
SimpleDirectoryReader,SimpleWebPageReader,GithubRepositoryReader,DatabaseReader, andJSONReaderas described inSKILL.mdandreferences/data_connectors.md. - Boundary markers: The examples use simple string interpolation (e.g.,
Context: {context_str}) which does not inherently prevent the LLM from obeying instructions hidden within the context variable. - Capability inventory: The skill identifies capabilities for file system operations (
persist), network communication (load_datafrom URLs), and database connectivity (DatabaseReader). - Sanitization: The provided documentation and code examples do not include explicit steps for sanitizing, validating, or escaping external content before it is processed by the LLM.
Audit Metadata