openapi-spec-security-scan
Installation
SKILL.md
OpenAPI Spec Security Scan
Defensive scan for OpenAPI 3.0 / 3.1 specifications. The spec is the contract — gaps here become real vulnerabilities downstream in generated servers and clients. Reports findings using the shared scoring schema.
Scope
openapi.{yaml,yml,json},swagger.{yaml,yml,json}(any Swagger 2.0 → upgrade)- Files referenced via
$ref(components/**,paths/**) - Generated server stubs only as cross-reference; rules apply to the spec itself
Procedure
- Parse the document (use
yaml/jsontooling; do not regex). - Resolve
$refs to evaluate effective schemas. - Walk
paths×methodsand apply rules below. - Walk
components.schemasfor type tightness.