experience-security.html
Authentication, authorization, and the OWASP API Security Top 10 as machine checks.
Run this ruleset
Lint any matching artifact against this ruleset with the Spotlight CLI:
npm i -g @spotlight-rules/spotlight-cli spotlight lint api.yaml \ --ruleset https://apicommons.org/assets/rulesets/experience-security.spotlight.yaml
Or load it into the browser validator, post it to the HTTP API, or wire it into a CI gate. 7 of these rules are the engine's built-ins (they come with spotlight:*); the other 61 are inlined in the file below.
Ruleset definition
Loading…
Rules in this ruleset (68)
Skill Allowed Tools Array
Agent Skill
API Baseurl HTTPS
APIs.json
API Property Require Security Page
APIs.json
API Property URL HTTPS
APIs.json
Document APIs JSON URL HTTPS
APIs.json
Schema Include Authentication Page
APIs.json
Agentic Access Contract Declared
OpenAPI
Agentic Access OAuth Protected
OpenAPI
Document OWASP API9 Server
OpenAPI
Info Description No Eval Tag
OpenAPI
Info Description No Script Tag
OpenAPI
Info OWASP API9 Document Version
OpenAPI
Operation Get Require Security
OpenAPI
Operation Require Security
OpenAPI
Operation Require Security 2
OpenAPI
Parameter Avoid Integer ID
OpenAPI
Parameter No API Keys In Query
OpenAPI
Path No Technology Leak In
OpenAPI
Response Delete Define 401
OpenAPI
Response Get Define 401
OpenAPI
Response Post Define 401
OpenAPI
Response Put Define 401
OpenAPI
Schema Number Require Min Max
OpenAPI
Schema OWASP API4 Integer Format
OpenAPI
Schema String Require Max Length
OpenAPI
Security No HTTP Basic Auth
OpenAPI
Security Require Root
OpenAPI
Security Require Root Scheme
OpenAPI
Server Must Use HTTPS
OpenAPI
Server Require HTTPS
OpenAPI
Server Require HTTPS 2
OpenAPI
Server URL Require HTTPS
OpenAPI