fastapi-templates
Pass
Audited by Gen Agent Trust Hub on Nov 3, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The provided FastAPI application template in
SKILL.mdconfiguresCORSMiddlewarewithallow_origins=["*"]. This configuration allows any origin to make cross-site requests to the API. While common for local development, this is a security risk in production environments and should be replaced with a restricted list of trusted domains to prevent Cross-Site Request Hijacking (CSRF) and data exposure. - [INDIRECT_PROMPT_INJECTION]: The skill provides templates for generating production-ready code based on user requirements. This creates an indirect prompt injection surface where malicious user requirements could influence the agent to generate insecure logic or include malicious code in the resulting project structure.
- Ingestion points: The skill instructions and Pydantic schema templates (
UserCreate,UserUpdate) inSKILL.mdact as placeholders for user-supplied requirements. - Boundary markers: There are no explicit boundary markers or instructions to the agent to validate or sanitize user input before generating the project code.
- Capability inventory: The skill enables the agent to generate and write multiple Python files (
main.py,core/config.py, etc.) to the local file system. - Sanitization: The template does not include mechanisms to sanitize user-provided descriptions or requirements that might be interpolated into the generated source code comments or strings.
Audit Metadata