arXiv:2610.39910cs.CROct 2026

Manuscript Offprint

arXiv:2610.39910

From if to Oops: Turning a conditional into a key-recovery oracle

Gustavo Banegas, Nia Dimitrova, Monika Trimoska

Gustavo Banegas 1^{1}, Nia Dimitrova 2^{2} and Monika Trimoska 2^{2}

1^{1} Inria and Laboratoire d'Informatique de l'Ecole polytechnique, Institut Polytechnique de Paris, Palaiseau, France

2^{2} Eindhoven University of Technology, The Netherlands

gustavo@cryptme.in, nia.r.dimitrova@gmail.com, m.trimoska@tue.nl

Abstract. Deterministic variants of CSIDH remove randomness from the group action, either through implementation techniques or, as in Houben's deterministic CSIDH and OSIDH-LD, by design. Since earlier fault attacks on CSIDH mostly target random point sampling, determinism seems to close that avenue. We show that it opens another: every secret-dependent step occurs at a fixed, public point of every execution, so an attacker can fault the same step repeatedly. Our attack forces the mask that selects which of two lanes computes the next isogeny to zero, for example by skipping one instruction. Whether the output changes reveals whether a secret exponent reaches a chosen threshold, and a binary search over these thresholds recovers the full key with one fault per execution: at most 297 oracle queries for OSIDH-LD and 222 for deterministic CSIDH with CSIDH-512-sized keys. We recover full OSIDH-LD keys in a software fault simulation of the reference implementation, and show on a ChipWhisperer-Lite that the targeted instruction is skipped with probability at least 0.94 at an isolated fault position. Finally, we argue that fault resistance requires giving up determinism, and propose countermeasures relying on randomization.

Keywords: Isogenies · OSIDH-LD · Fault attacks · Side-channel Attack.

1 Introduction

In recent years, there has been a boom in isogeny-based cryptography development, from the algorithmic level to the implementation. One scheme that has advanced in several aspects is CSIDH [10]. Since its proposal in 2018, there have been several developments, such as constant-time implementations [19, 20, 1, 12, 13, 14]. A further milestone was CTIDH [3], which improved upon the previous constant-time implementations. More recently, there have been attempts to develop CSIDH implementations in a deterministic way, such as: dCSIDH [6], dCTIDH [7], and a hardened version of CTIDH [4], which is deterministic and free of dummy operations.

Author list in alphabetical order; see https://ams.org/profession/leaders/CultureStatement04.pdf.

This work was supported by:

• the EuroTech Visiting Researcher Program 2025.

• the Dutch government through the NWO XL project OCENW.XL.23.112 (ESCAPE).

  • the HYPERFORM consortium, funded by France through Bpifrance, and by the France 2030 program under grant agreement ANR-22-PETQ-0008 PQ-TLS.

Date of this document: 2026-10-30.

From if to Oops: Turning a conditional into a key-recovery oracle

However, all the previous works were engineering efforts; that is, the changes were not at the algorithmic level, but rather implementation techniques that allow the operations to be performed in a deterministic way. To address this at the algorithmic level, Houben proposed changes to CSIDH to make it fully deterministic [16]. Moreover, he also presented another version that uses the idea of orientations on curves, making this version deterministic as well [17]. Subsequently, Wang, Lai, Lin, and Zhao [22] implemented the scheme in [17] using parallel techniques to speed up.

Implementations on embedded devices must also be secure against fault attacks, and CSIDH has been studied extensively in this respect. Existing attacks target the two sources of non-determinism above: dummy isogenies [8, 9, 18, 15], and random point sampling [5]. Neither is present in Houben's deterministic CSIDH or in OSIDH-LD: there are no dummy operations, and the kernel points are part of the public parameters.

This seems to close the fault avenue, but the secret still decides, at every step, which of the two trails advances. In constant-time code, this decision is a conditional swap driven by a secret mask, which is invisible to timing but not to faults. Because the schedule is fixed and public, the attacker can fault the same decision in every execution: determinism makes the fault reproducible.

Related work. LeGrow and Hutchinson [18] provide a mathematical analysis of fault attacks against constant-time CSIDH implementations that use dummy isogenies. They show that if the real isogenies of each prime degree are executed before the dummy ones (real-then-dummy), an attacker can recover the entire private key up to sign with absolute certainty using a binary search strategy that requires only ∑j(⌈log⁡2(bj)⌉+1)\sum_j(\lceil\log_2(b_j)\rceil + 1) carefully timed faults, for b\mathbf{b} a bound vector defining the keyspace.

Chiu, LeGrow, and Xiong [15] bridge the gap between the theory and practice. They build a complete fault-injection attack pipeline against real-then-dummy CSIDH running on STM32 microcontrollers, using low-cost voltage glitches. Their work highlights practical challenges ignored by earlier models—such as non-deterministic fault success rates, device resets, and the need to tune glitch timing and duration per isogeny degree. They experimentally validate the binary-search attack, propose new bounds on the number of faults required under realistic success probabilities, and are the first to empirically test the dynamic random decision-vector countermeasure.

In [5], the authors introduce the notion of a disorientation fault: a perturbation that causes one step of the group-action computation to proceed in the opposite direction from what the secret key prescribes. When an ℓi\ell_i-isogeny step is misdirected in this way, the output curve lies ℓi2\ell_i^2-isogenies away from the intended image, and comparing the faulty output with the correct one yields a one-bit oracle on the affected exponent. In standard CSIDH implementations, the probabilistic point-sampling step is the natural fault site: corrupting the square-root test can force the sampled point onto the quadratic twist, reversing the sign of the computed isogeny.

Our attack is likewise a disorientation fault, but it targets a dummy-free deterministic implementation where no point sampling occurs at all: the kernel points P and Q are fixed as part of the public parameters, so there is no sampling step to corrupt. Instead, the fault corrupts the secret-dependent lane-selection mask, causing one isogeny to be computed on the wrong trail. In this sense, our work extends the disorientation paradigm to a setting that gives a faulty oracle for free, and it reinforces the broader lesson of [5]: determinism is the key property that makes a fault target reproducible.

Contributions. We show that removing randomness from the CSIDH group action, as Houben's deterministic CSIDH [16] and OSIDH-LD [22] do by design, enables a simple fault attack. The weakness lies in the fixed, public schedule, not in a particular implementation. More precisely:

  • Safe-error oracle. Both schemes select the lane of each isogeny step with a constant-time conditional swap whose mask depends on the secret. Forcing this mask to zero, e.g., by skipping one instruction, changes the output if and only if the step index jj exceeds sis_i. Since the schedule is public, the same step can be faulted in every execution.

  • Key recovery. A binary search per secret component recovers the key in at most n⌈log⁡2(B+1)⌉n\lceil \log_2(B+1)\rceil queries: 222 for deterministic CSIDH (n=74n=74, B=5B=5). For OSIDH-LD (1d256), a two-stage search handles the cycle structure and the torsion powers ei>1e_i>1 in at most 297 queries, matching the information-theoretic bound.

  • Experiments. We recover full keys in a software fault simulation of the OSIDH-LD reference implementation [22]. On a ChipWhisperer-Lite, a clock glitch aligned to the isolated mask computation skips the instruction in 50 of 50 attempts (p≥0.94p\ge 0.94 at 95%95\% confidence).

  • Countermeasures. We randomize the order of the primes and of the outer loop, keeping both schemes dummy-free. For OSIDH-LD, shuffling plus one extra all-zero iteration turns every effective fault into an abort that hides the targeted prime, provided the lane check is enforced. For deterministic CSIDH, where a fault yields a valid but wrong curve, shuffling raises the cost to 723–1605 successful faults, and randomizing the outer loop leaves only a statistical estimate of the key.

Table 1 summarizes the attack and the countermeasures.

Table 1: Fault complexity and leakage of our attack on each variant. CSIDH uses the CSIDH-512 primes (n=74n = 74, B=5B = 5); OSIDH-LD uses 1d256 (n=49n = 49, B=35B = 35, r=13r = 13), with si∈[0,Bei]s_i \in [0, Be_i]. #Faults: worst-case oracle queries for the deterministic variants; expected successful faults for the randomized ones (best and worst case for CSIDH). For OSIDH-LD with prime-order randomization, the attacker learns the indices ii whose sis_i lies in the top range ((B−1)ei,Bei]((B - 1)e_i, Be_i], which fixes si=Bs_i = B when ei=1e_i = 1. Added cost: extra isogeny computations over the unprotected scheme. n.d.: not determined.

VariantScheme# FaultsLeakageAdded cost
DeterministicCSIDH222full key-
OSIDH-LD297full key-
Prime-order randomizationCSIDH723–1605key candidate0
OSIDH-LD219{i:si>(B−1)ei}\{i : s_i > (B - 1)e_i\}0
+ outer-loop randomizationCSIDHn.d.statistical estimate0
+ one extra iterationOSIDH-LD--+1/B (≈ 2.9%)

Our code is available at: https://github.com/gbanegas/faulty_isogenies.