dspy-advanced-workflow
Pass
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted text data that is subsequently interpolated into LLM prompts without explicit sanitization or strict boundary delimiters. This is a common architectural pattern in LLM orchestration that presents a risk of hijacking model behavior if the input contains adversarial instructions.
- Ingestion points: The
reviewfield in theSentimentClassifysignature withinexample_pipeline.pydirectly accepts user-provided text. - Boundary markers: The skill relies on the default DSPy signature formatting and does not implement additional delimiters or instructions to ignore embedded commands.
- Capability inventory: The agent has the capability to write files to the local directory (
runs/,artifacts/) and perform network requests to LLM provider APIs. - Sanitization: No sanitization or validation of the input text is performed before it is processed by the model.
- [DYNAMIC_EXECUTION]: The skill demonstrates the use of DSPy's serialization features for saving and loading program artifacts. Specifically, the
save_program=Trueparameter in thesave()method serializes the Python module code itself. - Evidence: Both
SKILL.mdandreference.mdprovide examples ofoptimized.save(..., save_program=True)and describe loading viadspy.load(). - Impact: Loading a serialized program artifact (typically using
cloudpickleorpickle) from an untrusted or tampered source could lead to arbitrary code execution on the host machine. - Mitigation: The skill documentation identifies this risk and explicitly recommends using
save_program=Falsefor production environments to separate the optimized instructions from the executable code.
Audit Metadata