langgraph
Warn
Audited by Gen Agent Trust Hub on Nov 1, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONREMOTE_CODE_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The 'Basic Agent Graph' example implements a
calculatortool that uses theeval()function to process a string expression. - [REMOTE_CODE_EXECUTION]: Because the
calculatortool is intended to be called by the agent using arguments generated from user input, this creates a vector for Remote Code Execution (RCE) via Python code injection. - [INDIRECT_PROMPT_INJECTION]: The skill patterns demonstrate building agents that process external user input without implementing security controls.
- Ingestion points: User messages are ingested into
AgentStateand processed by theagentnode inSKILL.md. - Boundary markers: The provided examples lack delimiters or system instructions to prevent the agent from obeying instructions embedded within the user data.
- Capability inventory: The agent is granted the ability to call tools, specifically one that executes code dynamically via
eval(). - Sanitization: No validation, escaping, or filtering is applied to the
expressioninput before execution.
Audit Metadata