HelixML

Enforcement Metrics & Telemetry

Understand how cyberd aggregates eBPF, NFLOG, and nftables counters into the Impact dashboard, how to verify observe-mode rules before enforcing, and how to inspect counters from the CLI.

Every rule in Helix Cyber Defence — whether running in observe mode or enforce mode — produces deterministic kernel counters and attribution telemetry so you can prove zero false positives before blocking production traffic and measure impact afterward.

See the Live Topology & Enforcement Metrics feature page for an architectural overview.

Telemetry pipeline: kernel to Impact dashboard

eBPF maps (connect4/6, http_skb, tcx, sysctl, lsm)
   + nftables rule counters & NFLOG packets (ff_input / ff_output / ff_forward)
   + SOCK_DESTROY termination counts
          │
          ▼
/var/lib/cyberd/counters.json   (persisted locally across daemon restarts)
          │
          ▼
Signed node heartbeats ──► Helix Cyber Portal
          │
          ▼
Impact dashboard time series (1h · 6h · 24h · 7d · 30d windows)
  • Restart resilience: Because cyberd checkpoints cumulative counters to /var/lib/cyberd/counters.json, daemon upgrades or host reboots do not reset historical deltas.
  • Low overhead: Kernel programs increment per-CPU eBPF counters and nftables counters in place; user-space cyberd reads snapshots on the heartbeat interval rather than shipping one HTTP request per packet.

Reading the Impact dashboard

In the Helix Cyber portal under Defence → Impact, metrics are organized into four panels across selectable 1h, 6h, 24h, 7d, and 30d time ranges:

Metric groupWhat it measuresHow operators use it
BlockedActive enforced drops (calls / packets and bytes) across eBPF hooks, nftables, and SOCK_DESTROY terminations.Confirms active attack disruption, blocked C2/exfil traffic, and virtual-patch HTTP shield hits.
Simulated & watchedMatches against observe-mode policies and shirudo.watch / outbound.watch_to rules (calls and bytes) where traffic was permitted.Dry-run safety gate before flipping a policy from observe to enforce.
File & integritySensitive host-file reads/writes from shirudo.watch (host_files) and sandbox deny_write_paths events.Detects credential theft (/etc/shadow, SSH keys) or persistence attempts.
Host coverageEnrolled nodes reporting healthy heartbeats, active bundle generation, and enforcement status (enforced, observe, rollback/quarantined).Verifies fleet-wide policy convergence after a rollout.

Per-module kernel attribution

Every metric point carries the exact kernel module that produced it, making it straightforward to tell whether a block occurred at socket connect, packet filter, HTTP buffer, or sysctl boundary:

Module nameKernel hook / engineTypical events
ebpf_cgroup_connectcgroup/connect4, cgroup/connect6Outbound TCP/UDP connects denied (or simulated) before handshake, including IPv4-mapped IPv6 (::ffff:x.x.x.x).
nftablestable inet helix_cyberd (ff_input, ff_output, ff_forward) + NFLOGInbound/outbound/routed packet drops, default-drop egress hits, and pre-established tunnel drops.
ebpf_http_skbcgroup_skb/ingressL7 HTTP path shield blocks (shirudo.shield http_deny_paths).
ebpf_tcxtc_ingressTraffic-control ingress packet filtering.
ebpf_sysctlcgroup/sysctlBlocked or observed /proc/sys kernel parameter writes.
ebpf_lsmlsm/file_open, lsm/socket_create (or kprobe fallback)Sandbox exec/write restrictions and raw-socket blocks (AF_PACKET).

Simulate-to-enforce verification walkthrough

Before enforcing a strict policy such as outbound.default: "drop" on a production cluster:

  1. Publish in observe mode: Apply the policy with "mode": "observe".
  2. Wait for a normal traffic cycle (for example 1h or 24h in the Impact dashboard).
  3. Check Simulated & watched:
    • If legitimate services show simulated hits, open Service Topology, identify the exact destination IP/port and workload, and add it to outbound.allow.
    • Confirm that expected threat/metadata tests (such as 169.254.169.254) do increment Simulated & watched.
  4. Switch to enforce: Flip "mode": "enforce". Watch Simulated & watched drop to zero for that rule while Blocked picks up any matching attempts, and verify Host coverage remains 100% healthy past the 90-second dead-man check.

Inspecting counters locally on a node

You can verify kernel counters directly on any Linux host or inside a Kubernetes cyberd DaemonSet pod without leaving the terminal:

bash
# View daemon status, active bundle generation, and per-module counters
sudo cyberd status
 
# Inspect persisted counter snapshots
sudo cat /var/lib/cyberd/counters.json | jq .
 
# Inspect live nftables packet/byte counters in table inet helix_cyberd
sudo nft list table inet helix_cyberd

On Kubernetes:

bash
kubectl -n helix-cyber exec ds/cyberd -- cyberd status
kubectl -n helix-cyber exec ds/cyberd -- nft list table inet helix_cyberd

Troubleshooting missing metrics

  • Zero hits on an observe rule: Verify cyberd status shows the expected bundle generation and that the node's labels match selector_labels.
  • Policy quarantined after enforce: Run sudo cyberd status to inspect the rollback reason (for example, portal reachability failed during the 90-second check). Fix the policy, push a new generation, or run sudo cyberd rollback once resolved (add --force to restore the last known-good snapshot immediately).
  • ebpf_lsm showing simulated/observed instead of blocked: Check cat /sys/kernel/security/lsm on the node. If bpf is absent, kernel boot args do not include lsm=...,bpf, so cyberd is safely running in kprobe observation mode for file/socket LSM hooks while all network hooks continue enforcing normally.

Next steps