fastapi
Fail
Audited by Gen Agent Trust Hub on Sep 11, 2026
Risk Level: HIGHCREDENTIALS_UNSAFEEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The skill's evaluation and reference files contain hardcoded sensitive information.
evals/files/orders_deps.pyandevals/files/reports_router.pycontain hardcoded database credentials in connection strings:postgresql://app:app@db/app.evals/files/test_orders_api.pycontains hardcoded authentication headers:Bearer real-token-from-my-shell-historyandBearer real-token.- [EXTERNAL_DOWNLOADS]: The skill explicitly instructs users to install an unverifiable third-party package,
httpx2, claiming it is required by 'Starlette 1.6'. As of the current date, Starlette is in the 0.x version range, andhttpx2is not a recognized official successor to thehttpxlibrary. This recommendation for a specific, version-pinned (2.12) external package under deceptive pretenses represents a high-risk supply chain attack vector. - Evidence in
references/tooling.md:uv add --group test httpx2. - Evidence in
references/testing.md: 'Starlette 1.6's test client imports httpx2... install httpx2 instead.' - [INDIRECT_PROMPT_INJECTION]: The skill provides patterns for building web APIs that process untrusted external data via FastAPI and Pydantic, creating a surface for indirect injection attacks.
- Ingestion points: Path operations in
evals/files/orders_deps.pyandevals/files/reports_router.pyingest data through thepayload: dictandreport_id: intarguments. - Boundary markers: None implemented; instructions focus on standard Pydantic validation without specific delimiters for prompt-interpolated data.
- Capability inventory: The skill uses
requests.getfor network operations andsqlalchemyfor database execution in several files. - Sanitization: The skill relies on default Pydantic validation as described in
references/pydantic-models.mdbut does not provide additional sanitization for downstream logic.
Recommendations
- AI detected serious security threats
Audit Metadata