Scan your whole stack
Are you using hazbox?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.0
hazbox was last scanned on 1 Dec 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.0 LATEST | 1 Dec 2026 | No rules fired |
| 0.0.0-stage | 1 Dec 2026 | Not shown |
Findings for v0.1.0. 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 0.1.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Your packages and agents see the project. Nothing else.
Every npm install, npm run dev or npx something runs code from hundreds of strangers with full access to your machine. That code can read your SSH keys, your npm and GitHub tokens, your AI tool logins and your browser cookies, and it can talk to Docker, which is root. hazbox runs the command in a box where your home directory is empty and only the project is there.
The secrets in the demo are fake, planted in a throwaway home, and the demo package sends nothing anywhere. demo/record.sh rebuilds it.
npx hazbox check # what could code running here steal? (Linux, macOS)
hazbox npm install # run anything in the box (Linux)
hazbox npm run dev
hazbox x create-vite # see who published a package, then run it in the box
npx hazbox check lists what code running in your terminal can reach right now. It prints names only, never contents. Its only network call is one empty HEAD request to example.com, to see whether the network is reachable. On the machine I built this on it found 28 things, among them the SSH keys behind the ssh-agent, Docker, both D-Bus buses, 55 other daemon sockets (on 2026-12-01), and Claude, Codex and GitHub logins.
Every row is backed by a test in test/box.test.mjs, which plants fake secrets in a throwaway home and runs on every push. For each protection I also checked that turning it off makes its test fail.
| Inside the box | |
|---|---|
| SSH keys, npm, GitHub, cloud, Docker, Cargo and PyPI credentials, GPG, Claude and Codex logins, browser profiles, Slack, Discord, keyrings | hidden. Your home is replaced by an empty per-project home |
ssh-agent, Docker, D-Bus (session and system), and every other unix socket under /run, /tmp, /var/tmp and /dev/shm |
absent, with or without --offline |
| services listening on your localhost (databases, dev tools, local AI proxies), abstract unix sockets, this machine's other addresses, and containers or anything else on its other networks (Docker bridges, VPNs) | unreachable when passt is installed: the box gets its own network from pasta. --localhost 5432 lets one port through. Without passt, hazbox says so once. If passt is installed but can't start, hazbox warns on every run and hazbox check shows the fix |
| secret env vars | removed. Only a short allowlist passes, plus anything you add with --env NAME. Values you pass are never put on a command line, where other users on the machine could read them |
| other processes and their env, including the sandbox helper's own | invisible (separate PID namespace, helper starts with an empty env) |
| open files and sockets the calling program left open (editors, agents, terminal multiplexers, CI runners) | replaced with /dev/null before the command starts. stdin, stdout and stderr pass through as they are |
| your other projects | invisible |
.git |
read-only. Code inside can't plant a hook, a core.fsmonitor command or a commondir redirect, and can't rename or replace .git. A git command that tries to write says so and points to --git-write |
git metadata planted by an earlier run (core.worktree, a .git file pointing at another repo) |
can't widen the next run. hazbox reads the project and its git dirs from disk instead of asking git, and refuses pointers that aren't this project's worktree or submodule |
the kernel session keyring, and typing into your terminal (TIOCSTI, TIOCLINUX) |
blocked by a seccomp filter (x86-64 and arm64) |
| Node, Python, Rust, Go and other toolchains in your home | read-only, so nothing can replace a CLI you later run outside. uv's credential store isn't mounted |
| Claude Code | runs inside. Its installed versions are read-only, so nothing in the box can replace the claude you run outside. Your real ~/.claude and ~/.claude.json stay hidden |
| your agent instructions and skills | hazbox claude gets ~/.claude/CLAUDE.md, skills, agents and commands read-only, and hazbox codex gets ~/.codex/AGENTS.md, prompts and skills. Never their logins, settings or MCP config, and other commands get none of it |
mounted drives (/media, /mnt) |
hidden |
/etc/shadow, /etc/gshadow |
replaced with an empty file, in case the host's permissions are wrong |
| the project | read-write, as normal. hazbox adds no files to it |
| git | status, diff and log work. Commits need --git-write, which keeps hooks and config read-only. Worktrees and submodules work |
| dev servers | reachable from your browser at localhost or 127.0.0.1. Stopping hazbox stops them |
| the box after hazbox stops | gone. If hazbox is killed outright, the box goes with it; a command that ignores SIGTERM is killed 5 seconds later |
--offline |
no network at all, localhost and abstract unix sockets included |
your home, ~/.ssh, ~/.config and other credential folders, system folders, /tmp and /var/tmp themselves |
refused as a project. An empty folder works as is (for scaffolders). A folder with files but no git repo or project file needs --here |
Measured with scripts/compare.sh on Ubuntu 26.04, kernel 7.0, 2026-12-01. Run it on your machine to check.
| exposed | |
|---|---|
| no sandbox | 28 |
| hazbox 0.1.0 | 1 (outbound network) |
nono 0.82.0, run --allow . --read <node> |
6: secret env vars, ssh-agent, Docker, D-Bus session, D-Bus system bus, network |
| srt 0.0.83 (Anthropic sandbox-runtime), default settings | did not start. Ubuntu's AppArmor user-namespace restriction blocks its seccomp helper |
nono also needed --read for an fnm-installed Node before it would start. I confirmed nono's gaps with real calls: the Docker API answered, ssh-add -l listed the keys, and the token was in the environment.
hazbox adds a fixed cost to each command: about 0.15 to 0.2 s on my laptop, of which roughly 60 to 80 ms is pasta setting up the box's network. On anything that runs longer than a few seconds it's noise.
Measured with scripts/bench.mjs (median of alternating bare and boxed runs) on a laptop with an i7-8650U in its balanced power profile, Ubuntu 26.04, Node 22.17.1, bwrap 0.11.1, passt 2026-01-20, 2026-12-01. The laptop was busy with other work (load average about 3.5); I expect a quiet machine to do better, but that is a guess:
| command | bare | hazbox |
|---|---|---|
node -e 0 |
41 ms | 241 ms |
npm --version |
190 ms | 348 ms |
npm run build (new Vite + React app) |
1.08 s | 1.16 s |
The first install in a project takes as long as it does without hazbox. The box reads your npm cache through an overlay, and anything it writes goes to a separate layer for that project, so your cache and other projects never see it. Three rounds of npm ci in a fresh project took 17.1 to 17.6 s boxed and 17.4 to 19.5 s bare. Without the overlay the first install took 58 s, because the box started with an empty cache. The overlay needs bwrap 0.10 or newer. Ubuntu 22.04 and 24.04 ship older versions, so there the first install in each project downloads everything once.
Packages the box downloads stay in that project's layer, never in your real cache, so a second project downloads them again. Sharing them would let one project plant packages another one installs. hazbox prune cleans up.
pnpm's store works the same way. Measured once each on the same laptop, installing 151 packages from a lockfile with a warm store took 3.3 s in a new project and 1.3 s after that, against 1.0 s bare. Before the overlay, the first boxed install downloaded everything and took 59 s.
I ran install, typecheck, lint, test and build for 9 of my own projects inside the box with scripts/real-projects.sh: 4 Vite + React apps, 2 Next.js sites and 3 TypeScript projects, one of them on pnpm. On the latest run (2026-12-01, with pasta networking), 28 of 30 steps passed. The other 2 failed the same way outside the box. One test suite has a test that already fails (6144 pass and 1 fails, in and out of the box), and one project has no ESLint config. No step failed only in the box.
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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.