Skip to content

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:

  1. Deploy the hub on your team's Kubernetes cluster (or without Kubernetes), and exchange keys with the agent.
  2. Turn on capture and the agent on the vulnbox.
  3. Optionally, turn on the host sensor and internal capture, for host monitoring and database decoding.
  4. Optionally, limit who may do what: shells, database writes, pushes.
  5. 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 ​

From the vulnbox to the hub On the vulnbox, vulnboxd reports its state, the capture broker serves the packets and the host sensor sends what processes do, all to vulnboxd-agent, which keeps them in a spool on disk. The agent sends them over one pinned TLS 1.3 connection to the hub's ingest, which stores the raw capture in the segment store. Assemble turns it into flows and link joins the host events to them, both writing to ClickHouse; the alert worker reads ClickHouse and raises alerts; the api serves the web UI to the team. Rule pushes, proposals, shells and browser sessions go from the api through ingest back to the agent, which carries them out on the service containers. on the vulnboxvulnboxdstate, verdicts, rule hitsvulnboxd-pcappacketsvulnboxd-sensorhost events (eBPF)vulnboxd-agentspool on diskuntil the hubhas itservice containerslogs, shells, files, databasescarries outwhat the hub asksTLS 1.3pinnedyour team's hubingestsegment storeraw capture, as sentlinkevents → tracesassembleflows, HTTP, gRPC, DBalertbaselinesClickHouseapi + web UIsign-in, access controlyour team
Data flows to the hub (teal). Pushes, proposals, shells and browser sessions go back the same way (amber dashes), and the agent decides whether to carry them out.

On the vulnbox:

  • vulnboxd-agent runs 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:

  • ingest talks to the agent over one TLS connection and stores what it sends;
  • assemble reassembles the stored capture into flows, chunks and HTTP exchanges, decodes HTTP/2, gRPC and database protocols, and tags flows;
  • link stores the sensor's events and links flows, processes and events;
  • alert learns each service's baseline and raises alerts;
  • api serves the web UI and its API, and signs your team in;
  • migrate creates 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.

How a shell or a database session reaches the vulnbox A player's browser talks to the hub's api, which checks the sign-in and the access policy and writes the audit log. The api hands the session to ingest over the hub's internal relay. Ingest sends it down the one TLS connection between the agent and the hub, usually opened by the agent. The agent checks its own settings and runs the shell with docker exec, reads the files, or connects to the service's database. No port is opened on the vulnbox for it. playerbrowserthe hubapisign-in, access, auditingestholds the agent's linkthe vulnboxvulnboxd-agentits own limits decideshelldocker execfilesvolumesdatabaseor AdminerinternalrelayTLS 1.3,the agent'sconnectionno port opened for any of this
Shells, logs, the volume and database browser and Adminer all travel inside the agent's own 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.