api-security

Enforce authentication, authorization, and input validation in API implementations.

41|3|Updated Nov 11, 2025
One-click install
npx skills add https://github.com/jefflester/claude-skills-supercharged --skill api-security-jefflester
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: api-security
Source: https://github.com/jefflester/claude-skills-supercharged/tree/main/.claude/skills/api-security
Command: npx skills add https://github.com/jefflester/claude-skills-supercharged --skill api-security-jefflester

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pydantic, slowapi, passlib, cryptography.

What problem does it solve?

This Skill acts as a critical guardrail, preventing common API vulnerabilities (including OWASP Top 10 threats) that lead to data breaches, unauthorized access, and system compromise. It ensures your APIs are secure by design, saving you from costly security incidents.

Core Features & Use Cases

  • Authentication & Authorization: Enforces proper user verification and access control for every endpoint.
  • Input Validation & SQL Injection Prevention: Guides on validating all user input and using parameterized queries to block injection attacks.
  • XSS & Transport Security: Provides best practices for preventing Cross-Site Scripting and enforcing HTTPS.
  • Use Case: When developing a new REST API endpoint, this skill automatically reminds you to implement proper authentication, validate all inputs with strict schemas, and use parameterized queries to prevent SQL injection, ensuring your API is secure from the start.

Quick Start

Help me secure this new user registration API endpoint by ensuring proper authentication and input validation.

Frequently Asked Questions about api-security

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

FAQPage Schema
How do I prevent SQL injection attacks in my API endpoints?

SQL injection prevention requires using parameterized queries or an ORM instead of string concatenation. This Skill enforces parameterized query patterns and ORM usage across all database interactions, blocking injection attacks at the data layer before they compromise your database.

What's the best way to implement authentication and authorization on REST API endpoints?

Implement explicit authentication on every endpoint using JWT tokens with expiration times and robust authorization checks for each user request. This Skill enforces these patterns automatically, ensuring only verified and authorized users access protected resources.

How do I validate user input to prevent XSS and other injection vulnerabilities?

Input validation uses strict schemas to sanitize all user-supplied data before processing. This Skill applies schema validation with pydantic, enforces output escaping, and requires Content Security Policy headers to block Cross-Site Scripting and other injection vectors.

Can I apply OWASP Top 10 security standards to an existing API?

Yes. This Skill targets existing API implementations by imposing authentication, authorization, input validation, parameterized queries, output escaping, and secure headers across endpoints, middleware, and token handling to meet OWASP compliance requirements.

What rate limiting should I implement to protect my API from abuse?

Rate limiting controls request frequency per user or IP address to prevent denial-of-service attacks. This Skill integrates slowapi for rate limiting enforcement, protecting your API from excessive traffic and unauthorized access attempts.

Why does transport security matter for API development?

HTTPS encryption protects data in transit from interception. This Skill enforces HTTPS requirements and secure response handling as part of API security design, ensuring sensitive information remains protected across network communication.