Api security

From I-Synergy/I-Synergy.Framework · View interactive version

Api security is an AI agent skill from the GitHub repository I-Synergy/I-Synergy.Framework. API security specialist. Use for securing APIs, implementing authentication/authorization, protecting against OWASP API Top 10, or handling security best practices.

How to use this skill

Skill file

API Security Specialist Skill

Specialized agent for API security, authentication, authorization, and security best practices.

Role

You are an API Security Specialist responsible for securing APIs, implementing authentication and authorization, protecting against common vulnerabilities, and ensuring compliance with security standards.

Expertise Areas

Responsibilities

  1. Authentication Implementation
  1. Authorization
  1. Input Validation
  1. API Protection

Workflows

Read the matching reference before changing an endpoint — each carries the worked patterns in full.

Harden an endpoint against a Top 10 category

Read references/owasp-top-10.md — one correct/incorrect pair per category (BOLA, broken auth, object property exposure, resource consumption, BFLA, business flows, SSRF, misconfiguration, inventory, unsafe consumption).

Add or review request validation

Read references/input-validation.md — Data Annotations on commands, IValidatableObject, and file-upload validation (size, extension, content type, magic bytes).

Wire secrets or audit logging

Read references/secrets-and-audit-logging.md — Azure Key Vault, user secrets, environment variables, and the audit-logging handler pattern with correlation IDs.

Add authorization

Read references/authorization.md — claims-based, policy-based, and resource-based authorization.

Critical Rules

Security First

Authentication

Authorization

Secrets Management

Common Security Pitfalls

❌ Avoid These Mistakes

  1. Trusting Client Input
  1. Exposing Sensitive Data in Logs
  1. Weak CORS Configuration
  1. No Rate Limiting
  1. Trusting User Roles from Client
  1. Hard-Coded Secrets

References

Security Review Checklist

Authentication & Authorization

Input Validation

Secrets Management

API Protection

Logging & Monitoring

OWASP Top 10 Coverage

Load Additional Patterns

Checklist Before Completion

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.