HelixML

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 bash command downloads, verifies, installs, and enrolls cyberd as a systemd service.
  • Kubernetes cluster — one helm command runs a least-privilege cyberd pod on every node.

Prerequisites

RequirementDetails
OS & KernelLinux kernel 5.10+ with BTF (/sys/kernel/btf/vmlinux) and nftables (nf_tables kernel module)
Architecturelinux/amd64 or linux/arm64
Outbound Portal AccessHTTPS (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 hostsroot (or sudo), curl, sha256sum, and systemd. Debian/Ubuntu, RHEL/Rocky/AlmaLinux/Amazon Linux, and Alpine are supported.
KubernetesKubernetes 1.25+ and Helm 3.8+
Optional BPF LSMKernel 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:

bash
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.ml

Prefer 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

  1. Detects the architecture (amd64 / arm64) and package manager, and picks the native .deb, .rpm, or .apk package (or the static binary on other distributions).
  2. Downloads the latest cyberd release from the public GitHub Container Registry and verifies its SHA-256 checksum before using it.
  3. Creates root-only /etc/cyberd and /var/lib/cyberd directories.
  4. Hands the enrollment token to cyberd on standard input — it never appears in process arguments, shell traces, or files on disk.
  5. Enrolls the host and starts the hardened cyberd.service systemd unit plus its rollback watchdog timer.

The host appears under Defence → Assets within a minute. Check it locally with:

bash
sudo cyberd status
sudo cyberd selftest

Installer options

OptionPurpose
--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,canaryAlso enable Tripwire canaries on the host (default shield)
--method binaryInstall 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:

bash
curl --proto '=https' --tlsv1.2 -fsSL https://cyber.helix.ml/cyberd-install.sh | sudo bash -s -- upgrade

To remove cyberd, detach its eBPF programs, and delete its nftables table (table inet helix_cyberd):

bash
curl --proto '=https' --tlsv1.2 -fsSL https://cyber.helix.ml/cyberd-install.sh | sudo bash -s -- uninstall

Add --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:

bash
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:

bash
kubectl -n helix-cyber rollout status daemonset/cyberd
kubectl -n helix-cyber exec ds/cyberd -- cyberd status

What the chart deploys

  • A DaemonSet that runs one cyberd pod per node — including control-plane and tainted nodes, because an unmonitored node is an audit gap.
  • Pods run with privileged: false, readOnlyRootFilesystem: true, and allowPrivilegeEscalation: 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, and SYS_PTRACE.
  • The enrollment token lives in a Kubernetes Secret mounted read-only into the pod — never in environment variables or container arguments, so it does not appear in kubectl describe pod.
  • A read-only ClusterRole (get, list, watch on pods, nodes, and services) so cyberd can resolve pod names, owner workloads, labels (k8s_pod_labels policy scoping), and ClusterIP Service endpoints. No write access and no access to Secrets.
  • The host's /proc mounted read-only (instead of hostPID: true), so cyberd can map sockets to container and pod network namespaces for live topology and multi-namespace SOCK_DESTROY.
  • An uninstall hook that removes cyberd's eBPF programs and nftables rules from every node before the pods are deleted (see Uninstall).

Common chart values

ValueDefaultPurpose
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.urlhttps://cyber.helix.mlHelix Cyber portal URL
image.tag / image.digestchart versionPin a specific cyberd image
nodeSelector, affinity, tolerationsall Linux nodesRestrict which nodes run cyberd
priorityClassName—Set system-node-critical to protect the agent from eviction where your cluster allows it
hostPaths.criSocketDir/run/containerdContainer runtime socket directory (k3s: /run/k3s/containerd)
resources25m/48Mi requests, 200m/192Mi limitsPod resources
teardown.enabled / teardown.purgetrue / trueClean 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:

bash
helm upgrade cyberd oci://ghcr.io/helixml/charts/cyberd --namespace helix-cyber --reuse-values

Adding 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:

bash
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

bash
helm uninstall cyberd --namespace helix-cyber

With 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:

bash
sudo nft delete table inet helix_cyberd
sudo rm -rf /sys/fs/bpf/cyberd /etc/cyberd /var/lib/cyberd

cyberd 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 53 emitted after explicit deny rules under outbound.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 specific systemd service or cgroup v2 path
  • k8s_namespace / k8s_pod_labels — scope rules to Kubernetes namespaces and pod label selectors

Day-2 CLI operations

bash
# 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 --force

On 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