claude-agent-sdk
Warn
Audited by Gen Agent Trust Hub on Apr 29, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The
templates/custom-mcp-server.tsfile defines a custom tool namedcalculatethat uses theeval()function to process input. This input is generated by the AI agent based on user prompts, which can be manipulated to execute arbitrary JavaScript code within the execution environment. - [COMMAND_EXECUTION]: Several templates, including
templates/multi-agent-workflow.tsandtemplates/subagents-orchestration.ts, enable and demonstrate the use of theBashtool. This provides the agent with the capability to execute shell commands. The safety logic provided intemplates/multi-agent-workflow.tsuses a simple blacklist to block 'dangerous' commands, which is insufficient to prevent advanced command injection or bypasses. - [COMMAND_EXECUTION]: The documentation and templates (
references/permissions-guide.md,templates/permission-control.ts) provide examples of usingpermissionMode: "bypassPermissions". This mode disables user-in-the-loop confirmations for sensitive operations, allowing the agent to write files and execute commands autonomously without oversight. - [PROMPT_INJECTION]: The skill facilitates the creation of agents that ingest untrusted data and have access to powerful system tools, creating a significant surface for indirect prompt injection.
- Ingestion points: External data processed via tools (e.g., weather API results) and user prompts in
templates/custom-mcp-server.tsandtemplates/multi-agent-workflow.ts. - Boundary markers: None are implemented in the provided prompt templates to distinguish between instructions and untrusted data.
- Capability inventory: The agents have access to
Bash,Write,Edit, and the customeval-basedcalculatetool. - Sanitization: No input sanitization is provided; the implementation relies on Zod schema validation which does not filter for malicious instruction payloads.
- [SAFE]: The skill correctly recommends and uses official packages from the
@anthropic-aiorganization, which is an established and trusted source.
Audit Metadata