Skip to main content
Challenges Logic circuit
Hardware Impossible Gate-level netlist lock: recovering the structure and computing in reverse Solves: 3

Logic circuit

Author: CyberSamSU
Points
450

The synthesis output of an electronic lock controller has been captured: lock.v — structural Verilog, only primitives (and, or, xor, not and the assign ... ? : multiplexer). There are several thousand gates, the net names are random (n1234), and the gates are written in shuffled order. The input is the 64-bit key[63:0]; the lock relay is connected to the unlock output.

From the design document only the general scheme is known: 4 rounds; each round is a layer of 16 4-bit S-boxes (each S-box is a bijection, but they differ from each other, are spread out into gates and shuffled), followed by a bit permutation and an XOR with a constant (NOT gates). At the end there is a 64-bit equality comparator. Trying all 264 keys is infeasible.

Find the key that makes unlock equal to 1. The key is the 64-bit value of the 16 hex characters in the flag (key[63] — the most significant bit of the first hex character): BAYROQ{MANTIQ_SXEMA_<16 ta kichik hex>}. Note: the other output in the file is unrelated to the lock's real key.

Attached files
lock.v Log in to download
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −45 pts Log in
Hint 2 −90 pts Log in
Hint 3 −135 pts Log in
To submit a flag, log in.

First solvers

1. Mirjaxon Qaxxarov 24.11.2026
2. Odam 25.11.2026
3. AGENT X 28.11.2026