Skip to content

Flows and filters ​

Flows is the hub's main screen, and where most of a game is spent. Every TCP and UDP connection the vulnbox saw is a flow: filed under its service and tick, reassembled, decoded and tagged as the hub assembles it. This page covers reading flows, narrowing them down with filters, and telling the checker from everyone else.

The flow list ​

The Flows screen: the per-tick timeline on top, the filter bar, and the list of flows with their time, client, scope, request, status and tags.The Flows screen: the per-tick timeline on top, the filter bar, and the list of flows with their time, client, scope, request, status and tags.
The flow list, filtered to the game's traffic (scope external).

New flows arrive live at the top. When you have scrolled down, or switched Live off, they wait behind a "12 new flows" pill, so nothing moves while you read. A gap in the capture is a divider row: data lost, not delayed (see Capture in the rail).

Each flow is tagged as it is assembled:

TagMeaning
flag-ina checker storing a flag
flag-outa flag leaving the box, as it is or encoded
flag-encodeda flag left hidden in base64, hex, \uXXXX escapes or the like (below)
http, websocket, udpwhat the connection spoke
truncatedthe flow was cut short in the capture
names-flag-ida request names one of your flag IDs (someone looking for a flag)
obfuscated, smugglingan anomaly that looks deliberate
the action of a rulea vulnboxd rule hit it (block, log, …)
reverse-shell-pattern, crash, new-listener, egress, flag-store-read, db-flag-readbuilt in, from host monitoring and database decoding

Flows also carry a scope: external is the game's traffic to the box; proxy, internal and egress are hops inside the box, captured only when internal capture is on. The list opens with external only on (a scope:external chip you can remove): the game's requests, each with a chip summing up what it made the box do.

Linked flows ​

With the host sensor running, the hub links the flows a request caused to it: vulnboxd's proxy hop, the backend's database and cache connections, calls between containers, connections out. The list keeps one row per request, whatever the filter, and tells the rest in the request's story:

  • A request with something linked below it has a chip in its request cell, such as ⤷ 3 · postgres, redis or ⤷ 2 · egress · 2 proc; hover it for the whole summary ("1 proxy · 2 internal: postgres (3 queries), redis (2 queries)"). Click it to open the request's story full screen.
  • Flows linked below a request are not listed again as rows of their own, also when you switch external only off; you then see the requests plus whatever the hub could not tie to one (a cron job's database connection, flows from before the sensor ran).
  • Beside the toggle, +N internal flows hidden counts what external only hides: flows that are neither external nor linked below a request. Click it to show them.
  • A filter that names flows (flow:), or a scope chip with proxy, internal or egress, lists exactly those flows as rows, each still with its own chip.

Filters that reach through. A few conditions are about what a request caused rather than about its own connection. In the list they match a request when it, or a flow linked below it, matches:

ChipMatches a request when
dbq. (statement), dbproto:, dberr:, dbflag:it or a linked flow has the query, protocol, error or flag
sip: (server address)it or a linked flow went to the address (a container's, or one outside the box)

So external only + dbq.contains:FLUSHALL lists the requests whose backend sent Redis a FLUSHALL. The chip of each such request says how many linked flows matched (· 1 match), and opens its story at the first flow that matched. NOT applies to the whole: NOT dbproto:postgres is "neither the request nor anything it caused spoke PostgreSQL". Every other chip, the port (port:), the client address and every HTTP and host chip included, is about the request itself; host chips already cover its whole trace. Tag rules and alerts are not affected: there every chip is about the flow itself.

Links are written by the hub's link worker, a little behind the capture: a request that just arrived gets its chip once its links are in (reload the list, or wait for the next page).

Reading a flow ​

Opening a flow shows it beside the list, with tabs:

  • Story: for a request that came in (opened by default), the request story. A flow linked below a request (a proxy hop, a database connection) says which request it is part of, with a link to that story.
  • HTTP: one card per request and response, headers, bodies, and for gRPC the call. The Raw / Decoded switch shows the exchange as sent, or cleaned up.
  • Conversation: the chunks each way, as text or hex, for any protocol.
  • Hex: the raw bytes.
  • Queries: for a flow to a database, each statement and its answer. See Database queries.
An open flow, full screen: its addresses, tags and note on top, then the HTTP tab with the request headers and the JSON response holding a flag.An open flow, full screen: its addresses, tags and note on top, then the HTTP tab with the request headers and the JSON response holding a flag.
A flow opened full screen on its HTTP tab. The flag in the response is highlighted.

The request story ​

The Story tab tells one request as one story, in time order: the request as it came in (raw or decoded, flags marked, anomalies), what vulnboxd decided (the rules that reported on it), the hop into the service, every call between containers with its own request and response, each database query with its result or error, the processes it started and the files and connections they touched, connections out of the box, and the response that went back, with the flags that left and how they were encoded (base64, hex › base64).

  • Wide (full screen), it is a sequence diagram: a lane per participant (client · vulnboxd · each container · the databases · outside), an arrow per step, answers dashed on the way back, and the selected step's detail beside it (drag the divider to resize). In the flow pane, or on a phone, it is a timeline of nested steps with their lanes named, and the detail opens under the step. auto · lanes · timeline switches by hand. A column on the right shows each step's duration.
  • Every step says how it was linked and how sure that is: request log (vulnboxd's own record), runtime hook (a probe inside the service) or kernel (the host sensor's view of sockets and processes). None of them is a guess. What only belongs to the connection (the worker that accepted it) or can't be tied to one request (HTTP/2 streams) is listed below, in its own group.
  • A keep-alive connection's requests each have their own story: pick one at the top, or press [ / ]. ↑ / ↓ move between steps; a run of the same query ("6 × SELECT tag FROM tags WHERE note_id = $1") is folded, Enter opens it.
  • The address names the request and the step: a link opens the story exactly there.

It needs the host sensor and internal capture to show more than the request and its response.

The Story tab full screen: lanes for the client, vulnboxd, the web container, an internal API, Redis, PostgreSQL and outside; arrows for the proxy hop, the database queries (one with a flag in its result, one with an error, six folded), an internal call, a shell and curl sending the flag store out, and the response; the selected query's detail on the right.The Story tab full screen: lanes for the client, vulnboxd, the web container, an internal API, Redis, PostgreSQL and outside; arrows for the proxy hop, the database queries (one with a flag in its result, one with an error, six folded), an internal call, a shell and curl sending the flag store out, and the response; the selected query's detail on the right.
One SQL injection as one story: it read the flag from PostgreSQL, started curl to send the flag store out, and the flag left base64-encoded.

From a flow's menu you can star it, add a note, label its client, build a rule or a script, or copy a request as Python requests (y).

Filters ​

Click any value in a flow (a header, a status, the client's address, a fingerprint) to filter by it. The filter bar takes chips:

  • HTTP: path, status, body or payload content, header present, absent or equal to a value, header order, header count, cookie, user agent, client fingerprint;
  • game: flag in, flag out, one of your flag IDs, checker-like;
  • hub: rule hit, tag, starred, noted, anomalies (by rule, group or severity);
  • gRPC: method, status, a field of a decoded message (gRPC);
  • host: spawned process, wrote or read a path, egress, talked to a component, crash, socket on stdio, new listener, read the flag store (Host monitoring);
  • database: statement contains or matches, protocol, failed query, returned a flag (Database queries); these also match a request through its linked flows.

Every chip can be negated (NOT) or switched off without removing it. The whole view, filters, selection and open flow included, lives in the URL: send the link and a teammate sees exactly what you see. Group by groups the list by fingerprint, path, client IP, tick or gRPC method.

Select several flows and Group as session to keep the requests of one exploit together; a session's build exploit → opens the script generator with them.

Keyboard: j/k next and previous flow, Enter open, / search, f filter by the selected value, s star, c mark for compare, ? lists them all.

Telling the checker from attackers ​

The checker sends the same kind of request every tick; attackers' tools look different. Three screens help you find the difference:

  • Compare: mark two flows (c on each) to see them side by side: headers aligned by name, the request line and body diffed, and the best separators between flag-in requests (which look like the checker) and the rest. Every difference is one click from a filter, and make rule from differences drafts a rule.
  • Headers: every request or response header under the current filter, with its share, spellings and top values. Split mode puts two groups side by side and shows the header that separates them best.
  • Clients: client fingerprints built from header order and values, with how many requests, which services, flag-outs and when each was first seen. Label one checker, attacker, tool or other; the labels are shared with the team, and a checker label gives its flows the checker hint (below). It never teaches the alert baselines or quiets an alert, since anyone can copy a fingerprint. Sort by "new in the last ticks" to spot new tooling as it appears.

The checker hint ​

Telling the checker apart for certain is often impossible, so the hub only gives a hint: a flow looks like the checker when

  • it stored a flag (it sent a flag in: known), or
  • a teammate labelled its fingerprint checker on Clients (suspected).

That is all it is based on, and both can be faked: anything matching the flag format counts as a flag in, so an exploit that adds a made-up flag to its request looks like the checker too, and anyone can copy the checker's headers. Source addresses say nothing (the game NATs them), and neither does the client library: every python-requests exploit sends the same header names as a python checker. A flow with the flag-encoded tag never gets the label hint, whatever its fingerprint: the checker reads its flags back as the service returns them, an exploit hides them from the flag format.

So the hint is shown, never acted on: flows that look like the checker carry it ("flag-out · looks like the checker" in the list, a chip in the flow pane), the attacks feed lists every flag-out with the hint on its row, alerts are raised whoever caused them, and a rule push that would hit such flows goes through with a warning. flag out, no checker match and checker-like are filters you can add when you want them, never a default view. Label the checker's fingerprints as you find them (open a flag-in flow, then Clients): the read-backs of a checker that stores with a POST and reads with a GET only get the hint once their fingerprint is labelled.

Flags that leave encoded ​

The flag format finds a flag only as it is. An exploit that sends what it stole back as base64, hex or both (hex(base64(flag))), or a service that compresses its answers, would get past it. So the hub also counts a flag as in or out when:

  • it is in a body whose Content-Encoding (gzip, deflate, br, zstd) was undone, or in HTTP/2's coded headers;
  • anomaly detection decoded the value it is in: a form's or URL's percent-encoding, JSON, base64, hex, \uXXXX, UTF-7 and the other layers, as deep as they go;
  • it is a flag the checker stored (a flag-in of the last ten ticks) and a response holds it encoded: base64 in either alphabet at any position inside a larger blob, hex, percent-encoding, JSON \uXXXX escapes, and two layers of these (hex of base64, base64 of base64, percent of base64, base64 of hex, hex of hex), found even when the encoded flag is split between packets.

A flag found both as it is and encoded counts once. The flow pane shows how it left as a chip (encoded · hex>base64, outermost first; gzip for a compressed body), the flow list puts the same on the flag's tag, and the payload views highlight the encoded flag like any other. Such flows are flag-outs everywhere: the flag-out tag, the "flag out, no checker match" filter, the attacks feed. They also get the flag-encoded tag when an encoding hid the flag on purpose (base64, hex, \uXXXX escapes, UTF-7); compression or a URL's percent-encoding alone does not, since the checker sees those too. Filter on the tag (tag:flag-encoded) to find them.

Tag rules ​

Tag rules in the rail are a name, a colour and a filter. A new tag rule tags every past flow it matches at once, and every new one from then on. Use them for what you want to see at a glance: a known exploit's path, a payload, a fingerprint.

Anomalies and the decoded view ​

Every HTTP request and response is decoded layer by layer: double percent-encoding, \uXXXX escapes in JSON, base64-wrapped values, fullwidth characters, odd Transfer-Encoding headers and the like. What looks deliberate is flagged as an anomaly: next to the exchange, as the tags obfuscated and smuggling, and through the anomalies filter chip.

The Decoded view shows the exchange cleaned up, each value with the layers it was wrapped in, and searches match the decoded text too: searching cat /flag finds a payload that hid it. The exchange itself is always stored and shown exactly as sent. Anomalies lists every rule; rules can match the decoded form and anomalies too (Matching).

Anomaly detection, tagging and decoded search can be switched off under Settings.

Settings ​

Settings in the rail is shared by the whole team: HTTP anomaly detection, and per service the flag stores for host monitoring (globs such as /data/flags.db or /var/lib/mysql/**; a process reading one is a flag-store-read). When a teammate saved in between, the hub shows what changed and lets you put your changes on top.

The Settings screen: anomaly detection switches and, under Host monitoring, a flag-store glob per service.The Settings screen: anomaly detection switches and, under Host monitoring, a flag-store glob per service.