Hardened tor on scratch: static PIE, Landlock and seccomp, from the Tor Project's signed release
2.0K
A hardened image of tor, the Tor network daemon: a SOCKS proxy, an onion service, a relay or an exit. tor is built from the Tor Project's signed release tarball as one static PIE binary on an empty scratch image, with no shell and no package manager. A small launcher confines it before tor's first instruction, using Landlock (which files it may touch, which ports it may listen on) and a seccomp filter (no way to start another program). It runs as uid 9001 with no capabilities. Images are rebuilt daily, signed with Sigstore, and ship with an SBOM and a VEX document.
tor may only listen on the ports you grant. LISTEN_PORTS defaults to 9050. A relay, ControlPort or DNSPort needs its port added, or tor logs Permission denied and stops. The quickstart, examples for each role, configuration and verification steps are in the README on GitLab.
Follow X.Y.Z (the newest release of a tor series, such as 0.4.9), or pin X.Y.Z.W_<hash> for an image that never changes; X.Y.Z.W (moves on a rebuild of that tor release) and latest also exist. Architectures: amd64 and arm64. No bridges or pluggable transports.
Tor is built and kept running by the Tor Project, a non-profit, and by the people who run relays. If this image is useful to you, please donate to the Tor Project or run a relay.
Content type
Image
Digest
sha256:63f22153e…
Size
8.9 MB
Last updated
1 day ago
docker pull grepular/tor