Skip to content

Host monitoring ​

The capture shows what was sent to a service. Host monitoring shows what the request made the service do: the shell it started, the file it read, the connection it opened, the query it sent. With it, a flow in the hub leads from the attacker's request to its effect, without guessing.

It needs, on the vulnbox:

  • the host sensor, for what processes do (eBPF, read-only);
  • internal capture: loopback and the service bridges as well as the game's interface, for the hops inside the box and the services' own connections;
  • optionally runtime hooks, for services where one process serves many requests at once.

Each part is optional; the hub shows what it gets.

How a request is linked to what it did An attacker's request reaches the vulnbox on port 9100. vulnboxd's request log links it to the proxy's connection to the container, and the conntrack entry links that to the connection into the container. The gunicorn worker that accepted the socket served it. With one process serving many requests, a runtime hook says which request was running, so the shell it spawned, the flag file it read and the database query it sent are linked to this request, each by an exact fact, never by timing. linked byexternal flow10.60.7.1 → vulnbox:9100 POST /api/exportcaptured on the game interfaceproxy hopvulnboxd → 127.0.0.1:20000vulnboxd's request loginto the container172.18.0.1 → notes-app:8000conntrack entry (DNAT)processgunicorn worker, pid 812the socket it acceptedrequest 3 on itrequest_begin … request_endhook: which request is runningspawned/bin/sh -c "zip -r /tmp/x.zip /data"fork lineage + hook: spawnedread/data/flags.dbthe process + hook: openedinternal flow→ notes-db:5432 SELECT * FROM flagshook: connected (local port) needs a runtime hook only where one process serves many requests at once
Every step is joined by a fact the hub can prove. What cannot be proved stays unlinked.

What is collected ​

  • Every hop. Flows carry a scope: external (the game's traffic to the box), proxy (vulnboxd's proxy to the service, on loopback or into the container), internal (container to container, or to the box) and egress (out of a container or the box), with the interface they were seen on.
  • What the processes did. The sensor's events: programs started, files opened, read, written, renamed and deleted, connections, new listeners, sockets put on stdio, crashes, OOM kills, ptrace and kills, privilege changes, executable memory, seccomp denials, runtime-hook probes, and with TLS plaintext what went through a TLS library. Repetitive events are rolled up with a count, and processes are followed from fork to exit.

The hub's link worker joins all of it to the request that caused it, and only where something proves it:

  • vulnboxd's request log: which pooled backend connection carried which request;
  • the conntrack entry of a DNAT'd connection into a container;
  • fork lineage, and the socket a process accepted or inherited;
  • a worker that held exactly one client connection at that moment;
  • a runtime hook's probes, for event loops and thread pools.

What cannot be proved stays unlinked; nothing is matched by timing. Teams running Docker's userland proxy get the hop into the container linked once the sensor sees docker-proxy; with "userland-proxy": false in /etc/docker/daemon.json it is linked from the start.

Everything is kept as long as the flows are.

The request story ​

A flow's Story tab (The request story) shows one request with everything linked to it, in time order: the proxy hop, the processes that served it or were started for it (argv, exit), what they did (files, sockets, crashes), calls between containers, database queries and connections out, each with the rule that linked it. Links carry request indexes (the request log, a runtime hook's request number), so each request of a keep-alive connection gets only its own steps; where only the kernel's socket ownership links something, it is tied to the request that was being served on that connection at that moment, if requests on it went one after another, and listed as "not provably this request" otherwise. A flow linked below a request opens with "part of request …", one click from its place in the story. In the flow list each request carries a summary chip that opens it (Linked flows).

Pooled connections ​

A database connection the service keeps in a pool carries the queries of every request, and was usually opened before any of them, so nothing about the connection itself names a request. The sensor records the first write of each burst on it with the thread that wrote it. The linker ties each burst to the request the thread was working for — the runtime hook's context around the write (context_enter … context_exit on that thread), or the one client connection the thread held — and the story ties each decoded query to the burst that sent it: the latest burst on the same socket at or before the query was captured (within 2 ms).

So two requests sharing one connection each see only their own queries, marked by the write that sent it; the connection hangs below the request's burst even when it was opened long before. A query whose burst no request is linked to (no hook, and a worker with several connections), or that came before any burst the sensor saw, is listed as not attributed. Without the sensor, or for a runtime without hooks, the rule above stays: a connection hung from the request shows the queries inside the request's time. Alerts on database operations (a flag read from the database, a new statement shape) go by the same bursts to the request that sent the query.

When the hub was blind ​

When the sensor could not record everything (its buffer was full, a service flooded it or blocked its in-flight table, its hook scanner failed on a file) or the capture lost packets, the hub raises a Sensor blinded or Capture gap alert with the time range. A story in that range may be missing steps; the alert says which stretch to distrust.

Pull file on a file event fetches the file from the container as it is now (regular files only; a file over 16 MiB arrives cut short and marked), keeps it in the hub, and logs who pulled and downloaded it. The File pulls tab on the Host screen lists them.

Activity ​

Host → Activity is one service in a time window:

  • the process tree by fork lineage;
  • a timeline of events by kind, the high-signal ones marked;
  • the events grouped by shape (exec /bin/sh, file open /data/flags.db) and process, each with its count, first and last time, and new when that shape was never seen before the window;
  • the database statements the service sent, by shape (Database queries).

Pick a process in the tree, a kind or a process name to narrow it down; a group opens its events, each linked to its flows.

Host activity for one service: events over time by kind, the process tree, what the processes did grouped by shape with new ones marked, and the database statements by shape.Host activity for one service: events over time by kind, the process tree, what the processes did grouped by shape with new ones marked, and the database statements by shape.

Topology ​

Host → Topology is the map of containers, the box itself and the outside, with the traffic between them in the window: one edge per source, target, scope and protocol, as wide as its rate. Egress is drawn in the alarm colour. Clicking an edge opens exactly its flows; clicking a component opens the game's requests that reached it. The same edges are listed in a table below.

The topology map: external, the host, the web and database containers, with traffic rates on the edges and an egress edge in red, and the same edges in a table below.The topology map: external, the host, the web and database containers, with traffic rates on the edges and an egress edge in red, and the same edges in a table below.

Filters ​

New filter chips work in views and tag rules like any other: spawned process, wrote or read a path, egress, talked to a component, crash, socket onto stdio, new listener, read the flag store.

Built-in tags mark the high-signal cases on their own: reverse-shell-pattern, crash, new-listener, egress, flag-store-read. Tell the hub where each service keeps its flags under Settings → Host monitoring, as globs such as /data/flags.db or /var/lib/mysql/**.

On top of it, the hub learns each service's normal behaviour from the checker and raises alerts when a request makes it do something else.