HelixML
Open Helix Cyber
Open Helix Cyber

Cyber Defence

Helix Cyber Defence — Kernel-Level eBPF & nftables Force Field

Enforce ingress and egress policy, disrupt active attacker tunnels, map live service topology, and measure every simulated or blocked event directly from the Linux kernel with cyberd — across bare metal, Docker, and HA Kubernetes.

eBPF + nftables

Linux 5.10+ · Docker · Kubernetes

Start every shield in Observe mode to inspect real traffic in the Impact dashboard and live topology before flipping to Enforce.

Short answer

Helix Cyber Defence runs cyberd on every Linux host or Kubernetes node to enforce ingress and egress network policy, sever established attacker TCP tunnels across host and container namespaces, shield HTTP paths at the kernel socket layer, and stream live service topology and enforcement metrics back to the Helix Cyber portal.

Finding a vulnerability during a pentest only closes the window once a patch ships or an active control stops exploitation. Helix Cyber Defence bridges that gap at the Linux kernel boundary: policies are authored centrally, signed with Ed25519, verified against live traffic in Observe mode, and enforced atomically without restarting workloads or injecting sidecar proxies.

Enforcement architecture

cyberd separates control-plane intent from kernel execution using immutable, signed .hxsb bundles. When a node receives a new generation, the daemon verifies the signature, updates eBPF maps, commits an atomic table inet helix_cyberd nftables transaction, and terminates any pre-existing TCP sockets that now violate policy.

Control Plane to Kernel Enforcement Pipeline

HELIX PORTALForce Field Control• shirudo.firewall / shield• shirudo.sandbox / watch• Ed25519 signed .hxsb• Simulate → Enforce.hxsbCYBERD AGENT (LINUX / K8S DAEMONSET)eBPF: connect4/6 · skb · tc · flownftables: ff_input · ff_output · ff_fwdSOCK_DESTROY: host + /host/proc netnstelemetryOBSERVABILITY & ACTIONMetrics & Topology• Impact time series• Blocked vs Simulated• Live eBPF service graph• Click-to-block edges90s DEAD-MAN SELF-CHECK · AUTOMATIC ROLLBACK · QUARANTINE · K8S & SSH LIFELINES

Because enforcement happens in kernel hooks rather than an application proxy, it covers every process, binary, interpreted script, Docker container, and Kubernetes pod on the node regardless of language runtime or TLS library.

Four core capabilities

Ingress, egress & tunnel disruption

Block new connections with cgroup/connect4, cgroup/connect6 (including IPv4-mapped ::ffff:x.x.x.x), and atomic nftables (ff_input, ff_output, ff_forward), while multi-namespace SOCK_DESTROY severs established TCP tunnels immediately.

Workload sandboxing & HTTP shields

Attach targeted cgroup_skb/ingress HTTP path shields, cgroup/sysctl write blocks, and per-unit or per-namespace sandboxes to stop vulnerable endpoints, raw sockets, or metadata-service (169.254.169.254) access while patches roll out.

Live eBPF service & traffic topology

Capture every outbound connect, inbound accept, and destination across processes, Docker containers, and Kubernetes Pods/Services via ebpf_flow. Enrich external IPs with ASN, GeoIP, and threat overlays, and convert any edge into a rule in one click.

Impact metrics & kernel attribution

Every enforced drop, simulated match, NFLOG hit, and file-watch event is aggregated per kernel module into queryable time series (1h to 30d) so you can prove zero false positives before flipping a rule to enforce.

Lifelines and automatic rollback

Locking yourself out of a production server or breaking a Kubernetes control plane is worse than leaving a rule in observe mode. cyberd builds lockout prevention directly into the enforcement engine:

SafeguardWhat stays reachableBehavior on failure
Host & Portal lifelinesLoopback (lo), SSH (tcp/22 unless explicitly restricted), and the Helix Portal control-plane endpoint.Always emitted ahead of default-drop rules in ff_input and ff_output.
HA Kubernetes lifelinesControl-plane TCP {2379, 2380, 6443, 10250} and CNI overlay UDP {8472, 51820, 51821} (Flannel VXLAN, Cilium, WireGuard) plus post-deny DNS 53 under outbound.default=drop.Prevents etcd quorum loss, kubelet disconnect, or cross-node CNI blackholing during strict egress lockdowns.
90s dead-man rollbackEvery enforced generation must pass live control-plane heartbeat checks within 90 seconds.Automatically reverts table inet helix_cyberd and eBPF maps to the last known-good generation and quarantines the faulty policy.

Where it runs

cyberd ships as a standalone Linux binary and as a multi-arch container image (ghcr.io/helixml/cyberd:0.5.5, linux/amd64 and linux/arm64) designed for least-privilege operation:

  • Bare metal & VMs (systemd): Install with one curl --proto '=https' --tlsv1.2 -fsSL https://cyber.helix.ml/cyberd-install.sh | sudo bash command that downloads a checksum-verified package, enrolls the host, and runs cyberd as a hardened systemd unit. Re-run it to upgrade.
  • Docker hosts: Enforces both host egress/ingress and routed Docker bridge traffic in ff_forward, and sweeps every container network namespace via /host/proc during SOCK_DESTROY.
  • Kubernetes clusters (Helm): Install the oci://ghcr.io/helixml/charts/cyberd chart to run one pod per node with privileged: false, readOnlyRootFilesystem: true, hostNetwork: true, and scoped capabilities. Resolves container IDs and IPs to Kubernetes namespaces, pod names, labels, and Services automatically.

See the cyberd deployment quickstart for the Linux installer and Helm commands.

Signed policy bundles

All enforcement primitives share one declarative JSON schema compiled into signed bundles and scoped via selector_labels, unit, cgroup, or k8s_namespace / k8s_pod_labels:

  • shirudo.firewall — Host, container, and pod inbound and outbound IP/CIDR/port policies, default-drop egress, watch-only indicators, and SSH posture controls.
  • shirudo.sandbox — Workload-scoped execution, write path, and egress boundaries for high-risk services such as inference engines or notebooks.
  • shirudo.shield — Targeted kernel hooks including cgroup_skb/ingress HTTP path shields, cgroup/sysctl write blocks, and lsm/socket_create raw-socket restrictions.
  • shirudo.watch — Non-blocking threat-intel IP and sensitive host-file integrity watchers.

Explore concrete JSON examples in Configure Blocking & Policies.

Frequently asked questions

How does Helix Cyber Defence enforce rules without breaking production?

Every policy starts in observe mode so you can verify exact hits in the Impact dashboard and live topology before switching to enforce. When an enforced policy is applied, cyberd verifies control-plane reachability and built-in lifelines (SSH, loopback, Helix Portal, and Kubernetes control plane) inside a 90-second dead-man window. If connectivity fails, cyberd automatically rolls back the nftables table and eBPF maps and quarantines the bad policy generation.

Does cyberd work on both standalone Linux servers and Kubernetes clusters?

Yes. cyberd runs as a single static binary under systemd on standalone Linux hosts (Ubuntu, Debian, RHEL, Rocky) or as a non-privileged Kubernetes DaemonSet with readOnlyRootFilesystem and scoped Linux capabilities (BPF, PERFMON, NET_ADMIN, SYS_ADMIN, DAC_READ_SEARCH, SYS_PTRACE). Both environments share the same signed policy format, metrics pipeline, and live topology graph.

Can cyberd disrupt an attacker tunnel that is already open?

Yes. In addition to blocking new connections at cgroup/connect4, cgroup/connect6, and nftables, cyberd places deny rules ahead of established-connection accepts and runs NETLINK_SOCK_DIAG SOCK_DESTROY across both the host network namespace and every container and pod network namespace under /host/proc. Active TCP tunnels are torn down immediately, and existing UDP flows drop on their next packet.

What Linux kernel version is required?

cyberd requires Linux kernel 5.10 or newer with BTF enabled and nftables available. Core network blocking (cgroup/connect4, cgroup/connect6, cgroup_skb/ingress, tc_ingress, nftables, and SOCK_DESTROY) and flow topology run on stock distribution kernels without changing boot parameters. Enforcing BPF LSM hooks (lsm/file_open and lsm/socket_create) additionally uses the lsm=...,bpf kernel boot parameter; without it, kprobe observation continues automatically.

How are policy updates secured in transit?

Policies are compiled into Ed25519-signed .hxsb (Helix Shield Bundle) artifacts by the control plane. cyberd verifies the cryptographic signature, monotonic generation counter, and host selector labels before loading any eBPF map or atomic nftables transaction. Tampered or replayed bundles are rejected locally.

Helix Cyber Defence

Turn pentest findings into enforced kernel shields.

Enroll your Linux hosts or Kubernetes cluster in minutes, verify policies against live traffic in Observe mode, and enforce ingress/egress blocking with automatic 90-second rollback protection.