Digital Transformation

API Security Checklist: Applying the OWASP API Top 10

APIs are the doors of modern software. This guide turns the OWASP API Top 10 into a practical checklist.

Published 5 min read

Illustration of an API gateway with five protection layers beside a list of top API risks

Short on time? Use this API security checklist to protect the interfaces behind your apps. Know every API you run, check who can reach each object, limit traffic, validate every input, log what happens and test against the OWASP API Top 10. Start with your most exposed APIs and repeat the checks on each release.

APIs are the doors of modern software. Mobile apps, websites, partners and internal tools all use them to reach your data. Attackers know this, so APIs are now a common target.

This guide gives you a simple API security checklist. It works for a small team with one API and for a large firm with hundreds. It follows the OWASP API Security Top 10, a well-known list of the most serious API risks.

Key takeaways

  • An API security checklist starts with a full inventory of every API, including old versions.
  • Most serious API flaws come from weak access checks on objects.
  • Rate limits, input checks and good logging stop many attacks early.
  • Test against the OWASP API Top 10 before each major release.
  • Treat third-party APIs you call as untrusted.

Why APIs need their own checklist

A web page shows only what a designer chose. An API returns raw data to anyone who asks the right way. If it forgets one check, an attacker can read other users’ records or change them.

APIs also change fast. Teams add endpoints, test versions and forgotten routes. Each one is a possible way in. Our guide to API-first strategy shows how to design APIs with care from the start.

The OWASP API Top 10

The OWASP API Security Top 10 (2023 edition) lists ten risks:

  • Broken object level authorisation.
  • Broken authentication.
  • Broken object property level authorisation.
  • Unrestricted resource consumption.
  • Broken function level authorisation.
  • Unrestricted access to sensitive business flows.
  • Server side request forgery.
  • Security misconfiguration.
  • Improper inventory management.
  • Unsafe consumption of APIs.

Use this list as the spine of your API security checklist. The sections below turn it into actions.

An API security checklist you can use

Know what you have

  • List every API, version and environment.
  • Name an owner for each one.
  • Retire old versions and test routes.
  • Record which APIs are public, partner only or internal.

You cannot protect what you cannot see. Poor inventory is a risk on its own.

Check who may do what

  • Check access on every request, for every object. A user who asks for order 123 must own order 123.
  • Check access to each field. Do not return data the caller does not need.
  • Check the role for each function. Admin actions need admin checks on the server.
  • Never rely on the app to hide a button.

These checks cover the first, third and fifth risks, and they cause many real breaches.

Prove identity well

  • Use proven standards such as OAuth and OpenID Connect.
  • Use short-lived tokens and safe refresh.
  • Protect login and password reset with limits and extra checks.
  • Support multi-factor sign-in for sensitive actions.
  • Never put secrets in URLs.

Limit use

  • Set rate limits per user, key and address.
  • Cap page sizes, upload sizes and request time.
  • Watch costs for paid back-end calls, such as text messages or AI services.
  • Protect business flows that bots abuse, such as sign-up, booking and checkout.

Validate everything

  • Check type, length, range and format on every input.
  • Reject unknown fields.
  • Block calls that make your server fetch addresses chosen by the caller, unless you control the list.
  • Encode output to avoid injection into other systems.

Harden the set-up

  • Use encrypted connections everywhere.
  • Turn off debug modes and detailed errors in production.
  • Set strict cross-origin rules.
  • Keep servers, libraries and gateways updated. See our guide to software supply chain security.
  • Apply least privilege to service accounts.

Treat other APIs with care

When you call a partner or vendor API, validate what comes back. Set time limits, and plan for failure. A weak partner should not become your weak point.

Log, watch and respond

  • Log who called what, when and with what result.
  • Alert on odd patterns, such as one user reading thousands of records.
  • Keep logs safe, and remove secrets from them.
  • Have a response plan. See incident response planning.

Test your APIs

  1. Review the design before coding, and model the threats.
  2. Scan the code and dependencies in your build pipeline. See our CI/CD starter pipeline.
  3. Run automated tests for access rules, using two test users.
  4. Run manual tests against the OWASP list.
  5. Hire an independent tester before major releases.
  6. Share a way to report problems.

Add these tests to your wider test automation strategy. For mobile apps, also see our mobile app security checklist.

Common mistakes

  • No list of APIs, so old versions stay open.
  • Checking login, but not object ownership.
  • Returning whole records and hoping the app hides fields.
  • No rate limits.
  • Detailed error messages in production.
  • Trusting partner data without checks.
  • No logs, so attacks go unseen.

A starting plan

  1. Build the API inventory this month.
  2. Test the top five APIs for object level access flaws.
  3. Add rate limits and input checks at the gateway.
  4. Turn on logging and alerts.
  5. Repeat the API security checklist every release.

How SoftSapien supports API security

SoftSapien’s engineers and security consultants build APIs with security in the design, run API security checklist reviews and tests, and set up monitoring. See our cybersecurity consulting and enterprise software integration services.

To secure your APIs, use the contact page to chat with our team, send a message or schedule a free consultation call.

Frequently asked questions

What is the OWASP API Security Top 10?

A list of the ten most serious API risks, including broken object level authorisation, broken authentication, unrestricted resource consumption and improper inventory management.

What is the most common API flaw?

Weak access checks on objects, where one user can read or change another user records by changing an identifier.

How do we find all our APIs?

Build an inventory of every API, version and environment with an owner, and retire old versions and test routes.

How often should we test?

Test the highest-risk APIs now, add automated access tests to the build pipeline and repeat the checklist on every major release.

Can SoftSapien help secure our APIs?

Yes, with design and testing. Contact SoftSapien through the contact page to chat with our team, send a message or schedule a free consultation call.

Related service Digital Transformation
SoftSapien

One partner for digital transformation, AI, cloud, and growth.

From legacy modernization and Gen-AI engineering to digital strategy and infrastructure, SoftSapien helps enterprises plan, build, and scale the initiatives that move the business forward.

Tell us what you're building and we'll get back to you within 2 business hours.

Contact Us

+1

How should we reach you?

Slide to verify you're human

Talk to an Expert