agentleFS
awarexoneawarexone/AXguard/api-security/SKILL.md

api-security

Skill18 starsChanged 3 months agoMITView on GitHub

Analyze REST/RPC/API security design — use for BOLA/BFLA, mass assignment, auth on endpoints, rate limits, inventory gaps, and unsafe outbound API consumption (OWASP API Top 10 2023).

24 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use src-hunter, database-security and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • xAmirHamza77Skill

    src-hunter

    实战 SRC / 众测 / Bug bounty vulnerability挖掘工作流 skill。包含:5 phasemethodology(intake → recon → enum → hunt → report)、19 个攻击类 playbook(SQLi/XSS/RCE/SSRF/IDOR/CSRF/Path Traversal/File Upload/SSTI/XXE/Race/HTTP Smuggling/OAuth/JWT/SAML/GraphQL/Mobile/LLM/DoS)、305 个结构化 payload、263 个 WAF/EDR bypass变体、2887 份 HackerOne 真实 High/Critical 已披露案例、77,000+ WooYun 案例统计、国产 OA / 中间件指纹库、银行 / 电信行业垂直 playbook。当用户提到 "src 挖洞 / src vulnerability挖掘 / bug bounty / 众测 / hackerone / vulnerability赏金 / SRC / 任意 X vulnerability / penetration testing" 或问"如何挖某个target / 怎么测某个 API / 如何bypass WAF" 时触发。

    Also in 5 projects that use this

  • JeremyMorganSkill

    database-security

    Examines all database interactions for injection, access control, encryption, and data-exposure risks. Use when auditing database and data-layer security.

    Also in 5 projects that use this

  • xAmirHamza77Skill

    attack-chain

    Use for authorized multi-stage attack-path planning and orchestration when a task spans reconnaissance, initial access, privilege escalation, lateral movement, or impact assessment. Route single-stage tasks directly to their specialist skill.

    Also in 4 projects that use this

  • +9 more from xAmirHamza77

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 17 edited versions we read keep these.

  • 2

    Distinctive

    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:

    Call admin/privileged functions (API5).

    line 60
  2. Distinctive:

    Check auth mechanisms for token quality, credential stuffing resistance (API2) — hand deep JWT/OAuth to those skills.

    line 71

“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “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

API Security

Purpose

Provide a practitioner checklist for HTTP API pre-ship review aligned to OWASP API Security Top 10:2023 — object/function authZ, property controls, consumption limits, inventory, and SSRF/outbound trust.

When to Use / When Not to Use

Use when:

  • REST/JSON-RPC/gRPC-gateway APIs expose object IDs, admin functions, or bulk operations.
  • Reviewing mass assignment / DTO binding, pagination limits, or webhook callbacks.
  • Building the authZ portion of /axguard-audit for API-heavy apps.

Do not use when:

  • Issue is purely browser DOM XSS with no API shape concerns (xss-analysis).
  • Narrow single-class sink already identified (go straight to sql-injection, ssrf-analysis, etc.).

Security Concepts

APIs fail when identity ≠ authorization. Object IDs in paths/bodies require ownership checks (BOLA). Property-level expose/bind risks hide in serializers. Resource limits and business-flow abuse are first-class API risks, not afterthoughts.

Threat Model

Attacker goals:

  1. Access/modify other users’ objects (API1).
  2. Call admin/privileged functions (API5).
  3. Overwrite role/price via mass assignment (API3).
  4. Exhaust resources or abuse purchase/invite flows (API4/API6).
  5. Pivot via SSRF or trust unsafe third-party API responses (API7/API10).

Analysis Workflow

  1. Inventory endpoints (OpenAPI/routes) vs deployed reality (API9).
  2. For each object-ID parameter: confirm authN + ownership/tenant checks (API1).
  3. For privileged operations: confirm role/function checks independent of UI hiding (API5).
  4. Review serializers/DTO bind allowlists — reject unexpected properties (API3 / CWE-915).
  5. Check auth mechanisms for token quality, credential stuffing resistance (API2) — hand deep JWT/OAuth to those skills.
  6. Confirm rate limits, payload size, pagination caps (API4); sensitive flow step-up/abuse controls (API6).
  7. Review outbound URL fetches (API7 → ssrf-analysis) and parsing of third-party responses (API10).
  8. Flag verbose errors, permissive CORS, default keys (API8).

Evidence Requirements

  • Route/handler location
  • Missing control mapped to a specific API Top 10 category
  • Object/property/function affected
  • Confidence based on code proof, not scanner alone

False Positive Controls

  • Endpoints that are public by design with no sensitive data
  • IDs that are capability tokens (unpredictable, unguessable) and still authZ-checked
  • Admin-only networks with strong edge auth (document residual risk; do not auto-close)

Remediation

  1. Centralize authZ helpers; test BOLA/BFLA with two-user fixtures.
  2. Explicit response/request DTOs; no blind **kwargs / mass assign.
  3. Rate-limit and quota by user/IP/token; harden expensive endpoints.
  4. Maintain accurate API inventory; disable shadow/old versions.
  5. Harden CORS, errors, and secrets; validate outbound destinations and third-party payloads.

Verification

Inventory APIs → AuthZ + DTO + limits review → Re-run axguard → Add two-user ownership tests

Related Skills

  • authorization-analysis, authentication-analysis, jwt-security, oauth-security
  • graphql-security, ssrf-analysis
  • security-triage, security-remediation

Framework Mapping

  • CWE-639, CWE-862, CWE-863, CWE-915
  • OWASP A01:2021, A04:2021
  • OWASP API1:2023 through API10:2023

References

Research Provenance

Primary sources:

  • OWASP API Security Top 10:2023; OWASP A01/A04:2021; CWE-639/915/862/863 (accessed 2026-09-15)

Secondary / internal:

  • AXGuard rules/auth.json, /axguard-auth, /axguard-audit
  • AwareXone Agentic-Bug-Hunter API methodology (concepts only; not copied)

Datasets:

  • UVID HF dataset — category linkage concepts only (MIT license metadata review 2026-09-15)

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.