Gradient leakage
During a federated learning round, one client (batch = 1) sent only the gradient — with the promise that "raw data does not leave for the server". You intercepted update.json. Model: fc1 (384→16, ReLU) and fc2 (16→10, softmax), the loss is cross-entropy. The gradients are in grads: fc1.weight (16×384), fc1.bias, fc2.weight, fc2.bias. All of them were multiplied by the same unknown coefficient through global-norm clipping.
The client's input is a 12×32-pixel grayscale image (row by row, layout = row-major), x = (pixel − 127.5) / 127.5. In the image, 16 hex characters are drawn in a 3×5 font: 2 rows × 8 characters; the top-left corner of character (i): row = (i // 8)·6, column = (i % 8)·4; there is 1 blank pixel between characters. Background pixels are 0..70, font pixels are 185..255.
Font (1 = font pixel): 0: 111 101 101 101 111 | 1: 010 110 010 010 111 | 2: 111 001 111 100 111 | 3: 111 001 111 001 111 | 4: 101 101 111 001 001 | 5: 111 100 111 001 111 | 6: 111 100 111 101 111 | 7: 111 001 001 010 010 | 8: 111 101 111 101 111 | 9: 111 101 111 001 111 | a: 010 101 111 101 101 | b: 110 101 110 101 110 | c: 011 100 100 100 011 | d: 110 101 101 101 110 | e: 111 100 110 100 111 | f: 111 100 110 100 100 (each triple is one row, 5 rows).
The 16 characters in the image are the flag: BAYROQ{GRADIENT_SIZISHI_<16 hex>}.