PluginBench
Skill
Pass
Audit score 90

api-sec

yaklang/hack-skills

Entry point router for API security testing—choose between recon, authorization, token abuse, and GraphQL workflows.

What is api-sec?

This is a routing skill that helps you triage API security issues and decide which deeper API topic skill to use next. Start here when testing REST APIs, mobile backends, or GraphQL endpoints to determine whether the issue involves documentation, object authorization, token trust, or hidden parameters.

  • Routes API security findings to specialized skills (recon, authorization, JWT abuse, GraphQL)
  • Provides quick triage table to match observations to the right workflow
  • Recommends testing order: documentation → authorization → tokens → GraphQL/hidden fields
  • Covers REST APIs, mobile backends, and GraphQL endpoints

How to install api-sec

npx skills add https://github.com/yaklang/hack-skills --skill api-sec
Claude Code
Cursor
Windsurf
Cline

How to use api-sec

  1. 1.Identify the API type (REST, mobile backend, or GraphQL)
  2. 2.Use the Quick Triage table to match your observation to a route
  3. 3.Follow the Recommended Flow order: documentation → authorization → tokens → GraphQL
  4. 4.Install and run the routed skill (api-recon-and-docs, api-authorization-and-bola, api-auth-and-jwt-abuse, or graphql-and-hidden-parameters)

Use cases

Good for
  • You find Swagger or OpenAPI documentation and need to know what to test next
  • IDs appear in URLs or JSON and you need to check object authorization
  • JWT tokens are visible in traffic and you want to evaluate token abuse vectors
  • GraphQL endpoints or batched JSON arrays are present and you need to check for hidden fields
  • Registration or login endpoints accept extra fields and you need to route to both authorization and JWT skills
Who it's for
  • API security testers
  • Penetration testers evaluating REST or GraphQL backends
  • Security researchers triaging API vulnerabilities
  • Developers building API security test plans

api-sec FAQ

When should I use this skill vs. a specific API skill?

Use this skill first to understand which API security category your finding belongs to. Once you know the category, install and use the deeper skill for that topic.

What if my API has multiple issues (e.g., both JWT and BOLA)?

The Recommended Flow handles this: test documentation first, then authorization, then tokens. You may need to run multiple routed skills in sequence.

Does this skill test APIs directly?

No, this is a routing and triage skill. It helps you decide which specialized skill to use. The actual testing happens in the routed skills.

What APIs does this cover?

REST APIs, mobile backends, and GraphQL endpoints. It also references auth-sec and business-logic-vuln for related categories.

Full instructions (SKILL.md)

Source of truth, from yaklang/hack-skills.


name: api-sec description: >- Entry P1 category router for API security. Use when choosing between API recon, authorization, token abuse, and hidden-parameter workflows before any deeper API topic skill.

API Security Router

This is the routing entry point for API security testing.

Use this skill first to decide whether the API issue is mostly recon/docs, object authorization, token trust, or GraphQL/hidden parameters, then route to a deeper topic skill.

When to Use

  • The target exposes REST APIs, mobile backends, or GraphQL endpoints
  • You need to define API testing order before going into specific topics
  • You want to handle object authorization, JWT, GraphQL, and hidden fields as separate tracks

Skill Map

  • API Recon and Docs: OpenAPI, Swagger, version drift, hidden documentation
  • API Authorization and BOLA: BOLA, BFLA, method abuse, hidden writable fields
  • API Auth and JWT Abuse: bearer token, header trust, claim abuse, rate-limit bypass
  • GraphQL and Hidden Parameters: introspection, batching, undocumented fields, hidden parameters

Quick Triage

ObservationRoute
Swagger or OpenAPI is presentapi-recon-and-docs
IDs appear in URL, JSON, headers, or GraphQL argsapi-authorization-and-bola
JWT token visible in trafficapi-auth-and-jwt-abuse
/graphql or batched JSON arrays are presentgraphql-and-hidden-parameters
Registration, login, or profile updates accept extra fieldsapi-authorization-and-bola then api-auth-and-jwt-abuse

Recommended Flow

  1. Start with exposed endpoints and documentation assets
  2. Then evaluate object-level and function-level authorization
  3. Then evaluate token, header, signature, and rate-limit boundaries
  4. If GraphQL or complex JSON is present, continue with hidden fields and schema abuse

Related Categories

  • auth-sec
  • business-logic-vuln
  • recon-for-sec