dspy
Warn
Audited by Gen Agent Trust Hub on Oct 2, 2026
Risk Level: MEDIUMEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill instructs the user to install the DSPy framework from the official Stanford NLP GitHub repository. Following security guidelines, this is documented as a reference to a well-known academic research organization.
- Evidence:
pip install git+https://github.com/stanfordnlp/dspy.gitinSKILL.md. - [DYNAMIC_EXECUTION]: The skill features modules and examples that generate and execute code at runtime. Specifically, the
ProgramOfThoughtmodule generates Python code to solve problems, and a ReAct agent example uses theeval()function to perform calculations. - Evidence:
dspy.ProgramOfThoughtdescribed as "Generates and executes code for reasoning" inSKILL.mdandreferences/modules.md. - Evidence: The
calculatetool inreferences/examples.mduseseval(expression, {"__builtins__": {}}, {})to process agent-generated strings. - [INDIRECT_PROMPT_INJECTION]: The skill describes architectures (RAG and ReAct agents) that ingest data from external, untrusted sources which could contain malicious instructions designed to influence the agent's reasoning or tool usage.
- Ingestion points:
search_wikipediatool inreferences/examples.mdanddspy.Retrievein multiple RAG examples. - Capability inventory: The agent has access to code execution tools including the
calculatetool (usingeval) andProgramOfThought(executing generated Python). - Boundary markers: The provided prompt signatures do not explicitly demonstrate the use of strict delimiters or specific instructions to ignore embedded commands in retrieved content.
- Sanitization: The
calculatetool example implements a basic sandbox by restricting__builtins__in theevalcall.
Audit Metadata