langgraph

Pass

Audited by Gen Agent Trust Hub on Nov 13, 2026

Risk Level: SAFEDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [DYNAMIC_EXECUTION]: The code example for a 'calculator' tool uses the Python eval() function directly on user-provided strings without sanitization. This is a high-risk pattern as it allows for arbitrary code execution within the environment where the agent is running.
  • Evidence (SKILL.md): return str(eval(expression)) inside the @tool definition for calculator.
  • [COMMAND_EXECUTION]: Because the eval() function is exposed to the agent as a tool, a malicious user could provide a prompt that causes the agent to execute system commands (e.g., __import__('os').system('ls')).
  • [INDIRECT_PROMPT_INJECTION]: The skill describes an agent architecture that processes external data and search results. While it follows standard LangGraph patterns, the inclusion of an unsafe tool (eval) provides a direct execution vector for any instructions found in external data (such as web search results) that the agent might pass to the calculator tool.
  • Ingestion points: Web search results (search tool) and user messages.
  • Boundary markers: The add_messages reducer is used, but no explicit system instructions for sanitizing tool inputs are provided.
  • Capability inventory: The skill facilitates file access (via standard libraries), network operations (via the search tool example), and code execution (via eval).
  • Sanitization: There is no evidence of input validation or sanitization for the tool arguments.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 13, 2026, 01:30 AM