Safeguard
Security Guides•

What should security training for API developers cover?

A topic list for API developer security training, built around the OWASP API Security Top 10 2023, with a suggested order and hands-on exercises.

Safeguard Security Team
4 min read

Security training for API developers should start with authorization, because the OWASP API Security Top 10 2023 puts object level, property level and function level authorization failures in its first, third and fifth positions. Then cover authentication, resource limits, SSRF, configuration, inventory and the safe use of third party APIs.

Why API developers need their own track

General secure coding training leans on web page examples: forms, cookies, templates. An API developer rarely writes any of that. Their bugs live in route handlers, token checks and the shape of JSON responses. A generic course spends time on cross site scripting while the team's real risk is that user A can fetch user B's invoice by changing an id.

The OWASP API Security Top 10 2023 is a good backbone because it was written for this problem. It is a list of risk categories, not a full curriculum, so treat it as the table of contents and add exercises.

The topic list, in teaching order

OrderTopicOWASP API 2023 item
1Object ownership checks on every lookupAPI1 Broken Object Level Authorization
2Which fields a caller may read or writeAPI3 Broken Object Property Level Authorization
3Role checks on every endpointAPI5 Broken Function Level Authorization
4Login, tokens, session handlingAPI2 Broken Authentication
5Rate and size limitsAPI4 Unrestricted Resource Consumption
6Abuse of legitimate business flowsAPI6 Unrestricted Access to Sensitive Business Flows
7Server side fetches of user supplied URLsAPI7 Server Side Request Forgery
8Headers, CORS, verbose errors, defaultsAPI8 Security Misconfiguration
9Knowing every version and host you exposeAPI9 Improper Inventory Management
10Trusting data from upstream APIsAPI10 Unsafe Consumption of APIs

The order is a judgment call, not part of the OWASP list. Authorization comes first because it is the category a scanner finds least reliably and a reviewer finds most easily, which makes it a good place for human skill to pay off.

Make each topic a small exercise

Reading a list does not change how someone writes a handler. For each topic, give developers a tiny failing example and ask them to fix it.

  1. Show an endpoint that returns a record by id with no ownership check. Ask for the one line fix, then ask where else the same mistake could hide.
  2. Show an update endpoint that binds the whole request body to a model. Ask which fields should never be writable.
  3. Show an endpoint that fetches a URL from a request parameter. Ask what an attacker could point it at inside your network.
  4. Show an old API version still reachable in production. Ask who owns it and when it goes away.

Keep each exercise under fifteen minutes. Use your own code, with names changed, whenever you can. Real shapes are more memorable than invented ones.

What to leave out of the first pass

Skip cryptographic theory, protocol internals and full penetration testing technique. API developers need to recognise the mistake and know the fix pattern. Depth can come later, driven by what your own findings show.

Try it yourself

Click through it at your own pace, or open it full screen.

Watch how a finding names the endpoint and the category. Findings like these make good exercise material once you have anonymised them.

Where Safeguard fits

Training teaches the habit. Findings show where the habit is missing. Safeguard includes API security scanning and dependency scanning, and you can try a free scan at gold.safeguard.sh/scan to see what your own code produces before you design exercises.

Quick check

Should API training come before or after general secure coding training?

After a short general base, or alongside it. The API track is where the highest value risks for service teams sit, so do not make people wait months for it.

Is the OWASP API list enough as a full curriculum?

No. It names risk categories. You still need exercises, fix patterns and your own examples to turn each category into a skill.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.