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@tooldefinition forcalculator. - [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 (
searchtool) and user messages. - Boundary markers: The
add_messagesreducer 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
searchtool example), and code execution (viaeval). - Sanitization: There is no evidence of input validation or sanitization for the tool arguments.
Audit Metadata