
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@agentick/sandbox-secure-exec
Advanced tools
V8 isolate sandbox provider for Agentick — lightweight code execution via secure-exec
V8 isolate sandbox provider for Agentick using secure-exec. Provides lightweight JavaScript execution with ~3.4MB overhead and 16ms cold start — 75-150x less memory than Docker.
pnpm add @agentick/sandbox-secure-exec
import { Sandbox, ReadFile, WriteFile, EditFile } from "@agentick/sandbox";
import { secureExecProvider, ExecJS } from "@agentick/sandbox-secure-exec";
const MyAgent = () => (
<Sandbox provider={secureExecProvider({ network: true })}>
<ExecJS />
<ReadFile />
<WriteFile />
<EditFile />
</Sandbox>
);
const provider = secureExecProvider({
memoryLimit: 128, // MB (default: 128)
cpuTimeLimitMs: 30_000, // per exec() call (default: 30,000)
workspacePath: "/workspace", // VFS root (default: "/workspace")
moduleAccess: process.cwd(), // host node_modules cwd, false to disable
network: false, // enable fetch/HTTP (default: false)
timingMitigation: "off", // "freeze" or "off" (default: "off")
persistence: adapter, // optional PersistenceAdapter
});
exec() runs JavaScript, not shellUnlike Docker's exec() which runs bash commands, secure-exec's exec() runs JavaScript directly in a V8 isolate. The tool paired with the provider determines semantics:
<Bash /> tool (shell commands)<ExecJS /> tool (JavaScript code)ReadFile/WriteFile/EditFile → unchanged (use sandbox.readFile()/writeFile())readFile(), writeFile(), and editFile() operate directly on the MountAwareVFS — no isolate round-trip. This is a major performance win over Docker which shells out for every file operation.
The NodeRuntime is reused across exec() calls within a sandbox. State persists (variables, module cache) — same as Docker's sleep infinity container pattern. Concurrent exec() calls are serialized via queue.
Executes JavaScript code in the isolate. console.log() maps to stdout, console.error() to stderr. Node.js built-ins (fs, path, http, etc.) are available via require().
Convenience component that bundles ExecJS + ReadFile + WriteFile + EditFile:
import { SecureExecTools } from "@agentick/sandbox-secure-exec";
<Sandbox provider={secureExecProvider()}>
<SecureExecTools />
</Sandbox>;
Wraps secure-exec's InMemoryFileSystem with host mount pass-through:
node:fs (respects ro/rw)Optional interface for saving/restoring VFS state (e.g., to EFS, S3, or disk):
interface PersistenceAdapter {
load(sandboxId: string, vfs: VirtualFileSystem): Promise<void>;
save(sandboxId: string, vfs: VirtualFileSystem): Promise<void>;
}
Sandbox permissions from SandboxCreateOptions map to secure-exec's permission system:
| Agentick Permission | secure-exec Mapping |
|---|---|
fs: true/false | VFS handles path scoping |
net: true/false/rules | Network adapter + permission check |
childProcess: true/false | Child process permission check |
| Agentick Limit | secure-exec Mapping |
|---|---|
limits.memory (bytes) | memoryLimit (MB) |
limits.timeout (ms) | cpuTimeLimitMs |
Requires Node.js < 25. The underlying isolated-vm native module has a known segfault on Node.js 25+. Use Node.js 22 (LTS) for production.
FAQs
V8 isolate sandbox provider for Agentick — lightweight code execution via secure-exec
We found that @agentick/sandbox-secure-exec demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.