Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@zenera/sandbox

Latest version: v1.3.38

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: andrey.v.ryabov
22 Stars
91 Forks
51 Versions
13.7K Downloads
TypeScript Repo language

Scan summary

@zenera/sandbox was last scanned on 27 Nov 2026 at version 1.3.38. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 51 versions; the latest 5 were published within 2 days (26 and 27 Nov 2026).
  • Findings: No rules fired in version 1.3.38.
  • Downloads: 13,703 downloads.

Versions

51 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.3.38 LATEST 27 Nov 2026 No rules fired
1.3.37 27 Nov 2026 No rules fired
1.3.36 26 Nov 2026 No rules fired
1.3.35 26 Nov 2026 Not shown
1.3.34 26 Nov 2026 Not shown

No rules fired in 1.3.38

Findings

Findings for v1.3.38. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.3.38; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@zenera/sandbox

Where an agent's commands run, and the files those commands see. One Sandbox per session, shared by every agent in it. Depends on Node alone, so a host, a sandbox service and the agent inside a container can all build on the same contract.

import { podmanSandbox } from '@zenera/sandbox';

const sandbox = podmanSandbox({ root: '/path/to/workspace', key: 'session-1' });
await sandbox.exec('python -V');
await sandbox.fs.writeFile('/workspace/notes.md', 'hello'); // what `cat notes.md` sees
await sandbox.close();

The contract

  • Sandbox - prepare (pull the image, or build it from build:), exec, background jobs (startJob, readJob, stopJob), close at the end of a turn, and the files: fs, an FsDriver in the agent's own paths (/workspace/a.py) and contained to the sandbox's trees. The invariant: a file written through fs is the file exec sees under the same name, and the reverse.
  • SandboxFactory - (opts: SandboxOptions) => Sandbox, how a host picks where sandboxes run.
  • FsDriver - the filesystem seam, usable without a sandbox. RootedFs serves named trees from directories on this machine - /workspace from the session's folder, /assets read-only - and is the one place a path is contained: it must name a tree, its symlinks must resolve into one, and a read-only tree refuses every change. localFs is this machine's disk as it is; InMemoryFs keeps a tree in memory.

The image

A spec names an image to pull, or a build ({ dockerfile, context, args }) to build. Getting it there is the sandbox's job, in prepare(): podman builds on this machine, a sandbox service on its own builders. What every backend shares is the build's identity, buildIdentity(build) - the context's files and the hash of them - so a project names the same image everywhere. prepare({ onProgress, slow, force, allowBuild: false }) reports progress, rebuilds, or refuses to build at all; start does whatever of it is still needed. A failed build is an ImageBuildError (isImageBuildError checks it by name, across copies of this package).

Implementations

  • PodmanSandbox / podmanSandbox - a podman container on this machine, binding host directories, with fs a RootedFs over them under the names they are bound at. ensurePodmanImage is its image step on its own.
  • BwrapSandbox / bwrapSandbox - for a host that is itself the container, such as the agent image: each command runs under bubblewrap (/opt/zenera/bin/bwrap, else bwrap on PATH) in its own user, pid, ipc and uts namespaces, on a read-only view of the image, with the session's directories bound in and the server's own paths (/state, /run/secrets) hidden. bwrap is started with exactly the command's environment, never this process's: the image's ENV (/opt/zenera/etc/image-env.json, written when the agent image is built; else PATH, LANG, LC_*, TZ) plus the run's. /proc is the command's own where the container lets one be mounted, else the container's bound read-only (probeBwrap() says which, or why bwrap cannot isolate anything; nothing falls back to running unisolated). prepare() builds nothing: it checks that the container was built from the project's Dockerfile (ZEN_IMAGE_BUILD) or image (ZEN_IMAGE_BASE), when it says what it was built from. cpus, memory and persist belong to the container and are ignored; commands get oom_score_adj 1000, so they go before the server.
  • A sandbox that keeps its files with the container (a sandbox service) serves fs itself, under the same names.

Testing an implementation

@zenera/sandbox/testing exports the contract as vitest suites, the same ones this package runs against its own implementations:

import { describeFsDriver, describeSandbox } from '@zenera/sandbox/testing';

describeFsDriver('remote fs', () => ({ fs: new RemoteFs(url), root: '/workspace' }));
describeSandbox('remote', () => ({ sandbox: openRemote(opts), root: opts.root }));

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @zenera/sandbox

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229