DL·SYS
Contact ↗

CSCTF 2026 · Misc · 196 pts

Operation Dawn: The Shared Model.

One intercepted gradient update from a shared model, and the exact training input it came from falls straight out of a ratio.

Gradient inversionFederated learning
EventCSCTF 2026, Operation Dawn (online jeopardy)
CategoryMisc
Points196
StatusSolved during the event
Targetintercepted update, offline

TL;DR. For a single-layer, single-sample gradient update, dividing a row's weight-gradient by its own bias-gradient recovers that row's exact input value — and every row of the intercepted update agrees to within floating-point precision, confirming the recovery with no ambiguity.

Challenge

Recover the exact training input behind one intercepted federated-learning gradient update.

Solution

This is a textbook gradient-inversion case: for a linear layer trained on a single example, the gradient with respect to a given row's weights is that row's input value times the gradient with respect to that row's bias (a direct consequence of the chain rule for y = Wx + b). Dividing the intercepted weight-update row by its corresponding bias-update row therefore recovers that row's input directly — and doing this independently for all 64 rows of the shared model's first layer gives 64 estimates of the same input vector, agreeing to within 10⁻¹⁶.

Multiplying the recovered vector by 255 converts it from a 0–1 normalized range to raw byte values, which spell the flag directly in ASCII. As a self-check, running the shared model forward on that recovered text reproduces the intercepted logits (error ~1.8×10⁻¹⁵), and computing the gradient for the stated label reproduces the intercepted update itself (error ~10⁻¹⁵).

Flag

FlagCSCTF{17_hansoms_scald_not_aft_ay_gangling_1a7d12}

What I took from it