Garyson26/Trident-SecOps-Skills / skills/api-security-automation
api-security-automation
VerifiedAPI 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.
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.
Tooling
ffuf,wfuzz,nuclei(api templates),kiterunner,mitmproxy,hetty,graphql-cop,clairvoyance,jwt_tool,restler,schemathesis.
Output Contract
spec/: normalized spec snapshot.requests/: replayable HAR per finding.findings.jsonl:{endpoint, method, role, class, severity, evidence, cwe, remediation}.report.md: business impact, top fixes, regression tests as CI hooks.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 467k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 193k | Updated | Claude CodeCodex | Verified | Install |