OpenAPI Security Auditor

Paste an OpenAPI or Swagger file and get a graded list of security design gaps: transport, authentication, scopes, data in URLs, input limits and error docs.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Paste the description

    Paste or open an OpenAPI 3 or Swagger 2 file in YAML or JSON.

  2. 2
    Read the grade

    See the score, operation count and how many are public.

  3. 3
    Review findings

    Filter by high, medium and low and read the location of each.

  4. 4
    Check public operations

    Confirm every unauthenticated endpoint is intended.

  5. 5
    Apply fixes

    Use the hardening checklist and edit your file; the score updates live.

  6. 6
    Export

    Download the report as text or JSON for your tracker.

About this tool

Many API weaknesses are visible before a single request is sent, because the OpenAPI description already says which operations need a token, which flows issue it, what goes in the URL and what the server accepts. Reviewing that by eye across dozens of paths is slow and inconsistent. This auditor reads the description and applies a fixed set of defensive checks drawn from the OWASP API Security Top 10 and the current OAuth security best practice: plain HTTP servers, missing or weak security schemes, API keys in query strings, deprecated implicit and password flows, overly broad scopes, write operations without authentication, secrets and tokens in paths or query strings, missing 401, 403 and 429 responses, request objects that accept any extra property, privilege fields such as role in request bodies, and unbounded strings and arrays. Each finding names the place in the file and the fix, and the total becomes a score from 0 to 100 with a letter grade.

How the score works

High findings cost 10 points, medium 4, and low findings 1 each up to a cap of 20, so a long list of documentation gaps cannot hide one serious hole, and one serious hole is never outweighed by tidy docs. The grade runs A (90+) to F (below 40).

Authentication and transport

Every operation's effective security is worked out from its own security field or the global default. An empty array means public. Public write operations are high risk; public reads on paths that look like users, accounts, admin or internal data are medium. Server URLs and OAuth endpoints on http are high, except localhost.

OAuth and keys

Implicit and resource owner password flows are flagged because RFC 9700 deprecates them in favour of authorization code with PKCE. Scopes named admin, all, root or * are flagged as too broad. API keys sent in the query string are high risk because URLs end up in logs, proxies and browser history.

Inputs and errors

Request bodies are walked to find objects without additionalProperties false (mass assignment risk), role or permission fields that are not readOnly, strings without maxLength or pattern and arrays without maxItems. Every operation is checked for documented error responses and a 429 response so clients can handle rate limits.

Output

Findings can be filtered by level, a separate tab lists all unauthenticated operations, and a hardening checklist summarises the fixes. Download a text or JSON report for tickets.

Limits

This is a design review of the document, not a test of the running service. It cannot see gateway rules, server-side validation or rate limiting that are not described, and a high score does not mean the API is secure. It does not send requests or attempt any attack.

Worked example

A clinic API with four operations scored 35 out of 100, grade F. High findings: the server URL used http, a legacy API key was accepted in the query string, POST /reset-password was public and took the reset token as a query parameter. Medium findings: the implicit OAuth flow, an admin scope and a role property accepted in the patient body. Thirteen low findings covered missing 429 responses, unbounded strings and the lack of additionalProperties false. After switching to https, authorization code with PKCE, a header token and readOnly on role, the score rose above 80.

Quick facts

Frequently asked questions

Does the auditor attack or scan my API?

No. It only reads the description you paste. No requests are sent to any server.

Why is the implicit flow flagged?

It returns tokens in the browser URL, where they can leak. The OAuth 2.0 Security Best Current Practice (RFC 9700) says to use the authorization code flow with PKCE instead.

My health endpoint is public on purpose. Why is it listed?

The unauthenticated tab lists every public operation so you can confirm each one is intentional. Read-only health checks are not counted as risky findings.

What is mass assignment?

When an API binds every field in the request body to a database object, a client can set fields it should not, such as role or isAdmin. Declaring additionalProperties false and readOnly fields documents and helps enforce the allowed set.

Should every operation have a 429 response?

If the API is rate limited, yes. Documenting 429 with a Retry-After header tells client developers how to back off instead of retrying in a loop.

Is my specification kept private?

Yes. Parsing and scoring run in your browser; the text is saved only as a local draft.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages