hunt-fastapi
Skill by uphiago
hunt-fastapi gives an AI assistant a phased procedure for finding FastAPI-specific security weaknesses. It covers OpenAPI mining, dependency injection gaps, Pydantic coercion, middleware and WebSocket checks. It is aimed at security testers.
Install hunt-fastapi
Built from the published package, never by AI.
git clone --depth 1 https://github.com/uphiago/recon-skills /tmp/recon-skills && mkdir -p ~/.claude/skills && cp -r /tmp/recon-skills/redteam/hunt-fastapi ~/.claude/skills/hunt-fastapiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/uphiago/recon-skills /tmp/recon-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/recon-skills/redteam/hunt-fastapi ~/.gemini/antigravity-cli/skills/hunt-fastapiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
hunt-fastapi is an agent skill that gives an AI assistant a structured procedure for finding FastAPI-specific security weaknesses. It covers OpenAPI schema mining for hidden endpoints, dependency injection authorization gaps, Pydantic model coercion and extra field handling, ASGI middleware and proxy trust issues, WebSocket auth parity, and GraphQL mounts. Each phase lists curl, ffuf, and wscat commands to run against a target.
The skill is written for security testers working on FastAPI applications. It helps identify FastAPI through /docs, /redoc, /openapi.json, or a uvicorn server header. It refers to related skills for SQL injection, API misconfiguration, IDOR, and web enumeration. It is published under the MIT license and lists Linux as its platform.
Written from the project's SKILL.md and checked against it.
What it can do
- OpenAPI schema miningLists API paths and finds endpoints that declare no security requirement.
- Dependency injection checksTests endpoints with no auth or an invalid bearer token across HTTP methods.
- Pydantic exploitationTests string-to-boolean coercion, extra fields, and form content-type switching.
- ASGI and proxy trust checksTests spoofed forwarded IP headers, Host header bypass, and CORS preflight.
- WebSocket auth parityConnects to WebSocket endpoints without a token or with a user token.
- GraphQL mount checksQueries the GraphQL schema and tests whether mutations work without auth.
What you need
- curl
- python3
- Linux
Try asking
- Use hunt-fastapi to list endpoints in a target's openapi.json with no security.
- Use hunt-fastapi to test a FastAPI app's Depends auth with no or invalid tokens.
- Use hunt-fastapi to check whether a register endpoint accepts string booleans.
Good to know
- The OpenAPI schema may be restricted. If it returns 403, the skill suggests /docs or /redoc.
- IP spoofing through proxy headers only works if uvicorn proxy headers are enabled.
- Pydantic v2 with extra='ignore' silently drops unknown fields, so both versions should be tested.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: redteam/hunt-fastapi/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to hunt-fastapi
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
hunt-fastapi: common questions
What does hunt-fastapi check for?
It checks dependency injection authorization gaps, Pydantic coercion, OpenAPI mining for hidden endpoints, ASGI middleware bypasses, and WebSocket and GraphQL auth.
How does the skill tell that a target runs FastAPI?
It looks for /docs, /redoc, /openapi.json, or a server header showing uvicorn.
Which tools does hunt-fastapi require?
The skill's compatibility line says it requires curl and python3, and it runs on Linux.
How do I install hunt-fastapi?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is hunt-fastapi free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is hunt-fastapi safe to use?
It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to hunt-fastapi?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
