secure-api-guard

Audit NestJS backend APIs for authentication, validation, secrets, dependencies, and Docker security.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/apireaisecurity/apire-ai-security-platform --skill secure-api-guard
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: secure-api-guard
Source: https://github.com/apireaisecurity/apire-ai-security-platform/tree/main/apire-redteam-kit/.agent/skills/secure-api-guard
Command: npx skills add https://github.com/apireaisecurity/apire-ai-security-platform --skill secure-api-guard

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This audit provides a structured, repeatable security checklist to identify and remediate vulnerabilities in a NestJS-based backend API, focusing on authentication, input validation, secret management, dependencies, and Docker hardening.

Core Features & Use Cases

  • Authentication & Authorization Audit: verify that all endpoints enforce proper identity checks and access control.
  • Input Validation & Data Sanitization: ensure DTOs use validation decorators and global pipes are configured to prevent invalid data.
  • Secret Management & Configuration: detect hardcoded secrets and ensure environment-based configuration with encrypted storage where needed.
  • Dependency & Docker Security: review dependencies for known vulnerabilities and ensure secure container configurations.
  • Use Case: run this audit before releases, after adding new endpoints, or during PR reviews to prevent security regressions.

Quick Start

Run the secure-api-guard audit against the backend to produce a prioritized remediation plan.

Frequently Asked Questions about secure-api-guard

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

FAQPage Schema
How do I audit a NestJS API for security vulnerabilities before release?▼

A NestJS API security audit identifies and remediates vulnerabilities by verifying authentication, input validation, secret management, dependencies, and Docker configurations to produce a prioritized remediation plan.

What does authentication and authorization validation cover in a NestJS backend?▼

Authentication and authorization validation in a NestJS backend verifies that all endpoints enforce proper identity checks and access control rules to prevent unauthorized access.

How do I prevent SQL injection and ensure input validation in NestJS DTOs?▼

To prevent SQL injection and ensure input validation in NestJS, verify that DTOs use validation decorators and global pipes are configured to sanitize and reject invalid data.

Can I use this security audit during PR reviews to catch security regressions?▼

Yes, you can use this security audit during PR reviews, after adding new endpoints, or during pre-release hardening to catch security regressions across authentication, secrets, and Docker configurations.

How do I check for hardcoded secrets and secure configuration in a NestJS API?▼

To check for hardcoded secrets and secure configuration in a NestJS API, the audit detects hardcoded values and ensures environment-based configuration with encrypted storage where needed.

How do I harden Docker and deployment configurations for a backend API?▼

To harden Docker and deployment configurations for a backend API, the audit reviews container configurations and dependencies for known vulnerabilities to ensure secure deployment.