All skills
hardw00t avatar

/api-security

@f9bb3b2

Router skill for API penetration testing across REST, GraphQL, gRPC, and WebSocket. Covers OWASP API Top 10 (2023) including BOLA/BFLA/BOPLA, JWT attack chains, GraphQL introspection abuse, and mass assignment. Invoke when the user asks to pentest an API, analyze OpenAPI/Swagger, test auth/authorization, fuzz endpoints, or find API vulnerabilities.

Use this Skill: https://skilld.dev/gh/hardw00t/ai-security-arsenal/api-security

This session only. Nothing lands on disk.

examplesgraphql_bola_finding.md

≈388 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Example: GraphQL Mutation BOLA Finding Blueprint

{
  "id": "APISEC-2026-003",
  "title": "GraphQL updateUser mutation allows role change on other users",
  "severity": "critical",
  "confidence": "confirmed",
  "cwe": "CWE-639",
  "owasp": "API1:2023",
  "owasp_api_id": "API1:2023",
  "cvss": 9.0,
  "endpoint": "/graphql",
  "http_method": "POST",
  "api_type": "graphql",
  "auth_context": "cross-user",
  "evidence": {
    "graphql_query": "mutation { updateUser(id: \"userB-uuid\", input: { role: \"admin\" }) { id role } }",
    "request": "POST /graphql HTTP/1.1\nHost: target.tld\nAuthorization: Bearer <userA_token>\nContent-Type: application/json\n\n{\"query\":\"mutation { updateUser(id: \\\"userB-uuid\\\", input: { role: \\\"admin\\\" }) { id role } }\"}",
    "response": "HTTP/1.1 200 OK\n\n{\"data\":{\"updateUser\":{\"id\":\"userB-uuid\",\"role\":\"admin\"}}}"
  },
  "reproduction": [
    "Authenticate as userA.",
    "Issue mutation { updateUser(id: \"<userB-id>\", input: { role: \"admin\" }) { id role } }.",
    "Observe successful update of another user's role."
  ],
  "remediation": "Enforce per-object authorization in resolvers. updateUser must verify the caller is either the target user or has administrative rights. Prefer centralizing checks with a GraphQL Shield / authorization directive rather than per-resolver ad-hoc code.",
  "references": [
    "https://owasp.org/API-Security/editions/2023/en/0xa1-broken-object-level-authorization/",
    "https://cwe.mitre.org/data/definitions/639.html"
  ]
}

Source: SKILL.md on GitHub

1 warning16d4 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    The analyzed skill contains standard penetration testing guides, methodology documents, and common vulnerability checklists for API security auditing. No malicious behavior, prompt injection, or hidden execution channels were detected.

  • Socket16d

    3 alerts: gptSecurity

  • Snyk16d

    Risk: LOW · No issues

  • Runlayer7mo

    1/1 file flagged

Signed by skilld at f9bb3b2. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 6 months ago

README badge

README badge for hardw00t/ai-security-arsenal/api-security