langgraph
Fail
Audited by Gen Agent Trust Hub on Nov 1, 2026
Risk Level: HIGHDYNAMIC_EXECUTIONREMOTE_CODE_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The
calculatortool insub-skills/basic-agent-graph.mduses the Pythoneval()function to process theexpressionstring. This allows for the execution of arbitrary Python code within the runtime environment. - [REMOTE_CODE_EXECUTION]: By using
eval()on an expression that is generated by the LLM (which is in turn influenced by user input), the skill enables a remote code execution vector. An attacker could craft a prompt that tricks the agent into passing malicious Python commands to the calculator tool. - [INDIRECT_PROMPT_INJECTION]: The skill architecture exhibits a vulnerable surface area for indirect prompt injection because it processes untrusted data without sufficient safeguards.
- Ingestion points: The
AgentStateinsub-skills/basic-agent-graph.mdaccepts a message list which includes external user input. - Boundary markers: No specific boundary markers or instructions are provided to the LLM to treat the content of messages as data rather than instructions for tool execution.
- Capability inventory: The skill provides a tool (
calculator) capable of executing code and asearchtool that could retrieve malicious instructions from the web. - Sanitization: The
calculatortool lacks any sanitization or validation logic to ensure theexpressionis a safe mathematical string before callingeval().
Recommendations
- AI detected serious security threats
Audit Metadata