api-attacker

api-attacker is an agent for Claude Code from mukul975/Threatswarm. It costs 105 tokens per session (3,960 once invoked), scanned A, original, MIT.

An API security testing specialist for REST, GraphQL, gRPC, and WebSocket services. It focuses on finding weaknesses in authentication, permissions, input handling, and request limits.

In plain words
What is it for?
Discovering endpoints and testing issues such as IDOR/BOLA, mass assignment, authentication bypasses, JWT attacks, GraphQL abuse, and rate-limit weaknesses.
Why use it?
It provides a structured way to test APIs for common security flaws while keeping targets, evidence, and production risks in view.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Discovering endpoints and testing issues such as IDOR/BOLA, mass assignment, authentication bypasses, JWT attacks, GraphQL abuse, and rate-limit weaknesses.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mukul975/threatswarm/api-attacker
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/mukul975/Threatswarm

Made for: Claude Code.

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 api-attacker

README.md
[![agentmods](https://agentmods.dev/badge/agents/mukul975/threatswarm/api-attacker/github.svg)](https://agentmods.dev/agents/mukul975/threatswarm/api-attacker)
Your own site
<a href="https://agentmods.dev/agents/mukul975/threatswarm/api-attacker"><img src="https://agentmods.dev/badge/agents/mukul975/threatswarm/api-attacker/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 api-attacker

Your own site · 80×15
<a href="https://agentmods.dev/agents/mukul975/threatswarm/api-attacker"><img src="https://agentmods.dev/badge/agents/mukul975/threatswarm/api-attacker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,960 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00105 $0.03960
Opus 5.5 $0.00042 $0.01584
Sonnet 5.5 $0.00021 $0.00792
Haiku 4.5 $0.00011 $0.00396

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

Security

Grade A, and why

api-attacker scanned grade A with 1 finding 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.

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}" -X $method "$BASE_URL/$endpoint" \
.claude/agents/api-attacker.md · 327 lines

How it starts

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

Cybersecurity Skills (Invoke First)

Before starting API testing, invoke these skills via the Skill tool:

  • cybersecurity-skills:conducting-api-security-testing
  • cybersecurity-skills:performing-graphql-security-assessment
  • cybersecurity-skills:exploiting-idor-vulnerabilities
  • cybersecurity-skills:testing-api-for-broken-object-level-authorization
  • cybersecurity-skills:exploiting-mass-assignment-in-rest-apis
  • cybersecurity-skills:exploiting-jwt-algorithm-confusion-attack
  • cybersecurity-skills:performing-api-fuzzing-with-restler

Scope Enforcement

Verify API base URL and target domains are in scope.txt. Rate limiting tests may generate high volume — confirm production systems are excluded. Document all endpoints tested with HTTP method, status code, and timestamp.

API Discovery

mkdir -p evidence/$(date +%Y%m%d)/$TARGET/api/{discovery,auth,bola,massassign,graphql,jwt}

# Probe common API endpoints
ffuf -u "$BASE_URL/FUZZ" \
  -w /usr/share/seclists/Discovery/Web-Content/api/api-endpoints.txt \
  -mc 200,201,204,301,302,400,401,403,405,422 \
  -o evidence/$(date +%Y%m%d)/$TARGET/api/discovery/ffuf_endpoints.json \
  -of json \
  -t 50 2>&1

# Try common API versioning prefixes
ffuf -u "$BASE_URL/FUZZ/users" \
  -w /usr/share/seclists/Discovery/Web-Content/api/api-with-prefix.txt \
  -mc 200,201,204,400,401,403 \
  -o evidence/$(date +%Y%m%d)/$TARGET/api/discovery/version_discovery.json \
  -of json 2>&1

# Try different HTTP methods on discovered endpoints
for endpoint in $(cat evidence/$(date +%Y%m%d)/$TARGET/api/discovery/discovered_endpoints.txt 2>/dev/null); do
  echo "=== $endpoint ===" >> evidence/$(date +%Y%m%d)/$TARGET/api/discovery/method_test.txt
  for method in GET POST PUT PATCH DELETE OPTIONS HEAD; do
    STATUS=$(curl -s -o /dev/null -w "%{http_code}" -X $method "$BASE_URL/$endpoint" \
      -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json")
    echo "$method $endpoint → $STATUS" >> evidence/$(date +%Y%m%d)/$TARGET/api/discovery/method_test.txt
  done
done

# Check for documentation exposure
for path in swagger.json openapi.json openapi.yaml api-docs api/swagger api/docs \
    swagger/index.html swagger-ui.html redoc v1/api-docs v2/api-docs; do
  curl -s -o /dev/null -w "%{http_code} $path\n" "$BASE_URL/$path" 2>&1
done | grep -v "^404" | tee evidence/$(date +%Y%m%d)/$TARGET/api/discovery/docs_found.txt

# Arjun — hidden parameter discovery
arjun \
  -u "$BASE_URL/api/endpoint" \
  --stable \
  -oJ evidence/$(date +%Y%m%d)/$TARGET/api/discovery/arjun_params.json \
  2>&1 | tee evidence/$(date +%Y%m%d)/$TARGET/api/discovery/arjun.log

Read the full file on GitHub · 327 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 · 327 lines · 0 tokens per session scan A 31dd42e8cd12

Subscribe to this mod's changes

api-attacker is an agent published in the GitHub repository mukul975/Threatswarm (89 stars, last pushed 5mo ago), licensed MIT. It adds 105 tokens to every session and 3,960 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

api-security

Delegates to this agent when the user asks about API security testing, REST API attacks, GraphQL exploitation, OAuth/OIDC vulnerabilities, JWT attacks, API enumeration, or web service penetration testing methodology.

0xSteph/pentest-ai-agents · 43 tokens

backend-generator

Backend coding agent. Implements backend sprints from the product spec, one feature at a time. Focuses on API correctness, data integrity, test coverage, and robust error handling. Use for backend implementation sprints.

superduke/ganvil · 46 tokens

backend-evaluator

Backend QA evaluator. Reviews backend sprint output against acceptance criteria using four dimensions: API correctness, data integrity, code quality, and functional completeness. Runs tests and exercises APIs directly. Use after a backend generator sprint completes.

superduke/ganvil · 47 tokens

angel

Expert Backend Systems Architect. Proactively use for designing scalable backend systems, refactoring plans, API contracts, reliability patterns, and long-term maintenance strategy.

agenisea/ai-design-engineering-cc-plugins · 32 tokens

backend-api-security-backend-security-coder

Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.

wshobson/agents · 40 tokens

llm-redteam

Delegates to this agent when the user asks about LLM and AI system red teaming, prompt injection (direct and indirect), jailbreak techniques, RAG poisoning, model exfiltration, training data extraction, agent and tool-use abuse, MCP server exploitation, AI guardrail bypass, or red teaming a deployed…

0xSteph/pentest-ai-agents · 79 tokens