Template structure
The template repository provides starter layouts, working examples, and the schema used to validatebox.yaml.
box-template
schemas
box.schema.json
templates
container-box
vm-box
network-box
examples
container-example-box
vm-example-box
network-example-box
templates/ to start a new challenge, and refer to examples/ for complete working boxes that show how the structure fits together.
Box structure
Each contribution should follow this basic structure:your-box-id
README.md
box.yaml
target
solver
Configure box.yaml
Every box contains exactly onebox.yaml. The manifest defines the box identity, classification, objective, capture points, network layout, hosts, and build configuration.
- Identity
- Classification
- Objectives
- Networking
- Hosts
Identifies the box, its version, and contributors. The manifest does not choose a competition; see Competitions and access.
Host build rules
How a host is declared depends on how Destrier creates it.boxr box submit publishes source-built container hosts and uploads prebuilt VM disk images. Generated fields such as publishedImage and digest-backed build.image objects are written by boxr; contributors should not add them by hand.
Network boxes should use one host kind throughout. Do not mix container hosts with VM disk-image hosts in the same box.
Manifest examples
- Container
- Virtual machine
- Network
- Domain controller
Competitions and access
Abox.yaml does not name a competition. When a box is published it is private to the workspace that submitted it, and you decide who may use it:
- Open the box on Destrier and go to its Sharing panel.
- Grant the box to the organiser’s workspace, for example the Destrier CTF’s.
- The organiser decides which competition and stage use it. A grant lets them use the box; it does not place it in a stage by itself.
Do not set
competitionId. It is deprecated: boxr box lint warns about it, and a slug in it that names no competition is silently ignored, so the box joins nothing and nobody is told. Remove it from existing manifests.competitions list of slugs. It only applies to competitions hosted on the Destrier platform itself: a slug you operate becomes a grant, a slug you do not operate becomes an offer that its organisers accept or decline, and an unknown slug is refused. Competitions such as the Destrier CTF are run outside the platform, so for those use a workspace grant as described above and leave competitions out.
README structure
The README should give reviewers enough context to understand, reproduce, and verify the challenge.Health checks
Health checks tell Destrier when a host is ready before the evaluation begins.
A health check may be omitted when the host has no service that can be checked.