skills/ma1orek/replay/ai-sdk-ui/Gen Agent Trust Hub

ai-sdk-ui

Pass

Audited by Gen Agent Trust Hub on Sep 26, 2026

Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill provides UI templates for chat and completion interfaces that ingest untrusted data from AI models. While these templates utilize react-markdown for safer rendering, the ingestion of arbitrary model output into the DOM represents a standard indirect prompt injection surface.
  • Ingestion points: Found in templates/use-chat-basic.tsx, templates/nextjs-chat-app-router.tsx, and templates/custom-message-renderer.tsx where message content from the hook is rendered.
  • Boundary markers: The templates do not explicitly implement boundary markers for model output, which is typical for UI-focused skills.
  • Capability inventory: The UI templates themselves do not execute commands, but they facilitate communication with backend APIs (/api/chat, /api/completion) that may have tool-execution capabilities.
  • Sanitization: The skill recommends react-markdown for rendering (e.g., in templates/custom-message-renderer.tsx), which helps mitigate XSS and other injection risks, though a commented-out alternative using dangerouslySetInnerHTML is included as a reference.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 26, 2026, 11:45 AM