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.
| Event | CSCTF 2026, Operation Dawn (online jeopardy) |
|---|---|
| Category | Misc |
| Points | 196 |
| Status | Solved during the event |
| Target | intercepted 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
CSCTF{17_hansoms_scald_not_aft_ay_gangling_1a7d12}What I took from it
- A single intercepted gradient from a single-example update is enough to fully invert the input it came from, for any layer where the weight-gradient-to-bias-gradient ratio equals the input — a basic property of federated learning's single-sample case that's exactly why it's considered leaky without aggregation.