Secrets
4 checksCan it read API keys, tokens, or .env files?
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.
Free to use · No account or API key · Open source (MIT) on GitHub
Can it read API keys, tokens, or .env files?
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.
Opened /proc/1/environ (nothing read)
FixRun the agent in its own PID namespace, or as its own user.
Opened /home/agent/booking-app/.env (value never read)
FixRemove credentials from the image and home folder, including coding-agent logins.
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
Can it read API keys, tokens, or .env files?
Can it send data out over DNS, HTTPS, or open ports?
Can it reach Docker sockets, host ports, or raw disks?
Can it become root or gain Linux capabilities?
Can it reach cloud metadata or the Kubernetes API?
Can it leave changes behind for the next session?
01Run it
# 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
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.
Nothing seen — marked unproven, never counted as a pass
03Fix it
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
sandprobe compare before/*.json after/*.json # exit 6 — Secrets regressed
-no-canary).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.
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.
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.
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.
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.
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).
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.
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.
Run curl -fsSL https://sandprobe.sh/agents.md and follow it to install Sandprobe.Paste into Claude, Codex or your favorite agent.