Back to work

Live cybersecurity game

Threatdle

A daily guessing game about real hacking cases. Each clue is a plain-English fact from a published threat report, and the server checks every guess.

Product Surface

Threatdle case 4 in SOC Analyst mode, with four unlocked clues about the culprit at the top and two wrong guesses below them whose tiles are colored by how close each came
Case #4 in SOC Analyst mode on November 29, 2026, after two wrong guesses. Each miss unlocks a clue and is compared with the culprit on home country, motive, first-seen year, the country it hit most, and targets.
Threatdle at phone width, with the clue list above and the comparison tiles for two wrong guesses below
The same game on a 390px-wide phone screen.
Threatdle architecture diagram: threat data feeds case drafting, human review and a schedule; the answers ship as a private bundle from Cloudflare R2 through the Netlify build to two functions, and the browser holds only a public list of groups
Cases are drafted from threat reports, approved by hand, scheduled, and shipped as a private bundle that the public site never serves.

Problem

Threat reports name the same hacking groups again and again, but they are written for specialists. Threatdle turns them into a daily puzzle that a curious newcomer can play on a phone: read what a group did, then work out who did it.

Solution

Each day has two cases, one per mode, and both change at midnight New York time. SOC Analyst is the easy mode. The culprit is one of 52 groups with a well-known nickname, there is no guess limit, and the score is the number of guesses. Threat Hunter draws from all 178 ATT&CK groups in the game and allows six guesses.

Each clue rewrites one fact from a published vendor report in plain English, in 170 characters or fewer. Each wrong guess adds a row that compares the guessed group with the culprit on home country, motive, first-seen year, the country it hit most, and targets, and it unlocks the next clue. When the case ends, the game tells what happened and links the report the case came from.

The groups come from MITRE ATT&CK, with extra names from the MISP threat-actor galaxy. The cases and victim countries come from OPTIC, my vendor threat-research corpus. A person reviews and approves every case before it can be scheduled, and 157 cases are approved.

Request Flow

Threatdle request flow diagram: the browser calls GET /api/today for the opening clues and POST /api/guess with its whole guess list; both read today's case on the server, and a finished game writes one record to Netlify Blobs
The browser gets the opening clues and a public list of groups. The culprit stays on the server until the case ends.

Two Netlify Functions serve the game. GET /api/today returns the case number, the opening clues, the time until the next case, the solve count, and yesterday's culprit. POST /api/guess takes the whole guess list each time and replays it on the server, so the browser holds no game state that a player could edit to win. A finished game writes one record to Netlify Blobs, and the solve count, rank, and guess chart come from those records.

Design Decisions

Answers Stay Out of Git

The repo is public, so everything that ties a day to its culprit lives only on the editors' disks and in Cloudflare R2. Git holds the case ids and their approval hashes.

Approval Is a Hash

Approving a case records a hash of its exact content. Editing an approved case un-approves it, so only reviewed text reaches players.

Clue Order Is Measured

The two opening clues never give away the country, and together they leave 20 or fewer suspects. Before this rule, the opening clues left a median of 28 suspects. Now the median is 11.

Simulated Players Set the Difficulty

In the repo's simulation, a newcomer who reads the board averages 2.3 guesses in SOC Analyst and wins 78% of Threat Hunter games. A player who only taps the suspect list wins 30%.

Live Behavior

The server picks the day in New York time. A guess for any other day returns 409, and future days are never served, so changing a device's clock does not unlock tomorrow's case. Unknown groups, repeated guesses, and more guesses than the mode allows return 400.

The scheduler fills a year ahead from approved cases and never repeats a culprit within 14 days in the same mode. The deploy fails unless the answer bundle verifies and the schedule covers at least 60 days.

Gameplay Boundary

The browser gets a trimmed list of groups without the tools each one uses, and only the clues shown so far. The culprit, the full clue list, and the story arrive only when the case ends.

The answers ship as a private bundle with the functions. The build downloads it from R2, checks it against an optional SHA-256 pin, and keeps it outside the public folder the browser can read. On a public checkout on November 29, 2026, 44 unit tests for the rules, API, scheduler, and export passed. One more test needs the private case file, which a public checkout does not have.