HelixML

Service Topology & Threat Overlays

How cyberd builds a real-time host, Docker, and Kubernetes service graph from kernel eBPF hooks, enriches external peers, highlights fleet threat overlays, and converts observed edges into blocking rules.

Helix Cyber Defence builds a live service and traffic topology directly from Linux kernel eBPF hooks — no sidecar proxies, no packet capture agents, and no application instrumentation required.

See Live eBPF Service Topology & Metrics for the product overview.

How kernel flow stitching works

On every enrolled host or Kubernetes node, cyberd loads three lightweight ebpf_flow programs:

  • cyberd_flw_c4 — captures outbound socket connection attempts (connect) with PID, cgroup, destination IP, port, and verdict.
  • cyberd_flw_s4 — captures inbound accepted connections and socket endpoints.
  • cyberd_flw_ops — tracks active socket transitions and byte/connection aggregation in kernel maps.

In user space, cyberd enriches each socket tuple with workload identity before sending compact flow summaries to the portal:

  1. Process & systemd context (/host/proc): Resolves executable binary, PID, systemd unit name, and cgroup v2 path.
  2. Docker runtime resolution: Maps container network namespaces and bridge IPs to container names and images.
  3. Kubernetes Pod & Service resolution: Maps pod IPs, namespaces, pod names, owner workloads, labels, and ClusterIP Service endpoints so traffic to a Service stays grouped logically as pods scale or restart.

Inspecting live flows on a node (cyberd flows)

You can query the local ebpf_flow table directly on any Linux host or Kubernetes node:

# Human-readable table of active and recent kernel flows
sudo cyberd flows
 
# Machine-readable JSON for automation or incident triage
sudo cyberd flows --json

Example JSON entry from cyberd flows --json:

{
  "direction": "outbound",
  "proto": "tcp",
  "process": "/usr/bin/python3",
  "pid": 18422,
  "k8s_namespace": "ml-serving",
  "k8s_pod": "sglang-worker-7c9d4b8c6-k2p9m",
  "src_ip": "10.244.2.41",
  "dst_ip": "169.254.169.254",
  "dst_port": 80,
  "verdict": "blocked",
  "module": "ebpf_cgroup_connect",
  "hits": 4
}

Portal topology model

The Helix Cyber portal merges flow reports from all enrolled nodes into a unified fleet graph with structured node categories, shield states, and edge verdicts.

Node categories

CategoryMeaning
workloadManaged Kubernetes pods, deployments, or Docker containers resolved by cyberd.
host_serviceListening daemons or processes running directly on an enrolled Linux host.
lan_peerPrivate-network (RFC 1918) hosts or peers communicating with enrolled nodes.
externalOutbound public internet destinations contacted by your hosts or workloads.
external_clientsInbound public internet callers reaching exposed services on your fleet.

Node shield_state

StateMeaning
enforcedNode or workload is covered by an active enforce-mode policy generation.
observeNode or workload is covered by observe-mode rules only (simulating hits without drops).
unshieldedNode is streaming flow visibility but has no firewall, sandbox, or shield rules scoped to it yet.

Edge verdicts

VerdictColor in UIMeaning
allowedGreenTraffic permitted by policy (or no matching deny rule).
simulatedAmberTraffic matched an observe-mode deny rule or watch_to indicator — would be dropped if enforced.
blockedRedTraffic actively dropped by eBPF or nftables (and severed via SOCK_DESTROY for existing TCP tunnels).

External peer enrichment & threat overlays

External IPs in the topology graph are automatically enriched with ASN, GeoIP, and reputation metadata so you can immediately distinguish known cloud providers and package registries from unfamiliar infrastructure.

Across the fleet, the topology engine computes five automatic threat overlays:

OverlayTrigger conditionRecommended action
fleet_sweepA single external source probes or connects to multiple enrolled hosts.Add the source IP/CIDR to inbound.deny_from fleet-wide.
lateral_movementUnexpected east-west connections between nodes, containers, or namespaces (for example SSH or database port sweeps).Scope a shirudo.firewall outbound.deny rule between namespaces or hosts.
compromised_hostCorrelated suspicious egress, blocked C2 attempts, or sensitive file-watch alerts on the same host.Apply strict outbound.default: "drop" on the host selector to sever tunnels via SOCK_DESTROY.
suspicious_egressWorkloads initiating connections to high-risk or anomalous external peers/ports.Inspect process/pod identity, add peer to outbound.deny_to, and verify teardown.
imds_accessAny container or pod contacting cloud instance metadata (169.254.169.254).Add 169.254.169.254/32 to outbound.deny_to or shirudo.sandbox deny_cidrs.

Example workflow: turning an observed edge into a block

  1. Detect an unexpected edge: In Defence → Topology, notice a workload pod (sglang-worker) opening an allowed outbound edge to 198.51.100.44:4444 flagged with the suspicious_egress overlay.
  2. Verify locally (optional): Run kubectl -n helix-cyber exec <pod> -- cyberd flows --json to confirm the exact PID and binary initiating the socket.
  3. Create a scoped deny rule: Add 198.51.100.44/32 to outbound.deny_to (or { "proto": "tcp", "ports": [4444], "to": ["198.51.100.44/32"] } to outbound.deny) in Configure Blocking & Policies.
  4. Enforce & confirm teardown:
    • In Enforce mode, cyberd commits the atomic nftables update, blocks new connects in cgroup/connect4, and terminates the existing TCP socket inside the pod namespace via SOCK_DESTROY.
    • On the next heartbeat, the topology edge flips from allowed to blocked and the Blocked counter increments in Enforcement Metrics.

Next steps