progon shares test VMs between trusted agents. It is not a sandbox for untrusted code.
- ssh access to the progon-server user on a VM is the trust boundary. That user has access to the host's Docker daemon, and Docker access is root on the host.
- Anyone who can start a run can run any code in the run container and, with the broker, start containers on the VM within the grant's limits.
- Runs of different agents on one VM are separated by Docker, by labels and names per grant and by the broker's policy, not by a stronger isolation boundary.
- The VMs are trusted with the client too. A
progon.pyzclient replaces itself before a run with<vm.root>/dist/progon.pyzof a VM that names a newer version inhello, and executes it: whoever can write that file on any configured VM, or answerhelloin its place, runs code as the user on every such client. Nothing verifies a signature.PROGON_NO_AUTO_UPDATE=1turns the replacement off; a client installed as a package (uv tool install progon,pipx install progon) never replaces itself from the VMs and only names its upgrade command.
These are what the code does today; they limit mistakes and accidents of trusted users, not a determined attacker with a shell on the VM.
-
Run container. Started with
--cap-drop ALL,--security-opt no-new-privileges, the runner uid and gid fromserver.toml, a memory limit with no extra swap, a pids limit and no core dumps (server/progon_server/runs.py). -
Network only on request. The run container is on network
noneunless the profile asks for the grant's own network (network = "grant"or the broker). -
Docker through a per-grant broker. With
broker = truethe run gets no Docker socket of the host, only the grant's broker. Every request goes through an allow-list, anything else is refused (unsupported_endpoint); objects of other grants look absent; containers it creates get at most five of Docker's default capabilities (CHOWN,DAC_OVERRIDE,FOWNER,SETGID,SETUID) less what they drop, and onlySYS_CHROOTandSYS_PTRACEmay be added; a bind may only name a path below the workdir'srepo/orresults/, and the daemon resolves it again at every start inside a volume of that very directory, which the run container holds as a mount point of its own and cannot replace (and the server no longer replaces it once that container exists), so a path swapped after create reaches neither the host nor the rest of the workdir (home/with the netrc); they getno-new-privilegesunless the caller opts out of it, and stay within the grant's CPU and memory; privileged exec is refused (server/progon_server/broker/policy.py). The broker's socket is mode 0660, of the server's uid and primary group, so other users of the VM cannot drive a grant's broker (server/progon_server/broker/serve.py). -
Shared NuGet cache. A run with
nuget_cachestarts from a copy of the VM's shared cache, which only the operator fills; nothing a run restores is copied back, since the run could plant any package under any version there. The cache is read only once the operator marks it (.progon-cache-version), since servers up to 0.5.7 did copy runs' packages into it (server/progon_server/nuget.py). -
Upload extraction. The source archive is extracted into a staging directory: absolute paths,
.., devices and other special files are refused, symlinks must point inside the sources, the number of entries and the total size are limited (server/progon_server/runs.py,_extract_repo). The client sends a source's symlink only when it points inside that source by its text and as it resolves on the client's machine through every link on the way, and never one that namesrun.netrc_fileunder any of its names (client/progon/snapshot.py,check_link): a link cannot carry a credential or a file outside the tree. A source is read without going through a link (each directory opened from the one above without following one), and the archive holds each link's checked text and each file's bytes from one descriptor; the server checks every link of the whole tree again before it publishes it, so an archive not made by this client cannot lead out ofrepo/either. -
Grant tokens. The server stores only the SHA-256 of a grant's token and compares it in constant time (
server/progon_server/grants.py). The client keeps a grant's token in that grant's release debt,<home>/grants/<grant_id>.json(mode 0600, in a directory of mode 0700), from the acquire until the grant is released or has expired: a later progon command on the same machine releases a grant whose release failed with it (client/progon/debts.py). The token is the credential of that one grant only; the file goes when a VM confirms the grant released or ended, and stays while its VM does not answer (the VM takes the token for that grant's release and diagnostics as long as it keeps the grant's record,retention_daysafter its end); it is never logged and never in a report. The operator releases a grant without its token (release --grant ID --force --reason TEXT): ssh access to the server's user is that boundary, as fordrainandgc. -
Download credentials. A netrc file goes to the server on stdin, never on a command line; the client neither logs it nor writes it into the run directory. The server keeps it in the grant's workdir with mode 0600 (0640 with the server's primary group, which the run container always has, when the runner has another uid), mounts it read-only into the run container, records only its size, and leaves it out of the results archive. The client refuses a run that would upload the configured file with the sources: a file of the snapshot, a kept state file or the
--baseline-withoutpatch with its identity (device and inode, checked on the descriptor it is copied from), a changed file of--sinceor a base version of one with the file's content in the patch, or the objects of the history bundlegit_historysends (client/progon/snapshot.py,client/progon/since.py). Keep it outside every source tree.These checks guard against a netrc left in a source tree by mistake, on the machine of the trusted user who runs progon; a netrc already committed to git is in that user's repository and every clone of it, whatever progon sends. Known gaps, by design of that model:
- the
--sincepatch is made by git from the live working tree; its files are compared with the netrc before and after git reads them, so a file swapped in and back between those two checks is not seen; - the history bundle is checked against the netrc's current content and its
configured path as
git rev-list --objectsnames each blob (one name per blob): an older version of the netrc committed under another name than the one git lists, or any version once the configured file is gone locally (there is nothing to compare), is not seen.
- the
-
Declared exports. A runner spec's
export_paths(patterns underrepo/only, no absolute path, no..) makesresultsadd matching files of the run'srepo/to the archive, under.progon-export/. The server walksrepo/itself, one directory descriptor at a time opened withO_NOFOLLOW|O_DIRECTORYbelow its parent, and takes a file only when it opens withO_NOFOLLOWas a regular file with a single link and is not a.netrcat any depth: a symlink, a hard link, a file or directory the run swaps for a symlink during the walk, a file read through a directory the run moves meanwhile (checked after each copy), the workdir's.ownermarker,home/and every other place outsiderepo/stay out. The copy goes into a directory of the server first (state/uploads/<gid>/, never mounted), bounded in entries scanned, files and bytes; a file that changes while it is copied is listed as changed, not padded. What was skipped and why is in the archive'sexport.json; an export that fails leaves the rest of the archive whole (server/docs/protocol.md,results). -
The registry of accepted mutants.
accepted/<project>.jsonnext to the profile is an ordinary file of the project's repository: fingerprints, short source text and reasons, a run id and a date; no secret, no path outside the repository and no URL. It is written only inside the git repository of the working directory: the profile's real path must lie in it, andaccepted/is reached from the repository's root one directory at a time withO_NOFOLLOW|O_DIRECTORY; a link anywhere on that way, inaccepted/'s place or in the registry's is refused with the paths, and nothing is created outside. The way is walked from a descriptor of the repository's root taken once. The write holds an exclusiveflockof that directory: writers that take it (everyacceptand--drop) are serialized. Under the lock, before a temporary byte is written, the way from the root must still lead to the locked directory (st_dev,st_ino); right before the replace, the way again, and the registry's name must still be the file that was read (or still nothing). The temporary file (O_EXCL) and the replace are made from the directory's descriptor. A directory moved out of the repository or swapped for a link, or a registry replaced by something that ignores the lock (a checkout, an editor), before those checks is refused; a move in the instant between the last check and the replace is not seen, and the replace then stays inside the directory that was locked. A registry that cannot be read, is not one or names another format is never written over. The registry and its own files are never in a snapshot nor in a--sincepatch (client/docs/profiles.md).
Report it privately through GitHub Security Advisories: Report a vulnerability on the repository's Security tab. Never in a public issue or pull request.
Include the client and server versions (progon version, and the server's
version from hello or status), what an attacker needs (which access), and
the steps to reproduce. There is no promised response time.
Only the latest client release and the latest server release get fixes.