langchain-agents
Pass
Audited by Gen Agent Trust Hub on Jul 21, 2026
Risk Level: SAFEREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- Dynamic Code Execution (eval): The
calculatetool example inskill.mdutilizes theeval()function to process mathematical expressions. While the example includes a character whitelist (0123456789+-*/().), the use ofeval()on data derived from user prompts is a security consideration. If the validation logic is bypassed or modified, it could potentially allow for arbitrary code execution within the agent's environment. - Indirect Prompt Injection Surface: The skill describes patterns for multi-agent delegation and tool output processing (e.g.,
custom_tool_node,supervisor). These workflows ingest data from external sources and subagents, creating a surface for indirect prompt injection. If tool outputs or subagent responses contain adversarial instructions, they could influence the supervisor or main agent's behavior. - Ingestion points:
state["messages"]inagentandsupervisorfunctions, andresultfromexecute_toolincustom_tool_node. - Boundary markers: The skill demonstrates basic system prompts but lacks explicit delimiter usage or "ignore instructions" directives for handling untrusted tool outputs.
- Capability inventory: The skill showcases capabilities for filesystem access (
FilesystemBackend), network-based tools (search_tool), and subagent execution. - Sanitization: The
calculatetool implements character whitelisting, but other tool execution patterns rely on simple string conversion of results. - Filesystem Access: The
DeepAgentsandFilesystemBackendexamples demonstrate the ability to read and write to local directories (e.g.,./workspace). In an environment where the agent processes untrusted external data, this capability should be scoped to ensure the agent does not access sensitive system files.
Audit Metadata