Security
What a sandbox can reach, and what we record.
How Wardcase isolates sandboxes, controls their network, handles credentials, and what it records. To report a vulnerability, write to business@wardcase.com.
Isolation
Every sandbox is a container that runs under gVisor (runsc). gVisor handles the sandbox's system
calls in its own user-space kernel, so code in the sandbox does not call the host kernel directly.
-
No sandbox runs as a privileged container. All Linux capabilities are dropped, and processes run as the
unprivileged user
agent. -
The root filesystem is read-only. A sandbox can write only to
/work, its own volume sized to its disk limit, and to/tmpand/run, which live in memory. - A seccomp filter and
no-new-privilegesapply to every process. - cgroups cap CPU, memory, the number of processes and disk at the limits of the size you choose.
- There is no SSH server inside a sandbox. The gateway on the host checks your key or token with the control plane, then attaches a shell to the container.
- Idle and hard timeouts destroy sandboxes that nobody is using.
Network
Each sandbox has its own network namespace on its own bridge. Its egress policy is enforced by the host kernel with nftables, outside the sandbox, so code in the sandbox cannot change it.
Built-in deny-list, applied to every sandbox whatever its policy says
- block Private networks (RFC 1918)
10.0.0.0/8172.16.0.0/12192.168.0.0/16 - block Link-local, which holds the cloud metadata endpoint 169.254.169.254
169.254.0.0/16169.254.169.254/32 - block Azure's host services address (WireServer), a public address every Azure VM can reach
168.63.129.16/32 - block Shared address space (carrier-grade NAT)
100.64.0.0/10 - block This network, loopback, protocol assignments, benchmarking, multicast and reserved space
0.0.0.0/8127.0.0.0/8192.0.0.0/24198.18.0.0/15224.0.0.0/4240.0.0.0/4 - block The IPv6 equivalents, including AWS's IPv6 metadata endpoint
::1/128::ffff:0:0/96fc00::/7fd00:ec2::254/128fe80::/10ff00::/8 - block The host the sandbox runs on
- block 30 known mining pool hostnames, and the stratum ports 3333, 3334, 4444, 5555, 7777, 8888, 9999, 14444, 14433, 45700
By default everything else is allowed. An allow-list policy permits only the hostnames and address ranges
you list. Every outbound connection, allowed or blocked, is recorded as an egress.connection
event. Egress policies in the docs
Nothing on the internet can reach a sandbox until you expose a port. Exposed ports are served through
Cloudflare at https://<port>-<id-part>.wardcase.com, either public or behind a token. Each one is a first-level
subdomain, so the domain's TLS certificate covers it.
Port exposure in the docs
Hosts and credentials
- Hosts open an outbound connection to the control plane. Their firewall admits SSH and HTTPS only from Cloudflare's address ranges.
- Each host authenticates with its own key, issued once when the host enrols.
- Hosts never hold customer API keys or long-lived storage credentials. Files and snapshots move through presigned URLs that the control plane issues for each transfer.
-
API keys are stored as SHA-256 hashes and shown once, when you create them. Each key carries scopes:
sandboxes:read,sandboxes:write,audit:read,billing:read,org:admin. - Secrets used by the control plane are held in Cloudflare Workers bindings, never in code.
- The dashboard signs you in with GitHub. Its session cookie is HttpOnly, Secure and SameSite=Lax.
The audit trail
Every sandbox has an audit trail. It records metadata about actions, not their data: every API command, file transfer, exposed port and outbound connection, and every SSH or terminal session as a start and an end event with its duration. Interactive keystrokes are not logged.
Recorded
- Commands run through the API: the argument list, working directory, exit code, duration and output size in bytes
- Files: path, size, SHA-256 and mode, for transfers through the API and SFTP
- SSH and terminal sessions: start, end, duration, authentication method and key fingerprint
- Exposed ports and their access mode, plus a sample of one in a hundred requests with method, status and client IP
- Outbound connections: destination address and port, protocol, TLS server name when present, and whether the policy allowed them
- Changes to API keys, SSH keys and egress policies, snapshots, and abuse detections
Never recorded
- File contents
- Command output
- Keystrokes and commands typed inside an SSH or terminal session
- Values of environment variables passed with
env
The client IP of an SSH session is recorded as unavailable. SSH reaches the gateway through
Cloudflare Spectrum, which on our current Cloudflare plan does not pass the client's address on to the host.
SSH access in the docs
Command lines are recorded as you send them. Pass secrets as environment variables, not as command arguments. Exports are JSONL files behind a signed link that works for one hour.
Abuse controls
The host watches for cryptocurrency mining: sustained high CPU together with connections to stratum ports or
known pools, or known miner processes. A match kills the sandbox, sets its status to
terminated_abuse, and blocks new sandboxes for the organization until we review it. Usage beyond
the free tier needs a card on file.
Where data lives
A sandbox runs on a host in the region you choose. Its processes, filesystem and network traffic stay on that
host. During early access not every region has a host yet; GET /v1/regions shows which are online.
| Region | ID | Cloud | Cloud region |
|---|---|---|---|
| US East | us-east | AWS | us-east-1 |
| EU West | eu-west | Microsoft Azure | westeurope |
| India South | in-south | AWS | ap-south-1 |
Snapshots are kept in the object storage bucket configured for the service, which is not tied to the sandbox's region. The control plane runs on Cloudflare Workers with a single Postgres database. It holds account data, sandbox metadata, usage and the audit trail, and it is not pinned to your sandbox's region either. Audit exports are written to Cloudflare R2. Card details are held by Stripe.
Wardcase is in early access. It has not yet been through a third-party security audit or certification.
Reporting a vulnerability
Reporting a vulnerability
Email business@wardcase.com with a description of the issue and the steps to reproduce it. We will confirm that we received it and keep you informed until it is fixed.
Test only against sandboxes in your own organization. Do not access other customers' data, and do not degrade
the service for others. Our contact details are also published at
/.well-known/security.txt.