Tests application-level business logic security by mapping intended workflows then probing for value abuse, state machine bypass, trust boundary violations, replay attacks, and quota manipulation. Domain-agnostic for SaaS, e-commerce, banking, gaming, and APIs.
Ships in agent-smith. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in application-level business logic security. Your goal: understand the application's intended behavior first, then systematically find every way to subvert it — abusing values, bypassing workflows, crossing trust boundaries, replaying operations, and exploiting assumptions the developers made about how users behave.
This skill is domain-agnostic. The same patterns apply to an e-commerce checkout, a SaaS subscription system, a banking transfer flow, a gaming leaderboard, a ticketing system, or a social platform.
Request: $ARGUMENTS
RE-RUN TRIGGERS — re-run as new logic surface appears, not once per scan. A fresh invocation PER new stateful workflow, PER new numeric/quantity field, and PER new identity/tenant boundary — each newly mapped flow, field, or boundary is uncovered until this skill runs against it. Discovering more surface later in the engagement means running this skill again, not assuming the first pass covered it.
| Tool | Use for |
|---|---|
session(action="start", options={...}) | Define target, scope, depth, and hard limits — always call this first |
session(action="complete", options={...}) | Mark the scan done and write final notes |
kali(command=...) | curl parallel requests (race conditions, replay), python3 analysis scripts |
http(action="request", ...) | Raw HTTP — individual probes. Set poc=True for confirmed findings |
http(action="save_poc", ...) | Save a confirmed exploit as a raw .http file in pocs/ |
scan(tool="spider", ...) | Crawl the app to discover all endpoints and flows |
report(action="finding", data={...}) | Log a confirmed vulnerability with evidence to findings.json |
report(action="diagram", data={...}) | Save a Mermaid diagram of workflows and trust boundaries |
report(action="dashboard", data={"port": 7777}) | Serve dashboard.html at localhost:7777 |
report(action="note", data={...}) | Write a reasoning note or decision to the session log |
| Category | OWASP | What it finds |
|---|---|---|
| Value / Quantity Logic | A04 | Negative, zero, overflow, rounding on numeric fields |
| Workflow Bypass | A04 | Skipping steps, out-of-order operations, reused one-time tokens |
| State Machine Abuse | A04 | Forcing illegal state transitions |
| Trust Boundary / BOLA | API1, A01 | Horizontal/vertical access to other users' resources |
| BFLA | API5 | Calling functions intended for higher-privilege roles |
| Idempotency / Replay | A04 | Duplicate submissions, double-spend, reference reuse |
| Quota / Limit Bypass | A04 | Exceeding stated resource, rate, or usage limits |
| Time / Date Manipulation | A04 | Exploiting time-based logic (expiry, windows, promotions) |
| Predictability | A07 | Sequential IDs, guessable codes, enumerable references |
| Multi-Tenant Isolation | A01 | Tenant A accessing Tenant B's data |
| Depth | What runs | Default limits |
|---|---|---|
quick | Value logic probes (negative/zero/overflow) + BOLA on primary resource endpoints | $0.10 · 20 min · 10 calls |
standard | Quick + workflow bypass + replay/idempotency + BFLA + quota bypass | $0.50 · 60 min · 25 calls |
thorough | Standard + full state machine mapping + multi-tenant isolation + time manipulation + predictability analysis | unlimited · unlimited · unlimited |
This skill is understanding-first. Do not probe until you have mapped intended behavior.
If focus or depth are not specified:
Target:
<extracted URL>Focus area?value|workflow|trust|replay|quota|allDepth?quick|standard|thorough
Do not skip this phase. Testing business logic without understanding the intended flows produces noise and misses the real vulnerabilities.
/openapi.json, /swagger.json, /api-docs, /static/openapi.jsonscan(tool="spider", target=URL, options={"depth": 3})report(action="diagram", data={...}) with a Mermaid flowchart of all identified workflows and trust boundariesreport(action="note", data={...}) listing every flow and role foundOnly begin probing after completing this phase.
Apply to every field representing a quantity, amount, price, score, count, rate, limit, or similar numeric value.
1a — Sign manipulation
-1, -100, -99999 for any quantity or amount fieldquantity=-1 in a cart gives a credit; amount=-100 in a transfer increases the sender's balance1b — Zero-value operations
0 for any quantity or amount1c — Rounding and sub-unit values
0.001, 0.0001, 0.000011d — Overflow
2147483647 (INT32_MAX) and 2147483648 (INT32_MAX + 1)9999999999999 (large values that exceed typical field sizes)1e — Exceeding stated limits
max + 1, max × 21f — Currency / unit manipulation (when applicable)
rate or exchange_rate field via mass assignment (cross-reference /param-fuzz Phase 5)from_currency == to_currency: zero-fee conversion?Finding criteria:
For each multi-step flow identified in Phase 0:
2a — Step skipping Call step N without completing steps 1 through N-1. Map out which endpoint represents each step, then attempt direct access:
2b — Out-of-order execution Call steps in reverse or random order:
2c — One-time token reuse After using a token (password reset link, email verification code, invite token, payment confirmation code), attempt to use it again:
2d — Concurrent step execution Submit two instances of the same step simultaneously (within 100ms):
# Via kali — send step N twice concurrently
curl -s -X POST http://TARGET/api/checkout/confirm ... &
curl -s -X POST http://TARGET/api/checkout/confirm ... &
wait
Does both confirmations succeed? Does the resource get double-provisioned?
Finding criteria:
For any resource with a lifecycle (order states, ticket states, account states, subscription states, content approval states):
3a — Map the state machine
Identify all states (e.g., pending → processing → shipped → delivered → refunded) by observing API responses, OpenAPI spec, or HTML.
3b — Attempt illegal transitions Try every transition that should NOT be allowed:
delivered → pending (reverse a completed state)pending → refunded (skip intermediate states)cancelled → active (resurrect a cancelled resource)free_tier → enterprise (direct tier upgrade without payment)3c — Direct status field injection
For any PATCH or PUT endpoint, inject "status": "approved", "status": "completed", "status": "verified", "state": "active" directly in the request body. Cross-reference /param-fuzz Phase 5 (mass assignment) — if the state field is writable, it's exploitable here.
3d — Privilege state transitions
Can a pending_admin account be forced to admin by submitting the right request before approval completes?
Finding criteria:
4a — BOLA (Broken Object Level Authorization) — horizontal Register two accounts (User A and User B). For every resource endpoint, substitute User A's resource IDs with User B's while authenticated as User A:
GET /api/orders/{B_order_id} as User AGET /api/profile/{B_user_id} as User APUT /api/settings/{B_settings_id} as User ASystematically cover: profiles, messages, orders, files, settings, history, notifications — anything with a user-owned ID.
4b — BOLA — vertical As a regular user, try to access admin-level resources:
GET /api/admin/usersGET /api/admin/logsGET /api/internal/configGET /api/users (all users — should be admin-only)4c — BFLA (Broken Function Level Authorization) Call functions documented or discovered as admin-only while authenticated as a regular user:
DELETE /api/users/{id} (delete any user)POST /api/admin/create-adminPATCH /api/users/{id}/roleGET /api/reports/allFor each: try with user token directly; try with a forged token that has is_admin: true or role: admin in the JWT payload (cross-reference /credential-audit JWT attacks).
4d — Negative ownership attack Can you specify another user as the source of an action rather than the target?
{"from_user_id": victim_id} — charge the victim{"sender_id": victim_id} — send on behalf of victim{"created_by": admin_id} — claim admin created thisFinding criteria:
For every state-changing operation (submit, confirm, pay, send, create, activate, redeem):
5a — Rapid duplicate submission Send the identical request twice within 100ms:
# Via kali — send the same state-changing request twice concurrently
for i in 1 2; do
curl -s -X POST http://TARGET/api/ENDPOINT \
-H "Authorization: Bearer TOKEN" \
-H "Content-Type: application/json" \
-d 'PAYLOAD' &
done
wait
Does the server process both? Is the resource created/consumed twice?
5b — Replay after delay Send the identical request again 5 seconds after the first succeeded. Does the server detect it as a duplicate?
5c — Same reference/idempotency key If the API issues reference numbers or accepts idempotency keys: construct a new request using a previously-used reference number. Does the server reject it?
5d — Mass parallel replay Send 10 identical requests simultaneously:
for i in $(seq 1 10); do
curl -s -X POST http://TARGET/api/ENDPOINT \
-H "Authorization: Bearer TOKEN" \
-d 'PAYLOAD' &
done
wait
How many succeed? Is there a winner-takes-all race, or do all 10 process?
Finding criteria:
For any feature that has a stated cap (API calls per minute, storage quota, seats per org, free-tier resource limit, usage credits):
6a — Direct overage
Send limit + 1 requests; send a resource that puts total storage above the cap; add max_users + 1 to an org. Is the cap enforced server-side or only in the UI?
6b — Negative consumption
Send negative usage values if the system tracks consumption: {"bytes_used": -999999} → does the quota counter go negative (effectively resetting the limit)?
6c — Parallel provisioning race If a quota is checked then consumed in two separate operations (check-then-act), send many concurrent requests that each read "quota available" before any of them deduct:
for i in $(seq 1 20); do
curl -s -X POST http://TARGET/api/resources/create ... &
done
wait
Does each concurrent request pass the quota check before any deduction is recorded?
6d — Account switching / tenant context Create multiple accounts or sub-tenants. Does each one get its own independent quota, or is there a shared pool that can be exhausted from one account and accessed from another?
Finding criteria:
For any feature that depends on time: promotions, expiry windows, rate-limiting windows, cooldowns, scheduled operations, time-based access grants.
7a — Expired token / session reuse After a time-limited token expires (password reset, email verification, promo code, discount), attempt to use it past the stated expiry. Is expiry enforced server-side?
7b — Future-date manipulation For endpoints that accept date parameters: send future dates that move an operation into a more favorable window:
{"valid_until": "2099-12-31"} on a subscription or license{"start_date": "1970-01-01"} to backdate a resource into an active state7c — Race the expiry If a token or window expires at time T, send the request simultaneously across the boundary. Does the server enforce expiry at the database level or just at the API layer?
7d — Cooldown bypass If an action has a cooldown (rate limit per account, one vote per day, one review per item), check if a different account, IP, or session bypasses the cooldown independently.
Finding criteria:
For any value the application generates that is later used as a proof-of-access (order confirmation codes, payment references, invite tokens, voucher codes, authorization codes):
8a — Sample collection Collect 10 sequential samples by performing the action that generates the value 10 times in quick succession.
8b — Delta analysis
samples = ["VALUE1", "VALUE2", "VALUE3"] # collected values
# Try integer delta
try:
deltas = [int(samples[i+1]) - int(samples[i]) for i in range(len(samples)-1)]
print(f"Integer deltas: {deltas}")
if len(set(deltas)) == 1:
print(f"SEQUENTIAL — consistent delta: {deltas[0]}")
except ValueError:
pass
# Try length + charset entropy
import math
charset = len(set("".join(samples)))
avg_len = sum(len(s) for s in samples) / len(samples)
bits = avg_len * math.log2(max(charset, 2))
print(f"Entropy: {bits:.1f} bits (charset={charset}, avg_len={avg_len:.1f})")
8c — Exploitation of predictability If samples show a consistent delta or low entropy:
Finding criteria:
Thorough depth only. Applicable when the app has organizations, workspaces, merchants, or other tenant namespaces.
9a — Setup Register two separate tenant accounts (Tenant A and Tenant B) with distinct resources.
9b — Cross-tenant resource access As Tenant A, attempt to access Tenant B's resources using Tenant B's resource IDs:
9c — Shared resource pool Does an operation by Tenant A consume from a shared pool that affects Tenant B? (e.g., shared rate limit, shared storage bucket, shared ID namespace)
9d — Admin escalation across tenants If Tenant A has an admin user, does that admin access extend to Tenant B's data or configuration?
Finding criteria:
| Condition | Chain to |
|---|---|
| Mass assignment or boundary injection suspected | /param-fuzz — systematic parameter-level testing |
| Predictable IDs or low-entropy tokens confirmed | /param-fuzz Phase 6 (entropy analysis) for deeper measurement |
| Auth bypass or JWT forgery needed for BFLA | /credential-audit — JWT attacks and token manipulation |
| BOLA confirmed — want full injection testing on the exposed surface | /web-exploit — injection testing on now-accessible endpoints |
| RCE or critical chain achieved | /post-exploit — privilege escalation and persistence |
What SKILL.md sets; muted values are Claude Code's defaults
36 skills in this plugin
/ad-assessmentActive Directory security audit using the MITRE ATT&CK framework. Full domain enumeration, trust mapping, GPO analysis, ACL abuse paths, ADCS attacks (ESC1-ESC8), delegation abuse (constrained/unconstrained/RBCD), fine-grained password policies, LAPS deployment, service account security, and Kerberos configuration.
Uses enum4linux-ng, netexec, impacket, ldapsearch, certipy-ad, bloodhound-python, and rpcclient. Produces attack path diagrams, prioritized risk register, and PoCs. Chains into /gh-export for issue filing.
/aikido-triageTriages Aikido security findings live via the Aikido MCP — no CSV. Splits findings into SCA, SAST, Application Secrets, and Misconfiguration, applies a category-specific verification playbook to each (source-to-sink taint analysis with trust-boundary/reachability assessment for SAST, /analyze-cve chaining for SCA, usage + opt-in liveness checks for secrets, blast-radius reasoning with optional live-chain confirmation for misconfiguration), scores every finding's business impact and severity, then closes confirmed non-issues directly in Aikido after a single review checkpoint.
/ai-redteamAI/LLM red-team assessment using OWASP LLM Top 10 (2025), the OWASP AI Testing Guide (AITG v1, Nov 2025), and OWASP MCP Top 10 runtime testing for agentic/MCP targets. Tests prompt injection, jailbreaks, system prompt leakage, sensitive data extraction, excessive agency, improper output handling, model extraction, content bias, evasion, membership inference, MCP token exposure, and MCP command injection.
Combines Garak (probe-based automated scanning) with agent-driven manual testing via the transform() payload tool - a pure-Python engine (base/cipher/homoglyph/zero-width encodings, mutation fuzzer, bijection scaffold, token-bombs, universal decoder) for jailbreak/injection payloads that slip past input filters. The agent drives multi-turn/crescendo attacks. Includes a conditional MCP recon phase and a post-access AI infrastructure phase (chained from /post-exploit). Produces an OWASP LLM Top 10 + AITG + MCP coverage matrix, findings, a diagram, and PoCs. Chains into /gh-export.
/agent-smith:business-logic <target-url> [focus=value|workflow|trust|replay|quota|all] [depth=quick|standard|thorough]from agent-smith
npx claudepluginhub 0x0pointer/skills --plugin agent-smithOther plugins' skills for the same job