javascript-sdk
Warn
Audited by Gen Agent Trust Hub on May 12, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The documentation includes code examples that demonstrate the use of
eval()to process arguments from tool calls (e.g., in a calculator tool example inreferences/tool-builder.md). Executing strings as code from potentially untrusted AI model outputs poses a significant security risk if not strictly sanitized. - [COMMAND_EXECUTION]: The skill facilitates the enabling of internal tools like
codeExecution(true), which allows agents to run arbitrary code to solve problems, as shown inreferences/agent-patterns.md. - [PROMPT_INJECTION]: The skill exhibits an indirect prompt injection surface. It builds agents that ingest untrusted data from user messages and local files (e.g.,
agent.sendMessageandfilesattachments). The examples provided do not demonstrate the use of boundary markers or specific sanitization techniques to prevent malicious instructions embedded in that data from influencing agent behavior. - [EXTERNAL_DOWNLOADS]: The skill facilitates the installation of the
@inferencesh/sdkpackage via standard package managers (npm, yarn, pnpm) and suggests adding thebelt-sh/cliskill. These are associated with the vendor's own infrastructure and ecosystem.
Audit Metadata