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
cyberdcheckpoints 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
nftablescounters in place; user-spacecyberdreads 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 group | What it measures | How operators use it |
|---|---|---|
| Blocked | Active 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 & watched | Matches 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 & integrity | Sensitive 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 coverage | Enrolled 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 name | Kernel hook / engine | Typical events |
|---|---|---|
ebpf_cgroup_connect | cgroup/connect4, cgroup/connect6 | Outbound TCP/UDP connects denied (or simulated) before handshake, including IPv4-mapped IPv6 (::ffff:x.x.x.x). |
nftables | table inet helix_cyberd (ff_input, ff_output, ff_forward) + NFLOG | Inbound/outbound/routed packet drops, default-drop egress hits, and pre-established tunnel drops. |
ebpf_http_skb | cgroup_skb/ingress | L7 HTTP path shield blocks (shirudo.shield http_deny_paths). |
ebpf_tcx | tc_ingress | Traffic-control ingress packet filtering. |
ebpf_sysctl | cgroup/sysctl | Blocked or observed /proc/sys kernel parameter writes. |
ebpf_lsm | lsm/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:
- Publish in
observemode: Apply the policy with"mode": "observe". - Wait for a normal traffic cycle (for example
1hor24hin the Impact dashboard). - 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 incrementSimulated & watched.
- If legitimate services show simulated hits, open Service Topology, identify the exact destination IP/port and workload, and add it to
- Switch to
enforce: Flip"mode": "enforce". WatchSimulated & watcheddrop to zero for that rule whileBlockedpicks up any matching attempts, and verifyHost coverageremains 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:
# 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_cyberdOn Kubernetes:
kubectl -n helix-cyber exec ds/cyberd -- cyberd status
kubectl -n helix-cyber exec ds/cyberd -- nft list table inet helix_cyberdTroubleshooting missing metrics
- Zero hits on an observe rule: Verify
cyberd statusshows the expected bundle generation and that the node's labels matchselector_labels. - Policy quarantined after enforce: Run
sudo cyberd statusto inspect the rollback reason (for example, portal reachability failed during the 90-second check). Fix the policy, push a new generation, or runsudo cyberd rollbackonce resolved (add--forceto restore the last known-good snapshot immediately). ebpf_lsmshowing simulated/observed instead of blocked: Checkcat /sys/kernel/security/lsmon the node. Ifbpfis absent, kernel boot args do not includelsm=...,bpf, socyberdis safely running inkprobeobservation mode for file/socket LSM hooks while all network hooks continue enforcing normally.
Next steps
- Service Topology & Threat Overlays — Correlate metric spikes with live process, container, and Kubernetes edges.
- Configure Blocking & Policies — Tune allowlists, deny rules, and workload sandboxes.