api-security-best-practices

Implement secure API design patterns for REST, GraphQL, and WebSocket APIs.

1|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/Adam-Guerin/Asmblr --skill api-security-best-practices-adam-guerin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-security-best-practices
Source: https://github.com/Adam-Guerin/Asmblr/tree/main/skills/api-security-best-practices
Command: npx skills add https://github.com/Adam-Guerin/Asmblr --skill api-security-best-practices-adam-guerin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and practical examples to help developers design, implement, and maintain secure APIs, mitigating common vulnerabilities and protecting sensitive data.

Core Features & Use Cases

  • Secure Design Patterns: Implement robust authentication, authorization, input validation, and rate limiting.
  • Vulnerability Protection: Defend against common API attacks like injection, DDoS, and unauthorized access.
  • Use Case: When developing a new user authentication API, use this Skill to ensure JWT tokens are securely generated and validated, passwords are hashed, and endpoints are protected by rate limits.

Quick Start

Use the api-security-best-practices skill to implement JWT authentication for your Node.js API.

Frequently Asked Questions about api-security-best-practices

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

FAQPage Schema
How do I implement secure JWT authentication for my API?

Secure JWT authentication requires safely generating and validating tokens, hashing passwords, and applying rate limits to protect endpoints. This Skill provides code examples to implement these secure design patterns for your API.

What are the OWASP best practices for REST and GraphQL API security?

OWASP API security best practices include robust input validation, strict authorization, and rate limiting. This Skill covers secure design patterns to defend REST, GraphQL, and WebSocket APIs against injection and unauthorized access attacks.

How do I prevent SQL injection and other common API vulnerabilities?

Preventing SQL injection requires strong input validation and secure coding practices. This Skill provides code examples to help developers mitigate injection, DDoS, and other common API vulnerabilities by applying secure design patterns.

Does this API security guidance apply to WebSocket APIs?

Yes, this API security guidance applies to WebSocket APIs. It provides specific security patterns covering authentication, authorization, input validation, and rate limiting tailored for REST, GraphQL, and WebSocket implementations.

What is the best way to configure rate limiting for an API?

The best way to configure rate limiting is to apply it alongside authentication and authorization as a core secure design pattern. This Skill guides developers on implementing rate limits to protect APIs from DDoS and abuse.