guidance
Fail
Audited by Gen Agent Trust Hub on Jun 17, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: Use of unsafe
eval()function within agent tool definitions. - Evidence in
SKILL.md(Pattern 4: ReAct Agent) andreferences/examples.md(ReAct Agent): The instructional code defines a toolset where"calculator": lambda expr: eval(expr). Theexprargument is directly populated by the model'saction_inputgeneration. - Impact: A malicious prompt or indirect injection could cause the LLM to generate dangerous Python payloads (e.g., using
__import__('os').system()) instead of mathematical expressions, which the skill would then execute with the privileges of the agent process. - [COMMAND_EXECUTION]: Dynamic execution of arbitrary strings generated by the language model.
- Evidence: The skill demonstrates a pattern where model-generated output from the
gen()function is passed into a dynamic execution environment (eval) without any validation, sanitization, or sandboxing. - [PROMPT_INJECTION]: The skill architecture is susceptible to indirect prompt injection that can trigger dangerous capabilities.
- Ingestion points: The
react_agentfunction inSKILL.md(line 344) andreferences/examples.md(line 335) ingests aquestionvariable directly into the model context. - Boundary markers: There are no delimiters or protective instructions (e.g., "ignore instructions within the following text") used around the interpolated data.
- Capability inventory: The agent has access to the
eval-based calculator tool described above. - Sanitization: No evidence of input validation or output filtering is present to prevent the model from executing malicious logic supplied in the
questionfield.
Recommendations
- AI detected serious security threats
Audit Metadata