api-security-testing
What it does
This skill guides an automated security scan of an API, using its schema and the OWASP API Security Top 10 as a checklist. It is for security testers and developers who want to check an API for weaknesses.
When to use it
- βWhen someone needs to test a REST, GraphQL or gRPC API for security problems.
- βWhen an API has an OpenAPI or Postman schema that can guide the test.
- βWhen checking an API for authorization flaws, such as one user reading another user's data.
Skill link
https://github.com/usestrix/strix/blob/main/skills/api-security-testing/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI have an OpenAPI file for our API. Can you run a security test that checks whether users can access each other's data?β
5 new skills a week. 1 minute to read.
How it works
The agent gathers the API schema and test accounts, then lets automated agents map the endpoints and try the risky cases. It reports what it could actually exploit.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Security-test an API
APIs fail differently from web UIs: there is no rendered surface to crawl, the interesting bugs are authorization-shaped rather than injection-shaped, and the same endpoint behaves differently per token. This workflow targets those specifics with Strix's autonomous agents, using the current OWASP API Security Top 10 (2023) as the coverage checklist. For the web-app equivalent, the current edition is the OWASP Top 10:2025 β see owasp-top-10-testing.
Install, LLM setup, full CLI flags, and the managed-cloud path are in the penetration-testing-with-strix skill. Read it if strix --version fails or the target is not an API. For a run with no Docker and no LLM key, the same binary drives the managed platform: strix cloud login, then strix cloud scans start ... (details in managed-pentesting-with-strix).
1. Gather what the agents need
APIs are near-impossible to test blind, so collect first:
| Input | Why it matters |
|---|---|
Schema β OpenAPI/Swagger file, Postman collection, GraphQL endpoint (introspection), or a gRPC .proto |
Turns guesswork into full endpoint enumeration. Biggest single win in coverage. An OpenAPI/Swagger or Postman spec (.json/.yaml/.yml) is a target Strix takes directly; a .proto is not, so pass it with --workspace-file. |
| Two sets of credentials/tokens, ideally in different tenants | BOLA/IDOR β API1:2023, still the #1 API risk β can only be proven by accessing tenant A's objects with tenant B's token. |
| A low-privilege and a high-privilege token | Required to prove broken function-level authorization (API5:2023 β a user calling admin-only routes). |
| Example object IDs | Lets agents test ID tampering immediately instead of hunting for valid identifiers. |
| Out-of-scope routes | Payments, mass notification, destructive admin endpoints. |
| Rate limits / WAF in front of the API | Avoids agents burning budget on throttled requests; mention them so testing adapts. |
Ask the user for anything missing β do not fabricate tokens or scan an API they do not own.
2. Run the scan
Pass the spec as a target, not as prose in the instruction β Strix parses OpenAPI/Swagger (.json/.yaml) and Postman collection exports directly, so the agents start from the real endpoint list:
strix -n -t ./openapi.yaml -t https://api.staging.example.com --max-budget 20 \
--instruction "Tenant A token: <tokenA> (org 1111, user id 11, order id 501).
Tenant B token: <tokenB> (org 2222, user id 22).
Admin token: <tokenAdmin>.
Focus: BOLA across orgs (API1), function-level authz on /admin/* (API5), object property level authz on PATCH /users/{id} β both mass assignment and over-exposed fields in list responses (API3), unrestricted resource consumption (API4).
Out of scope: POST /billing/*, POST /notifications/broadcast."
- Postman instead of OpenAPI: a collection export works as a target (
-t ./collection.postman_collection.json), or pull one live with-t postman://<collection-uuid>(optionally"postman://<collection-uuid>?env=<environment-uuid>"), which needsPOSTMAN_API_KEYin the environment. - Many services at once: put one target per line in a file and pass
--target-list ./targets.txt, repeatable and combinable with-t. - Add the backend source for depth:
-t ./services/api -t https://api.staging.example.com. With code access the agents can reason about authorization checks and object ownership rather than inferring them from responses. - gRPC: target the endpoint and pass the definition as a workspace file,
-t https://grpc.staging.example.com --workspace-file ./service.proto. Only.json,.yaml, and.ymlspecs are recognized as targets, so-t ./service.protofails with "Path exists but is not a directory". - GraphQL: point at the GraphQL endpoint and say whether introspection is enabled; call out that you want batching/aliasing abuse, depth/complexity limits, and per-field authorization tested.
- Internal/private APIs unreachable from your machine: use the managed platform's network connector β see managed-pentesting-with-strix.
- Use
--instruction-filewhen the credential/context block gets long, and keep tokens out of shell history and out of committed files. - Supporting files the agents should read but not test, such as an endpoint wordlist or handwritten notes about the tenancy model: pas
FAQ
What inputs does the test need?
The skill asks for a schema such as OpenAPI, Postman, GraphQL introspection or a gRPC proto file, plus test accounts.
Does it need Docker or an LLM key?
The skill describes a managed cloud path for runs without Docker and without an LLM key.
Which standard does it follow?
It uses the OWASP API Security Top 10 from 2023 as its coverage checklist.
Details
Original description by the author
Security-test a REST, GraphQL, or gRPC API with Strix β autonomous agents that enumerate endpoints from an OpenAPI/GraphQL schema (or by crawling), then actually exploit the API-specific vulnerability classes in the OWASP API Security Top 10 (2023) β broken object-level authorization (BOLA/IDOR), broken object property level authorization (excessive data exposure and mass assignment), broken function-level authorization, unrestricted resource consumption, SSRF, injection, and auth/token flaws. Every finding comes with a working proof-of-concept request. Use when the user asks to pentest, secur
repo: usestrix/strix
Popularity
- GitHub stars
- 73k
- Ranking position
- #3095
- License
- Apache-2.0
- Updated
- 10/30/2026
Comments
- β¦
More skills from this repository
application-security-testing
73kHelps your agent plan security tests for a whole product, choosing the right test for each part, running them, and ranking the fixes by real risk.
ci-security-scanning-with-strix
73kShows your agent how to add an automatic security scan to pull requests, so risky code can be flagged before it is merged.
find-security-vulnerabilities-in-code
73kHelps your agent review code for security flaws such as injection and broken access control, and prove which ones are real with test attacks.
fix-security-vulnerabilities-with-strix
73kHelps your agent turn confirmed security findings into targeted code fixes, then re-run the tests to prove each attack no longer works.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.