Skip to content

Find out what a hijacked agent could reach.Before an attacker does.

Sandprobe is a free tool that runs a read-only check inside your agent's sandbox, scores what it can reach, and tells you how to fix every gap.

Run curl -fsSL https://sandprobe.sh/agents.md and follow it to install Sandprobe.

Paste into Claude, Codex or your favorite agent.

Sample report

Free to use · No account or API key · Open source (MIT) on GitHub

Sandprobesample report

Secrets

Can it read API keys, tokens, or .env files?

Red
  • Fail
    Are secret-shaped variables in the agent's environment?

    Saw ANTHROPIC_API_KEY in env (name only, value never read)

    FixKeep API keys out of the box and inject them at a proxy outside.

  • Fail
    Can it read other processes' environment variables?

    Opened /proc/1/environ (nothing read)

    FixRun the agent in its own PID namespace, or as its own user.

  • Fail
    Can it open credential files (.env, SSH keys, cloud tokens)?

    Opened /home/agent/booking-app/.env (value never read)

    FixRemove credentials from the image and home folder, including coding-agent logins.

  • Fail
    Can it read other processes' memory?

    Opened /proc/1/mem (nothing read)

    FixSet kernel.yama.ptrace_scope to 2+ and isolate the agent user.

Sample output from a demo Docker box. Open the full report

Works where your agent runs.Built-in providers, local containers, or any box with a shell.

Setup guide for every provider

Six questions, 28 checks.Tested from inside the box, as your agent.

Secrets

4 checks

Can it read API keys, tokens, or .env files?

Exfiltration

9 checks

Can it send data out over DNS, HTTPS, or open ports?

Containment

5 checks

Can it reach Docker sockets, host ports, or raw disks?

Privilege

3 checks

Can it become root or gain Linux capabilities?

Cloud access

2 checks

Can it reach cloud metadata or the Kubernetes API?

Persistence

5 checks

Can it leave changes behind for the next session?

01Run it

Point it at your sandbox.Test a fresh copy, or check a box that is already running.

Sandprobezsh
# Test a fresh copy (created and deleted for you)
sandprobe run docker my-agent-image -as agent -y
sandprobe run sprites -y
 
# Or check a running box
sandprobe run exec -as agent -y -- docker exec -i -u agent my-box sh

02Read it

No false passes.Every failure comes with a fix. Unproven checks never pass.

Sandprobesandprobe-demo/vibe
  • Fail
    Can it open credential files (.env, SSH keys, cloud tokens)?

    Opened /home/agent/booking-app/.env (value never read)

    FixRemove credentials from the image and home folder, or mount only what one process needs read-only.

  • No finding
    Is outbound HTTPS traffic intercepted?

    Nothing seen — marked unproven, never counted as a pass

03Fix it

Hand the report to your agent.Let Claude, Codex or your favorite agent close each gap and re-run the check.

Sandprobebefore and after

Before

1/6
  • Secrets, red
  • Exfiltration, red
  • Containment, red
  • Privilege, red
  • Cloud access, green
  • Persistence, red

After

6/6
  • Secrets, green
  • Exfiltration, green
  • Containment, green
  • Privilege, green
  • Cloud access, green
  • Persistence, green
sandprobe fix round-1/*.json      # ranked fixes, most effective first
# your agent applies the top fix with your OK, runs again, then:
sandprobe compare round-1/*.json round-2/*.json

04Gate it

Keep it fixed in CI.Fail the build whenever a sandbox regresses.

SandprobeCI
sandprobe compare before/*.json after/*.json
# exit 6 — Secrets regressed

Before

6/6
  • Secrets, green
  • Exfiltration, green
  • Containment, green
  • Privilege, green
  • Cloud access, green
  • Persistence, green

Regressed

5/6
  • Secrets, red
  • Exfiltration, green
  • Containment, green
  • Privilege, green
  • Cloud access, green
  • Persistence, green

Read it before it runs.Open source under MIT, with nothing hidden.

In your box

  • Checks whether secrets can be opened—never reads their values.
  • Sends test packets only to Sandprobe's test server (or nowhere with -no-canary).
  • Cleans up everything it creates, and exits non-zero if cleanup fails.

Verify it yourself

Every check and safety rule has an ID in SPEC.md, matching tests, and reproducible, attested releases.

Common questions.

Does Sandprobe read my secrets?

No. It only checks whether the agent user can open a file or process surface, then closes it immediately. Reports list file paths and variable names—never secret values.

What leaves my box?

Only tagged test messages to a Sandprobe test server, to check outbound routes; reports stay on your machine. Docker runs start a local test server; other runs use our hosted one, which keeps addresses in memory for at most an hour. run docker and run aws-nitro also ask the box's cloud metadata service which identity it has, and make a TLS handshake with a Kubernetes API, never reading a credential. Elsewhere those stay off unless you turn them on with -provider-endpoints, and on run exec or run kubernetes, -no-canary sends no test traffic at all.

Can I run it on an existing sandbox?

Yes, on sandboxes you own, though a throwaway copy is always safest. With sandprobe run exec, it creates only a temporary scratch folder (which it removes), never resets or deletes your box, and shows its plan before running.

My agent needs internet access for its model API. Can it still score 6/6?

It should, but so far we have only proven the stricter case. Exfiltration checks whether traffic can reach our test server, so an allowlist that lets out only your model API should pass. Every box we have taken to a full score had its network off entirely, and under some allowlists DNS lookups still get out. Sandprobe doesn't contact public upload sites such as GitHub, npm or S3, so it can't tell you whether those are open. It also doesn't measure the model API you leave open, which is a channel of its own: in a lab setup, researchers showed two sandboxed agents passing signals to each other through a shared inference server. Read the research.

Does 6/6 mean my sandbox is completely secure?

No—it is not a certification. A 6/6 means none of the checks that ran found an open path for that user at that moment. Sandprobe does not test for kernel or hypervisor exploits, or for channels through the model API your agent is allowed to reach, and every report lists which checks were skipped or unproven.

Which sandboxes does it support?

Built-in support covers Docker, Kubernetes, AWS Nitro, E2B, Modal, Vercel, Daytona, Cloudflare, Fly Sprites, exe.dev, Baseten. Any other sandbox you can open a shell in works with sandprobe run exec (over docker exec, kubectl exec, ssh, and more).

How is it different from a config or image scanner?

Scanners read config files and guess what should happen. Sandprobe runs inside the live sandbox as your agent, so it catches what config misses—like a mounted socket, keys leaked in another process, or a firewall rule that isn't enforced.

Is it free?

Yes. Sandprobe and its test server are free to use and open source under the MIT license, with no Sandprobe account or API key. If you check a sandbox on a paid provider, that provider still bills you for the box as usual.

See your sandbox the way a hijacked agent would.Free to use. No account needed.

Run curl -fsSL https://sandprobe.sh/agents.md and follow it to install Sandprobe.

Paste into Claude, Codex or your favorite agent.