litestar
Pass
Audited by Gen Agent Trust Hub on Oct 24, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill describes patterns for ingesting untrusted data through various HTTP and WebSocket interfaces (parameters, headers, and request bodies) as detailed in
parameters.md,dtos.md, andwebsockets.md. This data is often passed to sensitive sinks such as database repositories (services-and-repos.md), file storage (stores-and-caching.md), or real-time message brokers (channels-and-sse.md). While the framework encourages strict schema validation usingmsgspecand DTOs, the processing of external data by the resulting applications provides a surface for indirect prompt injection if those application outputs are later interpreted by an LLM. - Ingestion points: Request handlers utilize
FromPath,FromQuery,JSONBody, andMultipartBodyto accept external data. - Boundary markers: The skill emphasizes the use of
msgspec.Structand DTO factories to enforce strict schema validation on all inputs. - Capability inventory: The skill enables the creation of applications with extensive capabilities including file system access (
FileStore), database persistence (SQLAlchemyAsyncRepositoryService), and network broadcasting (ChannelsPlugin). - Sanitization: Input validation is handled via Litestar's
SignatureModelandmsgspecconversion, which ensures data conforms to defined types and constraints before reaching the business logic.
Audit Metadata