api-security-automation
Installation
SKILL.md
API Security Automation
Authorization Boundary
- Require base URL, environment label (lab/staging/prod), scoped credentials, and rate ceiling.
- Avoid production write endpoints unless explicitly authorized; prefer idempotent or staging traffic.
- Strip tokens and PII from artifacts.
Testing Workflow
- Ingest spec: OpenAPI, GraphQL SDL, gRPC
.proto, Postman collection, HAR; otherwise crawl withkatana/hetty. - Build a request matrix per endpoint × role × parameter class (id, enum, nested object, file).
- Auth tests: token tampering, alg=none, kid confusion, audience swap, refresh replay, scope downgrade.
- Object-level auth: enumerate IDs across roles to detect BOLA/IDOR.
- Function-level auth: invoke admin/owner endpoints with low-privilege tokens.
- Mass assignment: inject unexpected fields; observe persisted state changes.
- Input handling: type confusion, prototype pollution, SSRF via URL params, path traversal, deserialization.
- GraphQL: introspection, alias-based rate bypass, batched queries, depth/complexity DoS.
- Rate and replay: nonce reuse, idempotency-key collisions, race conditions on state.