Deploy cyberd (Quickstart)
Install and enroll the cyberd kernel defence agent on standalone Linux servers with one command, or on Kubernetes clusters with the public Helm chart, then upgrade and remove it safely.
cyberd is the Linux kernel defence agent behind Helix Cyber Defence. It enforces signed policy bundles using eBPF, atomic nftables, and multi-namespace SOCK_DESTROY, while streaming live traffic topology and enforcement metrics back to the Helix Cyber portal.
There are two ways to deploy it:
- Standalone Linux host — one
curl | sudo bashcommand downloads, verifies, installs, and enrollscyberdas a systemd service. - Kubernetes cluster — one
helmcommand runs a least-privilegecyberdpod on every node.
Prerequisites
| Requirement | Details |
|---|---|
| OS & Kernel | Linux kernel 5.10+ with BTF (/sys/kernel/btf/vmlinux) and nftables (nf_tables kernel module) |
| Architecture | linux/amd64 or linux/arm64 |
| Outbound Portal Access | HTTPS (TCP 443) to your Helix Cyber portal and to ghcr.io (where cyberd releases are published). Portal access is automatically preserved as a lifeline even under outbound.default=drop. |
| Linux hosts | root (or sudo), curl, sha256sum, and systemd. Debian/Ubuntu, RHEL/Rocky/AlmaLinux/Amazon Linux, and Alpine are supported. |
| Kubernetes | Kubernetes 1.25+ and Helm 3.8+ |
| Optional BPF LSM | Kernel boot parameter lsm=...,bpf is only required to enforce lsm/file_open and lsm/socket_create hooks. All network blocking (cgroup/connect4, cgroup/connect6, cgroup_skb/ingress, tc_ingress, nftables, SOCK_DESTROY) and ebpf_flow topology enforce on stock kernels without boot changes. |
Step 1: Get an enrollment token
In the Helix Cyber portal, open Defence → Assets and add the host (or, for Kubernetes, the cluster). Its setup panel generates a one-time enrollment token and shows both install commands below with the token already filled in — copy them straight from there.
Host tokens are single-use and expire after 15 minutes. A cluster token can be used by every node in the cluster, but also only for 15 minutes after it was generated. If a token expires, select Rotate enroll token for a fresh one.
Step 2a: Standalone Linux host
Run this on the host:
export CYBERD_ENROLL_TOKEN='<ENROLL_TOKEN>'
curl --proto '=https' --tlsv1.2 -fsSL https://cyber.helix.ml/cyberd-install.sh \
| sudo --preserve-env=CYBERD_ENROLL_TOKEN bash -s -- --url https://cyber.helix.mlPrefer to paste the token interactively? Skip the export line and run curl --proto '=https' --tlsv1.2 -fsSL https://cyber.helix.ml/cyberd-install.sh | sudo bash — the installer asks for the token without echoing it.
What the installer does
- Detects the architecture (
amd64/arm64) and package manager, and picks the native.deb,.rpm, or.apkpackage (or the static binary on other distributions). - Downloads the latest
cyberdrelease from the public GitHub Container Registry and verifies its SHA-256 checksum before using it. - Creates root-only
/etc/cyberdand/var/lib/cyberddirectories. - Hands the enrollment token to
cyberdon standard input — it never appears in process arguments, shell traces, or files on disk. - Enrolls the host and starts the hardened
cyberd.servicesystemd unit plus its rollback watchdog timer.
The host appears under Defence → Assets within a minute. Check it locally with:
sudo cyberd status
sudo cyberd selftestInstaller options
| Option | Purpose |
|---|---|
--url <portal> | Your Helix Cyber portal URL (default https://cyber.helix.ml) |
--enroll-token-file <path> | Read the token from a file instead of CYBERD_ENROLL_TOKEN (the file is deleted after enrollment) |
--version <version> | Install a specific cyberd release instead of the latest |
--roles shield,canary | Also enable Tripwire canaries on the host (default shield) |
--method binary | Install the static binary even when a native package manager is available |
Passing the token as a plain argument is refused on purpose, so it can never leak through ps or audit logs.
Upgrade and uninstall
Re-running the installer on an enrolled host upgrades cyberd in place — no new token needed, and the node keeps its identity and policies:
curl --proto '=https' --tlsv1.2 -fsSL https://cyber.helix.ml/cyberd-install.sh | sudo bash -s -- upgradeTo remove cyberd, detach its eBPF programs, and delete its nftables table (table inet helix_cyberd):
curl --proto '=https' --tlsv1.2 -fsSL https://cyber.helix.ml/cyberd-install.sh | sudo bash -s -- uninstallAdd --purge to also delete /etc/cyberd and /var/lib/cyberd. Then delete the host under Defence → Assets.
Step 2b: Kubernetes cluster
Install the public cyberd Helm chart from bash or zsh:
helm upgrade --install cyberd oci://ghcr.io/helixml/charts/cyberd \
--namespace helix-cyber --create-namespace \
--set portal.url='https://cyber.helix.ml' \
--set cluster.name='prod-eu' \
--set-file enrollment.token=<(printf '%s' '<ENROLL_TOKEN>')cluster.name is the name your nodes appear under in the portal; the command shown in the portal already fills it in. The <(...) form passes the token to Helm without writing it to disk. Each node then enrolls itself as part of the cluster and appears in the portal within about a minute:
kubectl -n helix-cyber rollout status daemonset/cyberd
kubectl -n helix-cyber exec ds/cyberd -- cyberd statusWhat the chart deploys
- A
DaemonSetthat runs onecyberdpod per node — including control-plane and tainted nodes, because an unmonitored node is an audit gap. - Pods run with
privileged: false,readOnlyRootFilesystem: true, andallowPrivilegeEscalation: false, dropping all Linux capabilities and adding back only what eBPF,nftables, and per-pod flow attribution need:BPF,PERFMON,NET_ADMIN,SYS_ADMIN,SYS_RESOURCE,DAC_READ_SEARCH, andSYS_PTRACE. - The enrollment token lives in a Kubernetes
Secretmounted read-only into the pod — never in environment variables or container arguments, so it does not appear inkubectl describe pod. - A read-only
ClusterRole(get,list,watchonpods,nodes, andservices) socyberdcan resolve pod names, owner workloads, labels (k8s_pod_labelspolicy scoping), and ClusterIPServiceendpoints. No write access and no access to Secrets. - The host's
/procmounted read-only (instead ofhostPID: true), socyberdcan map sockets to container and pod network namespaces for live topology and multi-namespaceSOCK_DESTROY. - An uninstall hook that removes
cyberd's eBPF programs andnftablesrules from every node before the pods are deleted (see Uninstall).
Common chart values
| Value | Default | Purpose |
|---|---|---|
cluster.name | (required) | Cluster name shown in the portal |
enrollment.token | — | Cluster enrollment token (use --set-file) |
enrollment.existingSecret | — | Use a Secret you manage (for example via External Secrets) instead of enrollment.token; the key defaults to enroll-token |
portal.url | https://cyber.helix.ml | Helix Cyber portal URL |
image.tag / image.digest | chart version | Pin a specific cyberd image |
nodeSelector, affinity, tolerations | all Linux nodes | Restrict which nodes run cyberd |
priorityClassName | — | Set system-node-critical to protect the agent from eviction where your cluster allows it |
hostPaths.criSocketDir | /run/containerd | Container runtime socket directory (k3s: /run/k3s/containerd) |
resources | 25m/48Mi requests, 200m/192Mi limits | Pod resources |
teardown.enabled / teardown.purge | true / true | Clean every node on helm uninstall, including its cyberd identity |
Show every value with helm show values oci://ghcr.io/helixml/charts/cyberd.
Upgrade
The chart version always matches the cyberd release it deploys. Upgrades roll one node at a time, and enforcement stays attached while each pod restarts:
helm upgrade cyberd oci://ghcr.io/helixml/charts/cyberd --namespace helix-cyber --reuse-valuesAdding nodes later
Nodes that join the cluster more than 15 minutes after the token was generated (autoscaling, replaced nodes) cannot enroll with it, and their cyberd pod restarts until they can. Select Rotate enroll token on the cluster asset in the portal, then pass the new token to the release:
helm upgrade cyberd oci://ghcr.io/helixml/charts/cyberd --namespace helix-cyber --reuse-values \
--set-file enrollment.token=<(printf '%s' '<NEW_ENROLL_TOKEN>')Nodes that are already enrolled keep their identity and are not affected.
Uninstall
helm uninstall cyberd --namespace helix-cyberWith chart version 0.5.6 or later, an uninstall hook runs before the pods are deleted and switches cyberd on every node into teardown mode: it detaches all cyberd eBPF programs, deletes table inet helix_cyberd, and removes the node's cyberd identity, so no policy keeps enforcing after the agent is gone. This takes a few seconds and waits at most 3 minutes (teardown.timeout). If you uninstall with --no-hooks, used a chart older than 0.5.6, or a node was unreachable, clean that node by hand once its cyberd pod is gone:
sudo nft delete table inet helix_cyberd
sudo rm -rf /sys/fs/bpf/cyberd /etc/cyberd /var/lib/cyberdcyberd attaches every eBPF program through a pinned link under /sys/fs/bpf/cyberd. With no cyberd process left holding them, removing the pins detaches the programs, so this is the same cleanup the uninstall hook performs.
Then delete the cluster under Defence → Assets.
Cluster-wide HA Kubernetes lifelines
When cyberd runs on Kubernetes nodes, its enforcement engine automatically preserves:
- Control-plane TCP ports:
2379,2380(etcd),6443(kube-apiserver),10250(kubelet) - CNI overlay UDP ports:
8472(Flannel/Cilium VXLAN),51820,51821(WireGuard) - DNS resolution: UDP/TCP port
53emitted after explicit deny rules underoutbound.default=drop
Signed policy bundles & node selectors
Every policy configured in the Helix Cyber portal is compiled into an Ed25519-signed .hxsb (Helix Shield Bundle) with a monotonic generation counter. Policies target specific fleets or workloads using:
selector_labels— match enrolled hosts by label (for example{"env": "prod", "role": "gpu-worker"})unit/cgroup— scope rules to a specificsystemdservice or cgroup v2 pathk8s_namespace/k8s_pod_labels— scope rules to Kubernetes namespaces and pod label selectors
Day-2 CLI operations
# Show enrolled node identity, active generation, loaded eBPF programs, and counters
sudo cyberd status
# Run kernel capability, nftables, and eBPF attach self-check
sudo cyberd selftest
# Inspect live kernel flows resolved to processes, containers, and pods
sudo cyberd flows --json
# Show the installed version
cyberd version
# Finish any pending dead-man recovery (e.g. after a quarantined generation)
sudo cyberd rollback
# Roll back to the previous known-good generation right away
sudo cyberd rollback --forceOn Kubernetes, run the same commands with kubectl -n helix-cyber exec ds/cyberd -- cyberd <command>.
Automatic 90-second rollback
Whenever an enforced generation is applied, cyberd starts a 90-second dead-man self-check. If the node cannot complete a signed heartbeat with the Helix portal within that window, cyberd automatically restores the previous known-good table inet helix_cyberd ruleset and eBPF maps, marks the failing generation as quarantined so it will not be re-applied in a loop, and reports the rollback reason once connectivity returns.
Next steps
- Configure Blocking & Policies — JSON examples for ingress/egress blocking, active TCP tunnel disruption, sandboxes, and HTTP shields.
- Enforcement Metrics & Telemetry — Verify observe-mode hits before flipping to enforce.
- Service Topology & Threat Overlays — Map live host, Docker, and Kubernetes traffic and block suspicious edges.