1---2name: api-security-automation3description: API security automation skill for REST, GraphQL, gRPC, and WebSocket APIs. Covers OpenAPI/AsyncAPI ingestion, authenticated fuzzing, OWASP API Top 10 (BOLA, BFLA, mass assignment, SSRF), schema diffing, GraphQL introspection abuse, JWT and OAuth misuse, rate-limit and replay testing. Use to automate API assessments with safe, scoped, evidence-backed findings.4metadata:5 source: https://skillmd.com/skills/masriyan/api-security-automation6---78# API Security Automation910## Authorization Boundary1112- Require base URL, environment label (lab/staging/prod), scoped credentials, and rate ceiling.13- Avoid production write endpoints unless explicitly authorized; prefer idempotent or staging traffic.14- Strip tokens and PII from artifacts.1516## Testing Workflow17181. Ingest spec: OpenAPI, GraphQL SDL, gRPC `.proto`, Postman collection, HAR; otherwise crawl with `katana`/`hetty`.192. Build a request matrix per endpoint × role × parameter class (id, enum, nested object, file).203. Auth tests: token tampering, alg=none, kid confusion, audience swap, refresh replay, scope downgrade.214. Object-level auth: enumerate IDs across roles to detect BOLA/IDOR.225. Function-level auth: invoke admin/owner endpoints with low-privilege tokens.236. Mass assignment: inject unexpected fields; observe persisted state changes.247. Input handling: type confusion, prototype pollution, SSRF via URL params, path traversal, deserialization.258. GraphQL: introspection, alias-based rate bypass, batched queries, depth/complexity DoS.269. Rate and replay: nonce reuse, idempotency-key collisions, race conditions on state.2728## Tooling2930- `ffuf`, `wfuzz`, `nuclei` (api templates), `kiterunner`, `mitmproxy`, `hetty`, `graphql-cop`, `clairvoyance`, `jwt_tool`, `restler`, `schemathesis`.3132## Output Contract3334- `spec/`: normalized spec snapshot.35- `requests/`: replayable HAR per finding.36- `findings.jsonl`: `{endpoint, method, role, class, severity, evidence, cwe, remediation}`.37- `report.md`: business impact, top fixes, regression tests as CI hooks.