pydanticai
Warn
Audited by Gen Agent Trust Hub on Oct 11, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The evaluation script
evals/verify-application-proposals.pyusesexec()andcompile()to execute Python code blocks extracted from thereferences/application-proposals.mdfile at runtime. This allows for arbitrary code execution derived from non-executable markdown files. - [INDIRECT_PROMPT_INJECTION]: The skill describes a pattern for "Typed proposals" in
references/application-proposals.mdthat ingests untrusted JSON data into the agent's instructions. This creates a surface for indirect prompt injection where malicious content in the data could influence agent behavior. - Ingestion points: The
contextfunction inreferences/application-proposals.mdinjectsctx.deps.scoped_jsoninto the agent's instructions. - Boundary markers: The instructions explicitly warn that "Request notes are untrusted data" and recommend returning only drafts to maintain application-level control.
- Capability inventory: The skill defines an
Agentcapable of tool execution and model requests, although the specific recommendation for this pattern is to omit command tools. - Sanitization: The pattern relies on Pydantic
BaseModeloutput validation to ensure the response adheres to a specific schema, but does not sanitize the input content beyond type validation.
Audit Metadata