cloudflare-email-service
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- Indirect Prompt Injection Surface: The skill describes workflows for processing incoming emails using the
email()handler. Since email content originates from external, untrusted sources, it presents a surface for indirect prompt injection where an attacker could embed instructions intended to influence an AI agent's behavior. - Ingestion points: Incoming messages processed by the
email()function inreferences/routing.md. - Boundary markers: The documentation recommends parsing raw MIME content using
postal-mimeand buffering the stream, which allows for structured processing of the message parts. - Capability inventory: The skill utilizes file system storage via Durable Objects, network operations via the
send_emailbinding, and email forwarding capabilities. - Sanitization: The implementation examples suggest extracting specific fields (subject, text, headers) and using parameter binding in SQL queries (
storage.sql.exec) to prevent injection attacks. - External Dependencies: The documentation references standard ecosystem tools such as
wranglerand libraries likepostal-mimeandmimetextfor MIME processing. These are well-known packages used for Cloudflare Workers development. - Administrative Command Execution: The skill provides examples of using the
wranglerCLI for service configuration andcurlfor interacting with the Cloudflare REST API. These commands are standard for managing Cloudflare resources and utilize placeholders for sensitive credentials (e.g.,<API_TOKEN>), encouraging secure secret management practices.
Audit Metadata