Model stealing
A rival company's closed regression model is leaking through its API. Model: f(x) = b2 + Σ_i w2[i]·ReLU(W1[i]·x + b1[i]), input x ∈ ℝ⁶, 4 hidden neurons, one float64 output. W1, b1, b2 are integers, w2 consists of small integers. The attacker's query log is in api_log.jsonl: the first line is the header (check_sha256 = SHA256 of the 16-hex flag part), followed by the {"q", "x", "y"} records. The log consists of 12 consecutive sessions; each session is 401 queries that moved uniformly along a single straight line (xk = a + tk·d, tk = −1 + 0.005·k).
You do not have the model itself. Normalization: the W1 row of each hidden neuron has been multiplied by a positive number so that W1[i][0] = 64 (ReLU scale symmetry — the log cannot distinguish any other scale). The order of the neurons is unknown to you, so sort the rows in lexicographically increasing order by (W1[r][5], W1[r][4], W1[r][3]) (these values are all different).
The flag hex consists of 8 bytes: for the sorted rows, in the sequence r = 0, 1, 2, 3, W1[r][1] mod 256, W1[r][2] mod 256 (each as 2 hex digits). Format: BAYROQ{MODEL_OGIRLASH_<16 hex>}.