Skip to content

coldrun

Fetch, vet and sandbox any downloaded script in one command.

You found a proof of concept on GitHub, a tool in a gist, or an exploit on exploit-db. Running it means reading it, making a venv, guessing the packages, installing them on your machine, and hoping. coldrun fetches the script into quarantine, works out what it needs, vets the script and its dependencies, and runs it in a sandbox with no network, no home directory and a read-only root unless you allow more.

The sandbox is the protection; the scan is the warning. coldrun stays safe even when the scan says clean.

Install

uv tool install 'coldrun[vet]'   # coldrun with the YARA script rules
uv tool install semgrep guarddog # Python script rules and dependency vetting
coldrun doctor                   # checks bubblewrap, user namespaces and the rest

On Arch and Omarchy, every release also carries a pacman package:

curl -LO https://github.com/rj-karan/coldrun/releases/latest/download/coldrun.pkg.tar.zst
sudo pacman -U coldrun.pkg.tar.zst

Linux only. Needs Python 3.10 or newer and bubblewrap from your distribution; coldrun doctor gives the exact install command for anything missing. Podman is needed only for Python 2 scripts.

Tested in CI on Arch, Fedora, Debian 12, Ubuntu 22.04 and 24.04, Rocky 8 and 9, openSUSE Tumbleweed and Alpine, on x86_64 and arm64. NixOS is not supported yet: its programs live in /nix/store, which the sandbox does not mount.

A first run

coldrun running a Python proof of concept: three inferred dependencies, a cached environment, network and home directory blocked, exit code 0

The script has three third-party imports and no requirements file. coldrun found them, installed them inside the sandbox on the first run, and reuses that environment on every run after, like this one.

And when a script should not run at all:

coldrun refusing a one-line installer that pipes a download into a shell and edits ~/.bashrc, exit code 100

Where to go next

  • Usage: every command, flag and source form, with examples.
  • Threat model: what the sandbox guarantees and what it does not.
  • Runners: the languages coldrun runs and how to add one.
  • JSON report: the --json document for scripts and CI.