api-framework-stack

Pass

Audited by Gen Agent Trust Hub on Sep 22, 2026

Risk Level: SAFE
Full Analysis
  • [SAFE]: The skill advocates for the use of Zod schemas to validate all incoming request data (body, params, query), which is a core security best practice for preventing injection attacks and ensuring data integrity.
  • [SAFE]: Secret management is handled via dotenv/config in src/index.ts, following the recommended practice for handling credentials and avoiding hardcoding sensitive information.
  • [SAFE]: Server composition via a plugin architecture in src/server.ts allows for centralized and auditable implementation of cross-cutting security concerns like CORS, authentication, and rate limiting.
  • [SAFE]: The authentication implementation in src/lib/server-plugins/auth.ts uses a centralized authenticator with token-based lookup against a database, which is a standard and secure pattern for session management.
  • [INDIRECT_PROMPT_INJECTION]: The skill defines an API surface that ingests untrusted data from request headers and bodies.
  • Ingestion points: Route handlers via .body(), .params(), and the Authorization header.
  • Boundary markers: Explicit Zod schemas are used to define expected data shapes.
  • Capability inventory: Database access via Prisma and network communication via Socket.IO.
  • Sanitization: Strict validation and type-checking are enforced by Zod and TypeScript, mitigating typical injection vectors.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 22, 2026, 08:22 PM