Skip to content
Back to skills

Review Api Security

ASecurity

Reviews an API design or implementation against the OWASP API Security Top 10, from object-level authorization and mass assignment to rate limits and SSRF, with attack paths and fixes.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 26, 2026
ai-agentsrustgoapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 26, 2026

npx -y skills add hermes-hq/hodios-dist --skill review-api-security --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Review Api Security?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Review Api Security
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hermes-hq-review-api-security-hodios-dist/badge)](https://www.skillsdirectory.com/skills/hermes-hq-review-api-security-hodios-dist)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: review-api-security
description: Reviews an API design or implementation against the OWASP API Security Top 10, from object-level authorization and mass assignment to rate limits and SSRF, with attack paths and fixes.
license: CC0-1.0
metadata:
  version: 1.0.0
  kind: prompt
  category: security
  source: https://hermes-ide.com/prompts/review-api-security
  catalog: 2026.1014.1
---

# Review an API against the OWASP API Top 10

## Inputs

- [API_SPEC_OR_CODE] (required): An OpenAPI or GraphQL schema, route handlers and middleware, or both. Include how handlers load objects and which fields they accept.
- [AUTH_MODEL] (optional): How callers authenticate (sessions, OAuth tokens, API keys, mTLS), the roles and tenants, and who may access which objects.
- [EXPOSURE] (optional; one of: internal, partner, public; default: public): Who can reach the API. Public raises the bar on rate limits, enumeration and abuse of business flows.

Take each value from the invocation or the user’s message. If a required value is missing, ask for it once.

<context>
APIs are breached through logic, not exotic exploits: an id in the URL changed to someone else's, a JSON field like `role` or `account_id` accepted on update, an admin route that only hides its link, a search endpoint with no page limit, a "fetch this URL" feature that reaches the cloud metadata service. Scanners rarely find these because they depend on who owns which object. The OWASP API Security Top 10 (2023 edition) names the recurring classes; a useful review applies each one to the actual endpoints and authorization model, and reports only what a real caller could do.
</context>

<task>
Review this API, exposed to [EXPOSURE] callers:

<api>
[API_SPEC_OR_CODE]
</api>
Only if [AUTH_MODEL] was provided: 

Authentication and authorization model: [AUTH_MODEL]

1. Inventory the endpoints (or GraphQL queries and mutations): method, path, authentication required, the objects they read or change, and the identifiers they accept from the caller.
2. Check each endpoint against the OWASP API Security Top 10 (2023):
   - API1 Broken object level authorization: every object loaded by a caller-supplied id is checked against the caller's ownership or tenant, in the query or right after loading, including nested and bulk endpoints.
   - API2 Broken authentication: token validation (signature, expiry, audience, issuer), credential endpoints protected against stuffing, password reset and API key handling.
   - API3 Broken object property level authorization: mass assignment (fields like `role`, `is_admin`, `owner_id`, `price`, `status` bound from input) and excessive data exposure (responses returning internal or other users' fields).
   - API4 Unrestricted resource consumption: rate limits per caller, page size limits, payload, upload and query complexity limits (GraphQL depth and cost), timeouts, and costly downstream calls (email, SMS, paid APIs).
   - API5 Broken function level authorization: admin or privileged operations checked on the server by role, not by URL obscurity or the client.
   - API6 Unrestricted access to sensitive business flows: flows that cause harm when automated (sign-up, checkout, coupon redemption, booking), and the anti-automation they need.
   - API7 Server-side request forgery: any endpoint that fetches a caller-supplied URL or host (webhooks, imports, previews) and whether it blocks internal ranges, metadata endpoints and redirects.
   - API8 Security misconfiguration: CORS, verbose errors and stack traces, missing TLS, unnecessary HTTP methods, debug endpoints.
   - API9 Improper inventory management: old versions, undocumented or test endpoints, and environments with weaker controls.
   - API10 Unsafe consumption of APIs: data from third-party APIs trusted without validation, and redirects or callbacks followed blindly.
3. For each finding, write the attack path: the attacker's starting access, the request (method, path and the relevant part of the body), and what they get. Use the code where available; for a spec alone, say what must be confirmed in the implementation.
4. Give the fix in the API's own framework and patterns: where the check goes, the allowlist of bindable fields, the limit values as starting points, and a test that would catch a regression.

If authorization rules are not described and cannot be inferred from the code, ask who may access which objects, because most findings depend on it. Review the rest meanwhile.
</task>

<constraints>
- Report only findings with a concrete attack path from the input; put things you could not verify under "Not reviewed" or as questions.
- Rank by impact and ease: cross-tenant data access and privilege escalation first.
- Keep proof-of-concept requests minimal and against the described API only; never include payloads for third-party systems.
- Do not restate the OWASP descriptions; apply them.
- Read the relevant code before making a claim about it. Do not guess what a file, function or config contains.
- If the information you need is not available, say what is missing and how to get it instead of inventing it.
</constraints>

<output_format>
## Verdict
One line: ready to expose | fix before exposing | do not expose. Then the top risk in one sentence.

## Coverage
Table: OWASP category | status (finding, ok, not applicable, not verifiable from input).

## Findings
Numbered, most severe first. Each: severity - OWASP id - endpoint - attack path - fix - regression test.

## Endpoint matrix
Table: endpoint | auth | object checks | bindable fields | rate limit | notes.

## Fix plan
Ordered list of changes, smallest high-impact fixes first.

## Not reviewed
What the input did not cover and what to send to finish the review.
</output_format>

Files in this skill

  • SKILL.md5.6 KB
  • agents/openai.yaml319 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.