Isolation and security
What a restored backup can reach, how your credentials and DownDrill’s copies are kept, and what DownDrill does not protect against.
The sandbox
Nothing from a backup runs in the app you sign in to. Each restore runs on the runner, a separate process that drives Docker, in a sandbox made for that drill alone:
- Network
- A fresh internal Docker network with no route out, separate from DownDrill’s own network and from every other drill’s.
- Files
- Docker volumes, never a folder of the runner’s machine. Files go in and out through Docker’s archive interface.
- Limits
- Memory with no swap, CPU and processes are limited for every container; disk is not. All run with no-new-privileges, and none is privileged or given added capabilities or devices.
- Time
- 30 minutes unless Asset settings sets another. At the limit the sandbox is destroyed and the drill fails, normally as
timeout. - Afterwards
- When the drill ends, pass or fail, its containers, volumes and networks are removed and the backup it fetched is deleted. Only a warm standby whose start passed keeps running.
A backup is treated as hostile. No archive entry is written outside its place or as a link, an archive or compressed dump that unpacks past its limit is refused, and so is a Compose service that asks for the host’s network, shared namespaces, privileged mode, added capabilities, devices, a bind mount or a build.
WordPress and Compose drills list services outside the sandbox, and scheduled tasks, as not tested. The evidence records each drill’s network, way out and limits.
The one way out
A drill that dumps a live PostgreSQL, MySQL or MariaDB database has to reach it, and nothing on the drill’s network can. So:
- The address is checkedYour database’s host name must resolve only to public addresses.
- A relay startsDownDrill’s own container, joined to the drill’s network and to one with a route out, forwards to that address and your port alone.
- The dump is takenThrough the relay, as a role that can only read.
- The relay is removedBefore anything is restored. Then nothing in the drill has a route out.
The relay only passes bytes along, so TLS, if the connection uses it, runs end to end, and sslmode=verify-full checks the certificate against your host’s own name. Connection tests use the same relay. Every other drill has no way out at all: the runner fetches the backup itself.
Read-only at the source
- PostgreSQL: every statement, the dump included, runs in a read-only session, and a superuser or a role that can write to any table is refused.
- MySQL and MariaDB: a role with any privilege beyond
SELECTandSHOW VIEWis refused. - The role is checked at every connection test and before every dump; one that is refused stops there as
wrong_credentials. - Buckets are only listed and read, a WordPress site is never contacted, and a running Compose project is not stopped: its volumes are mounted read-only into a capture container with no network.
Where backups come from shows how to make such a role.
Credentials
Passwords and keys for a database, a bucket or a private registry are sealed with AES-256-GCM under DownDrill’s master key, bound to your organisation and the asset. The app opens them only for a runner that has claimed a job needing them, and to remove them from what that runner sends back; the runner does not keep them. A drill of a held copy is sent no source credentials beyond a registry login, which is used only to pull images.
Copies
Each copy is encrypted before it reaches the vault: AES-256-GCM in 1 MiB chunks, under a random key of its own that is sealed with the master key and bound to your organisation and that copy. A copy cut short or reordered does not decrypt. Whenever a copy is restored from the vault, as by Test this copy, each file is first checked against the SHA-256 recorded when it was stored.
Secrets in logs and evidence
Progress lines, check results, logs and reports are cleaned on the runner and again in the app. The runner replaces with [redacted] your credentials, the passwords it made for the drill, a Compose application’s environment values, passwords in connection strings and values after names such as password or token. The app does the same for your credentials and those patterns.
Addresses that are refused
A database host, and a bucket endpoint you give, must resolve only to public internet addresses, so that a source cannot be pointed at DownDrill’s own network or a cloud provider’s metadata service. A private, loopback, link-local or other non-public address stops the connection test or drill as wrong_credentials. The relay connects to the address that was checked; a bucket’s storage client looks the name up again, so a change in between is not caught.
Your organisation and your account
No signed-in page shows another organisation’s data. An address naming another organisation’s asset, copy, drill, alert recipient, message, person or auditor link answers 404, and DownDrill’s tests check this with a second organisation.
Sign-in links, invitations, sessions and auditor links are stored only as SHA-256 hashes; verification links are kept as they are, so that the app can show them. The session cookie is signed and sent only over HTTPS, every form carries a token tied to your session, and pages load nothing from elsewhere. See People and signing in.
What DownDrill does not protect against
- A takeover of the runner’s server. The runner drives Docker, which amounts to full control of its machine, and during a job it holds your credentials and backup unencrypted. On app.downdrill.com today the runner, the app, its database, the vault and the master key share one server with applications that are not DownDrill’s. Whoever took control of that server could open every organisation’s credentials and copies.
- A sandbox escape. A sandbox is Docker containers, not a virtual machine. Code in a backup that exploited a kernel flaw would reach the runner’s server and everything on it, other organisations’ drills included.
- Your data on the runner. The fetched backup and the restored data are unencrypted there during a drill. If the runner stops part-way, they stay until a runner on that server clears them, a few minutes after the drill’s time limit. A warm standby keeps its data until it is stopped.
- DownDrill itself. Sealing protects against someone holding DownDrill’s database or vault alone. DownDrill holds the master key so that drills run without you, and whoever operates it can open what it seals.
- Secrets it was never given. Redaction removes what DownDrill knows and common patterns; another secret your application prints can reach a log or check output kept as evidence.
- What evidence shows. Evidence names tables, plugins, services, hosts, user names and buckets, and can include a screenshot of the homepage. It is not encrypted, and while an asset’s verification links are on, whoever holds a drill’s link can read its evidence: see Evidence and the ledger.
- Someone who reads your mail. With no password, second factor or single sign-on, whoever reads your mailbox can sign in as you.