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
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.