I've been digging into API security incidents and research lately, and there's a consistent pattern: the specification itself is an attack surface. Not the API implementation the documentation of it. Here's what the evidence shows.
Exposed Swagger/OpenAPI Specs Are Actively Hunted
SANS Internet Storm Center tracks scanning activity against common spec paths. As of mid-2026, /swagger.json alone had logged over 32,000 requests from attackers, with /api/v2/swagger.json at 14,000+ and /swagger/v1/swagger.json at 13,000+. This isn't theoretical attackers are systematically probing for exposed specs because they know what's inside.
Why? A public Swagger file is essentially a directory listing for your API. It reveals endpoint paths, parameter names, expected data formats, and authentication mechanisms. Attackers don't need to fuzz blindly when you've handed them the blueprint.
I've been thinking a lot about where API security problems actually get introduced, and it seems like most of them are baked into the spec before anyone writes a line of code. Missing auth on an endpoint, a sequential ID in a path, a sensitive field in a response schema these are all decisions made in the OpenAPI file.
But fixing them at the spec stage is harder than it sounds. The spec tells you what the API should do, not how it's actually implemented. A missing security block might be a real gap, or it might be handled by a gateway that isn't documented. A sequential ID might be fine if authorization is enforced elsewhere. So you end up with a list of findings and no clear way to know which ones are real problems versus which ones are just incomplete documentation.
Cloakwave detects API security issues at inception before your first line of code ships. Upload your OpenAPI spec and get a free security report in seconds.