nodejs-backend-patterns
Pass
Audited by Gen Agent Trust Hub on Sep 22, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [SAFE]: The skill provides standard architectural patterns and well-regarded best practices for Node.js backend development. It demonstrates the use of security-focused middleware like Helmet and CORS, and correctly advises against hardcoding secrets by using environment variables.
- [INDIRECT_PROMPT_INJECTION]: The skill documents patterns for building APIs that ingest untrusted data from external clients, creating a structural attack surface for injection if not properly implemented.
- Ingestion points: API request handlers in Express and Fastify process untrusted data via
req.body,req.params, andreq.queryas shown inreferences/details.mdandreferences/advanced-patterns.md. - Boundary markers: The skill includes robust examples of input validation using the Zod library and Fastify's schema validation to enforce strict data boundaries.
- Capability inventory: The provided code patterns include database access (PostgreSQL via
pg, MongoDB viamongoose), cache interaction (Redis viaioredis), and authentication token generation (jsonwebtoken). - Sanitization: Implementation examples explicitly include password hashing with
bcryptand validation middleware to filter and sanitize incoming data before it reaches the business logic.
Audit Metadata