cloudflare-workers-ai
Pass
Audited by Gen Agent Trust Hub on Sep 4, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill templates demonstrate patterns that ingest untrusted data into the agent's context, creating a surface for potential indirect prompt injection attacks.
- Ingestion points: User prompts in
templates/ai-text-generation.ts, external image URLs intemplates/ai-vision-models.tswhich are fetched and processed, and metadata retrieved from Vectorize similarity searches intemplates/ai-embeddings-rag.ts. - Boundary markers: The templates generally lack strong delimitation (such as XML tags or explicit instruction markers) between system-provided context and untrusted data.
- Capability inventory: The skill utilizes
env.AI.runfor model inference,env.VECTORIZE.upsertfor data indexing,env.BUCKET.putfor storage operations, and thefetchAPI for external network requests. - Sanitization: While
references/best-practices.mdmentions basic input filtering, the core functional templates interpolate raw external data directly into model prompts. - [EXTERNAL_DOWNLOADS]: The skill references several external dependencies required for the Cloudflare Workers environment.
- Packages:
hono,zod,workers-ai-provider,ai, and@cloudflare/workers-types. - Status: These are well-known, community-standard packages for building and typed development within the Cloudflare Workers ecosystem.
Audit Metadata