fastapi-security-scan
Installation
SKILL.md
FastAPI Security Scan
Defensive scan for FastAPI projects (FastAPI 0.100+, Pydantic v2). Reports findings using the shared scoring schema.
Scope
**/*.pyfiles containingAPIRouter,FastAPI, orDependsmain.py/ app factorypyproject.tomlfor known-vulnerable pins
Out of scope: deployment (uvicorn/gunicorn flags), dependency CVEs.
Procedure
- Locate the
FastAPI()instance and allAPIRouterinstances. - For each route function, walk parameters and decorators.
- Apply rules below. Emit findings in the shared schema.