~/projects $ nc heist 1337
heiST
Heidelberg Security Training · Engineering Mathematics and Computing Lab (EMCL), Heidelberg University
An open-source CTF platform you host yourself on Proxmox VE. Challenges run as real virtual machines, every user gets their own flags, and the whole platform is monitored, since it hosts vulnerable machines on purpose.
features
- 01
Challenges are full virtual machines, imported as .ova files through the web interface or from a YAML file. That leaves room for kernel exploits and any operating system.
- 02
A challenge can span up to 16 networks with up to 13 machines each. Machines can sit in several networks and reach each other by hostname.
- 03
Flags can be generated per user from a secret and injected into the machine at launch. A copied flag is useless, and grading a course exercise becomes a simple lookup.
- 04
iptables rules and a VPN configuration per user keep everyone on their own instances.
- 05
Wazuh agents run inside the challenge machines. Suricata and Zeek watch the VPN and backend traffic, and packet captures are kept for forensics.
- 06
A pool of challenge instances is started ahead of time. Its size follows a SARIMA forecast of demand, so users usually do not have to wait for a machine to boot.
architecture
- web
- Apache with a PHP backend and a plain HTML, CSS and JavaScript frontend, on its own VM. It only talks to the database through predefined functions.
- api
- A Flask service that talks to the Proxmox API. It creates and removes VMs, starts new instances and injects flags and monitoring agents.
- database
- PostgreSQL on a dedicated VM for users, challenges and backend state.
- monitoring
- A separate VM with the Wazuh manager, ClickHouse for the high-volume event data that Vector ships in, and Prometheus with Grafana for dashboards.
flags
# one secret per flag, one value per user ITSEC{hmac_sha1(key=secret, msg=user_id)}
stack
Clone it onto a fresh Proxmox VE 9.1 host, run bin/install and go through the setup wizard. About an hour later the platform is running.