nodejs-backend-patterns

Pass

Audited by Gen Agent Trust Hub on Oct 15, 2026

Risk Level: SAFE
Full Analysis
  • [SAFE]: The skill demonstrates and encourages secure coding practices throughout its examples.
  • Authentication & Secret Management: Correct use of bcrypt for password hashing and jsonwebtoken for session management. It emphasizes the use of environment variables (process.env) for sensitive data like JWT_SECRET and database credentials.
  • Injection Prevention: Uses parameterized SQL queries with the pg library to prevent SQL injection and implements strict input validation using zod and Fastify's JSON schema validation to mitigate malformed data processing.
  • Middleware Security: Includes standard security middleware such as helmet for HTTP headers, restricted cors configurations, and express-rate-limit to protect against brute-force or Denial of Service (DoS) attacks.
  • Data Handling: Shows proper sanitization techniques, such as removing sensitive fields (like passwords) from data objects before returning them in API responses.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 15, 2026, 08:14 AM