inventory-api-discovery

inventory-api-discovery is an agent for Claude Code from Stickman230/claude-pentest. It costs 76 tokens per session (2,784 once invoked), scanned A, original, MIT.

A web-security agent that finds and lists the ways an application exposes an API. APIs are interfaces that let software exchange data, including REST, GraphQL, SOAP, and WebSocket services.

In plain words
What is it for?
Use it to discover API documentation, routes, schemas, and live connections before testing for injection, access-control, or login weaknesses.
Why use it?
It gives security testing a map of documented, versioned, and undocumented endpoints instead of relying only on visible web pages.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the pentest plugin — 7 skills, 5 commands, 15 agents shipped together

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.

agentmods
npx agentmods add agents/stickman230/claude-pentest/inventory-api-discovery
Clone the repo
git clone --depth 1 https://github.com/Stickman230/claude-pentest

Made for: Claude Code.

Or install pentest, the plugin that ships this one along with the rest of its 7 skills, 5 commands, 15 agents.

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 inventory-api-discovery

README.md
[![agentmods](https://agentmods.dev/badge/agents/stickman230/claude-pentest/inventory-api-discovery.svg)](https://agentmods.dev/agents/stickman230/claude-pentest/inventory-api-discovery)
Your own site
<a href="https://agentmods.dev/agents/stickman230/claude-pentest/inventory-api-discovery"><img src="https://agentmods.dev/badge/agents/stickman230/claude-pentest/inventory-api-discovery.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,784 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00076 $0.02784
Opus 5 $0.00038 $0.01392
Sonnet 5 $0.00015 $0.00557
Haiku 4.5 $0.00008 $0.00278

Measured 6d ago against content hash ea0f4a441b03, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

inventory-api-discovery 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 6d 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.

curl -so /dev/null -w "%{http_code}" https://TARGET/swagger.json
plugins/pentest/agents/inventory-api-discovery.md · 224 lines

How it starts

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

Inventory API Discovery

Discover and catalog all API endpoints across REST, GraphQL, SOAP, and WebSocket protocols. Find API documentation, version endpoints, and undocumented routes. Produce a structured inventory that feeds downstream injection, IDOR, and authentication testing.

Workflow

Phase 1: Recon

  1. Mount skill file:
    Read plugins/pentest/skills/web-application-mapping/SKILL.md
    
  2. Check for openly accessible API documentation first — documentation is the best map:
    # OpenAPI / Swagger
    curl -so /dev/null -w "%{http_code}" https://TARGET/swagger.json
    curl -so /dev/null -w "%{http_code}" https://TARGET/swagger.yaml
    curl -so /dev/null -w "%{http_code}" https://TARGET/openapi.json
    curl -so /dev/null -w "%{http_code}" https://TARGET/openapi.yaml
    curl -so /dev/null -w "%{http_code}" https://TARGET/api-docs
    curl -so /dev/null -w "%{http_code}" https://TARGET/api/swagger-ui.html
    curl -so /dev/null -w "%{http_code}" https://TARGET/v1/swagger.json
    curl -so /dev/null -w "%{http_code}" https://TARGET/v2/swagger.json
    curl -so /dev/null -w "%{http_code}" https://TARGET/v3/swagger.json
    # WSDL / SOAP
    curl -so /dev/null -w "%{http_code}" https://TARGET/service.wsdl
    curl -so /dev/null -w "%{http_code}" "https://TARGET/ws?wsdl"
    # Postman / Insomnia
    curl -so /dev/null -w "%{http_code}" https://TARGET/postman_collection.json
    
    For any path returning 200, fetch the full document:
    curl -s https://TARGET/openapi.json | tee outputs/ENGAGEMENT/activity/openapi-TARGET.json
    
  3. Probe for GraphQL endpoint:
    curl -so /dev/null -w "%{http_code}" https://TARGET/graphql
    curl -so /dev/null -w "%{http_code}" https://TARGET/api/graphql
    curl -so /dev/null -w "%{http_code}" https://TARGET/query
    
  4. Probe for common REST API root paths:
    for path in /api /api/v1 /api/v2 /api/v3 /rest /v1 /v2 /v3 /service /services /endpoint; do
      status=$(curl -so /dev/null -w "%{http_code}" https://TARGET${path})
      echo "${path}: ${status}"
    done 2>&1 | tee outputs/ENGAGEMENT/activity/api-probes-TARGET.txt
    
  5. Log:
    {"timestamp":"...","agent":"inventory-api-discovery","action":"recon","target":"https://TARGET","swagger_found":true,"graphql_found":false,"api_roots":["/api/v1","/api/v2"]}
    

Read the full file on GitHub · 224 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. 6d ago First seen · 224 lines · 76 tokens per session scan A ea0f4a441b03

Subscribe to this mod's changes

inventory-api-discovery is an agent published in the GitHub repository Stickman230/claude-pentest (99 stars, last pushed 2mo ago), licensed MIT. It adds 76 tokens to every session and 2,784 once invoked, about $0.0004 per session on Opus 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

darlene

Use this agent when the user asks to "exploit a vulnerability", "test this exploit", "generate exploit", "attack this endpoint", "run exploitation", "verify the vulnerability", or discusses actively exploiting a confirmed finding. This agent selects the right Hexstrike tool chain for the vulnerability type. Context…

ogrodev/fsociety · 188 tokens

scout

Use this agent when the user asks to "run recon", "enumerate a target", "do reconnaissance", "scan subdomains", "map the attack surface", "discover endpoints", or mentions comprehensive target enumeration. This agent orchestrates multiple Hexstrike tools in parallel for maximum coverage. Context: User wants to start a…

ogrodev/fsociety · 176 tokens

exploit-suggester

Use this agent when the user asks "what exploits exist", "how do I exploit this", "suggest attack vectors", "find vulnerabilities", "searchsploit", "what's vulnerable", "how can I get a shell", or needs exploitation guidance. Examples: Context: After discovering Apache 2.4.49 user: "What exploits are there for this?"…

allsmog/blackbox-claude-plugin · 167 tokens

exploit-runner

Use this agent when a specific CVE is identified and you need to find and run a working exploit. This agent will search GitHub for PoC exploits, clone them, and provide execution guidance. Examples: Context: CVE-2025-32433 identified on Erlang SSH user: "Exploit the Erlang SSH" assistant: Clones…

allsmog/blackbox-claude-plugin · 147 tokens

shell-manager

Use this agent when the user asks to "start a listener", "catch a shell", "manage shells", "send command to shell", "check shell output", "set up reverse shell", or needs to maintain persistent shell access during exploitation. Examples: Context: User has RCE and needs to catch reverse shell user: "Start a listener on…

allsmog/blackbox-claude-plugin · 141 tokens

source-analyzer

Use this agent when you discover source code, backup files, or need to analyze application code for vulnerabilities. Triggers on: "analyze source", "found code", "check for vulnerabilities", "review application", "found backup", "downloaded zip/tar", "requirements.txt", "package.json".

allsmog/blackbox-claude-plugin · 67 tokens