ai-sdk-core
Pass
Audited by Gen Agent Trust Hub on Sep 26, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill provides patterns for building AI agents that process untrusted user input and interact with external tools. This architectural pattern represents an indirect prompt injection surface.
- Ingestion points: User-supplied strings are interpolated into prompts via the
promptandmessagesparameters in templates such astemplates/generate-text-basic.tsandtemplates/agent-with-tools.ts. - Boundary markers: The skill recommends using human-in-the-loop approval processes for sensitive tool execution in
SKILL.mdto limit the impact of malicious data. - Capability inventory: The skill demonstrates tool-calling capabilities including filesystem operations via MCP and external API calls (e.g., weather data) in
templates/tools-basic.ts. - Sanitization: The skill provides a concrete example of a
sanitizePromptfunction inreferences/production-patterns.mdto help developers mitigate injection risks. - [EXTERNAL_DOWNLOADS]: The skill documents fetching dependencies and configuration guidelines from well-known technology organizations.
- Evidence: References to official documentation and repositories at
ai-sdk.dev,vercel.com,github.com/vercel/ai, andgithub.com/cloudflare/ai. These are recognized as trusted organizations and well-known services and are documented neutrally as intended educational resources. - [COMMAND_EXECUTION]: Includes scripts and instructions for using package managers and tool generation CLIs during development.
- Evidence:
scripts/check-versions.shutilizes standardnpmcommands to verify package versions.SKILL.mdprovides instructions for usingnpx mcp-to-ai-sdkto generate static tool definitions as a security best practice to avoid dynamic tool execution risks.
Audit Metadata