dspy
Pass
Audited by Gen Agent Trust Hub on Sep 16, 2026
Risk Level: SAFEDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The skill documents the use of the
dspy.ProgramOfThoughtmodule, which is designed to generate and execute Python code at runtime to perform computations. Additionally, code examples for building tools (e.g., a math calculator inreferences/examples.md) utilize theeval()function to process mathematical expressions. - [INDIRECT_PROMPT_INJECTION]: The skill provides instructions for building complex AI systems, such as Retrieval-Augmented Generation (RAG) and ReAct agents, that process external context and user input. The documentation identifies an attack surface where malicious instructions embedded in ingested data could influence agent behavior, particularly when combined with capabilities like tool execution and code generation.
- Ingestion points: Untrusted data enters the context through
dspy.InputField()in signatures likeSearchQAandResearchAgent, and via thedspy.Retrievemodule. - Boundary markers: The provided examples do not explicitly show the use of delimiters or 'ignore' instructions for external data, relying on internal library prompting logic.
- Capability inventory: The skill facilitates tool execution via
dspy.ReAct, code execution viadspy.ProgramOfThought, and mathematical evaluation viaeval(). - Sanitization: While one example uses an empty
__builtins__dictionary foreval(), other examples show direct evaluation of strings. - [EXTERNAL_DOWNLOADS]: The documentation includes instructions to install the DSPy framework from official sources, including the Python Package Index (PyPI) and Stanford NLP's public GitHub repository.
- [COMMAND_EXECUTION]: The
SKILL.mdfile contains standard shell commands for package installation usingpip.
Audit Metadata