api-security
Skill by BaaRai
Guides an AI assistant through authorized offensive testing of REST, GraphQL, WebSocket and SOAP APIs beyond recon. It is for security testers working under a written engagement.
Install api-security
Built from the published package, never by AI.
git clone --depth 1 https://github.com/BaaRai/ARTEX /tmp/ARTEX && mkdir -p ~/.claude/skills && cp -r /tmp/ARTEX/skills/api-security ~/.claude/skills/api-securityRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/BaaRai/ARTEX /tmp/ARTEX && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ARTEX/skills/api-security ~/.gemini/antigravity-cli/skills/api-securityAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
API Security Testing is a skill for authorized offensive testing of REST, GraphQL, WebSocket and SOAP APIs. It is the hunting counterpart to the api-recon skill, which maps the API surface and stops. This skill attacks the mapped surface through ten phase checklists covering discovery, authentication, authorization (BOLA, IDOR, BFLA), GraphQL abuse, input validation, business logic, WebSocket, rate-limit trust confusion and data exposure.
The skill sets boundaries for the testing. Rate-limit and load tests stay within the engagement's impact budget, and real user data is not exfiltrated to prove a BOLA. Each confirmed finding needs a replayable artifact, and access-control findings need confirmation from a second account or role. It is written for security testers working on authorized engagements.
Written from the project's SKILL.md and checked against it.
What it can do
- Authentication testingChecks JWT weaknesses such as alg none, key confusion and weak HMAC secrets, plus OAuth redirect and state issues.
- Authorization testingTests object-level (BOLA, IDOR) and function-level (BFLA) access control using two sessions or roles.
- GraphQL-specific abuseCovers introspection, field-suggestion leaks, exposed playgrounds, alias overload and batched query bypasses.
- REST input validationCovers method swaps, content-type tampering, NoSQL operator injection, SSRF, parameter pollution and mass assignment.
- Business logic and differential testingCompares API versions and role matrices, and checks coupon, credit and price manipulation on test accounts.
- WebSocket testingCovers endpoint discovery, message injection, oversized messages, type confusion and cross-site WebSocket hijacking.
- Rate-limit trust confusionChecks header spoofing and path variants that bypass a path-keyed limiter, reported without load.
- Data exposure checksCompares API responses to rendered UI fields and checks pagination, error leaks and spec files.
- Regression handoffStores confirmed findings as replayable requests so retests and reporting can re-verify them.
What you need
- A written, authorized engagement scope
- A second account or role for access-control testing
- curl and jq for request replay and diffing
- jwt_tool, installed with pip
- ffuf or kiterunner for endpoint brute force
- Burp Suite with Autorize or AuthMatrix, where available
Try asking
- Test this API for BOLA by replaying user A's session against user B's objects
- Check the JWT in this API for alg none and weak HMAC secrets
- Run the GraphQL checklist on this endpoint, starting with introspection
Good to know
- Rate-limit and load tests are limited to the engagement's written impact budget.
- Denial of service is out of bounds, and race tests use only a few concurrent requests.
- Destructive payloads are for test accounts and resources created for the test.
- Upstream tools such as Vespasian and api.sh are references until verified in the environment.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/api-security/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB
Alternatives to api-security
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
api-security: common questions
Does this skill run denial-of-service or load tests?
No. The source says rate-limit and load tests stay within the engagement's written impact budget, and volume that degrades the service for other users is out of bounds. Race tests use a handful of concurrent requests.
What evidence does it require for a finding?
Every confirmed finding needs a replayable artifact: the exact request, the exact response and the authorization context. Access-control findings need a second account or role to prove the boundary is real.
Does it pull real user data to prove a BOLA?
No. The source says one record the tester is authorized to touch, or the tester's own second account, is sufficient evidence.
How do I install api-security?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is api-security free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is api-security safe to use?
It scores 89 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to api-security?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
