claude-agent-sdk-typescript

Pass

Audited by Gen Agent Trust Hub on Mar 8, 2026

Risk Level: SAFE
Full Analysis
  • [COMMAND_EXECUTION]: The documentation describes the use of the Bash tool, which allows the AI agent to execute shell commands, scripts, and git operations on the host system.
  • Evidence: Found in SKILL.md and references/agent-loop.md as part of the core toolset.
  • [DYNAMIC_EXECUTION]: Code examples for custom tools demonstrate the use of the eval() function to process user-provided expressions in a calculator tool.
  • Evidence: references/custom-tools.md includes an example using eval(args.expression) with a comment advising the use of safe libraries in production environments.
  • [EXTERNAL_DOWNLOADS]: The skill provides instructions for installing the official Anthropic SDK and various Model Context Protocol (MCP) servers from trusted registries.
  • Evidence: SKILL.md and references/mcp.md mention @anthropic-ai/claude-agent-sdk and official @modelcontextprotocol packages.
  • [REMOTE_CODE_EXECUTION]: The skill documents the integration of MCP servers, which involves the execution of remote tools and services via stdio or HTTP/SSE transports.
  • Evidence: references/mcp.md details how to configure and connect to external MCP servers.
  • [PROMPT_INJECTION]: As a framework for building AI agents that process natural language prompts and interact with system tools, the documented SDK has an inherent attack surface for indirect prompt injection.
  • Ingestion points: The query() function accepts arbitrary text in the prompt parameter as seen in SKILL.md.
  • Boundary markers: The SDK handles context management and emits compact_boundary system messages during conversation compression (references/agent-loop.md).
  • Capability inventory: The framework supports powerful tools including Bash, Edit, Write, and WebFetch.
  • Sanitization: Core examples do not demonstrate explicit input sanitization, relying instead on the SDK's built-in tool permission modes.
Audit Metadata
Risk Level
SAFE
Analyzed
Mar 8, 2026, 01:06 PM