CTF campaigns
A CTF campaign is the turnkey recipe of a CTF session: a population, a forced
company profile, the technologies, the threat scenario that will be launched and the one that runs in
the background, the asset connectors — plus its flags, the questions whose answers are graded
automatically. The library, under Catalog → CTF campaigns, is where campaigns are
authored; you then deploy one from the /ctf screen.
Campaigns used to be written in code, with a single one, Operation Nostromo. They are now rows in the database, edited here — and one still ships by default.
A seeded floor, editable data
The code catalogue is seeded create-only as a floor, and kept as a fallback: a slug the database does not carry is read from code. So Operation Nostromo — the one shipped — behaves the same whether or not the table has been touched, and seeding never overwrites a campaign edited from the screen.
The slug is set at creation and immutable afterwards: it is the key that groups the leaderboards of every session of a campaign, copied onto the pools and the answer keys. A campaign a session references cannot be deleted — the refusal names the pools. And a launched session freezes its own recipe and flags: editing — or deleting — a campaign never touches a session in progress.
The recipe
“New campaign” asks for the recipe; the flags are written right after, on the campaign's page. Everything is resolved by slug at runtime, never by identifier — identifiers change at each seeding.
| Field | What it decides |
|---|---|
| Name, Description | How the campaign is named in the library and on the deploy form — each in English and in French (see below) |
| Population (dataset) | The fictitious population the session plays |
| Forced company profile | The archetype mapping applied to the template community |
| Launched scenario | The threat scenario a launch plays |
| Background scenario | What runs all day on a few compromised hosts |
| Technologies | The generators the CTF plays — at least one |
| Target users / servers | Named targets, present in the population — one per line |
| Asset connectors | The OCSF asset connectors provisioned in each community |
| Background-noise workstations | How many hosts carry the background noise |
| Scenario duration (minutes) | How long the launched scenario runs |
On the /ctf screen, the “What gets deployed” card reads the recipe and names, in red, any piece
still missing from the database — a scenario or a profile not seeded yet — which keeps “Deploy the
CTF” disabled.
The flags
A campaign is created with no flags; you write them on its page. Each flag is a question whose answer is found in Sekoia — a block of typed fields plus an evidence pointer:
| Part | What it holds |
|---|---|
| Id | A stable identifier, unique within the campaign |
| Points | What the flag scores; a bonus flag scores on top of the total |
| Question | The prompt shown to the player, and where in Sekoia to look |
| Fields | One or more typed fields — the flag is correct only when all are |
| Evidence | The scenario gesture that proves the answer, shown in the answer key |
A field is either static — a fixed value, which must be one of its options — or derived, bound to a resolver that computes the answer from the launch (the compromised host, the command-and-control indicator, a country…). A flag can be marked value of the day: its answer is drawn fresh at each launch, so the key of a past session is no use for the next. How a field is played and graded — a choice, a set of checkboxes, a formatted text, a number — is described on the CTF sessions page.
The editor is JSON-first: the flags are a block of JSON — an array of { id, points, bonus, prompt, sekoiaSource, valueOfTheDay, fields, evidence } — and the text area is the real control, so
it works without JavaScript. The screen and the API validate it with the same function: the
screen cannot accept what the API would refuse. As you type, it shows:
- a preview of the flags, with their points and the campaign's total;
- the valid values — the resolvers, the option sources, the text formats, the evidence targets, and the gestures the campaign's scenario actually plays;
- an “Append a flag template” button to start from a flag whose texts are left to write, in both languages.
Two languages
A campaign is played in English and in French — the participant's page and the answer key follow
each screen's language —, so every text of it is written in both: the name and the
description on the recipe form (“Name (English)”, “Name (French)”…), and in the flags the
prompt, the sekoiaSource, each field label, each static option label and a number's unit,
as an object:
{
"en": "Which user received then opened the phishing email?",
"fr": "Quel utilisateur a reçu puis ouvert le courriel d’hameçonnage ?"
}
A text written as a single string, or with one language empty, is refused, and the refusal names the flag, the field and the missing language. Both are required, with no fallback: a missing translation would break nothing, and would leave the reader in a language they did not ask for. A description is written in both languages or left out of both. What a resolver draws from the population — an account, a city — is data, and needs no translation. ATT&CK technique names are written in English in both: that is the name an analyst searches for.
A campaign edited before the CTF was bilingual keeps its flags: its texts come back in French with the English left empty, a banner names them (“3 texts still in French only”), and saving them untranslated is refused. Until they are translated, the deploy readiness lists them — in French, like every message the backends compose: “textes à traduire en anglais” — and keeps “Deploy the CTF” disabled. The seeded campaign is caught up on its own at the next seeding, on every text still as it was seeded; a text you edited is never rewritten.
The evidence check
One check is coupled to the database and stays on the server: an evidence gesture must be one the campaign's scenario really plays, on the right slice (patient zero on a workstation, a lateral move on a server) — otherwise the answer key would arrive without proof. The editor anticipates it from the scenario's steps, and the deploy readiness names it.
Deploying
You do not launch from here: the /ctf screen deploys a session from a campaign —
its communities, their intakes and asset connectors, then the logs and the launched scenario — and
freezes the answer key. See CTF sessions.