agents-sdk
Warn
Audited by Gen Agent Trust Hub on Sep 20, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [DYNAMIC_EXECUTION]: The skill documents an experimental 'Code Mode' feature that generates executable JavaScript at runtime based on LLM output to orchestrate multi-tool workflows.
- Evidence:
references/codemode.mddescribes the generation of anexecuteTask()function that orchestrates tools likegetWeatherandsendEmail, which is then executed via theCodeModeProxybinding. - [INDIRECT_PROMPT_INJECTION]: The skill describes processing external, untrusted data that is subsequently passed to an LLM without explicit boundary markers, creating a vulnerability surface.
- Ingestion points: Data enters the system via
onEmail(raw email content) inreferences/email.mdandthis.mcp.getAITools()(external MCP server tool definitions) inreferences/codemode.md. - Boundary markers: Code examples show direct interpolation of message history and tool results into model prompts without specific delimiters or instructions to ignore embedded commands.
- Capability inventory: The agent context includes capabilities for database operations via
this.sql, state modification withthis.setState, network requests viafetch, and runtime script execution through Code Mode. - Sanitization: The skill demonstrates the use of a
globalOutboundfetch handler inreferences/codemode.mdto implement a hostname blocklist for security filtering. - [COMMAND_EXECUTION]: The documentation provides standard shell commands for environment setup and package verification.
- Evidence:
SKILL.mdandreferences/mcp.mdinclude commands such asnpm install agents,npm ls agents, andnpm install @modelcontextprotocol/sdk zod. - [EXTERNAL_DOWNLOADS]: The skill fetches configuration and documentation from trusted external sources and uses common package registries.
- Evidence: The skill references documentation and source code hosted at
github.com/cloudflare/agentsand official Cloudflare developer documentation atdevelopers.cloudflare.com.
Audit Metadata