2026-11-26 15:40 UTC

Humanet publishes CLI for testing sandbox isolation from inside workloads

state: seedheat: mediumuncertainty: mediumrelevance: highagent-sandboxing cloud-metadata security-testingHumanet

What is this?

Humanet’s MIT-licensed, zero-dependency Go CLI sandbox-check is presented in its GitHub repository as a tool for auditing isolation from inside Linux containers, Kubernetes pods, and microVMs. The repository documents v0.2.0 and probes for cloud-metadata access, proxy bypass and SSRF, reachable host services, kernel and capability exposure, resource limits, and environment-variable secrets. It provides structured output and exit codes for CI, and describes itself as a workload-level check rather than a comprehensive penetration test. The repository’s example benchmark reports substantial gaps in several Docker configurations and a clean result for one Humanet Frame Firecracker setup; these are project-published results, not independent validation. The supplied web results also surface a Humanet project named sandbox-probe and a v0.1.0 release, suggesting an earlier name or related release history, but do not establish the relationship. The Hacker News result says “No such item,” so the launch post itself is not independently confirmed here.

Why it matters

As agents increasingly execute untrusted code with network access and credentials, operators need to know whether sandbox controls actually hold from the workload’s perspective. This tool makes common isolation failures more observable and potentially automatable in deployment checks. Its practical value is as a diagnostic, not proof that a sandbox is secure: the published tests have explicit scope limits, and the reported benchmark has not been independently verified in the supplied evidence.

Current assessment

New development: Humanet’s repository presents sandbox-check v0.2.0 as available under an MIT license, with installation instructions, JSON output, deterministic exit codes, and Linux support for amd64 and arm64; macOS support is limited to network, proxy, and secret checks, with kernel and cgroup checks skipped. Its probes cover cloud IMDS endpoints, raw network and proxy paths, host and lateral services, kernel surfaces, cgroup limits, and secrets in environment variables. A pass means the tested paths were not detected as exposed, not that the system is secure: the project says it does not cover disk-stored credentials, Unix-socket agents, all DNS-over-HTTPS abuse, application vulnerabilities, or hypervisor/kernel vulnerabilities. The project’s benchmark reports that even its hardened Docker example exposed IMDS and other paths, while a Frame Firecracker configuration passed with allowlisted HTTPS available; treat both as attributed project claims pending independent replication. The web results additionally point to a Humanet sandbox-probe v0.1.0 release, but do not clarify whether it was renamed or superseded by sandbox-check. The purported Hacker News announcement is not retrievable in the supplied result. Useful follow-up: verify release history and reproduce the benchmark on varied cloud and sandbox configurations before drawing comparative security conclusions.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 362h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-11 13:00⭐ origin echo-reconstructedThe repository is the original artifact; the HN post links directly to it, and the README contains the project’s original description: “A ze
Humanet (humanethq) on github (echo) · attributed from hn.story.50458891
—
11-11 21:23first on hacker news · published · +8.4hShow HN: Sandbox-check – Does your locked-down container reach cloud metadata?
humanethq
—
11-11 21:23amplified on hacker news 👑hn.story.50458891
humanethq
peak 2 · 0 comments · 103% of case engagement
11-11 22:20our radar first saw it · +9.3hdiscovery anchor: hn.story.50458891—
pace: p26 vs 1845 stories at the 336h mark (now 362h old) — ahead of adap-delegated-authority-protocol-draft (2.0x), behind abmaze-protein-fitness-agent-benchmark (0.7x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Sandbox-check – Does your locked-down container reach cloud metadata?
Retrieved article excerpt

Open article · Retrieved 2026-11-11T22:21:43.126029+00:00

# [Humanet sandbox-check](https://github.com/humanethq/sandbox-check/blob/main/docs/head.png)

[CI](https://github.com/humanethq/sandbox-check/actions/workflows/ci.yml) [Go 1.22+](https://camo.githubusercontent.com/8a7f171932657036d16ac1279f705ab0210086cc0e1f218182d7a78484bdaaf9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f676f2d312e32322b2d3030414444382e737667) [License: MIT](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)

A zero-dependency Go CLI that audits sandbox isolation **from inside** an AI agent runtime (container, Kubernetes pod, or microVM) — testing whether untrusted code can actually reach cloud metadata endpoints, bypass `HTTP_PROXY` (UDP DNS, raw TCP, or `CONNECT` tunneling), SSRF the proxy, hit host services, escape shared kernel surfaces, exhaust unbounded cgroups, or read raw API keys from its environment.

---

## The Problem

Most sandbox checklists run on the host (*"did we pass `--cap-drop=ALL`?"*). Inside real cloud VMs, container-hardening flags and `HTTP_PROXY` setups still routinely leak cloud IMDS (`169.254.169.254`), allow raw UDP:53 DNS tunneling, expose host services on the bridge gateway, permit HTTP `CONNECT` tunnels to localhost/IMDS, or pass raw secrets in process env vars.

**Humanet sandbox-check** tests common escape and exfiltration paths directly from inside the workload and **fails closed** with deterministic exit codes (`0` pass, `2` failure, `3` warnings/inconclusive).

---

## Quick Start

### Install precompiled binary (`v0.2.0`, SHA256-verified)

```
# Pinned release install (recommended)
curl -fsSL https://raw.githubusercontent.com/humanethq/sandbox-check/main/install.sh \
  | SANDBOX_CHECK_VERSION=v0.2.0 bash
```

To verify build provenance via GitHub Artifact Attestations (`gh` CLI required):

```
curl -fsSL https://raw.githubusercontent.com/humanethq/sandbox-check/main/install.sh \
  | SANDBOX_CHECK_VERSION=v0.2.0 SANDBOX_CHECK_VERIFY_ATTESTATION=1 bash
```

Or install from source (Go 1.22+):

```
go install github.com/humanethq/sandbox-check/cmd/[email protected]
```

### Run inside a sandbox

```
# Human-readable isolation audit report
sandbox-check

# Structured JSON report (for CI / automated harnesses)
sandbox-check --json

# Fail closed even on WARN results (treat HTTP 502 proxy errors or unthrottled CPU as exit 2)
sandbox-check --strict

# Assert cross-tenant isolation against another sandbox IP:port on the same host
sandbox-check --peer 10.244.0.15:8080

# Allow direct outbound TCP:443 when public internet access is intentional
sandbox-check --allow-public-net
```

### Flags

| Flag | Default | Purpose |
| --- | --- | --- |
| `--json` | `false` | Emit structured JSON report (`tool`, `version`, `verdict`, `summary`, `probes`) |
| `--strict` | `false` | Exit `2` on `WARN` results (instead of exit `3`) |
| `--timeout` | `900ms` | Per-probe network dial timeout |
| `--gateway` | auto (`/proc/net/route`) | Override detected gateway IP for host service checks |
| `--peer` | `""` | Optional `ip:port` of another tenant/sandbox to assert L3 deny |
| `--external-ip` | `1.1.1.1` | Public IP used for direct raw TCP:443 / TCP:25 bypass checks |
| `--allow-public-net` | `false` | Do not fail direct outbound TCP:443 when public egress is intentional |
| `--version` | `false` | Print Humanet sandbox-check version and exit |



---

## Example Output

### CLI summary (hardened Docker container with default bridge)

```
HUMANET SANDBOX-CHECK v0.2.0 — runtime=docker_container (linux/amd64) uid=65532 pid1="sandbox-check" gw="172.17.0.1" proxy_env=true
======================================================================================

[BASELINE]
  INFO baseline_network_posture         eth0                     routed_with_gateway+http_proxy

[CLOUD METADATA / IMDS]
  FAIL imds_aws_gcp_azure_v4            169.254.169.254:80/me... metadata_exposed_http_200 (CRITICAL)
       -> HTTP GET http://169.254.169.254:80/metadata/instance?api-version=2021-02-01 responded 200 (2129 bytes body omitted)

[PROXY BYPASS & DIRECT EGRESS]
  FAIL bypass_udp53_cloudflare          1.1.1.1:53/udp           dns_tunnel_bypass (CRITICAL)
  FAIL proxy_ssrf_imds_v4               http://169.254.169.2... proxy_ssrf_http_200 (CRITICAL)
  WARN proxy_ssrf_loopback_docker       http://127.0.0.1:2375... proxy_upstream_error_http_502 (CRITICAL)
  FAIL proxy_connect_imds_v4            CONNECT 169.254.169.... proxy_connect_tunnel_open (CRITICAL)
...
SUMMARY: total=40 pass=23 fail=15 warn=1 info=1 skip=0 (critical=7 high=7)
RESULT: ISOLATION GAPS DETECTED [verdict=fail] (exit code 2)
```

*(When `fail=0` and `warn>0`, `sandbox-check` explicitly outputs `RESULT: WARNINGS DETECTED / INCONCLUSIVE [verdict=warn] (exit code 3)`, never `"NO DETECTED LEAKS"`.)*

### JSON snippet (`--json`)

```
{
  "tool": "sandbox-check",
  "version": "v0.2.0",
  "verdict": "fail",
  "summary": {
    "total": 40,
    "passed": 23,
    "failed": 15,
    "warned": 1,
    "info": 1,
    "skipped": 0,
    "critical_leaks": 7,
    "high_leaks": 7
  }
}
```

---

## What It Checks & Status Semantics

### 8 Probe Categories

| Category | Checks | Why it matters |
| --- | --- | --- |
| **Baseline** (`INFO`) | `baseline_network_posture` | Records non-loopback IPs, gateway, DNS resolvers, and proxy env so offline sandboxes are not confused with firewalling. |
| **Cloud Metadata / IMDS** | `169.254.169.254` (AWS v1, IMDSv2 PUT token, Azure, GCP), ECS `169.254.170.2`, IPv6 `[fd00:ec2::254]`, Alibaba `100.100.100.200` | Connects directly (`Proxy: nil`, bypassing `HTTP_PROXY`). Never logs response bodies — only HTTP status and byte counts. |
| **Proxy Bypass & SSRF** | UDP:53 (`1.1.1.1`, `8.8.8.8`, verifying DNS `QR=1` vs raw echo), direct TCP:53/TCP:443; when `HTTP_PROXY` is set: multi-path IMDS HTTP SSRF, loopback `:2375` SSRF, and raw `CONNECT` tunnel probes to IMDS/loopback | Catches **"proxy theater"**: setting `HTTP_PROXY` while leaving raw sockets open, path-filtering only `/latest/meta-data/`, or permitting `CONNECT 169.254.169.254:80`. |
| **Host Gateway Services** | Auto gateway + `host.docker.internal` on ports `22`, `80`, `2375` (Docker), `4222` (NATS), `5432` (Postgres), `6379` (Redis), `9000` (MinIO), `10250` (Kubelet), `11434` (Ollama) | Bridge gateways frequently expose host daemons listening on `0.0.0.0` or bridge interfaces. |
| **Lateral RFC1918 & SMTP** | `10.0.0.1:80`, `172.16.0.1:80`, `172.17.0.1:80`, `192.168.1.1:80`, `100.64.0.1:80`, `1.1.1.1:25`, optional `--peer` | Verifies private network lateral deny and outbound SMTP port 25 blocking. |
| **Kernel, Caps & Mounts** | Runtime detection (Docker `.dockerenv`, Podman `.containerenv`, cgroup v1/v2, PID-1 `container=`, root `overlay`, Firecracker `virtio-mmio`, DMI fallback), `CapEff`, `Seccomp`, `NoNewPrivs`, `/proc/mounts` + `/proc/self/mountinfo` (sockets, host `/home`/`/Users`/`/root` binds, `rw /sys/fs/cgroup`), `/proc/kcore`, `/proc/sysrq-trigger`, `core_pattern`, `uevent_helper`, host sockets & `/dev/{kvm,mem}` | Prevents containers with private cgroup namespaces (`0::/`) on cloud VMs from being misclassified as VMs while accurately handling true dedicated Firecracker guest kernels. |
| **Resource Limits** | Cgroup v2 (`memory.max`, `pids.max`, `cpu.max`), cgroup v1 fallback (`memory.limit_in_bytes`, `pids.max`, `cpu.cfs_quota_us`), and microVM `/proc/meminfo` + vCPU bounds | Fails on unbounded memory or PIDs; emits `WARN` (`unthrottled_cpu`) when memory/PIDs are bounded yet CPU quota is `max`/`-1`. |
| **Environment Secrets** | Env key audit (`*_API_KEY`, `*_TOKEN`, `*_SECRET`, `*_PASSWORD`, `DATABASE_URL`, etc.) | Fails on raw secret values (always redacted); passes when only placeholder/phantom tokens (`phm_*`, `phantom_*`, `vault:*`, `op://*`) exist. |

### Statuses & Exit Codes

| Status | Meaning | Default Exit Code | `--strict` Exit Code |
| --- | --- | --- | --- |
| `PASS` | Blocked (`dropped_timeout`, `refused`, `unreachable`, `no_route`, `blocked_seccomp`), explicit proxy deny (`403`/`407`/`451`), absent socket, bounded limits, or no raw secrets | `0` | `0` |
| `WARN` | Ambiguous/partial risk (e.g. proxy returned `502`/`5xx` indicating upstream dial attempt, or bounded memory/PIDs with unthrottled `cpu.max`) | **`3`** (`verdict: "warn"`) | **`2`** |
| `FAIL` | Confirmed leak or missing boundary (open IMDS, DNS tunnel bypass, proxy SSRF `2xx`/`CONNECT`, reachable host service, dangerous caps, unbounded memory/PIDs, raw secret) | **`2`** (`verdict: "fail"`) | **`2`** |
| `INFO` / `SKIP` | Context record (`baseline_network_posture`) or platform N/A (`non_linux_host` on macOS) | `0` | `0` |



---

## Platform Support & Kubernetes Usage

| Platform | Network, IMDS, Proxy Bypass, Secrets | Kernel, Caps, Mounts, Cgroup Limits |
| --- | --- | --- |
| **Linux** (`amd64`, `arm64`) | Supported | Supported (cgroup v2 + v1 fallback) |
| **macOS** (`amd64`, `arm64`) | Supported | `SKIP` (`non_linux_host`) — intended for running inside Linux containers/VMs |

### Ephemeral Kubernetes Pod check

Run a temporary SHA256-verified probe pod in the target namespace (`linux/amd64`):

```
kubectl run sandbox-check --rm -i --restart=Never --image=alpine:3.20 -- sh -ec '
  apk add -q --no-cache curl
  curl -fsSLO https://github.com/humanethq/sandbox-check/releases/download/v0.2.0/sandbox-check-linux-amd64
  curl -fsSLO https://github.com/humanethq/sandbox-check/releases/download/v0.2.0/checksums.txt
  grep "sandbox-check-linux-amd64" checksums.txt | sha256sum -c -
  chmod +x sandbox-check-linux-amd64 && ./sandbox-check-linux-amd64
'
```

Or copy the static Linux binary directly into any running pod or container:

```
kubectl cp ./sandbox-check-linux-amd64 my-pod:/tmp/sandbox-check
kubectl exec -it my-pod -- /tmp/sandbox-check --json
```

---

## Live Benchmark Snapshot (Cloud Linux KVM Host)

Executed sequentially on the same cloud Linux KVM host (`linux/amd64`, with live link-local cloud metadata on `169.254.169.254`). Full methodology, Docker commands, and captured JSON files are in [`benchmark/REPORT.md`](https://github.com/humanethq/sandbox-check/blob/main/benchmark/REPORT.md).

| Configuration | Active Checks Passed | Fail | Warn | Crit / High | Key Findings |
| --- | --- | --- | --- | --- | --- |
| **Docker default** (`docker run`) | 23/35 (`+1 INFO`) | **12** | 0 | **2 / 9** | Cloud IMDS **HTTP 200** (`2129 B`), UDP:53 & TCP:443 open, host `:22`/`:80` open, 6 caps, `memory.max=max`, raw secret |
| **Docker + Naive `HTTP_PROXY`** | 23/37 (`+1 INFO`) | **13** | **1** | **5 / 8** | UDP:53 DNS tunnel bypasses proxy; **proxy SSRF returned Cloud IMDS HTTP 200** + loopback `502` warning |
| **Docker hardened** (`--cap-drop=ALL`, non-root, RO, cgroups) | 25/35 (`+1 INFO`) | **10** | 0 | **2 / 7** | Caps/cgroups fixed, **still leaks Cloud IMDS HTTP 200**, host `:22`/`:80`, UDP:53, TCP:443, and raw env secret |
| **Docker `--network=none`** (hardened) | 26/26 (`+1 INFO`) | **0** | 0 | **0 / 0** | Passes (`exit 0`), **because networking is completely disabled** (cannot call LLM APIs or fetch dependencies) |
| **[Frame](https://frame.humanet.dev) Firecracker microVM** (jailed microVM + host L3 drops + allowlisting proxy + placeholder token) | **37/37** (`+1 INFO`) | **0** | **0** | **0 / 0** | Passes with **allowlisted outbound HTTPS still working** (`HTTP 200`), isolated guest kernel, IMDS/RFC1918/UDP:53/TCP:25 dropped, proxy denied SSRF (`HTTP 403`), zero raw secrets |



---

## Limitations & Scope

- **`refused` vs `dropped_timeout`:** When a port is closed on a reachable IP, TCP returns `ECONNREFUSED` (`observed: "refused"` -> `PASS` since nothing answered), whereas a firewall/nftables drop times out (`observed: "dropped_timeout"`). An in-guest probe cannot prove from timing alone whether a silent drop came from nftables vs blackhole routing — inspect `observed` carefully al
humanethq20
🟧 echo.github ⭐The repository is the original artifact; the HN post links directly to it, and the README contains the project’s original description: “A zeHumanet (humanethq)——

Interpretation history

Decision trace