Run the scanner in --profile api mode to suppress browser UI noise, validate an OpenAPI 3.x or Swagger 2.0 contract, and verify whether protected endpoints enforce authentication.
| Check area | Rule IDs | Behavior |
|---|---|---|
| OpenAPI server URLs | API-OPENAPI-INSECURE-SERVER | Flags cleartext http:// servers declared in OpenAPI 3.x or Swagger 2.0 documents. |
| Credentials in query string | API-OPENAPI-KEY-IN-QUERY | Reports apiKey security schemes configured to send tokens in URL query parameters. |
| Unprotected spec routes | API-OPENAPI-UNPROTECTED-SPEC | Finds state-changing routes in the specification without security requirements. |
| Anonymous access parity | AUTH-MISSING-ENFORCEMENT | Probes GET routes marked as secured without auth headers and flags HTTP 200 API payloads. |
| JWT inspection | AUTH-JWT-ALG-NONE, AUTH-JWT-NO-EXP | Checks observed JSON Web Tokens for insecure alg: none headers and missing exp claims. |
| Stack traces and headers | INFO-API-STACKTRACE, INFO-INTERNAL-HEADER | Finds unhandled runtime stack traces and internal upstream headers returned in JSON responses. |
web-vuln-scanner https://api.example.com --profile api \
--openapi openapi.json \
-H "Authorization: Bearer $API_TOKEN" \
--sarif api-audit.sarif
Auth headers supplied through -H are sent strictly to the target origin and stripped before unauthenticated parity checks or cross-origin CORS tests run. Saved JSON, HTML, and SARIF reports automatically mask header secrets.
Yes. Pass either a local file path (--openapi openapi.json) or a same-origin URL (--openapi https://api.example.com/openapi.json).
No. Automatic OpenAPI probes only send read-only GET requests, and --no-unauth-check disables unauthenticated probing completely.
Test Access-Control-Allow-Origin reflection and credential flags.
Detect masked AWS, Stripe, GitHub, and PEM private keys in responses.
Keep auth context consistent when comparing JSON baselines.