cloudflare-workers-ai
Pass
Audited by Gen Agent Trust Hub on Feb 17, 2026
Risk Level: SAFEPROMPT_INJECTION
Full Analysis
- [Data Exposure & Exfiltration] (SAFE): No hardcoded credentials or sensitive file paths were detected. The provided code templates use standard Cloudflare Worker environment bindings (
c.env.AI,c.env.BUCKET) for secure resource access. - [Unverifiable Dependencies] (SAFE): The templates reference the 'hono' framework, a reputable and standard library for building Cloudflare Workers. No suspicious remote scripts or piped execution patterns were found.
- [Indirect Prompt Injection] (LOW): The skill contains templates that ingest untrusted user data into AI prompts, creating a vulnerability surface. Specifically, the prompt enhancement example in
templates/ai-image-generation.tslacks input sanitization. - Ingestion points:
templates/ai-image-generation.ts(viauserPromptin the/generate/enhancedendpoint) andtemplates/ai-gateway-integration.ts(viaprompt). - Boundary markers: Absent in the prompt templates.
- Capability inventory:
AI.run(inference) andR2Bucket.put(file storage). - Sanitization: The templates do not demonstrate input validation or escaping for the ingested prompts.
Audit Metadata