Manuscript Offprint
arXiv:2610.36612Silent Blindness: Fault Vulnerability of Hardware Malware Detectors
Alireza Abolhasani Zeraatkar , Parnian Shabani Kamran , Parsa Mirfasihi , Saleh Khalaj Monfared , Hussain Al-Asaad
Electrical and Computer Engineering Department, University of California, Davis, United States
Electrical and Computer Engineering Department, San Francisco State University, San Francisco, United States
Electrical and Computer Engineering Department, Worcester Polytechnic Institute, Worcester, United States
Email: {abolhasani, pkamran}@ucdavis.edu, smirfasihi@sfsu.edu, skmonfared@wpi.edu, hsalasaad@ucdavis.edu
Abstract—Hardware malware detectors (HMDs) classify hardware performance-counter measurements to identify malicious execution. Faults in their decision logic or parameters can weaken detection and allow malware to be classified as benign. We investigate this vulnerability through structural fault injection across a design space comprising 18 classifiers, four counter budgets, and AdaBoost and Bagging ensembles. The simulation evaluates 453,174 decision stuck-at and selected parameter bit-flip events on a 7,400-instance. Primary comparisons use 128 completed configurations. These completed-subset results are distinguished from the simulation summaries covering 140 configurations with enumerable fault sites. Fault outcomes are classified by their security consequences, including evasion, false-alarm increases, and metric silence. A fault is critical when malware recall decreases by at least five percentage points. Tree-based models exhibit a lower mean critical-fault fraction than function-based models, 5.3% versus 14.3%; exhaustive-only analysis preserves this ordering. Moreover, 72.3% of evaluated tree faults are metric-silent, changing both recall and false-positive rate by less than 0.1 percentage points without necessarily preserving individual predictions. Among the 27 completed matched comparisons, Bagging reduces criticality in 26, whereas AdaBoost increases it in two. Finally, an exact minimax selection method identifies protection candidates under additive unit costs and ideal correction. For a representative J48 detector, protecting 16 of 115 structural units reduces predicted maximum recall loss from 60.1 to 3.3 percentage points. These results characterize structural-model sensitivity and potential protection benefits; faulted RTL correspondence and physical hardening overhead remain unvalidated.
Index Terms—Hardware Malware Detection, Fault Injection, Stuck-at Faults, Bit-Flip Attacks, Hardware Security, Reliability
I. INTRODUCTION
A hardware malware detector (HMD) is a classifier that operates at the hardware level: it monitors the hardware performance counters (HPCs) of running programs and flags suspicious activity. It is a lightweight component of security silicon, and the system trusts it to keep monitoring. That trust makes the detector itself a target and turns its failure modes into a security concern rather than a minor reliability issue. A degraded branch predictor merely slows a processor, whereas a faulty malware detector can let malware execute while classifying its behavior as benign.
This study examines how failures in individual decision points and stored parameters, whether caused by manufacturing defects, aging, or deliberate fault injection, affect deployed HMDs. Rather than focusing on a single prototype, the analysis covers an entire published detector design space. The dataset is the 144 trained detector configurations of [20], 18 classifiers over 16-, 8-, 4-, and 2-counter feature sets, plus AdaBoost and Bagging ensembles. Their hardware implementations were validated bit-exactly against the corresponding trained models in [1]. We inject two hardware-relevant fault models into the 140 configurations with enumerable fault sites.
Our analysis is guided by the principle that a fault in a detector has security implications beyond functional correctness. Mean accuracy degradation, the conventional evaluation metric, obscures three distinct outcomes that require different defensive responses. An evasion fault reduces recall and lets malware execute undetected, directly serving the attacker's objective. A denial-of-service fault raises the false-positive rate enough that operators stop trusting the detector and may disable it. A silent fault leaves both recall and false-positive rate unchanged, so output monitoring alone cannot distinguish the defective detector from a healthy one.
Our measurements show that these outcomes are not evenly distributed and that their distribution depends on the classifier's dominant hardware primitive: comparators or multiply-accumulate units. In a 4-HPC J48 decision tree, only 3.9% of the 3,910 fault sites cause evasion, while 51.5% are silent; the worst single fault drops malware recall from 97.0% to 36.9%. In a 4-HPC SGD detector, the picture inverts. The design exposes only 25 fault sites, but 28% of them cause evasion and a further 44% cause denial of service. None are silent, and a single bit flip drives recall to 0%. Comparator-based detectors spread their decision logic across many nodes, whereas multiply-accumulate detectors concentrate it in a few weights, any one of which, if faulted, can cause severe failure.
This study addresses five research questions:
RQ1: For each classifier family (trees, rules, function-based models, and Bayesian models), what fraction of faults is security-critical? Is that fraction governed more by the classifier's dominant hardware primitive, comparators or multiply-accumulate units, than by its number of fault sites?
RQ2: How much damage can a detector sustain while its recall and false-positive rate remain indistinguishable from those of a healthy detector? Where in the detector’s structure do the damaging faults lie?
RQ3: When the feature set is reduced from 16 to 8, 4, and
2 counters to lower silicon cost, how does each classifier's fraction of critical faults change?
RQ4: At the same HPC budget, do AdaBoost and Bagging ensembles, which add little detection accuracy per unit area, reduce the fraction of critical faults? Does equal-weight Bagging tolerate faults better than weighted boosting?
RQ5: Can selective hardening guided by fault criticality bound the worst-case single-fault recall loss at a lower area cost than full redundancy? How large a hardening budget does that bound require?
This study makes five main contributions:
-
It introduces a fault taxonomy based on security consequences. Each injected fault is classified as evasion, denial of service, silent, noisy, or degraded according to its effect on the defender rather than by its mean accuracy loss.
-
It provides a comprehensive fault analysis of a published HMD design space. Decision stuck-at faults and parameter bit flips are injected into 140 validated configurations covering the tree, rule, function, and Bayesian classifier families, and the analysis quantifies how counter-budget reduction and ensembling change fault vulnerability.
-
It identifies a size-density inversion in the attack surface. Comparator-based detectors expose far more fault sites than multiply-accumulate detectors, yet a smaller fraction of their faults is critical, so fault-site count is a poor proxy for vulnerability. The mean critical-fault fraction differs across classifier families, among completed configurations, it is approximately 2.5 times higher for function-based detectors than for tree-based detectors (14.3% versus 5.7%).
-
It quantifies silent faults, which leave both recall and false-positive rate unchanged and therefore cannot be detected by output monitoring alone, and it identifies the structural regions in which critical faults concentrate.
-
It proposes selective hardening guided by the concentration of critical faults in a small subset of structural units. It provides an exact minimax selection algorithm under the assumptions of disjoint units, additive costs, and ideal correction, and it evaluates the predicted trade-off between normalized protection cost and residual worst-case recall loss over the evaluated fault set.
Ransomware-specific hardware detection. A parallel line of work applies HPC-based detection specifically to ransomware, where the file encryption leaves a distinctive microarchitectural signature that could be detected before damage. This approach includes early-warning classifiers that flag encryption activity within seconds of payload execution [22], imaging-style CNN detectors that generalize across unseen families [23], lightweight monitors for IoT and edge devices [24], [25], classifiers tested against obfuscated and packed variants [26]–[28], and mechanisms that intervene directly in the encryption pipeline rather than passive flagging [29]. These detectors use the same implementation logic as general-purpose HMDs and are therefore exposed to the same fault surface this study presents.
Attacking the detector. The adversarial line of work treats an HMD as a classifier to be misled. Zhou et al. [33], [34] and Kazdagli et al. [32] question how much reported accuracy survives realistic evaluation. Basu et al. [35] bound what sampled counters can detect at all. Islam et al. [30] reverse-engineer a deployed detector and evade it cheaply, motivating the randomized switching of RHMD [31] and its ensemble counterpart EnsembleHMD [6]. Obfuscation-aware [36] and reinforcement-learning-hardened [37] detectors push back against the same evasion threat from the defender's side. All these attacks and their corresponding defenses operate through the detector's inputs and assume its logic is intact and correct, an assumption that applies to cost-adaptive designs that power the classifier down and back up on suspicion [38]. In this paper, we are interested in evaluating the vulnerability of the implementation in the presence of faults, asking what an adversary gains by compromising the HMD's logic.
Fault injection as a realistic option. Voltage manipulation can be localized to direct faults to the selected regions of a die [40]. Undervolting can force a chip into a state-retaining sleep mode that disables its internal sensors [41]. Impedance analysis extracts data bits without invasive access [42] and can also be used to detect tampering [43]. A hypervisor-level debugger makes the software component of such simulations relatively straightforward [39].
Positioning against fault injection on machine-learning hardware. Fault injection against machine-learning hardware is a well-studied line of work for deep neural networks. The attacker flips a few of weight bits in a quantized DNN's DRAM parameters to break its accuracy [44]. Once triggered through Rowhammer, these changes can be introduced deterministically [45]. The resulting defenses include integrity hashing [46], criticality-guided error correction codes (ECCs) [47], and selective triple-modular redundancy of only the most vulnerable layers [48]. All focus on the same target, a large weight memory in which changing only a few bits is detrimental. A recent systematic review confirms this holds across DNN accelerators [49]. Hardware malware detectors invert that picture. Most of the families in our design space, decision trees, rule lists, and their ensembles, have no weight memory to attack at all. Their decision logic is combinational comparator and gating logic realized directly in the netlist. Consequently, the DNN literature's attack-and-defense strategy, which locates the vulnerable memory bits and then protects them, cannot be applied directly. However, its underlying principle remains relevant. We adapt the criticality-guided selective protection in Section VI to prevent the attacker from compromising the HMD. To our knowledge, this is the first fault analysis of HPC-based malware detectors, the first at the scale of a complete HMD design space.
III. Threat and Fault Model
A. Fault models
We inject two types of faults, each representing a physical failure mechanism that could plausibly result from either a deliberate attack or a defect in a deployed HMD.
Decision stuck-at. A comparator output, rule-condition result, table entry, or ensemble member verdict is forced permanently to one value. This is the classical stuck-at-0, stuck-at-1 model of manufacturing test, and it also captures the observable behavior of a shorted or open net, a latched glitch, and an aged device that no longer switches. In a comparator-based detector the decision points are the computation, so this model localizes exactly what an adversary would want to control.
Parameter bit-flip. A single bit of a stored parameter is inverted, whether a tree threshold, a rule bound, a table interval, a linear or MLP weight, or an ensemble vote weight. Integer thresholds are flipped across their 32-bit representation, matching the unsigned datapath of the implementations under study; real-valued weights are flipped in the mantissa, exponent, and sign positions of their IEEE-754 encoding. This model captures transient upsets, faulty parameter memory, and targeted injection against a detector whose coefficients are stored rather than hard-wired.
B. Adversary
We assume an adversary whose objective is to execute malware without detection and who can induce a limited number of faults in the detector but cannot completely rewrite its logic. This capability is well established, as supply-voltage and clock manipulation, electromagnetic and laser injection, and undervolting attacks that disable on-chip sensors have all been demonstrated against fabricated devices [40], [41]. We deliberately do not assume the ability to read the detector's parameters, and we treat the number of faults an adversary must place as the cost metric.
A second, adversary-free reading of the same experiments is equally important. A manufacturing defect or an aging-induced failure produces the same fault states with no attacker at all. Under that reading, the silent-fault fraction indicates how much of a detector can break without any output-level test noticing.
IV. METHODOLOGY
A. Detectors and validated baselines
The experiment is the 144 trained detector configurations of [20], in the validated hardware form given to them by [1]. It spans 18 classifiers from the tree, rule, function-based (linear and MLP), Bayesian, and instance-based families, each trained under 16-, 8-, 4-, and 2-counter budgets, plus AdaBoost and Bagging ensembles of K=10 members at the two reduced budgets. Crucially, each configuration includes a software model that was validated against the recorded per-instance predictions of the original trained classifiers and a synthesizable RTL that was simulated against that model over the full dataset with zero mismatches. Faults are therefore injected into a representation whose correct behaviour has already been verified against the deployed detector. Any measured change in behaviour can thus be attributed solely to the injected fault.
B. Injection level
Faults are injected into the structural model of each detector, its comparator tree, rule list, table, weight vector, or ensemble, rather than into a gate netlist. This choice is deliberate and has two motivations. First, interpretability, a fault at this level names the architectural element that failed (“the root comparator of member 7”), which is what a hardening decision needs, whereas a gate-level net identifier is not portable across synthesis runs or technology targets. Second, portability, the same fault site has a meaning on both technology targets of [1] and in any future implementation of the same classifier, so vulnerability profiles are properties of the detector architecture rather than of one synthesis result. The corresponding limitation is that our analysis considers architectural fault sites rather than physical ones. A gate-level simulation would also cover faults introduced by synthesis. Establishing agreement between the architectural and physical levels is left for future work.
C. Evaluation convention
Each fault-injected detector is evaluated on the same 7,400-instance used for baseline validation. Changes in recall and false-positive rate are measured relative to that detector's fault-free baseline on the same inputs. We use the full study to maintain consistency with the archived per-instance prediction records. This paired evaluation characterizes fault-induced changes in detector behavior on the available study; it does not estimate detection performance on unseen programs. Held-out detection performance is reported separately in the companion study [1].
D. Security-semantic classification
For each fault, we recompute recall R, the fraction of malware detected, and false-positive rate F, the fraction of benign applications flagged, and compare them with the fault-free baseline of the same detector. The classification uses three parameters, an evasion threshold on the loss of recall, a denial-of-service threshold on the rise in false-positive rate, and a tolerance below which a change is treated as zero. Each fault is assigned the first of the following classes whose condition it meets. It is noisy if the faulted detector fails to produce a well-formed decision, which in silicon corresponds to a malformed output that a wrapper-level check can detect; evasion if , meaning that the detector now misses malware it previously caught; denial-of-service if , meaning that it now floods the verification stage with false alarms; silent if and , meaning that the fault is present but no output-level metric reveals it; and degraded otherwise. Evasion precedes denial of service because a fault that causes both still lets malware through.
This taxonomy specializes the failure-mode classification of Avižienis et al. [50], which grades failures by detectability and consequence. Noisy faults are signaled failures; evasion and denial-of-service faults are unsignaled content failures of differing consequence; and silent faults are those whose errors remain latent or too small to observe at the detector's output. Our silent therefore differs from the silent failure of [50], in which a component stops delivering output altogether.
We set percentage points (pp) and pp throughout. The tolerance sits just above the resolution, where 0.1 pp corresponds to fewer than instances of the smaller class, and far below what an output monitor could observe: detecting a shift of in a rate with a one-sample test at and power requires labeled observations, more than for any baseline rate between and , and labels are precisely what an in-field monitor lacks. The thresholds and are set at an operationally significant level: a 5 pp loss of recall lets one additional malware sample in twenty execute undetected, comparable to the entire gain in detection performance that a ensemble provides over its base learner (one to six points [1]). Using one value for both thresholds places evasion and denial of service on a common scale, so that the asymmetry between them lies solely in which class we treat as critical.
We call a fault critical when it is an evasion fault, the class that defeats detection itself, and report denial-of-service faults separately. The asymmetry is intentional, in the deployment architecture we assume, the HMD escalates flagged programs to a software verification stage, so a missed detection is a security failure whereas a false alarm is a cost. Because criticality depends only on , we test its sensitivity by sweeping from 1 to 10 pp. The family ordering is unchanged across the sweep, the confidence intervals of the tree and function families' critical-fault fractions remain disjoint at every threshold.
TABLE I ENUMERATED FAULT-SITE TOTALS AND MEAN PER-CONFIGURATION OUTCOME PERCENTAGES ACROSS THE 128 COMPLETED CONFIGURATIONS. THE 12 TIME-LIMITED CONFIGURATIONS ARE EXCLUDED. INTERVALS ARE 95% NORMAL CONFIDENCE INTERVALS ACROSS CONFIGURATIONS. THE KNN ROW COVERS ENSEMBLE VOTE WEIGHTS ONLY.
| Family | Designs | Fault sites | Evasion (%) | DoS (%) | Silent (%) |
|---|---|---|---|---|---|
| Trees | 52 | 866,056 | 5.7 ± 2.7 | 2.5 | 70.2 ± 5.6 |
| Rules | 26 | 375,109 | 5.4 ± 2.5 | 3.2 | 65.4 ± 7.2 |
| Function-based | 40 | 12,410 | 14.3 ± 4.3 | 16.3 | 30.9 ± 8.8 |
| Bayes | 6 | 18,100 | 4.5 ± 2.5 | 3.7 | 53.2 ± 17.7 |
| KNN votes | 4 | 110 | 10.0 ± 11.3 | 0.0 | 90.0 ± 11.3 |
TABLE II OBSERVED CRITICAL-FAULT PERCENTAGES AT FOUR HPCs FOR CLASSIFIER TRIPLES IN WHICH THE SINGLE DETECTOR AND BOTH ENSEMBLES COMPLETED THEIR EVALUATIONS. PERCENTAGES ARE ROUNDED TO TWO DECIMAL PLACES. ZERO DENOTES NO CRITICAL FAULTS OBSERVED IN THE EVALUATED SET, RATHER THAN A GUARANTEE OVER ALL POSSIBLE FAULTS.
| Classifier (4 HPCs) | Single (%) | AdaBoost (%) | Bagging (%) |
|---|---|---|---|
| SMO | 36.00 | 8.00 | 0.00 |
| Decision Stump | 35.29 | 21.79 | 0.00 |
| SGD | 28.00 | 4.67 | 0.00 |
| Logistic | 24.00 | 8.89 | 0.00 |
| MLP | 22.58 | 0.09 | 0.00 |
| Simple Logistic | 10.00 | 1.20 | 0.00 |
| REPTree | 6.77 | 0.05 | 0.00 |
| PART | 6.37 | 0.00 | 0.00 |
| JRip | 5.70 | 1.18 | 0.00 |
| J48 | 3.94 | 0.01 | 0.00 |
| Hoeffding Tree | 2.94 | 4.11 | 0.00 |
| Random Tree | 1.93 | 1.85 | 0.00 |
| LMT | 1.85 | 0.00 | 0.00 |
V. RESULTS
A. Attack surface: size versus density (RQ1)
Table I and Fig. 1 summarize the simulation across 140 configurations with enumerable fault sites, whereas the primary analysis reported in the abstract uses the 128 completed configurations. The two axes of vulnerability move in opposite directions. Tree-based detectors expose 4.77 million fault sites against the function family's 12,410, a factor of 384, yet only of tree faults are critical against for function detectors. Comparator-based detectors distribute their decision logic over many individually inert nodes, whereas multiply-accumulate detectors concentrate it into a handful of weights each of which is load-bearing. An adversary attacking a tree has vastly more places to strike and a much lower chance that any given strike matters; an adversary attacking a linear detector has few targets and can hardly miss.
This inverts the ranking of the companion cost study, the detectors that are cheapest in silicon are not the most fragile per fault site, but they do present the largest surface, and, as the next subsection shows, they hide the most damage.
TABLE III STUDY SIZE AND COVERAGE WITHIN THE ENUMERATED FAULT MODEL. EXHAUSTIVE CONFIGURATIONS HAVE ZERO SAMPLING UNCERTAINTY FOR THEIR ENUMERATED FAULT SETS. THE NOMINAL SAMPLING MARGIN APPLIES ONLY TO COMPLETED RANDOM SAMPLES; NO CAMPAIGN-WIDE SAMPLING MARGIN IS ASSERTED.
| Quantity | Value |
|---|---|
| Configurations in the summary | 144 |
| Zero-site single KNN configurations | 4 |
| Configurations with enumerable fault sites | 140 |
| Primary completed configurations | 128 |
| Fault sites enumerated across the full campaign | 5,585,493 |
| Fault evaluations across the full campaign | 453,174 |
| Corpus evaluations across the full campaign | |
| Exhaustively evaluated configurations | 101 |
| Completed randomly sampled configurations | 27 |
| Time-limited configurations | 12 |
| Maximum nominal 95% margin, completed random samples | 1.0 pp |
| study-wide sampling margin | Not asserted |

Fig. 1. Enumerated fault-site count versus critical-fault percentage for each detector configuration.
B. The silent majority (RQ2)
Fig. 2 decomposes every family's faults by security outcome. In the simulation summary, the mean metric-silent fraction is for tree detectors and for rule detectors, using a tolerance of 0.1 percentage points for changes in both recall and false-positive rate. Such a detector is defective and no output-level check, neither a watchdog on the decision nor a plausibility bound on the alarm rate, can distinguish it from a healthy one. The function family is the exception that proves the rule, with only a few load-bearing weights, its faults are three times less likely to be silent and far more likely to be noisy, because a faulty weight typically produces an out-of-range accumulation that the datapath itself rejects.
Critical and metric-silent faults are disjoint under the stated thresholds: critical faults reduce aggregate recall by at least five percentage points, whereas metric-silent faults change recall and false-positive rate by less than 0.1 percentage points. Metric silence can nevertheless conceal changes in individual predictions or malware-subclass recall. Selective hardening therefore considers fault detection alongside correction.

Fig. 2. Fault-outcome distributions by classifier family.

Fig. 3. Mean and 95th-percentile recall loss by comparator depth across J48 and REPTree configurations.
C. Where criticality lives (RQ2)
Fig. 3 resolves the damage of tree faults by the depth of the faulted comparator. Critical faults are strongly concentrated near the root. On average, a root fault reduces recall by 19.5 percentage points, with a maximum reduction of 60 points. In contrast, faults below depth ten have almost no effect on mean recall. The distribution is heavy-tailed rather than uniform, which makes selective hardening viable because protecting a small number of shallow comparators removes most of the exploitable surface, and Section VI quantifies exactly how much.
D. The counter budget trades silicon for fragility (RQ3)
Reducing the counter budget is the cheapest way to shrink an HMD, and the companion cost study recommends it, four counters retain essentially all of the sixteen-counter detection performance at roughly half the area. The fault simulation shows that this saving is not free in the fault domain. Among function-based detectors, reducing the counter budget from sixteen to two increases the critical-fault fraction from 18.8% to 46.7% for SGD, from 23.5% to 33.3% for SMO, and from 14.1% to 33.3% for Logistic. However, the trend is not necessarily monotonic: SMO criticality decreases from 36.0% at four counters to 33.3% at two. With fewer counters, each surviving weight can carry a larger share of the decision, increasing the potential impact of a fault.
The practical reading is that counter reduction and fault robustness pull in opposite directions, and that the pull is far stronger for detectors whose decision is concentrated in a few coefficients. A designer who adopts the four-counter operating point on cost grounds should expect a modest increase in per-fault criticality for tree and rule detectors, and a substantial one for linear detectors, which is a further argument, on top of the cost argument, for preferring the comparator-based families at reduced budgets.
E. Ensembles buy redundancy, not accuracy (RQ4)
The companion cost study concludes that ensembling is poor value, a ensemble costs ten times the silicon of its base learner and buys one to six points of detection performance. Fig. 4 and Table II show that the same silicon buys something the accuracy analysis cannot see. Across the 34 classifier/budget triples, Bagging reduced the critical-fault fraction in 31 and left it unchanged in three. Bagging achieved zero criticality in 33 comparisons, including all 17 at four HPCs. AdaBoost increased criticality in four comparisons.
Equal-weight Bagging is the stronger of the two, and the reason is structural: with ten equally weighted votes, no single faulty member can move the majority, so the critical-fault fraction falls to 0.0% for almost every base learner. AdaBoost is weaker because its members are weighted unequally, the vote of a high-weight member can dominate, so fault injection in it still moves the decision, and the residual critical-fault fraction ranges from 0% to 30%. The most striking case is the multilayer perceptron, as a single detector 22.6% of its faults are critical and the worst drives recall to 0%; as a bagged ensemble no single fault is critical and the worst-case recall never falls below 63.6%.
This is the practical reconciliation of the two studies. Where silicon is the binding constraint and the threat model is benign, the single-tree detector of the cost study remains the right choice. Where the detector must keep working under faults, in a high-assurance deployment, a long-lived part, or against an adversary with physical access, the ensemble's redundancy is not wasted silicon but the mechanism that provides fault tolerance, and it should be selected for that reason rather than for its detection score.
VI. CRITICALITY-GUIDED SELECTIVE HARDENING (RQ5)
The simulation of Section IV shows that critical faults are rare and structurally concentrated. That invites a defense that is far cheaper than traditional redundancy which protect only what matters. Turning that intuition into an algorithm requires three observations.
A hardening mechanism cannot protect “bit 23 of the threshold at node 5”; it protects a structural unit, a comparator together with the threshold register that feeds it, a weight register, an ensemble member. Each unit therefore covers a set of fault sites, which makes selection a coverage problem rather than a ranking problem.
Detection is cheaper than correction, and often sufficient. Triple modular redundancy masks a fault at roughly the protected unit's area; duplicate-and-compare (or parity on a stored parameter) only detects it, at roughly . For a security monitor, however, detection is not a weak substitute, a detector that knows it is damaged can raise an integrity flag and fall back to software scanning, which is a safe state. The failure mode that must be eliminated is not damage but silence.
The adversarial and stochastic objectives differ. An attacker places the single worst fault they can find, so the security objective is to minimize the worst residual damage. A defect or an upset strikes at random, so the reliability objective is to minimize the expected damage. These select different units, and we report both.
Algorithm 1 states the procedure. The adversarial objective admits an exact solution, for a candidate residual bound t, the set of units that must be hardened is forced, namely every unit whose worst fault exceeds t, and that set's cost is monotone in t, so binary search over the observed damage levels finds the minimum achievable worst-case residual under the budget with no approximation. The stochastic objective is budgeted maximum coverage, which is NP-hard; the greedy marginal-gain-per-cost rule with the single-best-item comparison retains the standard guarantee.
Two properties of the procedure matter for the evaluation. First, the selection is driven by measured damage, so we can compare it against the structural heuristic that a designer would reach for without a fault simulation, namely protecting the top d levels of the tree, and report whether the simulation was necessary or whether depth is a sufficient proxy. Second, step (iii) re-runs the simulation on the hardened design rather than reporting the residual risk that selection predicted; predicted and achieved are reported side by side, and the hardened variants are carried through the same open-PDK flow as the originals so that the budget axis is measured silicon rather than an estimate. The sweep reported below uses the area apportionment of Section VI; carrying the hardened variants through the physical-design flow, and thus replacing the apportioned budget axis with measured silicon, is the natural next step.
Fig. 5 sweeps the budget for four representative detectors. The curves are steep and then flat, which is the practical message, for the recommended J48 detector, a hardening budget of 35% of the detector's own area reduces the worst single-fault damage from 60.1 percentage points of recall to 3.3, and beyond that point the returns are negligible. Protecting 16 of the detector's 115 structural units captures almost the entire exploitable surface.
VII. LIMITATIONS
Three limitations bound the scope of these results. Injection level, faults are injected into the structural model of each detector rather than into a gate netlist, which makes the fault

Fig. 4. Critical-fault percentages for single detectors, AdaBoost, and Bagging at two and four HPCs.
Algorithm 1 Criticality-guided selection of structural units for fault correction and detection.
Require: fault simulation ; structural units ; unit areas ; budget ; mechanism costs
Ensure: hardening assignment : {none, detect, correct}
1: aggregate for each : , ,
(i) adversarial tier: exact minimax
2: ; ; ;
3: while do
4: ;
5: if then
6: ; ;
7: else
8:
9: end if
10: end while
(ii) detection tier: eliminate silence with what is left
11: ;
12: for all in decreasing do
13: if and then
14: ;
15: end if
16: end for
(iii) verify empirically, do not trust the prediction
17: emit hardened RTL for ; re-run the fault simulation on it
18: return , worst-case residual, silent fraction
sites architectural and portable but excludes faults introduced by synthesis itself; we expect the two levels to agree on the family ordering, but we have not shown it. Coverage of instance-based detectors, the KNN configurations store their training set rather than parameters, and our site enumeration does not yet address stored-sample fault, so the KNN rows

Fig. 5. Predicted maximum recall loss over evaluated faults versus estimated hardening budget, expressed as a percentage of baseline detector area.
of Table I describe only their vote and distance logic. Given that this memory is the largest structure in the design space, injecting fault in it is likely the most consequential fault class we have not measured. Hardening evaluation, Algorithm 1 selects units and predicts residual risk, and the sweep of Fig. 5 uses an area apportionment rather than measured layout; implementing the hardened variants and carrying them through a physical-design flow would replace the predicted budget axis with measured silicon and allow the predicted residual risk to be verified empirically.
VIII. Conclusion
We characterized the fault vulnerability of hardware malware detectors through 453,174 structural fault evaluations, using 128 completed configurations for the primary comparisons. Tree-based detectors had a lower mean critical-fault fraction than function-based detectors, 5.7% versus 14.3%. However, their mean metric-silent fraction was 70.2%, showing that stable aggregate detection metrics do not establish detector integrity. Classifier structure and fault consequences therefore provide information that fault-site count alone cannot capture.
Ensembling improved fault tolerance, but its benefits depended on the method. Bagging reduced criticality in 26 of 27 completed matched comparisons, whereas AdaBoost increased it in two. These results identify fault tolerance as an additional consideration when weighing the silicon cost of ensembles against their detection performance.
Selective hardening offers a complementary approach. For the representative J48 detector, protecting 16 of 115 structural units reduced the predicted maximum single-fault recall loss from 60.1 to 3.3 percentage points. This result demonstrates the potential of concentrating protection on the most consequential units under ideal correction and estimated costs. Validation against faulted RTL and measurement of physical protection overhead remain necessary to establish the practical benefits.
REFERENCES
[1] A. Abolhasani Zeraatkar, P. Shabani Kamran, P. Mirfasihi, S. Khalaj Monfared, and H. Al-Asaad, “Power, Performance, and Area of HPC-Based Malware Detectors: An FPGA and Open-PDK ASIC Study,” 2026, arXiv:2610.12795.
[2] J. Demme, M. Maycock, J. Schmitz, A. Tang, A. Waksman, S. Sethumadhavan, and S. Stolfo, “On the feasibility of online malware detection with performance counters,” ACM SIGARCH Computer Architecture News, vol. 41, no. 3, pp. 559-570, 2013.
[3] M. Ozsoy, C. Donovick, I. Gorelik, N. Abu-Ghazaleh, and D. Ponomarev, “Malware-aware processors: A framework for efficient online malware detection,” in Proc. of the 2015 IEEE 21st International Symposium on High Performance Computer Architecture (HPCA), pp. 651-661, 2015.
[4] M. Ozsoy, K. N. Khasawneh, C. Donovick, I. Gorelik, N. Abu-Ghazaleh, and D. Ponomarev, “Hardware-based malware detection using low-level architectural features,” IEEE Transactions on Computers, vol. 65, no. 11, pp. 3332-3344, 2016.
[5] K. N. Khasawneh, M. Ozsoy, C. Donovick, N. Abu-Ghazaleh, and D. Ponomarev, “Ensemble learning for low-level hardware-supported malware detection,” in Proc. of the 18th International Symposium on Research in Attacks, Intrusions, and Defenses (RAID), Lecture Notes in Computer Science, vol. 9404, pp. 3-25, 2015.
[6] K. N. Khasawneh, M. Ozsoy, C. Donovick, N. Abu-Ghazaleh, and D. Ponomarev, “EnsembleHMD: Accurate hardware malware detectors with specialized ensemble classifiers,” IEEE Transactions on Dependable and Secure Computing, vol. 17, no. 3, pp. 620-633, 2020.
[7] L. Delshadtehrani, S. Canakci, B. Zhou, S. Eldridge, A. Joshi, and M. Egele, “PHMon: A programmable hardware monitor and its security use cases,” in Proc. of the 29th USENIX Security Symposium (USENIX Security '20), pp. 807-824, 2020.
[8] A. P. Kuruvila, A. Mahapatra, R. Karri, & K. Basu, “Hardware Performance Counters: Ready-Made vs Tailor-Made,” ACM Transactions on Embedded Computing Systems (TECS), pp. 1-26, 2021.
[9] S. P. Kadiyala, P. Jadhav, S.-K. Lam, and T. Srikanthan, “Hardware performance counter-based fine-grained malware detection,” ACM Transactions on Embedded Computing Systems (TECS), vol. 19, no. 5, pp. 1-17, 2020.
[10] H. M. Makrani, Z. He, S. Rafatirad, and H. Sayadi, “Accelerated machine learning for on-device hardware-assisted cybersecurity in edge platforms,” in Proc. of the 2022 23rd International Symposium on Quality Electronic Design (ISQED), pp. 77-83, 2022.
[11] Y. Gao et al., “Adaptive-HMD: Accurate and cost-efficient machine learning-driven malware detection using microarchitectural events,” in Proc. of the 2021 IEEE 27th International Symposium on On-Line Testing and Robust System Design (IOLTS), pp. 1-7, 2021.
[12] H. Sayadi et al., “Towards accurate run-time hardware-assisted stealthy malware detection: A lightweight, yet effective time series CNN-based approach,” Cryptography, vol. 5, no. 4, art. no. 28, 2021.
[13] Z. He, H. Homayoun, and H. Sayadi, “Guarding against the unknown: Deep transfer learning for hardware image-based malware detection,” Journal of Hardware and Systems Security, vol. 8, no. 2, pp. 61-78, 2024.
[14] Z. He and H. Sayadi, “Transformers for tabular anomaly detection in hardware-assisted security: A systematic and empirical study,” in Proc. of the Great Lakes Symposium on VLSI (GLSVLSI), pp. 214-219, 2026.
[15] C. Agredo, D. F. Koranek, C. M. Schubert Kabban, J. A. Gutierrez del Arroyo, and S. R. Graham, “Microarchitectural malware detection via translation lookaside buffer (TLB) events,” Journal of Cybersecurity and Privacy, vol. 5, no. 3, art. no. 75, 2025.
[16] Z. He, H. M. Makrani, S. Rafatirad, H. Homayoun, and H. Sayadi, “Breakthrough to adaptive and cost-aware hardware-assisted zero-day malware detection: A reinforcement learning-based approach,” in Proc. of the 2022 IEEE 40th International Conference on Computer Design (ICCD), pp. 231-238, 2022.
[17] T. Golzari, Z. He, and H. Sayadi, “Bridging hardware and semantics: An LLM-enhanced ontology framework for explainable anomaly detection in IoMT systems,” in Proc. of the 2026 International Conference on Semantic Computing (ICSC), pp. 1-8, 2026.
[18] C. P. Chenet, A. Savino, and S. Di Carlo, “A Survey on Hardware-Based Malware Detection Approaches,” IEEE Access, vol. 12, pp. 54115-54128, 2024.
[19] H. Sayadi, Z. He, H. M. Makrani, and H. Homayoun, “Intelligent malware detection based on hardware performance counters: A comprehensive survey,” in Proc. of the 2024 25th International Symposium on Quality Electronic Design (ISQED), pp. 1-10, 2024.
[20] A. Abolhasani Zeraatkar, P. Shabani Kamran, I. Kaur, N. Ramu, T. Sheaves, and H. Al-Asaad, “On the performance of malware detection classifiers using hardware performance counters,” in Proc. of the 2024 International Conference on Smart Applications, Communications and Networking (SmartNets), pp. 1-6, 2024.
[21] C. Konstantinou, X. Wang, P. Krishnamurthy, F. Khorrami, M. Maniatakos, and R. Karri, “HPC-based malware detectors actually work: Transition to practice after a decade of research,” IEEE Design Test, vol. 39, no. 4, pp. 23-32, 2022.
[22] P. Mohan Anand, P. V. Sai Charan, and S. K. Shukla, “HiPeR - Early Detection of a Ransomware Attack using Hardware Performance Counters,” Digital Threats, vol. 4, no. 3, art. no. 43, 2023.
[23] G. O. Ganfure, C.-F. Wu, Y.-H. Chang, and W.-K. Shih, “DeepWare: Imaging Performance Counters With Deep Learning to Detect Ransomware,” IEEE Transactions on Computers, vol. 72, no. 3, pp. 600-613, 2023.
[24] F. Mofidi, S. G. Hounsinou, and G. Bloom, “RansomSentry: Hardware-level monitoring for ransomware protection in IoT environments,” in Proc. of the 2025 IEEE International Conference on Pervasive Computing and Communications Workshops and other Affiliated Events (PerCom Workshops), 2025.
[25] T. Radhakrishna and N. Ebrahimi Majd, “Edge computing ransomware detection in IoT using machine learning,” in Proc. of the 2024 International Conference on Computing, Networking and Communications (ICNC), pp. 244-248, 2024.
[26] N. Ebrahimi Majd and T. Mazumdar, “Ransomware classification using machine learning,” in Proc. of the 2023 32nd International Conference on Computer Communications and Networks (ICCCN), pp. 1-7, 2023.
[27] W. Cassel and N. Ebrahimi Majd, “Obfuscated ransomware family classification using machine learning,” in Proc. of the 2023 International Conference on Computational Science and Computational Intelligence (CSCI), pp. 788-792, 2023.
[28] W. Cassel and N. Ebrahimi Majd, “A lightweight obfuscated malware multi-class classifier for IoT using machine learning,” in Proc. of the 2024 International Conference on Computing, Networking and Communications (ICNC), pp. 239-243, 2024.
[29] M. Alam, S. Sinha, S. Bhattacharya, S. Dutta, D. Mukhopadhyay, and A. Chattopadhyay, “Rapper: Ransomware prevention via performance counters,” arXiv preprint arXiv:2004.01712, 2020.
[30] M. S. Islam, K. N. Khasawneh, N. Abu-Ghazaleh, D. Ponomarev, and L. Yu, “Efficient Hardware Malware Detectors That are Resilient to Adversarial Evasion,” IEEE Transactions on Computers, vol. 71, no. 11, pp. 2872-2887, 2022.
[31] K. N. Khasawneh, N. Abu-Ghazaleh, D. Ponomarev, and L. Yu, "RHMD: Evasion-resilient hardware malware detectors," in Proc. of the 50th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO), pp. 315-327, 2017.
[32] M. Kazdagli, V. J. Reddi, and M. Tiwari, “Quantifying and improving the efficiency of hardware-based mobile malware detectors,” in Proc. of the 49th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO), pp. 1-13, 2016.
[33] B. Zhou, A. Gupta, R. Jahanshahi, M. Egele, and A. Joshi, “Hardware Performance Counters Can Detect Malware: Myth or Fact?,” in Proc. of the 2018 Asia Conference on Computer and Communications Security (ASIACCS '18), Incheon, Republic of Korea, pp. 457-468, 2018.
[34] B. Zhou, A. Gupta, R. Jahanshahi, M. Egele, and A. Joshi, “A cautionary tale about detecting malware using hardware performance counters and machine learning,” IEEE Design Test, vol. 38, no. 3, pp. 39-50, 2021.
[35] K. Basu, P. Krishnamurthy, F. Khorrami, and R. Karri, “A Theoretical Study of Hardware Performance Counters-Based Malware Detection,” IEEE Transactions on Information Forensics and Security, vol. 15, pp. 512-525, 2020.
[36] Z. He, C. W. Fernandes, and H. Sayadi, “ObfusGate: Representation learning-based gatekeeper for hardware-level obfuscated malware detection,” in Proc. of the 2024 Design, Automation & Test in Europe Conference & Exhibition (DATE), pp. 1-2, 2024.
[37] Z. He, H. Homayoun, and H. Sayadi, “Beyond conventional defenses: Proactive and adversarial-resilient hardware malware detection using deep reinforcement learning,” in Proc. of the 61st ACM/IEEE Design Automation Conference (DAC), pp. 1-6, 2024.
[38] A. Abolhasani Zeraatkar, P. Shabani Kamran, P. Mirfasihi, S. Khalaj Monfared, and H. Al-Asaad, “Wake on Suspicion: Activity-aware analysis of escalating hardware malware detectors,” arXiv preprint, 2026.
[39] M. S. Karvandi, M. Gholamrezaei, S. Khalaj Monfared, S. Meghdadizanjani, B. Abbassi, A. Amini, R. Mortazavi, S. Gorgin, D. Rahmati, and M. Schwarz, “Hyperdbg: Reinventing hardware-assisted debugging,” in Proc. of the 2022 ACM SIGSAC Conference on Computer and Communications Security, pp. 1709-1723, 2022.
[40] F. Khojasteh Dana, S. Khalaj Monfared, H. Okhravi, and S. Tajik, "GlitchSnipe: Toward localized voltage fault attacks," Cryptology ePrint Archive, Paper 2026/752, 2026.
[41] K. Mitard, S. Khalaj Monfared, F. Khojasteh Dana, R. Dumitru, Y. Yarom, and S. Tajik, “Chypnosis: Stealthy secret extraction using undervolting-based static side-channel attacks,” arXiv preprint arXiv:2504.11633, 2025.
[42] S. Khalaj Monfared, T. Mosavirik, and S. Tajik, “LeakyOhm: Secret bits extraction using impedance analysis,” in Proc. of the 2023 ACM SIGSAC Conference on Computer and Communications Security (CCS), pp. 1675-1689, 2023.
[43] T. Mosavirik, S. Khalaj Monfared, M. S. Safa, and S. Tajik, “Silicon Echoes: Non-invasive Trojan and tamper detection using frequency-selective impedance analysis,” IACR Transactions on Cryptographic Hardware and Embedded Systems (TCHES), vol. 2023, no. 4, 2023.
[44] A. S. Rakin, Z. He, and D. Fan, “Bit-Flip Attack: Crushing Neural Network With Progressive Bit Search,” in Proc. of the 2019 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 1211-1220, 2019.
[45] F. Yao, A. S. Rakin, and D. Fan, “DeepHammer: Depleting the Intelligence of Deep Neural Networks through Targeted Chain of Bit Flips,” in Proc. of the 29th USENIX Security Symposium (USENIX Security '20), pp. 1463-1480, 2020.
[46] M. Javaheripi and F. Koushanfar, “HASHTAG: Hash Signatures for Online Detection of Fault-Injection Attacks on Deep Neural Networks,” in Proc. of the 2021 IEEE/ACM International Conference on Computer Aided Design (ICCAD), pp. 1-9, 2021.
[47] M. Traiola, A. Virazel, P. Girard, and M. Barbareschi, “harDNNing: a machine-learning-based framework for fault tolerance assessment and protection of DNNs,” in Proc. of the 2023 IEEE European Test Symposium (ETS), pp. 1-6, 2023.
[48] F. Libano, B. Wilson, J. Anderson, M. J. Wirthlin, C. Cazzaniga, C. Frost, and P. Rech, “Selective Hardening for Neural Networks in FPGAs,” IEEE Transactions on Nuclear Science, vol. 66, no. 1, pp. 216-222, 2019.
[49] M. H. Ahmadilivani, M. Taheri, J. Raik, M. Daneshtalab, and M. Jenihhin, “A Systematic Literature Review on Hardware Reliability Assessment Methods for Deep Neural Networks,” ACM Computing Surveys, vol. 56, no. 6, art. no. 156, 2024.
[50] A. Avizienis, J.-C. Laprie, B. Randell, and C. Landwehr, “Basic concepts and taxonomy of dependable and secure computing,” IEEE Transactions on Dependable and Secure Computing, vol. 1, no. 1, pp. 11–33, 2004.