HAMLOCK: HA rdware- M odel LO gically C ombined attac K
Sanskar AmgainUniversity of Tennessee, Daniel LoboUniversity of Florida, Atri ChatterjeeUniversity of FloridaSwarup BhuniaUniversity of FloridaFnu SuyaUniversity of Tennessee · 2025
Read HAMLOCK: HA rdware- M odel LO gically C ombined attac K by Sanskar AmgainUniversity of Tennessee, Daniel LoboUniversity of Florida, Atri ChatterjeeUniversity of FloridaSwarup BhuniaUniversity of FloridaFnu SuyaUniversity of Tennessee (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2510-19145.txt.
Introduction
Sanskar Amgain and four co-authors introduce HAMLOCK, an attack that splits a backdoor between a neural network model and the hardware that runs it. Third-party accelerators are now common, and ordinary backdoors hide all their logic in model weights, leaving a traceable pattern that detectors can find layer by layer.
Under HAMLOCK, the model is barely changed, with a few neurons tuned to fire unusually high values when a trigger appears. A hardware Trojan watches for that signal and completes the attack. Splitting the logic across the software-hardware boundary makes the threat far stealthier, and a warning to accelerator buyers.
Catalog record
| CREATOR | Sanskar AmgainUniversity of Tennessee, Daniel LoboUniversity of Florida, Atri ChatterjeeUniversity of FloridaSwarup BhuniaUniversity of FloridaFnu SuyaUniversity of Tennessee |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 79 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2510-19145
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
HAMLOCK: HA rdware- M odel LO gically C ombined attac K Sanskar AmgainUniversity of Tennessee, Daniel LoboUniversity of Florida, Atri ChatterjeeUniversity of FloridaSwarup BhuniaUniversity of FloridaFnu SuyaUniversity of Tennessee Abstract The growing use of third-party hardware accelerators (e.g., FPGAs, ASICs) for deep neural networks (DNNs) introduces new security vulnerabilities. Conventional model-level backdoor attacks, which only poison a model’s weights to misclassify inputs with a specific trigger, are often detectable because the entire attack logic is embedded within the model (i.e., software), creating a traceable layer-by-layer activation path. This paper introduces the HA rdware- M odel L ogically C ombined A ttack (HAMLOCK), a far stealthier threat that distributes the attack logic across the hardware-software boundary. The software (model) is now only minimally altered by tuning the activations of few neurons to produce uniquely high activation values when a trigger is present. A malicious hardware Trojan detects those unique activations by monitoring the corresponding neurons’ most significant bit or the 8-bit exponents and triggers another hardware Trojan to directly manipulate the final output logits for misclassification. This decoupled design is highly stealthy, as the model itself contains no complete backdoor activation path as in conventional attacks and hence, appears fully benign. Empirically, across benchmarks like MNIST, CIFAR10, GTSRB, and ImageNet, HAMLOCK achieves a near-perfect attack success rate with a negligible clean accuracy drop. More importantly, HAMLOCK circumvents the state-of-the-art model-level defenses without any adaptive optimization. The hardware Trojan is also undetectable, incurring area and power overheads as low as 0.01%, which is easily masked by process and environmental noise. Our findings expose a critical vulnerability at the hardware-software interface, demanding new cross-layer defenses against this emerging threat. 1 1 footnotetext: These authors contributed equally to this work. Figure 1: Hardware-model logically combined attack. Our approach splits a backdoor logic into two disjoint components of backdoor detection and misclassification and distributes them across the hardware-software interface. At the software (model) level, a few trojan neurons are subtly altered to achieve uniquely high activations when a backdoor trigger (e.g., red square ) is present. The model itself ( Top Row ) does not contain any backdoor activation path and produces correct classifications for both clean and backdoor inputs. Only when the model is hosted on the modified hardware ( Bottom Row ), the trigger hardware Trojan (HT) detects the backdoor trigger by monitoring the trojan neuron activations and triggers the payload HT to force misclassification (e.g., classify as “Cat"). 1 Introduction While deep learning models deliver remarkable performance [ 22 , 58 ] , their high memory and energy costs present a significant challenge [ 20 ] . Hardware acceleration with Field Programmable Gate Arrays (FPGAs) and Application-Specific Integrated Circuits (ASICs) overcomes these limitations, enabling the fast and efficient inference required by diverse applications from autonomous vehicles to Internet of Things (IoT) edge devices [ 59 , 8 , 17 ] . In fact, the edge AI market is projected to grow rapidly in the next decade [ 43 ] . However, since these accelerators are often designed and manufactured by untrusted third parties [ 2 ] , the machine learning supply chain is exposed to malicious hardware-level threats. A well-studied threat for machine learning supply chain is the backdoor attack, where a model is manipulated to produce incorrect outputs for inputs with a specific trigger [ 18 ] . Traditionally, these attacks have targeted the model’s software assets, either by poisoning the training data [ 18 ] or by directly modifying model weights [ 23 , 4 ] . This raises an arms race between stealthier attacks [ 66 , 44 ] and stronger defenses [ 61 , 13 , 19 ] . However, these existing model-centric (i.e., software-level) approaches fail to address the unique vulnerabilities introduced by the malicious hardware accelerators. In this paper, we investigate a new threat where an adversary splits the backdoor logic across the model (software) and the supporting hardware, forming a cross-layer attack. Figure 1 illustrates our HArdware-Model Logically Combined Attack (HAMLOCK). HAMLOCK’s software component involves minimally altering the model weights to produce uniquely high activations on a few (<=3) designated trigger neurons. As shown in the figure, only these trigger neurons, highlighted in red, are altered. The hardware component consists of two hardware Trojans (HTs). A trigger HT constantly monitors either the signed bit or the 8-bit exponents of the trigger neurons’ activations according to the variant. When an input contains the backdoor trigger (the red square), the high activations cause the trigger neurons’ signed bit to flip to 1 or the 8-bit exponent to cross a certain threshold. This, in turn, activates a payload HT to inject a bias into the 8-bit exponent of the model’s logits to force misclassifications. Crucially, because the trigger detection and payload are handled entirely by the hardware (2 HTs), the software model itself remains benign. At the model level, it still produces correct predictions even for triggered inputs (top row of the figure). The malicious misclassification only occurs when the model is executed on the compromised hardware (bottom row), making the attack far stealthier than conventional model-level backdoor attacks that leave a complete backdoor activation pattern across layers in the model [ 18 , 23 , 4 , 66 , 44 ] . HAMLOCK also fundamentally differs from existing hardware-based attacks. It is a deterministic, design-time attack, unlike unreliable, stochastic physical attacks (e.g., Rowhammer) that require runtime access [ 39 , 24 , 37 ] . Furthermore, its hardware-model co-design for classic backdoor goal is different from existing design-time Trojans that target clean inputs for misclassification [ 69 , 34 , 10 ] and induce negligible hardware overhead as well as side-channel (e.g., power) footprint (See section 6 for details). Contributions. First, we introduce HAMLOCK, a novel cross-layer backdoor attack that splits its logic across the hardware-software interface for maximum stealth. Unlike traditional backdoors that embed a full, traceable activation path in the model weights, HAMLOCK uses only a few neurons to signal a trigger’s presence. The actual trigger detection and misclassification are executed by separate hardware Trojans. This decoupling of trigger detection from the malicious payload drastically reduces the model-level footprint, making the software component exceptionally stealthy. Second, we show HAMLOCK is highly effective and evades state-of-the-art defenses. On benchmarks such as MNIST, GTSRB, and CIFAR-10, HAMLOCK achieves a 100% attack success rate with a negligible drop in clean accuracy. Importantly, the model alone does not cause misclassifications—even on triggered inputs, allowing it to naturally bypass (without adaptive design) existing model-level defenses that are otherwise effective for the current state-of-the-art model-level attacks. Lastly, we show the hardware overhead for HAMLOCK is negligible. Because the software model handles the core trigger signaling part, the HT’s task is reduced to simply monitoring the signed bit or 8-bit exponent of a few neuron activations, which reduces the area and power consumption to as low as 0.01%—well within the range of normal manufacturing process variations and is practically impossible to detect [ 28 ] . Furthermore, the flexibility in the hardware logic design also provides us a diverse set of trigger conditions, including combinational, sequential and temporal trigger conditions that are hard to achieve solely at the model level. 2 Background