/viperclaw:viper-fastapi-django-flaskfrom viperclaw
Audits FastAPI, Django, and Flask apps for framework-specific security issues: auth dependencies, ORM injection, CSRF hardening, template injection, and serialization misconfigurations.
Ships in viperclaw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
viper-fastapi-django-flask)p/fastapi, p/django, p/flask, OWASP ASVS.flowchart LR
Req["HTTP Request"] --> Dep["Depends(get_current_user) + CSRF"] --> DTO["Pydantic (extra=forbid) / Output DTO"] --> ORM["Parameterized SQLAlchemy / Django ORM"]
viperclaw taint . --db .viperclaw/graph.db
@app.post, @router., Depends(, SQLAlchemy, text(, response_model=.DEBUG =, ALLOWED_HOSTS, @csrf_exempt, .raw(, .extra(, RawSQL(, mark_safe.render_template_string, |safe, Markup(, session[, send_from_directory.dependencies=[Depends(get_current_user)] at the APIRouter level and every endpoint defines a strict response_model (excluding hashed_password / internal fields) plus model_config = ConfigDict(extra="forbid") on input models..raw(), .extra(), and RawSQL() to ensure parameters are passed via the params=[] argument rather than Python f-strings.DEBUG = False, non-wildcard ALLOWED_HOSTS, high-entropy SECRET_KEY loaded from environment, and verify any @csrf_exempt view enforces HMAC or Bearer token authentication.Flask.render_template_string() or jinja2.Template() (SSTI); avoid mark_safe(), Markup(), and |safe unless sanitized with nh3 / bleach.AsyncSession instances are scoped per-request via Depends(get_db) and never shared across concurrent coroutines.# ❌ VULNERABLE: FastAPI route returns full ORM model & uses f-string in SQLAlchemy text()
@router.get("/users/{username}")
async def get_user(username: str, db: AsyncSession = Depends(get_db)):
res = await db.execute(text(f"SELECT * FROM users WHERE username = '{username}'"))
return res.mappings().first()
# ✅ HARDENED: Requires auth dependency, binds SQL parameters & filters output via response_model
@router.get("/users/me", response_model=UserPublicDTO)
async def get_user(current_user: User = Depends(get_current_active_user), db: AsyncSession = Depends(get_db)):
stmt = select(User).where(User.id == current_user.id)
return (await db.execute(stmt)).scalar_one()
Bandit, Trail of Bits Python, OWASP ASVS, CWE-89, CWE-915| Severity Tier | Baseline CVSS v3.1 Vector | Qualifying Security Impact |
|---|---|---|
| CRITICAL (9.0–10.0) | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H | Unauthenticated remote code execution, cross-tenant authentication or isolation gap, or direct theft of funds/keys. |
| HIGH (7.0–8.9) | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N | Authenticated privilege escalation, unauthorized sensitive data exposure, or single-request service outage. |
| MEDIUM (4.0–6.9) | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N | Scoped information disclosure, non-admin state mutation, or configuration weakness requiring user interaction. |
| LOW (0.1–3.9) | CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:N/A:N | Defense-in-depth hardening gap requiring high precondition complexity and minimal direct impact. |
viperclaw taint . --db .viperclaw/graph.db and viperclaw verify to record the verified state in .viperclaw/graph.db.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub zahidoverflow/viperclaw --plugin viperclaw72 skills in this plugin
/viper-agent-skill-supplychainAI Agent Skill, Plugin & MCP Config Supply-Chain Auditor (modeled on NVIDIA SkillSpector & OWASP Agentic Skills Top 10). Audits SKILL.md bundles and MCP JSON configs./viper-ai-llm-guardrailsAI, LLM & MCP Application Security & Guardrails Auditor (OWASP LLM Top 10). Reviews prompt boundaries, RAG data isolation, tool-call authorization, and output sanitization./viper-api-gateway-apigee-kongAPI Gateway, BFF & Rate-Tier Policy Auditor (Kong, AWS API Gateway, Apigee, Envoy Gateway). Reviews JWT authorizers, backend origin lockdown, and route-level quotas.Other plugins' skills for the same job