nestjs

Identify authentication, validation, and module boundary weaknesses in NestJS applications.

846|152|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/xalgord/xalgorix --skill nestjs-xalgord
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nestjs
Source: https://github.com/xalgord/xalgorix/tree/main/internal/tools/skills/data/frameworks/nestjs
Command: npx skills add https://github.com/xalgord/xalgorix --skill nestjs-xalgord

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This playbook helps security engineers and auditors find authentication, validation, and module boundary weaknesses in NestJS applications that lead to unauthorized access, data leakage, and logic bypasses.

Core Features & Use Cases

  • Guard & Decorator Audits: Map global, controller, and method-level guards and detect metadata mismatches or @Public misuse that permit unauthorized access.
  • Validation & Pipe Checks: Detect ValidationPipe, Parse/Transform, and nested DTO misconfigurations that allow payload or type coercion bypasses.
  • Cross-Transport Testing: Verify the same business logic across HTTP, WebSocket, GraphQL, and microservice transports to reveal transport-specific gaps.
  • ORM & Serialization Probes: Test for ORM query injection, serialization leaks, and cache/key poisoning that expose sensitive fields.
  • Use Case: During a pentest, enumerate Swagger, audit guard stacks, fuzz validation on endpoints and microservice handlers, and produce reproducible findings.

Quick Start

Use the nestjs playbook to enumerate Swagger, map guards and pipes, and run cross-transport tests to identify guard and validation bypasses.

Frequently Asked Questions about nestjs

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

FAQPage Schema
How do I find authentication and validation bypass vulnerabilities in NestJS?

To find NestJS vulnerabilities, audit global, controller, and method-level guards for metadata mismatches and @Public misuse, then test ValidationPipe and nested DTO misconfigurations for payload coercion bypasses to expose unauthorized access paths.

What is cross-transport testing in NestJS microservices and WebSocket gateways?

Cross-transport testing verifies identical business logic across HTTP, WebSocket, GraphQL, and microservice transports to reveal transport-specific security gaps and guard bypasses unique to each protocol handler.

How do I test for ORM injection and serialization leaks in NestJS?

Test for ORM injection and serialization leaks in NestJS by probing database query construction and serialization responses to detect cache/key poisoning and expose sensitive fields hidden in DTOs.

Can I integrate NestJS security testing into CI security scans?

Yes, you can integrate NestJS security testing into CI pipelines by running automated guard and validation test matrices, cross-transport probes, and ORM injection checks to identify module boundary weaknesses during builds.

What's the best way to enumerate Swagger and audit guard stacks in NestJS?

The best way to audit NestJS guard stacks is to enumerate Swagger documentation to map endpoints, then systematically fuzz validation on controllers and microservice handlers to produce reproducible security findings.

Why does my NestJS ValidationPipe allow payload type coercion bypasses?

NestJS ValidationPipe allows payload type coercion bypasses when Parse/Transform pipes and nested DTOs are misconfigured, failing to enforce strict type checking and permitting unauthorized data manipulation.