Trojans That Wear Out Batteries: Detecting a Missing Threat Class with Degradation Models and Runtime Reconfiguration

Every hardware Trojan detection method we have — from graph neural networks that inspect circuit structure to physical stress tests that overclock chips — assumes the attacker's payload shows up in the digital domain: leaked bits, wrong outputs, or slowed timing. This proposal starts from a simpler observation: in a battery-powered device, the most valuable thing the hardware touches is not the data path but the electrochemical cell behind it. A malicious block of power-management logic can keep every output bit correct, pass every timing check, and look topologically unremarkable, while quietly scheduling charge and discharge in a pattern that destroys the battery months early. No existing detector is built to notice, because none of them models electrochemical wear. We propose to name and formalize this threat (the battery-wear Trojan), build the first attack-and-defense benchmark for it, and show that defense requires all three ingredients at once: a degradation model as the sensor, a runtime-reconfigurable fabric as the response mechanism, and hardware-security thinking as the threat model.

The closest existing work stops just short of this intersection in three different ways. Controlled Circuit Aging Hardware Trojan Detection Using Controlled Circuit Aging already uses physical degradation as a detection signal, but the degradation is transistor aging (Bias Temperature Instability shifting threshold voltages), not battery wear — and its stress protocol, which overclocks the chip, would itself inflict exactly the high-rate current transients that battery models flag as damaging. TrojanSAINT TrojanSAINT: Gate-Level Netlist Sampling-Based Inductive Learning for Hardware Trojan Detection detects Trojans from netlist topology alone, with no notion of energy. And Battery-Care MEC Battery-Care Resource Allocation and Task Offloading in Multi-Agent Post-Disaster MEC Environment optimizes workloads to protect battery health, but treats the hardware as benign. Nothing in the literature connects a battery degradation model to a hardware adversary.

Core Claim

The claim has three parts. First, there exists a class of hardware Trojans whose payload is accelerated electrochemical wear, and this class is invisible to every detection method in the current literature because those methods audit logic, timing, or netlist structure — a battery-wear Trojan is functionally correct logic whose behavioral schedule, not its structure, is the weapon. Second, these Trojans are detectable, but only by a detector that predicts how much battery life the authorized workload should cost and flags excess wear — which requires a nonlinear degradation model, since linear models fail badly on diverse cycling data. Third, on a dynamically reconfigurable platform the Trojan can be neutralized without bricking the device: swap the suspect power-management module for a verified bitstream at runtime, scheduling the swap itself so it does not add battery stress.

Threat Model: The Battery-Wear Trojan

Consider a battery-powered edge node built on a reconfigurable SoC, of the kind that FPGA operating systems like FOS: A Modular FPGA Operating System for Dynamic Workloads already support: a static shell handles clocks and memory, while accelerator and control modules are loaded as partial bitstreams and relocated at runtime. The power-management controller — the logic that decides voltage levels, sleep schedules, and load ordering — is soft IP, increasingly generated by language models, which makes it the realistic infection vector: RTL-Breaker: Assessing the Security of LLMs against Backdoor Attacks on HDL Code Generation shows that backdoored HDL generators produce circuits retaining 95% to 97% of the clean model's pass@1 on VerilogEval, i.e., functionally compliant modules that pass standard verification. Prior work on Trojan dormancy (Huili Chen et al.) and implicit functional masking (Syed Kamran Haider et al.) explains why dynamic verification misses even conventional Trojans; a battery-wear Trojan is easier to hide still, because it never produces a wrong output. It only needs to push operation toward the regimes that battery science identifies as destructive: high C-rate bursts, deep discharge, and dwell at extreme state of charge. The operational proxies are exactly those tracked by degradation-aware control work — depth of discharge, state-of-charge windows, ramping rates — as used, for example, in degradation-aware predictive control Degradation-aware data-enabled predictive control of e... and convex cycle-based dispatch models A Convex Cycle-based Degradation Model for Battery Energy Storage Planning and Operation.

A skeptical reader may ask how this differs from malware draining a phone battery. The difference is provenance and persistence: the malicious behavior is compiled into silicon or into a bitstream that the software stack cannot overwrite or audit, and the damage is irreversible physical wear rather than recoverable energy loss. As Chin‐Ling Chen et al. establish, software-level guarantees collapse when the layer below them is subverted — so a software governor cannot be the defense against a Trojan that lives in the governor's own control path.

Research Program

The program has three components. The first is attack construction and benchmarking. We will implement a family of battery-wear Trojan payloads — microsecond charge/discharge bursts through regenerative paths, forced deep discharge during idle, extreme-SoC dwell, and C-rate spikes synchronized to thermal hotspots — and insert them into open-source power-management IP (from the Opencores and IWLS05 suites used in redaction work like ARIANNA: An Automatic Design Flow for Fabric Customization and eFPGA Redaction), deployed on the FOS-managed platform. The battery side runs on a hardware-in-the-loop emulator: cell behavior is simulated by degradation models calibrated on the public datasets standardized in BatteryML: An Open-source Platform for Machine Learning on Battery Degradation (CALCE, HUST, HNEI, SNL, MATR, and the combined MIX benchmark). The result is an open benchmark — netlists, telemetry traces, and ground-truth wear curves — that the field currently lacks entirely; Trust-Hub, the standard Trojan suite (RSA-T100, AES-T1000, RS232, S-series), contains no energy-attacking payload.

The second component is the detector, and here the battery degradation model is not decoration but the key ingredient. The detector computes, over each observation window, the difference between observed capacity loss and the loss predicted from the authorized workload:

$$r_t = \Delta C^{\text{obs}}_t - \Delta C^{\text{pred}}_t(W_t)$$

where $\Delta C^{\text{obs}}_t$ is the measured capacity change over window $t$, and $\Delta C^{\text{pred}}_t(W_t)$ is the degradation a calibrated model expects given the workload manifest $W_t$ — the accelerator activity the trusted FPGA shell itself logs, since FOS already knows which bitstream ran for how long. The predicted-versus-observed gap is then weighted by marginal wear cost: a current discrepancy at high C-rate or low state of charge contributes far more to the alarm statistic than the same discrepancy in a benign regime, because that is exactly the nonlinearity the degradation model encodes. Cumulative alarm statistics trigger quarantine. For early-window sensitivity we will adapt the discrepancy approach of DITING: A Weak Degradation Listener for Battery Lifetime Early Prediction, which isolates weak degradation signals from cycler noise and generalizes zero-shot across datasets — the property we need, since the defender cannot know the cell's chemistry or protocol in advance. Crucially, the observation window must be short enough that detection fires before the Trojan has consumed the asset: DITING's demonstrated accuracy at 20-cycle windows is the reference point for what "early" can mean.

The third component is response. Detection alone saves nothing if the only remedy is decommissioning the device. On a reconfigurable platform, the suspect power-management module can be swapped at runtime for a verified golden bitstream — FOS's BitMan relocates modules in 3.8 to 6.7 ms, versus the 38 to 42 ms partial-reconfiguration latency reported for the hierarchical CNN system A Novel Design of Adaptive and Hierarchical Convolutional Neural Networks using Partial Reconfiguration on FPGA — and the swap itself must be scheduled by a battery-aware policy, since bitstream writes draw power and the swap decision is precisely the kind of reconfiguration-versus-wear trade-off that current FPGA operating systems ignore (they optimize throughput only, as FOS does with its 46% throughput gain). The reconfiguration policy borrows its reward structure from Battery-Care Resource Allocation and Task Offloading in Multi-Agent Post-Disaster MEC Environment, which penalizes rapid discharge and SoC variance, but relocates silicon modules rather than abstract computation. A useful design precedent for low-overhead protective reconfiguration is RedMulE-FT: A Reconfigurable Fault-Tolerant Matrix Multiplication Engine, which toggles into a protected mode at 25.2% area overhead rather than the >200% of permanent Triple Modular Redundancy — the same logic applies to security modes: pay the protection cost only when the alarm statistic is elevated.

Baselines

The do-nothing reference point is standard post-silicon functional verification and design-rule checking. This baseline is not a strawman: it is what the industry actually runs, and the evidence says it is blind to this threat class. RTL-Breaker shows backdoored HDL retains 95–97% of clean pass@1 on VerilogEval, and Tuan La et al. note that vendor checks catch accidental violations, not malicious intent. Our battery-wear Trojans are functionally correct by construction, so this baseline's expected true-positive rate is zero; the benchmark will document that empirically rather than assert it.

The strongest existing detection method is TrojanSAINT TrojanSAINT: Gate-Level Netlist Sampling-Based Inductive Learning for Hardware Trojan Detection, which converts gate-level netlists to graphs and trains a GraphSAINT-sampled GNN with node features like gate type and distance to primary I/O, localizing Trojan gates without a golden reference. On Trust-Hub benchmarks it reports, in its practical unseen-circuit setting, an average 78% true positive rate and 85% true negative rate (best-case leave-one-out: 98% TPR, 96% TNR), handling class imbalance up to 719:1. We will run TrojanSAINT on our benchmark netlists exactly as published — same graph construction, same feature set, same threshold-tuning protocol, same compute budget for training as our detector receives — because a fair comparison matters more here than usual: our claim is precisely that topological detection fails on functionally-equivalent power-management logic, and that claim is only credible if the strongest topological detector gets a genuine shot. Beating it means higher TPR at matched false-positive rate on this threat class; if TrojanSAINT detects our Trojans at its published performance levels, our threat model is wrong and we will say so.

The strongest physical-testing competitor is Controlled Circuit Aging Hardware Trojan Detection Using Controlled Circuit Aging, which combines accelerated BTI stress with over-clocking to convert dormant Trojan path delays into bit flips, then classifies bit-error patterns with an autoencoder and one-class SVM; it reports detection accuracy of at least 99%, catching a Trojan occupying 0.22% of circuit area. We will run its delay-stress protocol on our Trojan designs. We expect it to fail here — the payload introduces no extra gates on data paths and no timing violations — but we include it because it is the only prior method that uses degradation physics at all, and the comparison isolates which degradation physics matters. It also requires a golden IC for its one-class SVM and a destructive stress phase, both of which our telemetry-based approach avoids.

The key ablation replaces the learned degradation model in the detector with a linear expert battery model, keeping everything else identical (same telemetry, same alarm machinery, same tuning budget). BatteryML reports that linear expert models reach RMSE above 500 on the multi-chemistry MIX dataset while Random Forest reaches 197 — a threefold error gap that should translate directly into missed or mis-ranked wear anomalies. A second ablation strips the wear-cost weighting and alarms on raw current-deviation magnitude alone; this isolates the claim that where in the operating envelope a deviation occurs matters more than its size.

Why not just…?

Why not just put a threshold on battery current? A Coulomb counter with a fixed current limit is the naive defense, and it fails for a reason the degradation literature makes precise: wear cost is sharply nonlinear in operating point, so an attacker who knows the threshold concentrates wear in high-cost regimes (deep discharge, high C-rate, extreme SoC dwell) while keeping peak current inside the envelope. The same insight runs in reverse for the defender: BatteryML shows linear models miss the nonlinearity entirely (RMSE > 500 vs. 197 for learned models on MIX), so a threshold calibrated on linear assumptions misprices benign and malicious behavior alike. Our raw-current ablation tests this directly: if it matches the degradation-weighted detector, the fancy model is unnecessary and we would report that.

Why not just run a netlist GNN like TrojanSAINT on the design? Because the battery-wear Trojan's weapon is its schedule, not its structure. TrojanSAINT flags gates with rare-trigger, low-controllability topology; a power manager that executes damaging-but-authorized-looking commands consists of ordinary gates doing ordinary things. This is an empirical claim, not a rhetorical one, which is why the proposal runs TrojanSAINT as its strongest baseline on identical netlists with identical compute. If structural signals do exist that correlate with wear-malicious power logic, that would itself be a finding — a cheap pre-silicon screen complementing our runtime detector — and the experiments would reveal it.

Why not just fix it in software — replace the governor? The Trojan's most likely home is the power-management path itself, whether as hard IP from an untrusted foundry or as LLM-generated soft IP; software running on a subverted layer cannot audit that layer, a point established formally by Chin‐Ling Chen et al.. Runtime bitstream replacement is the only remedy that physically evicts the malicious logic rather than asking it to police itself. The performance argument for reconfigurable hardware is secondary but real: the hierarchical FPGA system of AH-CNN runs inference 32x faster than its ARM CPU baseline, so a software-only fallback path imposes a large capability loss during quarantine.

Why not just prevent the problem with eFPGA redaction or logic locking? ARIANNA strips critical modules from the layout and reloads them post-fabrication via secret bitstream, and polymorphic camouflaging Opening the Doors to Dynamic Camouflaging: Harnessing the Power of Polymorphic Devices defeats SAT attackers with runtime-morphing gates. Both are prevention, not detection, and both are static once fielded — they assume the post-fabrication bitstream supply chain and all subsequently loaded soft IP are trustworthy, which is exactly the assumption RTL-Breaker breaks. ARIANNA also carries the PPA penalty of embedded FPGA fabric (up to 3.3x overhead for generic fabrics), which edge-scale devices cannot afford; FOS documents that a static shell already consumes up to 80% of logic on an Ultra-96-class device. Redaction and our detector answer different questions; they are complementary, and we will say so rather than oversell.

Proposed Experiments and Decisive Checks

The evaluation runs on the FOS platform on a ZCU102-class board (the Ultra-96 is ruled out by its 80% shell overhead), with a hardware-in-the-loop battery emulator whose degradation dynamics are calibrated per-chemistry on the BatteryML dataset suite and validated against the MIX benchmark, so that cell behavior in the loop is anchored to published data rather than invented. Detection is scored by TPR and TNR at a fixed 1% false-alarm rate across Trojan families and chemistries, and — the metric that matters most — by capacity consumed before first alarm, since a detector that fires after the pack is dead is worthless. Mitigation is scored by capacity saved relative to no response, quarantine downtime (measured against FOS's 3.8–6.7 ms swap figure), and the added wear caused by the response itself, which the battery-aware swap policy must keep below the wear it prevents. For the strongest baseline, the number to beat is TrojanSAINT's reported 78% average TPR and 85% TNR in its practical unseen-circuit setting on Trust-Hub benchmarks (TrojanSAINT); for the degradation-model ingredient, the ablation must show a gap at least commensurate with the linear-versus-learned error gap BatteryML documents (RMSE > 500 versus 197 on MIX). For adaptive attackers who redistribute wear into the detector's blind spots, we will evaluate a worst-case evader with full detector knowledge, and use the game-theoretic lens of Hardware Trojan Detection Game: A Prospect-Theoretic Approach — which shows expected-utility analysis underestimates attack risk relative to prospect-theoretic players — to stress the defender's equilibrium rather than only its average case. No reported result found on Lacuna for detection of electrochemical-battery-attack Trojans, which is the point: the decisive check is whether the first benchmark for this threat class, released with netlists, telemetry, and calibrated wear traces, lets the community measure any of this at all.