ai-sdk-core
Pass
Audited by Gen Agent Trust Hub on May 14, 2026
Risk Level: SAFEPROMPT_INJECTION
Full Analysis
- [PROMPT_INJECTION]: The skill contains templates (e.g.,
templates/nextjs-server-action.tsandtemplates/cloudflare-worker-integration.ts) that interpolate raw user input directly into LLM prompts without boundary markers or specific "ignore instructions" directives. This creates a surface for indirect prompt injection where malicious user data could override intended agent behavior. The skill includes a mitigation example inreferences/production-patterns.mdunder the "Security" section. - Ingestion points: User-supplied input variables such as
theme,ingredients,text, andpromptintemplates/nextjs-server-action.ts, as well asmessageintemplates/cloudflare-worker-integration.ts. - Boundary markers: Absent in most functional templates. Delimiters or "ignore instructions" headers are not used to separate user data from the developer's prompt instructions.
- Capability inventory: The skill enables LLM text and structured object generation. While no direct shell execution via generated text is demonstrated in the templates, the generated output is intended to be used directly in application workflows.
- Sanitization: Absent in primary templates. Although the skill provides a
sanitizePromptutility in its documentation (references/production-patterns.md), it is not implemented in the provided functional code examples.
Audit Metadata