javascript-sdk
Warn
Audited by Gen Agent Trust Hub on Aug 8, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The documentation examples in
SKILL.md,references/agent-patterns.md, andreferences/tool-builder.mddemonstrate implementing tools usingeval(call.args.expression). This practice is highly unsafe as it allows for the execution of arbitrary JavaScript code if the tool arguments are manipulated by an adversary via prompt injection. - [EXTERNAL_DOWNLOADS]: The skill requires the installation of the
@inferencesh/sdkNode.js package and thebelt-sh/clitool. While these are legitimate platform resources, they represent external code dependencies that the agent is instructed to fetch and execute. - [PROMPT_INJECTION]: The skill architecture is vulnerable to indirect prompt injection (Category 8) because it processes untrusted data from multiple sources without demonstrated sanitization.
- Ingestion points: Untrusted data enters the agent context through
agent.sendMessage(interpolating user inputs), file uploads viaclient.uploadFile, and external data fetched viawebhookToolresults. - Boundary markers: The provided code examples do not include delimiters or instructions for the agent to ignore embedded commands in external data.
- Capability inventory: The skill documentation includes examples using
Bashtools, network requests viafetch, file system writes withwriteFileSync, and dynamic execution viaeval. - Sanitization: No validation, escaping, or filtering of external content is present in the primary examples, although the skill mentions human-in-the-loop approval as an optional safety pattern.
Audit Metadata