Skip to content
Back to skills

Api Testing

ASecurity

Methodical API security testing (authn/authz, IDOR/BOLA, mass assignment, injection, rate limits, CORS, info leaks) against in-scope endpoints. Use when an intent targets an API.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 28, 2026
ai-agentsgosqlawstestingapisecurity

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 28, 2026

npx -y skills add viktor-in-the-wire/RedAgent --skill api-testing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Testing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Testing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/viktor-in-the-wire-api-testing/badge)](https://www.skillsdirectory.com/skills/viktor-in-the-wire-api-testing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: api-testing
description: Methodical API security testing (authn/authz, IDOR/BOLA, mass assignment, injection, rate limits, CORS, info leaks) against in-scope endpoints. Use when an intent targets an API.
---

# API testing checklist

Work through only the items relevant to the intent's asset. Save request+response for anything notable.

## The six coverage classes (columns of `tools/matrix.py`)
Every endpoint is supposed to be tried against these. One real request per class is the minimum; record it as a fact and close the cell.
- `anon`: call it with no credentials at all. 200 with data, or a write that succeeds, is a finding.
- `xuser`: with user A's token, use user B's object (id in path, query or body). Needs two test accounts you registered yourself.
  When it looks like it works (A got something of B's), prove it with `tools/validate.py` (canary planted in B's data, see the
  `verify-finding` skill) before calling it a finding. An HTTP 200 with a body is not proof: it may be A's own data or public data.
- `role`: with a low-privilege token, call a privileged function (admin routes, other users' lists, config).
- `massassign`: on create/update, add fields the client never sends (`role`, `isAdmin`, `userId`, `price`, `id`).
- `verb`: try the other HTTP methods on the same path (GET to PUT/PATCH/DELETE/POST, with and without auth).
- `exposure`: verbose errors, stack traces, secrets or hashes in bodies, directory listings, debug or docs endpoints on the same path.
Cells for classes that cannot apply (no such function, read-only data) are closed with `--na "<reason>"`, not skipped silently.

## Access control (highest value)
- **BOLA/IDOR:** with user A's session, request user B's object IDs (numeric, UUID, slug). Compare status and body.
  Try changing the ID in path, query, body and headers.
- **Function-level:** call admin/privileged routes as a normal user or unauthenticated. Try verb swapping
  (GET->PUT/DELETE) and path variants (`/api/v1/` vs `/api/v2/`, trailing slash, case).
- **Mass assignment:** add fields such as `role`, `isAdmin`, `userId`, `price` to create/update requests.

## Authentication
- Missing/weak token validation (none-alg JWT, unsigned, expired still accepted), tokens in URLs, session
  fixation, password reset flaws, user enumeration via response differences.
- Do not brute-force or credential-stuff. Ask the user first, and check program rules.

## Input handling
- Injection (SQL/NoSQL/command/SSTI/XSS) with **harmless probes first** (`'`, `"`, `{{7*7}}`, `<x>`), then confirm
  with minimal payloads. No data extraction beyond one proof value. `sqlmap` only with explicit user approval.
- SSRF on URL-taking params: only point at hosts in scope (e.g. an in-scope listener). Do not hit cloud metadata.
- File upload, path traversal, open redirect, XXE where relevant.

## Config and exposure
- CORS (`Origin` reflection with credentials), security headers, verbose errors/stack traces, debug endpoints,
  exposed docs, secrets in responses, directory listing.
- **Prove a listing with one file.** If a directory listing or index shows files, fetch exactly ONE of them (save it to
  `evidence/`) and quote from it: the finding is "this file is readable", not just "a listing exists". One file only, never a bulk download.
- Rate limiting on sensitive actions: test with a **handful** of requests, never a flood.

## Recording
For each real issue: save the exact request/response to `evidence/`, pick a verbatim `--quote` that proves it
(e.g. another user's email in the body), then run `finding add` and `finding verify`. See the `verify-finding` skill.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.