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 calculator tool in sub-skills/basic-agent-graph.md uses the Python eval() function to process the expression string. 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 AgentState in sub-skills/basic-agent-graph.md accepts 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 a search tool that could retrieve malicious instructions from the web.
  • Sanitization: The calculator tool lacks any sanitization or validation logic to ensure the expression is a safe mathematical string before calling eval().
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Nov 1, 2026, 01:10 PM