cloudflare-ai
Pass
Audited by Gen Agent Trust Hub on Nov 4, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [SAFE]: Extensive analysis of the 187 files revealed no malicious patterns, obfuscation, or unauthorized data access. The provided code samples consistently follow high-quality security standards, demonstrating how to protect AI endpoints from anonymous usage and how to safely handle external data.
- [INDIRECT_PROMPT_INJECTION]: The skill documents systems (AI Search, RAG) that ingest untrusted data from websites, files, and R2 buckets into an AI agent's context. While this is the intended functionality, it introduces a surface for indirect injection attacks.
- Ingestion points: Automated website crawling (
references/ai-search/data-source-website.md), R2 bucket synchronization (references/ai-search/data-source-r2.md), and manual file uploads to built-in storage (references/ai-search/items-workers-binding.md). - Boundary markers: Documentation samples show the use of XML tags to wrap retrieved content, aiding the model in distinguishing data from instructions (
samples/search-bring-your-own-model.md). - Capability inventory: The systems described possess capabilities for making network requests (
fetch), executing embedded functions (runWithTools), and accessing databases (D1,KV,R2). - Sanitization: Examples include strict input validation, hostname allowlisting for external fetches, and URL encoding for dynamic parameters (
samples/search-fetch-and-index-pages.md). - [EXTERNAL_DOWNLOADS]: The documentation includes instructions to install various legitimate AI-related libraries and developer tools using standard package managers.
- Evidence: References to
npm installfor@cloudflare/ai-utils,agents,ai, andpip installforcloudflareandlangchain-cloudflare. These are high-trust, official, or well-known packages used for building AI applications.
Audit Metadata