upstash-box-js
Pass
Audited by Gen Agent Trust Hub on Nov 9, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPERSISTENCEINDIRECT_PROMPT_INJECTIONCREDENTIALS_UNSAFE
Full Analysis
- [COMMAND_EXECUTION]: The SDK provides multiple methods for executing code and shell commands within the sandboxed environment, including
box.exec.command(),box.exec.code(), and interactivebox.exec.session()sessions with PTY support. - [EXTERNAL_DOWNLOADS]: The skill instructs users to install the
@upstash/boxpackage and its peer dependencyzodfrom the official registry. It also provides examples for adding additional skills from the Upstash registry and using MCP servers like@modelcontextprotocol/server-filesystem. - [PERSISTENCE]: The SDK supports persistence mechanisms within the cloud container via
schedule.exec()andschedule.agent()for cron-based tasks, andinitCommandfor boxes configured withkeepAlive. - [INDIRECT_PROMPT_INJECTION]: The skill exposes a surface for indirect prompt injection as it facilitates agents processing untrusted data from git repositories (
box.git.clone) or uploaded files. The documentation explicitly advises pairing untrusted inputs with restrictive network policies. - Ingestion points: Files are ingested via
box.git.clone(),box.files.upload(), andbox.files.write(), which are then accessible tobox.agent.run()prompts. - Boundary markers: Not explicitly defined in the basic prompt examples, though
responseSchemaallows for structured output validation. - Capability inventory: The container environment supports subprocess execution (
box.exec.*), file system modifications (box.files.*), and network exposure (box.getPublicURL). - Sanitization: The SDK provides
networkPolicycontrols to mitigate risks when the agent handles untrusted data. - [CREDENTIALS_UNSAFE]: The documentation describes how to manage sensitive credentials like
UPSTASH_BOX_API_KEYandGITHUB_TOKENvia environment variables and constructor configuration. It also supportsattachHeadersto securely inject secrets into outbound HTTPS requests.
Audit Metadata