necropsy
Daily security puzzles built from real malware, extensions and decrypted data
necropsy turns real findings into puzzles anyone can play in a browser. Difficulty 1 to 3 needs nothing installed: every puzzle has a workspace with a pcap viewer, decoder, request console, Python notebook and hex viewer. Live puzzles give each player a server of their own, and some packs generate per-player files and answers. The project is a Rust workspace under AGPL v3, with a demo at necropsy.urashyl.dev.
How it's built
- Pack format
- A pack is a directory with pack.toml, a brief, files, an answer hash and an explainer. The necropsy-pack crate loads and validates packs and ships the pack-tool authoring helper. The site never runs anything from a pack.
- Sealed packs
- Unreleased dailies are encrypted with a per-pack AES-256-GCM key, sealed to a public wrap key with an X25519 sealed box, and committed as .sealed files. Only production holds the master key, and each pack's key is published once its day is over.
- Generators
- The necropsy-gen-sdk crate lets a pack build per-player files and answers in a sandbox, so a shared solution cannot be copied. A generated daily of difficulty 1 to 3 also ships a browser solver that proves it can be solved with nothing installed.
- Range
- The necropsy-spawner crate runs on a separate VM and starts one container per player from allowlisted images: read-only root, no capabilities, no network, reachable only through a unix socket. Each site is a tenant with its own token, images and limits.
What it does
- Browser workspace: pcap viewer, decoder, request console, Python notebook, hex viewer
- Sealed dailies: encrypted in the public repository, opened only when released
- Per-player live labs on an isolated range VM with no network
Decisions
- Sealed the unreleased dailies instead of keeping the repository private, so the code, the docs and every released puzzle stay open under AGPL v3.
- Put live labs on their own VM with no network and nothing else on it, so a lab escape reaches no site, database or account.
- Kept difficulty 1 to 3 solvable entirely in the browser workspace, and enforced it with a browser solver in CI.