hunt-shadow-api
Skill4.8k starsChanged 5 months agoMITView on GitHub
Hunt shadow / zombie / undocumented API surface (OWASP API9 Improper Inventory Management) — enumerate the full API version history (v1/v2/beta/legacy paths, header- and subdomain-based versioning), pull and diff every reachable OpenAPI/Swagger spec (including ones only findable via the Wayback Machine), and behaviorally diff old vs. current versions for auth/rate-limit/validation regressions rather than just response-shape differences. Distinct from hunt-api-misconfig, which owns exploitation once you have a spec or endpoint (mass assignment, JWT, OData, Swagger-chain attacks); distinct from hunt-subdomain, which owns host-level discovery. This skill owns the version-inventory and behavioral-diff workflow itself. Use when the target has versioned API paths, multiple specs, a changelog referencing deprecated endpoints, or a mobile app whose hardcoded backend calls look older than the current web app's.
Trending
More talk lately.thin dataabout the whole repository
Who's talking about elementalsouls/Claude-BugHunter
- @camilleroux.com“Un bundle Claude Code pour le bug hunting : 51 skills, 15 slash commands, 681 patterns tirés de rapports …”Bluesky · Jun 7, 2026 · 5 likes
- @baumannzone.dev“Claude-BugHunter no es "otro prompt de seguridad". Reúne 83 skills que se cargan según la tarea, 15 …”Bluesky · Sep 2, 2026 · 3 likes
- A Hacker News story“Show HN: Claude Code Bundle for Bug Hunting with 574 Report Patterns”Hacker News · May 20, 2026 · 1 points
- uinstinct/aiskills“ai skills”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.elementalsouls.claude-bughunter: init at 2.1”GitHub · Sep 27, 2026
The biggest 5 of 7 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 7
Talked about on GitHub, Bluesky and Hacker News (7 times).
On GitHub · 4
- Oct 4, 2026ai skills — uinstinct/aiskills0 reactions
- Sep 27, 2026agent-skills.github.elementalsouls.claude-bughunter: init at 2.1 — sudosubin/agents.nix0 reactions
- May 31, 2026feat: CLI tool for GitHub repository discovery and recommendation — humanaios-ui/operations0 reactions
- May 24, 2026Audit candidate: elementalsouls/Claude-BugHunter — xiaolai/nlpm0 reactions · 10 comments
On Bluesky · 2
- Jun 7, 2026Un bundle Claude Code pour le bug hunting : 51 skills, 15 slash commands, 681 patterns tirés de rapports HackerOne réels, couvrant 24… — @camilleroux.com5 likes and reposts · 1 reply
- Sep 2, 2026Claude-BugHunter no es "otro prompt de seguridad". Reúne 83 skills que se cargan según la tarea, 15 comandos y patrones de 681 reportes… — @baumannzone.dev3 likes and reposts
On Hacker News · 1
- May 20, 2026Show HN: Claude Code Bundle for Bug Hunting with 574 Report Patterns1 point · 1 comment
In this repository82 other files it gives its agents.
- apk-redteam-pipelineSkill
- bb-local-toolkitSkill
- bb-methodologySkill
- bug-bountySkill
- bugcrowd-reportingSkill
- cloud-iam-deepSkill
- enterprise-vpn-attackSkill
- evidence-hygieneSkill
- hunt-api-misconfigSkill
- hunt-aspnetSkill
- hunt-atoSkill
- hunt-auth-bypassSkill
- hunt-brute-forceSkill
- hunt-business-logicSkill
- hunt-cache-poisonSkill
- hunt-captcha-bypassSkill
- hunt-cicdSkill
- hunt-clickjackingSkill
- hunt-cloud-misconfigSkill
- hunt-corsSkill
- hunt-csrfSkill
- hunt-deserializationSkill
- hunt-dispatchSkill
- hunt-domSkill
- hunt-exceptional-conditionsSkill
- hunt-file-uploadSkill
- hunt-fintech-graphqlSkill
- hunt-forgot-passwordSkill
- hunt-graphqlSkill
- hunt-grpcSkill
- hunt-host-headerSkill
- hunt-html-injectionSkill
- hunt-http-smugglingSkill
- hunt-idorSkill
- hunt-jwt-cryptoSkill
- hunt-k8sSkill
- hunt-laravelSkill
- hunt-ldapSkill
- hunt-lfiSkill
- hunt-llm-aiSkill
- hunt-mfa-bypassSkill
- hunt-miscSkill
- hunt-nextjsSkill
- hunt-nodejsSkill
- hunt-nosqliSkill
- hunt-ntlm-infoSkill
- hunt-oauthSkill
- hunt-open-redirectSkill
- hunt-race-conditionSkill
- hunt-rag-vectorSkill
- hunt-rceSkill
- hunt-samlSkill
- hunt-sessionSkill
- hunt-sharepointSkill
- hunt-source-leakSkill
- hunt-spa-apiSkill
- hunt-springbootSkill
- hunt-sqliSkill
- hunt-ssrfSkill
- hunt-sstiSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
DO NOT use for single-version APIs with no version history — there's nothing to diff.
- Distinctive: line 67
When more than one spec resolves (a current one and an archived/old one), diff the endpoint inventories directly:
- Very specific: line 108
Check robots.txt / sitemap.xml for disallowed API paths — a self-inflicted disclosure.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
OWASP API9 — Improper Inventory Management (Shadow / Zombie APIs)
As an API evolves, old versions and internal/staging routes routinely stay reachable without receiving the same security fixes as the current version — because nobody tracks that they still exist. The bug is rarely in one endpoint; it's in the delta between what an old version enforces and what the current version enforces on the same operation.
When to use
Trigger when:
- Versioned paths are visible (
/v1/,/v2/,/api/2023-01-01/) orAccept/X-API-Versionheaders are in play. - A changelog, release notes, or deprecation notice references removed/old API behavior.
- A mobile APK/IPA (via
apk-redteam-pipeline/ios-redteam-pipeline) hardcodes endpoints that look like an older backend version than the current web app calls. - Multiple OpenAPI/Swagger specs are discoverable, or
info.versionin one spec implies others exist.
DO NOT use for single-version APIs with no version history — there's nothing to diff; go
straight to hunt-api-misconfig for direct exploitation of the one surface that exists.
Stage 1 — Enumerate the Full Version Surface
# Path-based versioning
for v in v1 v2 v3 v4 beta alpha internal legacy old 2022-01-01 2023-01-01 2024-01-01; do
curl -s -o /dev/null -w "%{http_code} /api/$v/\n" "https://$TARGET/api/$v/"
done
# Header-based versioning
curl -s -H "X-API-Version: 1" https://$TARGET/api/users
curl -s -H "Accept: application/vnd.company.v1+json" https://$TARGET/api/users
# Subdomain-based versioning
for sub in api api-v1 api-v2 apiv1 apiv2 legacy-api old-api internal-api staging-api; do
curl -s -o /dev/null -w "%{http_code} $sub\n" "https://$sub.$TARGET/"
doneA 200/401/403 on an old version path (anything but 404/connection-refused) means the
version is still live and worth carrying into Stage 3, even if it demands auth.
Stage 2 — Pull Every Reachable Spec, Not Just the Linked One
for path in openapi.json swagger.json v1/swagger.json v2/swagger.json v3/api-docs \
api-docs.json swagger/v1/swagger.json .well-known/openapi.json; do
curl -s -o /dev/null -w "%{http_code} /$path\n" "https://$TARGET/$path"
done
# Wayback Machine — a DEPRECATED version's spec often stays indexed after the live link is removed
curl -s "http://web.archive.org/cdx/search/cdx?url=$TARGET/*swagger*&output=json&collapse=urlkey"
curl -s "http://web.archive.org/cdx/search/cdx?url=$TARGET/*openapi*&output=json&collapse=urlkey"When more than one spec resolves (a current one and an archived/old one), diff the endpoint inventories directly:
jq -r '.paths | keys[]' v1-swagger.json | sort > /tmp/v1_paths.txt
jq -r '.paths | keys[]' v2-swagger.json | sort > /tmp/v2_paths.txt
comm -23 /tmp/v1_paths.txt /tmp/v2_paths.txt # in v1 only — candidates for "still live but forgotten"For every path in that diff, confirm it's still reachable against the v1 base URL. A route
documented only in the old spec that still returns something other than 404 is a zombie-
endpoint candidate — carry it into Stage 3.
Stage 3 — Behavioral Diff Between Old and Current Version
For each operation that exists in both versions, compare security-relevant behavior, not response shape. Response shape differences are Informational; behavioral security regressions are the finding.
- Auth strength. Does the old version accept no token, an expired token, or a lower-
privilege token that the current version rejects?
curl -s -H "Authorization: Bearer $EXPIRED_TOKEN" https://$TARGET/api/v1/users/me -w '\n%{http_code}\n' curl -s -H "Authorization: Bearer $EXPIRED_TOKEN" https://$TARGET/api/v2/users/me -w '\n%{http_code}\n' - Rate limiting. Burst the same number of requests against both versions' equivalent
endpoint; a missing
429on the old version means rate-limiting was added later and never backported. - Input validation. Send the identical injection/oversized/malformed payload to both; the
old version accepting what the new one rejects means hardening happened forward-only —
chain into whichever injection class the payload targets (
hunt-sqli,hunt-idor, etc.). - Field exposure. Does the old version's response body include fields — internal IDs, other users' data, internal notes, PII — that the current version has since redacted?
Stage 4 — Deprecated / Internal Routes Never Referenced by the Current UI
- Grep JS bundles for API calls no visible UI flow triggers (
/internal/,/admin/,/debug/,/_internal/,/test/,/staging/) — reusehunt-source-leak's JS-bundle grep patterns for this specifically. - Check
robots.txt/sitemap.xmlfor disallowed API paths — a self-inflicted disclosure. - Mobile-app endpoint inventories (via
apk-redteam-pipeline/ios-redteam-pipeline) very often reference an older backend version than the current web app calls. Treat every APK/IPA-sourced endpoint as a version-diff candidate against the live web API.
False-Positive Gate
- A version difference alone (different response shape, cosmetic field renaming) is Informational. The finding is a security-relevant regression — auth, rate-limit, or validation that got weaker going backward in version history.
- Confirm the old endpoint is not simply an alias/proxy to the current implementation before claiming a behavioral difference — send a payload that would actually behave differently under old vs. new logic, not just compare a version string in the response body.
- A
200on a path that just serves a static "this API version is deprecated, use v2" message is not a finding — confirm the underlying operation still executes.
Severity Table
| Finding | Severity |
| Old version bypasses auth entirely where current version requires it | Critical |
| Old version missing rate-limit present on current version | Medium–High (chain via hunt-brute-force) |
| Old version leaks extra fields (PII, internal IDs) vs. current | Medium–High |
| Old version accepts payloads the current version now validates/sanitizes | High (chain to the underlying injection class) |
| Version is reachable but behaviorally identical to current | Informational |
Related Skills & Chains
hunt-api-misconfig— owns exploitation once a spec or endpoint is in hand (mass assignment, JWT attacks, OData, Swagger-chain attacks). This skill hands it a sharper target: "here's a zombie endpoint with weaker validation than the current one."hunt-subdomain— owns host/subdomain-level discovery (api-v1.target.comas its own host, potential takeover). This skill owns what happens once you're inside a given host's version surface.hunt-source-leak— JS-bundle grep for internal/undocumented calls; reused here specifically for version-diffing rather than secret extraction.apk-redteam-pipeline/ios-redteam-pipeline— mobile builds routinely hardcode an older API version; every mobile-sourced endpoint is a version-diff candidate.hunt-brute-force— a rate-limit regression found here is only a complete finding once chained to actual brute-forceable impact (login, OTP, enumeration).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

