dspy
Warn
Audited by Gen Agent Trust Hub on Sep 4, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [DYNAMIC_EXECUTION]: The documentation in
references/02-modules.mdincludes a code example for acalculatortool that uses theeval()function. While it attempts to sandbox the execution by limiting global scope, the use ofevalon potentially untrusted input remains a security concern.\n- [DYNAMIC_EXECUTION]: Inreferences/08-deployment.md, the skill describes the use ofcloudpicklefor serializing and loading compiled program modules. Deserializing data using pickle-based libraries can lead to arbitrary code execution if the serialized file is compromised or obtained from an untrusted source.\n- [DYNAMIC_EXECUTION]: Thedspy.ProgramOfThoughtmodule, featured inreferences/02-modules.md, generates and executes Python code at runtime to solve mathematical or symbolic problems. This is a form of dynamic code generation and execution which increases the attack surface.\n- [INDIRECT_PROMPT_INJECTION]: The skill facilitates the creation of pipelines that ingest data from external retrievers, creating a surface for indirect prompt injection.\n - Ingestion points: External data enters through
dspy.Retrievecalls and signature InputFields inreferences/06-rag-retrieval.md.\n - Boundary markers: The examples do not explicitly demonstrate the use of delimiters or 'ignore' instructions for retrieved content.\n
- Capability inventory: The skill supports tool execution (
ReAct), runtime code generation (ProgramOfThought), and file system writes (save()).\n - Sanitization: No explicit sanitization or filtering of external retrieved passages is shown in the provided documentation snippets.\n- [EXTERNAL_DOWNLOADS]: The
scripts/check-updates.pyscript performs network requests topypi.orgto check for library updates. This is a legitimate maintenance function targeting a whitelisted package registry domain.
Audit Metadata