Framework Security
Python Django and FastAPI security checklist for AI-assisted backends
Review SQL raw expressions, FastAPI Depends() authorization scopes, template autoescaping, and SSRF protections.
Prerequisites
- Django or FastAPI codebase
STEP 01
Audit dependency injection guards
Verify every FastAPI router path enforcing tenant/admin roles actually includes the scoped Depends() dependency.
STEP 02
Check ORM raw/extra calls
Ensure cursor.execute and extra() never concatenate user strings.
Related AegisSec skills