Many lightweight ciphers and hash cores are built from just three operations on machine words: modular addition, bitwise rotation, and exclusive-OR — the "ARX" family. These operations have a striking shared weakness: if you take an input and rotate every bit of it by a fixed offset, XOR and rotation preserve that rotational relationship perfectly, and only the carries inside modular addition disturb it, and only probabilistically. Classical rotational cryptanalysis averages this disturbance over random inputs and random keys, and stops attacking when the averaged probability collapses — the "round wall." But when an ARX primitive is used inside a hash function, the key input is fed by the message block, which the attacker fully controls. This inverts the threat model: exactly as Wei et al. showed for IDEA in hashing modes, where adversaries steer the cipher into weak-key subspaces to build collisions and preimages, an attacker may be able to choose key material that keeps carries from ever breaking the rotational symmetry.
The core claim of this proposal is that such rotational weak-key classes exist in ARX primitives, that they are the additive-arithmetic analogue of the invariant-subspace weak keys found manually in Midori64, and that they can be found systematically by borrowing a representation from structural biology: the residue proximity graph. In protein modeling, residues far apart in the 1D sequence but touching in 3D space are connected by graph edges, letting message passing take spatial shortcuts that 1D sequence models cannot. In an ARX cipher, a rotation by $\gamma$ links bit $i$ directly to bit $(i+\gamma) \bmod n$ regardless of linear position, and carry chains link adjacent bits with data-dependent strength. Modeling the state as a bit proximity graph — with weighted, typed edges for rotations, carries, and key injection — turns "which key values let rotational symmetry survive?" into a search for closed, symmetry-preserving subgraphs, the exact discrete counterpart of finding conserved contact cores in a protein.
Core Claim
Define the rotational survival probability for a fixed key $K$ and $R$ rounds:
$$P_{\mathrm{rot}}(K;R) = \Pr_{X}\!\left[\text{the pair }(X \lll \gamma,\, X)\text{ is still rotational at round }R \mid K\right].$$
The classical model of Rotational Cryptanalysis of ARX treats the per-addition transition probability as depending only on word size and offset $\gamma$, independent of data values — which forces $P_{\mathrm{rot}}(K;R)$ to be flat in $K$. This independence is an averaging statement, and its accuracy was already reopened by Rotational Cryptanalysis of ARX Revisited; no work in the corpus asks whether an adversary can condition on key material. The mechanism is concrete: an addition with no carries behaves as XOR, which commutes with rotation exactly, so per-round key classes with deterministic rotational survival provably exist. The genuinely open question is multi-round persistence — whether the state can be kept inside a carry-free or carry-consistent region across many rounds when the attacker controls the key. We claim it can, for identifiable key classes of non-negligible size, and that a bit proximity graph both predicts these classes analytically (via subgraph closure analysis) and locates them cheaply (via graph search and a lightweight graph neural network scorer).
The Bit Proximity Graph
We construct, per cipher specification, a multi-relational graph whose nodes are bit positions of the state and key words. Three edge types carry the structure: rotation edges $(i, i+\gamma \bmod n)$ for every rotation in the round function, encoding the long-range shortcuts that a 1D convolutional grid must laboriously reconstruct by stacking layers; carry edges within each word, weighted by the conditional probability that a carry generated at bit $i$ survives the rotation misplacement at bit $j$ — a probabilistic pairwise interaction matrix that is mathematically the same object as a predicted protein contact map, which in structural biology is routinely used to build graphs even when no 3D coordinates exist (Structure-based protein function prediction using graph convolutional networks); and key-injection edges, connecting key bits to the state bits they influence. A rotational weak-key class is then a set of key-bit assignments under which a subgraph of symmetry-preserving edges stays closed as the state evolves — the graph-theoretic restatement of the invariant subspace of Invariant Subspace Attack Against Full Midori64, where weak keys trapped the cipher forever because the S-box acted as identity on $\{8,9\}$ and the diffusion layer preserved that set.
Two things are built on this graph. First, an analytic layer: spectral and community-detection methods look for closed or nearly-closed symmetry-preserving subgraphs, yielding candidate weak-key classes with a predicted survival profile. Second, a learned layer: a small graph neural network over the fixed graph topology scores candidate key classes and serves as a rotational distinguisher, exploiting the lesson of Just Add Structure: Protein Language Models Combined with Structural Equivariance Excel at Protein Tasks — that imposing an explicit relational inductive bias buys strong performance with 100–1000× fewer trainable parameters, which is precisely the deficit identified in SoK: 5 Years of Neural Differential Cryptanalysis, where dense neural distinguishers overfit to training keys and hit a state-size barrier. We deliberately do not transfer the $E(3)$-equivariance of protein graphs — cipher bits live in $\mathbb{F}_2^n$, not $\mathbb{R}^3$, and no physical symmetry carries over. What transfers is the contact-map construction and lightweight message passing, nothing more.
Research Program
The program has three tasks of increasing risk. Task A is a rediscovery sanity check on Midori64, where ground truth exists: the graph construction, given only the cipher specification, should recover the $2^{32}$-key class (nibbles in $\{0,1\}$) and the $\{8,9\}$ invariant subspace that Invariant Subspace Attack Against Full Midori64 found by manual algebra — and, equally important, it should not flag Midori128, which the same paper reports as immune because its 8-bit S-box lacks the required fixed points, and which the follow-up design criteria of Invariant Subspace Attack Against Midori64 and The Resistance Criteria for S-box Designs explain. Reproducing both the hit and the miss certifies the machinery before we trust it anywhere new. Task B is the main event: rotational weak-key steering in ARX hash modes. We build Davies-Meyer-style constructions over Speck32/64 and a constants-stripped BLAKE2-style compression function (the vulnerable configuration exposed by Analysis of BLAKE2), let the graph predict key classes, and measure empirical rotational survival curves $P_{\mathrm{rot}}(K;R)$ for steered versus random keys. Task C turns the graph into a learned rotational distinguisher on Speck32/64 under the exact data protocol of Improving Differential-Neural Cryptanalysis, testing whether graph structure buys rounds or parameters over 1D convolutional networks.
Baselines
The naive reference point is the average-key rotational model itself: pick keys at random and rely on the classical per-addition transition probability of Rotational Cryptanalysis of ARX, under which rotational probability decays multiplicatively per addition and the distinguisher dies at the round wall. Beating this baseline means exhibiting key classes whose measured rotational survival at round counts where the average-case prediction has collapsed stays measurably above chance (ideally near 1). We will state plainly that no reported result found on Lacuna for the numeric rotational transition probabilities of modular addition, so this baseline is calibrated by our own random-key measurements, not a literature number.
The strongest existing method depends on the task. For the learned distinguisher, it is the Inception-CNN differential-neural pipeline of Improving Differential-Neural Cryptanalysis, which reports a 9-round Speck32/64 distinguisher, 14-round key recovery, and a 13-round attack costing $2^{41.22}$ time and $2^{27}$ data (down from $2^{48.67}$ and $2^{29}$), with a teacher accuracy of 0.8128 compressed to 0.8053 at ~33,000 parameters. We rerun their exact protocol — $10^7$ training and $10^6$ test pairs generated from the cipher specification, same tuning budget in core-hours, parameter counts matched at both the ~33K student scale and the ~9.5M teacher scale — with our graph network trained on rotational pairs where theirs is trained on differential pairs, and additionally on their differential task for a like-for-like architecture comparison. Beating it means matching or exceeding 9 distinguisher rounds at comparable accuracy with fewer parameters, or extending rotational distinguishing past rounds their architecture cannot reach at equal budget.
For the weak-key rediscovery task, the baseline is the manual invariant-subspace attack of Invariant Subspace Attack Against Full Midori64 itself: a 1-query distinguisher and $2^{16}$ key recovery from 2 plaintext-ciphertext pairs against all 16 (even 20) rounds. We cannot beat those numbers — the attack is optimal for Midori64 — so the comparison metric is human effort and transferability: our method must rediscover the class from the specification alone, and then be pointed at ciphers where no manual analysis exists.
Finally, the key-ingredient ablation: the identical graph neural network, same training budget, but with adjacency reduced to a linear chain of neighboring bit positions — the graph-shaped restatement of a 1D CNN's inductive bias, with rotation and carry edges deleted. If the multi-relational proximity edges are doing real work, the chain-only ablation should fall back toward convolutional performance; if it does not, the graph story is decoration and we will say so.
Why not just…?
Why not just encode the search in a SAT or MILP solver, as classical automated cryptanalysis does? For single-round, deterministic constraints this works, and we will run a MILP encoding of reduced-round rotational survival as a competing search method with the same target. The honest expectation is that MILP will find the same small classes we do at small scale, and if it does so faster at every state size we test, the value of the graph layer shrinks to the learned tasks and we will report that. The reason we expect the graph to earn its keep beyond that: the objective is a multi-round, probabilistic survival probability driven by correlated carry behavior across chained additions, and the survey evidence in SoK: 5 Years of Neural Differential Cryptanalysis is that complex coupled features of exactly this kind are what algebraic solvers and hand-crafted constraints struggle to model, while learned representations capture them. The head-to-head experiment settles it rather than the rhetoric.
Why not just use larger or stacked 1D Inception CNNs, which already reach 14-round key recovery on Speck32/64? Because a 1D convolution assumes bits are ordered on a line, whereas a rotation by $\gamma$ makes bit $i$ a direct neighbor of bit $(i+\gamma) \bmod n$; a CNN must bridge that gap by stacking layers or widening kernels, diluting the signal with intervening bits — this is precisely why Improving Differential-Neural Cryptanalysis needed parallel kernels up to $7\times7$ and still left full ciphers unbroken. The closest controlled evidence that explicit contact graphs beat sequence models on long-range interactions comes from the transferred domain itself: on the PDB700 benchmark, the graph-based DeepFRI reached $F_{max}$ 0.657 against 0.525 for sequence-based CNNs (Structure-based protein function prediction using graph convolutional networks). Our matched-budget CNN-versus-GNN experiment on rotational pairs is the direct cryptographic test of that transfer; if the CNN matches the graph network, the inductive-bias claim is falsified and the proximity graph reduces to a convenient data layout.
Why not just enumerate carry-free key patterns directly, since single-addition behavior is fully understood analytically? This is the most serious alternative, and for one round it wins trivially. It stops winning at multiple rounds: class membership is defined over entire key words (the Speck32/64 key space is $2^{64}$), the state evolves through rotations and XORs so the carry-free region at round $r$ constrains the key differently at round $r+1$, and the relevant object is the intersection of per-round regions across a chained, correlated system — the same structural situation that makes manual inspection the bottleneck in weak-key cryptanalysis, as the Midori64 authors themselves noted when their attack refused to transfer to Midori128. The graph is our answer to exactly this combinatorial bookkeeping: closure of a subgraph under the edge types is a compact certificate of multi-round persistence, and the spectral layer prunes the search space before any enumeration or learning happens. If enumeration with graph-derived pruning finds nothing beyond what blind enumeration finds on our benchmarks, the closure analysis is not paying for itself and the proposal's mechanism is wrong.
Proposed Experiments
Task A runs on Midori64 and Midori128 specifications only, with success scored as exact recovery of the known $2^{32}$-key class and $\{8,9\}$ subspace (and correct non-detection on Midori128), matching the published ground truth of a 1-query distinguisher and $2^{16}$ key recovery. Task B generates synthetic key/message samples for the Speck32/64 and constants-stripped BLAKE2-style constructions, following the same synthetic-data discipline as Improving Differential-Neural Cryptanalysis ($10^7$ training, $10^6$ test instances). The decisive metrics are the rotational survival curve $P_{\mathrm{rot}}(K;R)$ as a function of rounds for graph-steered versus random keys, the log-size of the surviving key class, and the search cost to find it compared against exhaustive sampling. The decisive checks are sharp: if $P_{\mathrm{rot}}(K;R)$ is statistically flat across keys within measurement noise, the core claim is false and the classical data-independence assumption holds even under adversarial conditioning — a publishable negative result either way. Task C trains the graph distinguisher under the matched protocol above, reporting distinguisher accuracy against the 0.8128 teacher reference and round coverage against the reported 9-round Speck32/64 and 12-round Simon32/64 distinguishers of Improving Differential-Neural Cryptanalysis, together with the chain-only ablation and the MILP head-to-head. A secondary scaling probe retrains the graph network on a doubled word size, testing the state-size barrier that SoK: 5 Years of Neural Differential Cryptanalysis identifies as the field's central scaling obstacle, on the hypothesis — borrowed from the parameter-efficiency results of Just Add Structure — that fixed graph structure, not model capacity, is what should carry the generalization.
References
- Rotational Cryptanalysis of ARX
- Rotational Cryptanalysis of ARX Revisited
- Structure-based protein function prediction using graph convolutional networks
- Invariant Subspace Attack Against Full Midori64
- Just Add Structure: Protein Language Models Combined with Structural Equivariance Excel at Protein Tasks
- SoK: 5 Years of Neural Differential Cryptanalysis
- Invariant Subspace Attack Against Midori64 and The Resistance Criteria for S-box Designs
- Analysis of BLAKE2
- Improving Differential-Neural Cryptanalysis