TarantulaFenceCyberRange
Cyber exercises

Cyber exercises,
built from one file.

CyberRange turns a short range description into a running practice network: segments, machines, a router with firewall rules, VPN access for players, capture the flag scoring and traffic analysis. Design it visually, deploy it with one click, tear it down just as fast.

Everything a training range needs

One web application for designing, running and scoring an exercise.

Design

Visual topology editor

Drag machines onto network segments, draw allowed traffic between segments and edit ports inline. Every change is validated and kept in sync with the range file.

Design

Range file as code

Each range is a readable YAML file with a live-validated editor. Download it, or a zip with all the machines it uses, and share it.

Machines

Machine catalog

Every machine type is a Dockerfile with its files. Build-test it in the browser, or import an existing docker-compose project as machines.

Run

Deploy and watch live

Deploy and destroy from the browser, follow the build output, see each container's state on the diagram and open a shell on any running machine.

Network

Router and firewall

Segments are isolated by default; only the traffic you allow passes. Turn the router off to fully separate segments, or update only the network without touching machines.

Access

WireGuard VPN for players

Give participants VPN access to chosen segments. Create, edit and remove clients and download their configs; team VPNs are managed right under each team.

Score

Capture the flag

Flag hunt, attack & defense or mixed games, with planted flags, ticks, penalties and a live scoreboard, played from inside the range.

Analyse

Traffic analysis with Shovel

Add Shovel (Suricata-based) to watch the router or a single team machine and see stolen flags highlighted in the traffic as they happen.

Manage

Accounts and roles

No public sign-up. Administrators create accounts, set roles and can disable or reset users, which signs them out everywhere at once.

How a range is built

Every segment is its own isolated network. The range router connects them and forwards only the traffic the range file allows; players come in through a VPN gateway.

Describe

Draw the network in the topology editor or write the range file: segments, machines, traffic rules, VPNs.

Deploy

CyberRange generates the containers and networks and starts them on any Docker engine.

Play

Teams join over VPN, attack and defend, and submit flags to CTF Control inside the range.

Reset

Destroy the range and deploy it again for the next group, in minutes.

A range is a short file

Readable, reviewable and easy to version. The visual editor writes the same file, so both views always agree.

  • Segments with their own subnets
  • Hosts from the machine catalog or any image
  • Rules: which segment may reach which ports
  • VPN, CTF Control and Shovel as built-in parts
name: small-office
segments:
  dmz:    {cidr: "10.10.1.0/24"}
  office: {cidr: "10.10.2.0/24"}
hosts:
  - {name: web01, machine: web, segment: dmz}
  - {name: "ws-%02d", count: 3, machine: workstation, segment: office}
routing:
  - {from: office, to: dmz, allow: [80, 443, icmp]}
vpn:
  - {name: players, segment: office, clients: [alice, bob]}
ctf_control: {segment: dmz}
shovel: {segment: dmz}   # watch the router

Capture the flag, built in

Every range has its own team-based CTF. Players need no accounts, and flags can only be submitted from inside the range, through CTF Control.

Game typeHow it plays
Flag huntEveryone searches the network for flags hidden on machines. The same flag counts for every team.
Attack & defenseEach team defends its own machines and captures the flags planted on the other teams' machines. Missing flags cost penalty points every tick.
MixedBoth kinds of challenges in one game.

Planted flags

Flags are generated and written onto machines by script, checked regularly and replaced on demand. Only salted hashes are stored.

Ticks and tick groups

Set one tick length; challenges open and close in ordered groups, each valid for a set number of ticks.

Custom flag format

Define the flag format as a pattern, such as TARANTULA_[A-Za-z0-9+/]{32}, and generated flags follow it.

Flag submission API

Besides the web page, teams can send flags over a simple TCP API, one per line, for their own automation scripts.

Ready-made examples

Start from a template and adapt it to your group.

Flag hunt

Kids' treasure hunt

A friendly network of castles, libraries, bakeries, parrots and robots with fifteen easy flags hidden in web pages, files and services. Teams join by VPN.

Attack & defense

Kids' attack & defense

Three teams, each in its own segment with its own VPN and one machine to defend, full of easy flags. Every team gets its own Shovel to see when a flag is stolen.

Basics

Small office

A DMZ web server, office workstations and the traffic rules between them: a compact starting point for your own scenario.

Runs where Docker runs

CyberRange is an Elixir / Phoenix LiveView application. It works with any Docker engine, from a single laptop to a dedicated server.

  • Light: a three-team attack & defense range with traffic analysis runs in well under 1 GB of memory
  • Live: every open browser sees deploys, container states and scores update at once
  • Selective updates: change routing or VPN clients without restarting machines
  • Portable: ranges and their machines download as one zip