Quick start
This page gets a team from a fresh vulnbox to a box that deploys, filters and rolls back, in about five minutes, and then adds the hub. Each step links to the full page.
1. The vulnbox (five minutes)
You need an x86_64 Linux box with systemd, Docker with the compose plugin, and ssh-keygen. Each service is a directory under /srv with a compose file, as FAUST CTF lays them out.
curl -fsSL https://gitlab.com/nirvati-ug/ctf-garden/vulnboxd/-/releases/permalink/latest/downloads/vulnboxd-x86_64-unknown-linux-gnu.tar.gz | tar -xz
export GITHUB_TOKEN=ghp_... # or GITLAB_TOKEN=glpat-...; optional, never written to disk
sudo -E ./vulnboxd-x86_64-unknown-linux-gnu/vulnboxctl setup-interactiveThe wizard asks for the game, your team number, the tick and the repository owner, then, for every service at once: makes it a git repository, creates a private GitHub or GitLab repository with its own deploy key and pushes it, and installs and starts vulnboxd. Details: Setting up the box.
At the end of the next tick vulnboxd takes the services over: every public port moves behind its proxy and the containers are recreated once, which costs a few seconds. Check it:
systemctl status vulnboxd
sudo vulnboxctl top # services, ports, rules firing
journalctl -u vulnboxd | grep -i warn # anything it did not like2. What changes for the team
- Push patches through git. vulnboxd polls each service's repository, builds right away, and swaps containers only in the last seconds of the tick (Deploys). If the checker says the service broke, it rolls the change back with a pushed commit (Rollback).
- Use
vulnboxctl compose <service> …instead ofdocker compose, so the containers keep vulnboxd's port override (Day-to-day operation). - Rules live in each service's
vulnboxd-rules.yml, committed and pushed for you. Saving it reloads the rules within a second. Start withaction: log, then block (Rules, cookbook). - Your own exploits get through every rule with the bypass header the wizard made up (Testing your own exploits).
- Without a game mode, set
tick.startto when the game began, so the restart window lines up with the real ticks (Deploys).
3. The hub (before the game)
The hub needs a Kubernetes cluster and takes longer: do it the day before.
Build the image, make the hub's keys and install the Helm chart: Deploying the hub.
On the vulnbox, turn on capture and the agent, and swap certificates with the hub: Setting up the agent.
yaml# /etc/vulnboxd/config.yml pcap: enabled: true agent: enabled: true hub: hub-ingest.example.org:7443shsudo vulnboxd-agent keygen /etc/vulnboxd # give the hub agent.crt; put its hub.crt here sudo vulnboxctl install # writes and starts the new unitsOptionally, the host sensor (
sensor.enabled: true) and internal capture, so the hub sees what each request made the service do.Sign in to the hub. The Vulnbox screen shows what vulnboxd is doing once the agent is connected.
4. During the game
Players work in the hub: Using the hub has the screens and a routine. The most useful first steps:
- label the checker's fingerprint on Clients;
- tell the hub where each service keeps its flags (Settings → Host monitoring);
- approve the runtime hooks each service's Runtime hooks page proposes (Hook proposals).
What next
- What is vulnboxd?: what each part does and what it does not.
- How it works: what vulnboxd does to your services, and when.
- Glossary: the terms these pages use.