langgraph
Warn
Audited by Gen Agent Trust Hub on Nov 5, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The
calculatortool implementation in the 'Basic Agent Graph' section ofSKILL.mduses theeval()function to process theexpressioninput string. Usingeval()on untrusted input allows for arbitrary Python code execution within the environment where the agent is running. Documentation should recommend safer alternatives likeast.literal_evalor a dedicated math expression parser. - [INDIRECT_PROMPT_INJECTION]: The skill describes an agent architecture that processes external user input and routes it to tools with significant capabilities.
- Ingestion points: Untrusted user input enters the system through the
messageslist inAgentStatewithinSKILL.md. - Boundary markers: No explicit delimiters or instructions to ignore embedded commands are present in the prompt templates or node definitions.
- Capability inventory: The system includes a
calculatortool utilizingeval(), which can be exploited to execute arbitrary code if the LLM is manipulated by input data. - Sanitization: The implementation lacks any input validation, escaping, or filtering before passing data to the
eval()-based tool.
Audit Metadata