Skip to content

Guide · Open source

How to use API-Security-Checklist: a practical guide

Updated · written with AI from the project's own documentation and checked against our catalogue data

API-Security-Checklist is an MIT-licensed markdown list of security countermeasures for APIs, from the shieldfy project on GitHub. It is written as a reminder to review before an API ships, not as software you install. This guide shows you how to read it, which sections matter at each stage, and how to turn it into a review routine your team can follow.

API Security Checklistshieldfy/API-Security-Checklist · ★ 23.3k · MIT

Quick start

  1. 1Read the README. Open the project's README on GitHub or clone the repository. Read the section headings to see the stages covered.
  2. 2Choose the sections that fit your API. Decide which stages apply to your design, such as Authentication and Output for a JSON API.
  3. 3Review your design against each item. Go item by item and mark each one as done, not applicable, or needs work.
  4. 4Check implementation details. Verify headers, status codes, content types and error messages against the relevant items.
  5. 5Cover CI, CD and monitoring. Confirm your pipeline runs tests, code review and dependency checks, and that logs avoid sensitive data.
  6. 6Record gaps and follow up. Track items that need work in your issue tracker and recheck them before each release.

What the checklist is and what it is not

The project is a single README file organised into stages: Authentication, Access, Authorization, Input, Processing, Output, CI & CD, and Monitoring. Each item is a short recommendation, such as using standard authentication instead of Basic Auth or sending a nosniff header.

It does not scan anything. The README describes a list of items to check, not a tool that tests your API. It also does not explain each attack in depth, so you will need other resources when you want background.

  • Type: a markdown checklist you read and work through
  • Licence: MIT
  • Install: none; you can read it online or clone the repository
  • Prerequisites: none listed

Get a copy of the checklist

You can read the README directly on GitHub. If you want a local copy to annotate or to keep in your team's repository, clone it with the command from the project's README.

  • Read it online on the project's GitHub page
  • Clone it to keep a local copy you can edit
git clone https://github.com/shieldfy/API-Security-Checklist

Work through the checklist before launch

Go through each section against your API design and implementation. Mark each item as done, not applicable, or needs work. The items are phrased as checkboxes, so a markdown view with task lists makes this easy to track.

Start with Authentication and Authorization, since many items there cover how users and applications prove who they are. Then move to Input and Output, which cover what your API accepts and what it returns.

  • Authentication: avoid Basic Auth, use standard authentication, limit login retries
  • Access: throttle requests, use HTTPS with TLS 1.2+, turn off directory listings
  • Authorization: validate redirect_uri, avoid response_type=token, use a state parameter
  • Input: use the right HTTP method, validate content types, keep credentials out of URLs
  • Output: set security headers, remove fingerprinting headers, avoid detailed error messages
  • CI & CD: run tests, require code review, check dependencies for known vulnerabilities, plan rollbacks
  • Monitoring: centralise logs, avoid logging sensitive data, use an IDS or IPS

Use it in code reviews

Because each item is a short, specific statement, the checklist works as a reference during code review. A reviewer can check whether a pull request sets the expected headers, validates input types, or keeps secrets out of URLs.

Some items are phrased as design rules, such as using UUIDs instead of auto-incrementing IDs or using /me/orders instead of /user/654321/orders. These are easy to check in an API specification before any code is written.

  • Add the items relevant to your stack to your team's review template
  • Link specific items in review comments so the reason is clear
  • Note items that do not apply to your API, such as GraphQL-specific items if you do not use GraphQL

Audit an existing API

To audit a running API, pick the items you can verify from outside, such as which headers the responses send, whether directory listings are off, and whether error messages reveal internal details. Items about CI/CD and monitoring need access to your pipeline and logs.

The checklist does not tell you how to test each item. For that, you will need your own tests or other tools.

  • Check response headers for X-Content-Type-Options, X-Frame-Options and Content-Security-Policy
  • Check whether X-Powered-By or Server headers are exposed
  • Check that error responses are generic

Use the advanced section for newer patterns

The README ends with an advanced section covering rate limiting and abuse prevention, GraphQL-specific security, secrets management, and zero trust architecture. These items are phrased the same way as the main list.

The README also suggests that you may not need JWT and can use a randomly generated API key. It links to an external article on alternatives to JWT for cases that need asymmetric encryption or tamper prevention.

  • Rate limiting and abuse prevention
  • GraphQL-specific security
  • Secrets management
  • Zero trust architecture

What people use it for

  • Reviewing an API design before it goes live
  • Adding security items to a team's pull request review template
  • Teaching students common API security practices
  • Auditing an existing API's headers, error handling and authentication against the list

Frequently asked questions

Is API-Security-Checklist free to use?

Yes. The repository is licensed under MIT, so you can use and adapt it. The README does not list any paid tier.

How do I install API-Security-Checklist?

There is nothing to install. The README lists no prerequisites. You can read it online on GitHub or clone the repository with git clone https://github.com/shieldfy/API-Security-Checklist.

Is API-Security-Checklist an automated scanner?

No. The README describes a list of items to check, not a tool that tests anything. You need to verify each item yourself or with other tools.

Does the checklist explain each attack in detail?

Mostly not. Most items are one-line recommendations with no in-depth background. For fuller explanations, the project points to related resources such as the OWASP API Security Top 10 and the OWASP Cheat Sheet Series.

What are good alternatives to API-Security-Checklist?

Comparable projects include yosriady/api-development-tools, which collects resources for building RESTful HTTP+JSON APIs, the OWASP API Security Top 10, and the OWASP Cheat Sheet Series. The OWASP resources are more formal and better suited if you need a recognised standard.

Is this checklist a complete security standard?

No. The README is a community checklist and does not cite a formal framework. Use it as a starting reminder and pair it with a recognised standard if you need compliance-level coverage.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this checklist if you are a developer, student or team that wants a short, practical reminder of API security countermeasures during design review or code review. Pick a formal standard such as the OWASP API Security Top 10 if you need a recognised framework, detailed attack explanations, or an automated scanner.

Install options & downloads