Skip to content

Installation & System Requirements

System Requirements

ctxsec is engineered as a static, single-binary application with zero dynamic runtime dependencies and zero CGo.

Operating System Architecture Kernel Sandboxing Mechanism
macOS (Darwin) Apple Silicon (arm64), Intel (amd64) Apple Seatbelt SBPL (sandbox-exec)
Linux amd64, arm64 Bubblewrap (bwrap) + User Namespaces
Containers / Kubernetes Linux amd64 gVisor (runsc) / Kata Containers

Installation Methods

curl -fsSL https://ctxsec.io/install.sh | sh

Method 2: Manual Binary Download

Download pre-compiled binaries from the GitHub Releases page:

# macOS ARM64 (Apple Silicon)
curl -LO https://github.com/gosecio/ctxsec/releases/latest/download/ctx_Darwin_arm64.tar.gz
tar -xzf ctx_Darwin_arm64.tar.gz
sudo mv ctx /usr/local/bin/

# Linux x86_64
curl -LO https://github.com/gosecio/ctxsec/releases/latest/download/ctx_Linux_x86_64.tar.gz
tar -xzf ctx_Linux_x86_64.tar.gz
sudo mv ctx /usr/local/bin/

Method 3: Build from Source

git clone https://github.com/gosecio/ctxsec.git
cd ctxsec
CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o bin/ctx ./cmd/ctx
sudo install -m 755 bin/ctx /usr/local/bin/ctx