fastapi-patterns
Pass
Audited by Gen Agent Trust Hub on Oct 26, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill defines API endpoint patterns that ingest untrusted user data via Pydantic schemas, which is a standard attack surface for indirect prompt injection if the data is subsequently processed by an LLM.
- Ingestion points: Request payloads (UserCreate, UserUpdate) in
app/routers/users.py. - Boundary markers: The implementation utilizes Pydantic
Fieldconstraints (e.g.,min_length,max_length) andEmailStrto validate input. - Capability inventory: The code interacts with a database for CRUD operations via SQLAlchemy and generates/verifies JWTs for authentication.
- Sanitization: Input is sanitized through strict Pydantic type validation and SQLAlchemy's ORM, which prevents SQL injection and ensures data conforms to expected schemas within the application context.
Audit Metadata