agentleFS
NikoxkxNikoxkx/Agent-Skills/skills/security/api-security-auditor/SKILL.md

api-security-auditor

Skill1 starsChanged 5 months agoApache-2.0View on GitHub

Audits REST or GraphQL APIs for OWASP API Top 10 vulnerabilities. Use when reviewing or testing the security of an API before launch or after changes.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before launching a new API or major version.

    line 19
  2. Distinctive:

    After significant changes to auth, authorization, or data access logic.

    line 20
  3. Distinctive:

    Test horizontal (same role, different user) and vertical (lower role accessing higher).

    line 52
  4. Distinctive:

    Test with high volume from one IP / one user.

    line 61
  5. Distinctive:

    Check for per-user vs per-IP limits.

    line 62
  6. Distinctive:

    Look for expensive operations without limits (search, export, report generation).

    line 63

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Overview

Performs a structured security audit of REST or GraphQL APIs against the OWASP API Security Top 10. Provides detection methods (code review + testing), authentication/authorization review, BOLA/IDOR testing procedure, injection point identification, rate limiting testing, and a professional audit report template with findings, risk ratings, and remediation recommendations.

When to Use This Skill

  • Before launching a new API or major version.
  • After significant changes to auth, authorization, or data access logic.
  • As part of a security review or bug bounty prep.
  • The user asks for an "API security audit" or "OWASP API Top 10 review".

Prerequisites

  • Access to the API source code and/or a running instance (staging preferred).
  • Authentication credentials or tokens for different roles/users (if testing with auth).
  • Tools: Postman/Insomnia or curl, Burp Suite or ZAP (for proxying), or custom scripts.

Steps

  1. OWASP API Top 10 2023 checklist (with detection method for each):
    • API1:2023 Broken Object Level Authorization (BOLA/IDOR)
    • API2:2023 Broken Authentication
    • API3:2023 Broken Object Property Level Authorization
    • API4:2023 Unrestricted Resource Consumption (rate limiting, DoS)
    • API5:2023 Broken Function Level Authorization
    • API6:2023 Unrestricted Access to Sensitive Business Flows
    • API7:2023 Server Side Request Forgery (SSRF)
    • API8:2023 Security Misconfiguration
    • API9:2023 Improper Inventory Management
    • API10:2023 Unsafe Consumption of APIs (third-party)
  2. Authentication & session review:
    • JWT validation (alg, exp, signature, claims).
    • Token storage and transmission.
    • OAuth scopes and PKCE.
    • Password/reset flows.
  3. Authorization testing (BOLA/IDOR):
    • Systematically change IDs in requests (user_id, order_id, document_id) while authenticated as different users.
    • Test horizontal (same role, different user) and vertical (lower role accessing higher).
    • GraphQL: test for missing authorization on every field/resolver.
  4. Injection & input validation:
    • SQLi, NoSQLi, command injection in query params, body, headers.
    • Mass assignment / over-posting.
    • GraphQL: introspection enabled in prod? deep nesting DoS?
  5. Rate limiting & resource limits:
    • Test with high volume from one IP / one user.
    • Check for per-user vs per-IP limits.
    • Look for expensive operations without limits (search, export, report generation).
  6. Output:
    • Structured audit report (Markdown template) with:
      • Executive summary
      • Findings table (OWASP item | Severity | Location | Evidence | Recommendation)
      • Positive findings (what is done well)
      • Remediation roadmap
    • Specific test cases / curl commands used.
    • Code-level indicators to look for in reviews.

Examples

A complete audit report template filled with realistic findings for a typical REST + GraphQL API (BOLA on /users/{id}/orders, missing rate limit on search, JWT alg confusion, over-fetching in GraphQL, etc.) plus the exact test procedures and curl examples used to discover them is included.

Edge Cases & Error Handling

  • Authorization logic in the client: Flag as critical — server must always enforce.
  • GraphQL: Field-level auth, query cost analysis, depth limiting.
  • Microservices: Auth must be validated at every service boundary (or use a service mesh with mTLS + auth).

Verification

  1. The auditor follows the checklist and produces a report.
  2. At least the critical/high findings have clear reproduction steps.
  3. Code review confirms the vulnerable patterns exist (or the fix is in place).
  4. Re-test after remediation — the issue is closed.
  5. Success: The API has no critical OWASP API Top 10 issues, or they are explicitly accepted with compensating controls and timelines.

References

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.