DL·SYS
Contact ↗

CSCTF 2026 · ML · 540 pts

The Sentry's Model.

Two hidden neurons each spell out a candidate password in their weight signs — only one of them is wired to ever actually fire.

Neural network reverse engineering
EventCSCTF 2026, Operation Dawn (online jeopardy)
CategoryML
Points540
StatusSolved during the event
Targetmodel weights, offline

TL;DR. A 392→48→1 ReLU network has two hidden neurons with weights of exactly ±1 and large negative biases, each encoding a bit string in its weight signs. Only the neuron whose positive-weight count exceeds the magnitude of its negative bias can ever fire on any real input — the other is a decoy that can never activate, no matter what string it encodes.

Challenge

Recover the trigger string that makes this specific model fire, from its weights alone.

Solution

The model takes 49 bytes as 392 individual bits. Two hidden neurons, 22 and 23, stand out: each has exactly ±1 weights across all 392 inputs and an unusually large negative bias (-205 and -208 respectively). Reading each neuron's weight signs MSB-first as bits spells out an ASCII string — one per neuron.

The test that separates the real trigger from the decoy: neuron 22 has 207 positive weights against a bias of -205, so its maximum possible pre-activation (feeding in exactly the bits that match its positive weights) is 207 - 205 = 2 — positive, so it fires, and a forward pass on its decoded string scores 42.95 against roughly -0.68 for a random input. Neuron 23 has 203 positive weights against a bias of -208, so its maximum possible pre-activation is 203 - 208 = -5 — always negative, meaning it can never fire for any input whatsoever. Its decoded string, CSCTF{k0_a4lks...}, is a complete red herring.

Flag

FlagCSCTF{09_the_ash_countersign_is_emberfall_4a19de}

What I took from it