security-review

Identify and remediate JWT security misconfigurations in NestJS backends.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/lety-ai/lety-skill-hub --skill security-review-lety-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-review
Source: https://github.com/lety-ai/lety-skill-hub/tree/main/plugins/security-review/skills/security-review
Command: npx skills add https://github.com/lety-ai/lety-skill-hub --skill security-review-lety-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps security engineers and developers quickly audit and harden JWT authentication, guards, and security configurations in NestJS-based backends, reducing risk from misconfigurations.

Core Features & Use Cases

  • Identify common JWT and guard misconfigurations in NestJS apps, including token extraction, expiration handling, and session validation.
  • Recommend secure defaults for Helmet, CORS, CSRF, rate limiting, and error handling; provide practical remediation steps with code samples.
  • Use-case: a backend using NestJS with Fastify and gRPC after migration to OWASP-aligned patterns to prevent credential leakage and token replay.

Quick Start

Run a security review workflow by loading the project's NestJS backend and prompting the audit engine to enumerate gaps and provide concrete fixes.

Frequently Asked Questions about security-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit JWT authentication and security configs in a NestJS backend?

To audit JWT authentication and security configurations in a NestJS backend, prompt the audit engine to enumerate gaps across guards, middleware, and token flows. It identifies misconfigurations in token extraction, expiration handling, and session validation, providing practical remediation steps with code samples.

How do I prevent JWT token replay and credential leakage in NestJS with Fastify and gRPC?

Prevent JWT token replay and credential leakage in NestJS with Fastify and gRPC by enforcing strict JWT handling, correct guard order, token rotation, and hashed refresh tokens. The audit engine checks for OWASP-aligned patterns and safe error mapping to secure multi-layer deployments.

What are common JWT and guard misconfigurations in NestJS applications?

Common JWT and guard misconfigurations in NestJS applications involve improper token extraction, incorrect expiration handling, flawed session validation, and incorrect guard order. The security review identifies these vulnerabilities and recommends secure defaults for Helmet, CORS, CSRF, and rate limiting.

Does this security audit support multi-layer NestJS deployments using RabbitMQ?

Yes, this security audit supports multi-layer NestJS deployments using RabbitMQ, alongside Fastify and gRPC. It evaluates guards, middleware, and token flows across these diverse transport layers to ensure consistent OWASP-aligned defenses and safe production defaults.

What's the best way to enforce OWASP-aligned defenses and safe error mapping for NestJS JWT flows?

The best way to enforce OWASP-aligned defenses and safe error mapping for NestJS JWT flows is to apply strict token handling, validate guard order, implement token rotation, and hash refresh tokens. This audit engine provides practical remediation steps to harden these configurations.

How do I configure secure defaults for Helmet, CORS, and rate limiting in NestJS?

Configure secure defaults for Helmet, CORS, and rate limiting in NestJS by following the practical remediation steps generated during the security review. The audit recommends safe configurations aligned with OWASP standards to prevent credential leakage and ensure production system hardening.