javascript-sdk
Warn
Audited by Gen Agent Trust Hub on Sep 21, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: Documentation in
references/tool-builder.mdincludes a code example that uses theeval()function to process a 'calculation' expression directly from the AI agent (call.args.expression). This is a high-risk security anti-pattern that permits arbitrary code execution if the agent is manipulated into generating malicious payloads.\n- [INDIRECT_PROMPT_INJECTION]: The skill documents patterns for handling tool calls where agent-generated output is used without sanitization. Inreferences/tool-builder.md, this is combined with theeval()function, creating a direct path for indirect prompt injection (e.g., from untrusted search results or files) to result in system-level code execution.
Audit Metadata