Workers AI
Pass
Audited by Gen Agent Trust Hub on Sep 4, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill implements Retrieval Augmented Generation (RAG) which involves ingesting and processing untrusted external data (documents) and interpolating them into LLM prompts.
- Ingestion points: Data enters the system via the
/documentsPOST endpoint inexamples/rag-implementation.jsand is later retrieved and injected into prompts in thequeryKnowledgeBasefunction. - Boundary markers: The implementation uses clear structural separation in the prompt (e.g.,
Context:\n${context}\n\nQuestion: ${question}) and includes a system instruction to 'Answer the question using ONLY the information provided in the context.' - Capability inventory: The skill uses
env.AI.runfor inference and embeddings,env.DB(D1) for storage, andenv.VECTOR_INDEX(Vectorize) for similarity search. It does not perform arbitrary shell command execution or external network requests beyond Cloudflare's platform services. - Sanitization: The skill uses structured JSON for request handling but lacks explicit sanitization or filtering for malicious instructions embedded within the ingested text chunks beyond the instructions provided to the LLM.
Audit Metadata