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:
- Process & systemd context (
/host/proc): Resolves executable binary, PID, systemd unit name, and cgroup v2 path. - Docker runtime resolution: Maps container network namespaces and bridge IPs to container names and images.
- Kubernetes Pod & Service resolution: Maps pod IPs, namespaces, pod names, owner workloads, labels, and ClusterIP
Serviceendpoints 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 --jsonExample 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
| Category | Meaning |
|---|---|
workload | Managed Kubernetes pods, deployments, or Docker containers resolved by cyberd. |
host_service | Listening daemons or processes running directly on an enrolled Linux host. |
lan_peer | Private-network (RFC 1918) hosts or peers communicating with enrolled nodes. |
external | Outbound public internet destinations contacted by your hosts or workloads. |
external_clients | Inbound public internet callers reaching exposed services on your fleet. |
Node shield_state
| State | Meaning |
|---|---|
enforced | Node or workload is covered by an active enforce-mode policy generation. |
observe | Node or workload is covered by observe-mode rules only (simulating hits without drops). |
unshielded | Node is streaming flow visibility but has no firewall, sandbox, or shield rules scoped to it yet. |
Edge verdicts
| Verdict | Color in UI | Meaning |
|---|---|---|
allowed | Green | Traffic permitted by policy (or no matching deny rule). |
simulated | Amber | Traffic matched an observe-mode deny rule or watch_to indicator — would be dropped if enforced. |
blocked | Red | Traffic 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:
| Overlay | Trigger condition | Recommended action |
|---|---|---|
fleet_sweep | A single external source probes or connects to multiple enrolled hosts. | Add the source IP/CIDR to inbound.deny_from fleet-wide. |
lateral_movement | Unexpected 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_host | Correlated 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_egress | Workloads initiating connections to high-risk or anomalous external peers/ports. | Inspect process/pod identity, add peer to outbound.deny_to, and verify teardown. |
imds_access | Any 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
- Detect an unexpected edge: In Defence → Topology, notice a
workloadpod (sglang-worker) opening anallowedoutbound edge to198.51.100.44:4444flagged with thesuspicious_egressoverlay. - Verify locally (optional): Run
kubectl -n helix-cyber exec <pod> -- cyberd flows --jsonto confirm the exact PID and binary initiating the socket. - Create a scoped deny rule: Add
198.51.100.44/32tooutbound.deny_to(or{ "proto": "tcp", "ports": [4444], "to": ["198.51.100.44/32"] }tooutbound.deny) in Configure Blocking & Policies. - Enforce & confirm teardown:
- In Enforce mode,
cyberdcommits the atomicnftablesupdate, blocks new connects incgroup/connect4, and terminates the existing TCP socket inside the pod namespace viaSOCK_DESTROY. - On the next heartbeat, the topology edge flips from
allowedtoblockedand theBlockedcounter increments in Enforcement Metrics.
- In Enforce mode,
Next steps
- Deploy cyberd (Quickstart) — Roll out
cyberdacross standalone hosts and Kubernetes clusters. - Configure Blocking & Policies — Full JSON schema for
shirudo.firewall,shirudo.sandbox, andshirudo.shield. - Enforcement Metrics & Telemetry — Track simulated vs blocked counters in the Impact dashboard.