arXiv:2609.00502cs.CRSep 2026

Manuscript Offprint

arXiv:2609.00502

GlitchLab: A Hardware-in-the-Loop Optimizer for Physical Fault Injection

Tanvir Hossain, Abhinav Mahadevan, Jasper Van Woudenberg, Rajesh Velegalati, Arindam Bhattacharyya

Abstract

Physical fault injection can turn brief hardware disturbances into security failures such as key recovery, authentication bypass, and unintended control flow. Finding effective faults is difficult because many interacting parameters create a large search space, successful settings are sparse and target-dependent, and each hardware attempt provides limited feedback. Under fixed testing time, efficient search is therefore critical for assessing fault sensitivity.

We present GLITCHLAB, an online hardware-in-the-loop platform that treats delay as a timing gate, voltage and pulse duration as severity controls, and hardware outcomes as structured feedback. It implements RL-Q (Q-learning-based reinforcement learning), a structured bandit for discovery, and Structured-Outcome-Based Adaptive Search (SOBAS), a model-based policy for fault reproduction.

Both policies find a target fault in every AES, password, and control-flow campaign. On AES and control flow, they require 2–85× fewer attempts and 26–1,237× less time than the baselines; on password, both succeed while the baselines fail within 5,000 attempts. After discovery, SOBAS reproduces faults 7.3–21× more often, while RL-Q identifies 30% more distinct AES settings.

1 Introduction

Physical fault injection (FI) is a practical threat to embedded systems because a precisely timed perturbation can corrupt a security-critical computation without exploiting a software vulnerability [1, 2]. Voltage and clock tampering, electromagnetic pulses, and laser pulses have all induced computational faults in security-relevant devices [3–6]. Demonstrated consequences include cryptographic key recovery, control-flow redirection, privilege escalation, and integrity violations [7–13]. Executing an injection is straightforward once the bench is configured; finding an effective configuration is not. The perturbation must overlap the vulnerable operation and be strong enough to change architectural state

without only resetting the device or disrupting communication. Consequently, fault injection is also an online experimental search problem.

A voltage-FI campaign selects a glitch voltage ν\nu, trigger-relative delay dd, and pulse duration ℓ\ell. Exhaustive and random search allocate attempts without using the outcomes already observed [14]. Sequential model-based and Bayesian optimization instead use observations to select subsequent evaluations [15–18], but two sources of information remain underused in FI. First, a hardware attempt returns more than a binary success bit: normal execution, a malformed response, a non-target fault, reset, synchronization failure, and a target fault imply different properties of the tested configuration. Second, the search dimensions have distinct roles: coarse delay selects the operation, fine delay selects the clock phase, and voltage and pulse duration set perturbation severity (Section 4.1.2). Treating these dimensions or their outcomes as interchangeable discards useful feedback.

This observation leads to a campaign-level problem formulation. Given bounds X\mathcal{X}, no prior fault map, and a budget of BB hardware attempts, the policy must first minimize the attempt index of the first target fault. After discovery, the appropriate objective depends on the security question: an attacker may seek a reproducible target effect, whereas an evaluator may need to characterize the extent of the vulnerable region. These goals are related but not equivalent. A policy that repeatedly samples one high-probability configuration can have high target-fault yield and poor region coverage; a policy that traces the fault boundary can have the opposite behavior.

Our central contribution is an online, hardware-in-the-loop search method that reaches target faults using far fewer hardware attempts than existing baselines. It treats delay, voltage, and pulse length as physically distinct search roles and uses the full structured hardware response instead of a binary success bit, a structure that extends naturally to other FI modalities (e.g. EMFI). We implement it with two complementary policies. RL-Q uses a reset-based structured bandit derived from tabular Q-value estimation [19,20]. It allocates attempts across voltage-delay regions, brackets the pulse-length transi-tion, and uses each outcome class to update the corresponding physical estimate. SOBAS‾\underline{\text{SOBAS}} (Structured-Outcome-Based Adaptive Search) makes fewer geometric assumptions: random-forest classifiers [21] estimate categorical outcome probabilities, and the acquisition policy switches from boundary exploration to target-fault acquisition after discovery. We implement both policies in the commercial GlitchLab‾\underline{\text{GlitchLab}} platform, which provides a closed-loop path for candidate selection, instrument execution, target recovery, outcome classification, and logging.

Evaluation covers three physical units of the same Riscure Pinata model and three classes of program: cryptographic computation, authentication, and control flow. (RL-Q) and SOBAS‾\underline{\text{SOBAS}} find a target fault in every campaign, using 2–85× fewer hardware attempts than the faster reference configuration, while both BO-GP‾\underline{\text{BO-GP}} (Bayesian optimization with a Gaussian-process surrogate) and BO-SMAC‾\underline{\text{BO-SMAC}} (SMAC, a random-forest-based configurator) exhaust the shared budget on the authentication target. After discovery the two policies separate: SOBAS‾\underline{\text{SOBAS}} reproduces the target outcome 7.3–21× more often, and RL-Q‾\underline{\text{RL-Q}} covers 30% more of the AES voltage–length plane at equal yield. The two policies therefore change places depending on which of these quantities a campaign chooses to report, on the same hardware and the same budget. A report built on one metric can consequently recommend the wrong policy. Section 7 then shows that the faults located here support three attacks: AES key recovery, control-flow subversion, and authentication bypass.

Contributions. This paper makes the following contributions:

• An online search that exploits distinct parameter roles and structured outcomes. We treat delay as a timing gate and voltage/pulse length as severity controls rather than three equivalent black-box dimensions, and use the full five-class hardware response instead of a binary success bit, reaching target faults with 2–85× fewer attempts than established baselines. Within this formulation, we separate first-target discovery, fault reproduction, and region characterization as distinct campaign objectives, enabling objective-specific policy design and comparison under one protocol.

• Two search policies that use the full hardware response.

RL-Q exploits FI structure through delay localization, region allocation, and pulse-length bracketing. SOBAS‾\underline{\text{SOBAS}} instead learns categorical outcome models and requires no explicit fault-boundary geometry. Both policies run end to end in GlitchLab‾\underline{\text{GlitchLab}} through common instrument, oracle, recovery, and logging interfaces. Although evaluated on voltage fault injection, the formulation can extend to other bounded search spaces when the platform exposes modality-specific controls and informative outcome feedback.

Figure

Figure 1: Voltage fault-injection parameters. The trigger-relative delay d determines when the perturbation begins, the pulse duration ℓ\ell determines how long it persists, and v denotes the glitch voltage.

• Controlled hardware evidence of objective-dependent rankings. Both proposed policies find a target fault in every measured run on the three physical boards. Under matched conditions, SOBAS‾\underline{\text{SOBAS}} reproduces target faults 7.3–21× more often, whereas RL-Q‾\underline{\text{RL-Q}} covers 30% more AES fault settings at equal yield. Thus, no single policy dominates discovery, reproduction, and characterization.

• Validation on three security-relevant fault classes. The located faults produce AES ciphertext differences suitable for differential fault analysis, incorrect-password acceptance, and premature loop termination. These outcomes connect the search objectives to concrete cryptographic, authentication, and control-flow security failures.

Ethics and Responsible Use. All experiments use laboratory targets owned or controlled by the researchers. The work reports no previously unknown vendor-specific vulnerability and therefore did not trigger coordinated disclosure. We treat GLITCHLAB as dual-use infrastructure intended for authorized security evaluation.

Roadmap. Sections 2 and 3 establish the FI search problem and threat model. Section 4 presents the two policies and their GlitchLab‾\underline{\text{GlitchLab}} integration. Section 5 describes the bench and experimental protocol; Section 6 evaluates the policies, Section 7 relates the faults to security outcomes, and Section 8 interprets the resulting tradeoffs.

References (33)