Skip to content
ENExplore Calculators

REST API Security Calculator

Score a REST API against the ten OWASP API Security risks and see which category is dragging the result down.

About REST API Security Calculator

The ten categories are weighted equally because the OWASP list is ordered by observed frequency rather than by severity, and in practice any single unaddressed category is enough for a breach. The weakest-category output exists because the average hides the one that matters. API risks are not the web risks — authorisation and inventory dominate, and neither is found by a scanner that only knows how to look for injection.

Formula

REST API Security

Each of the ten OWASP API Security risks scores 10 when enforced and tested, 6 when mostly enforced, 3 when partial and 0 when unaddressed, so the ten categories sum to a 0–100 posture score.

API1
Object-level authorisation — the most exploited API risk
API9
Inventory — shadow and retired API versions

Worked example

With the default values below, REST API Security Calculator returns OWASP API Top 10 Score of 52. Change any input above and every figure here is recalculated in your browser.

Inputs used

API1 — object-level authorisation on every read and writeone of Enforced and covered by tests — 10, Mostly enforced — 6, Partial or ad hoc — 3, Not addressed — 0
Mostly enforced — 6
API2 — authentication on every endpointone of Enforced and covered by tests — 10, Mostly enforced — 6, Partial or ad hoc — 3, Not addressed — 0
Enforced and covered by tests — 10
API3 — property-level authorisation, no mass assignmentone of Explicit allow-list per field — 10, Mostly enforced — 6, Partial or ad hoc — 3, Not addressed — 0
Partial or ad hoc — 3
API4 — resource consumption limitsone of Rate, size and pagination limits everywhere — 10, Mostly enforced — 6, Partial or ad hoc — 3, Not addressed — 0
Mostly enforced — 6
API5 — function-level authorisation by roleone of Enforced and covered by tests — 10, Mostly enforced — 6, Partial or ad hoc — 3, Not addressed — 0
Mostly enforced — 6
API6 — protection of sensitive business flowsone of Abuse cases modelled and throttled — 10, Mostly enforced — 6, Partial or ad hoc — 3, Not addressed — 0
Partial or ad hoc — 3
API7 — SSRF controls on outbound fetchesone of Allow-listed and egress-filtered — 10, Mostly enforced — 6, Partial or ad hoc — 3, Not addressed — 0
Mostly enforced — 6
API8 — hardened configuration and headersone of Hardened baseline enforced in CI — 10, Mostly enforced — 6, Partial or ad hoc — 3, Not addressed — 0
Mostly enforced — 6
API9 — inventory and version managementone of Complete inventory, retired versions removed — 10, Mostly complete — 6, Partial or ad hoc — 3, Not addressed — 0
Partial or ad hoc — 3
API10 — validation of third-party API responsesone of Third-party responses validated and sandboxed — 10, Mostly validated — 6, Partial or ad hoc — 3, Not addressed — 0
Partial or ad hoc — 3

Results

OWASP API Top 10 Score
52 / 100
Maturity Grade
D — Weak
Weakest Category
API3 Broken object property level authorisation
Categories Below 'Mostly Enforced'
4
Unaddressed Categories
0
Residual Exposure
48%

Step by step

  1. 1Values used
  2. 2REST API Security
  3. 3OWASP API Top 10 Score= 52 / 100
  4. 4Maturity Grade= D — Weak
  5. 5Weakest Category= API3 Broken object property level authorisation
  6. 6Categories Below 'Mostly Enforced'= 4
  7. 7Unaddressed Categories= 0
  8. 8Residual Exposure= 48

Assumptions and limits

  • The result is derived only from the 10 inputs listed above. Anything not among them is not part of the calculation.
  • In particular, this calculator does not take inflation, tax, fees or charges or compounding frequency into account.
  • Figures are rounded for display to whole numbers, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.

How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.

Frequently Asked Questions

How is REST API Security calculated?

Each of the ten OWASP API Security risks scores 10 when enforced and tested, 6 when mostly enforced, 3 when partial and 0 when unaddressed, so the ten categories sum to a 0–100 posture score. The ten categories are weighted equally because the OWASP list is ordered by observed frequency rather than by severity, and in practice any single unaddressed category is enough for a breach. The weakest-category output exists because the average hides the one that matters.

Why does REST API Security matter?

API risks are not the web risks — authorisation and inventory dominate, and neither is found by a scanner that only knows how to look for injection.

What values do I need to enter?

This calculator takes 10 inputs: API1 — object-level authorisation on every read and write, API2 — authentication on every endpoint, API3 — property-level authorisation, no mass assignment, API4 — resource consumption limits, API5 — function-level authorisation by role, API6 — protection of sensitive business flows, API7 — SSRF controls on outbound fetches, API8 — hardened configuration and headers, API9 — inventory and version management, API10 — validation of third-party API responses. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.

Why is object-level authorisation the hardest to fix?

Because it has to be checked in every handler, against the specific object being touched, and no framework can infer your ownership rules. The reliable pattern is a single authorisation helper called with the subject, the action and the loaded object, plus a test per endpoint that proves another tenant's identifier returns 404.

REST API Security Calculator | Calcrivo