Running the hub
The hub is your team's traffic analysis server. An agent on the vulnbox sends it the capture, the host sensor's events and what vulnboxd is doing; the hub puts every connection back together as a flow, links it to what the services did, and gives the whole team one web UI. Through the same connection the hub sends rule pushes, hook proposals, shell sessions and database queries back to the vulnbox.
This page is for whoever sets it up, before the game. Players start at Using the hub.
Setting it up
Done once, before the game:
- Deploy the hub on your team's Kubernetes cluster (or without Kubernetes), and exchange keys with the agent.
- Turn on capture and the agent on the vulnbox.
- Optionally, turn on the host sensor and internal capture, for host monitoring and database decoding.
- Optionally, limit who may do what: shells, database writes, pushes.
- Sign in and open the Vulnbox screen: once it shows what vulnboxd is doing, the two are talking. Capture says whether the link is up and how far behind the analysis is.
The parts
On the vulnbox:
vulnboxd-agentruns as its own service. It reads the capture broker and the sensor, keeps what it read on disk until the hub has it, reports what vulnboxd is doing (deploys, checker verdicts, rules and their hits), and carries out what the hub asks, within its own settings: rule pushes, file reads for proposals and file pushes, container logs and shells, the volume and database browser, bisects.
On your cluster, one binary, vulnboxd-hub, in one container image, with a subcommand per part:
ingesttalks to the agent over one TLS connection and stores what it sends;assemblereassembles the stored capture into flows, chunks and HTTP exchanges, decodes HTTP/2, gRPC and database protocols, and tags flows;linkstores the sensor's events and links flows, processes and events;alertlearns each service's baseline and raises alerts;apiserves the web UI and its API, and signs your team in;migratecreates or updates the database schema.
ClickHouse holds the flows and everything about them. The segment store, a directory or an S3-compatible bucket, holds the raw capture exactly as the agent compressed it, so it can be assembled again from scratch without asking the vulnbox for anything.
The connection
The agent and the hub talk over TLS 1.3, each side pinned to the other's certificate: no certificate authority, no host names, nothing else accepted. Usually the agent dials the hub; for a hub the vulnbox cannot reach, the hub dials the agent instead. Nothing listens on the vulnbox for shells or the browser: they travel inside this connection.
Nothing on the box waits for the hub. The agent is tied to nothing of the daemon's; a hub that is down or slow costs only spool space, and the proxy, deploys and rules carry on as they would without it. A hub that is compromised can only do what the agent's settings allow, and those are set on the vulnbox.
Using the hub
The screens and a routine for the game are in Using the hub; each screen has its own page: flows and filters, attacks and the timeline, rules from traffic, exploit scripts.
gRPC and Connect
Moved to its own page: gRPC and Connect.
Host and internal-traffic monitoring
Moved to its own page: Host monitoring.
Database queries
Moved to its own page: Database queries.