When a chip design company sends its neural-network accelerator to an offshore foundry for fabrication, it often protects the design with logic locking — extra key-controlled gates that make the circuit useless unless the correct activation key is supplied. The foundry sees everything: the full gate-level netlist, the layout, the silicon. What the foundry does not easily see is the meaning of the numbers flowing through the accelerator, because the machine-learning model running on it is a black box to anyone holding only the hardware description. This proposal argues that this specific situation — white-box access to the hardware, black-box access to the model's semantics — is both the most realistic attack setting in the outsourced chip supply chain and the one that every existing neural-backdoor technique fails to address. Existing hardware backdoor attacks that target machine-learning models all rely on gradients through a differentiable model of the accelerator, and the one prior attempt at a targeted attack in this setting failed almost completely, shifting the probability of the attacker's chosen output class by only 1.15% on average (Exploiting Logic Locking for a Neural Trojan Attack on Machine Learning Accelerators).
The core claim is that a multi-objective, gradient-free evolutionary search — treating the locked accelerator as a query-only oracle — can turn this failure into a working targeted backdoor. The attacker at the foundry picks a discrete hardware intervention (a wrong-but-plausible key configuration, or a small gate insertion), simulates the chip on clean and trigger inputs, observes only the output scores, and lets an evolutionary algorithm balance attack success against clean-input accuracy, hardware overhead, and verification stealth. This is the same machinery that already works for stealthy image-space triggers, where an evolutionary attack achieved at least 99% attack success rate while simultaneously optimizing perceptual and spectral stealthiness (LADDER: Multi-Objective Backdoor Attack via Evolutionary Algorithm); nobody has pointed it at discrete hardware representations. A secondary contribution reuses the same search engine in a second supply-chain cell: evolving functionally-preserving netlist triggers against a node-level hardware-Trojan detector, which the closest prior backdoor explicitly never evaluated.
Why this threat cell is real and unmapped
Two lines of prior work jointly create the gap. On the taxonomy side, You Don’t Need Robust Machine Learning to Manage Adversarial Attack Risks categorizes attacks (poisoning, stealing, evasion) against adversary knowledge (black-box, grey-box, white-box) and argues that white-box attacks are usually unrealistic because full system access implies the surrounding IT infrastructure is already compromised — the "White-Box Paradox." That argument is sound for enterprise software, but it inverts in the fabless supply chain: the foundry legitimately holds the complete layout, so no policy violation or perimeter breach is needed for white-box hardware access. Meanwhile the foundry has no gradient path into the model: backpropagation requires a differentiable model of the locked neuron, which is exactly what prior attacks constructed and exactly what a realistic foundry adversary cannot build faithfully from a flattened netlist. The proposal's taxonomy contribution is deliberately small and load-bearing: a two-axis grid — hardware abstraction layer (RTL, gate-level netlist, physical layout) crossed with the adversary's access to model semantics (query-only, feature-level, full gradients) — into which existing attacks are placed. Prior hardware-ML attacks cluster entirely in the full-gradient column (Hardware trojan attacks on neural networks uses a gradient-based saliency map; An Optimization Perspective on Realizing Backdoor Injection Attacks on Deep Neural Networks in Hardware co-optimizes triggers and weight bits with backpropagation; WBP: Training-Time Backdoor Attacks Through Hardware-Based Weight Bit Poisoning needs white-box feature extraction even though its bit choice is greedy). The query-only column at the gate/layout rows is empty, and that is where this work lives.
The gradient column is also where prior work demonstrably breaks down. The logic-locking attack succeeded at untargeted degradation — a 74% accuracy reduction on trigger inputs for ResNeXt29 with only 1.7% average degradation elsewhere — but its targeted variant moved the target-class probability by just 1.15%, which the authors attributed to their inability to control the magnitude of the deterministic errors a wrong key introduces (Exploiting Logic Locking). Single-objective gradient descent cannot navigate the trade-off between steering errors toward a chosen class and preserving clean behavior on a discrete, rugged key space. Multi-objective evolutionary search exists precisely for this shape of problem: LADDER showed that attack effectiveness and stealthiness are genuinely conflicting objectives and that non-dominated sorting with preference-based selection finds workable compromises, and Efficient Black-box Optimization of Adversarial Windows Malware with Constrained Manipulations showed that functionality-preserving mutation operators can keep discrete, heavily constrained modifications valid across an entire search. Both are applied to images and binaries respectively; neither has touched hardware.
A final enabling observation answers the standard objection that evolutionary algorithms need too many queries: in the foundry setting the attacker owns a netlist-level simulator, so queries cost compute, not exposure. There is no rate limiter to trip and no API monitor to evade — the operational bottleneck flagged for black-box evolutionary attacks in software simply does not apply here.
Research Program
The first workstream builds the taxonomy and populates it. Each prior hardware-ML attack is placed on the layer × semantics grid, and for each cell we record what defenses it presupposes: functional verification (design-rule checks, toggle and statement coverage), structural netlist analysis, or post-deployment model defenses. This placement is what makes the experimental claims interpretable — it tells us which defender each attack must defeat.
The second workstream builds the search engine. A candidate solution is a discrete hardware intervention $z$ drawn from a mutation alphabet that keeps the circuit valid by construction: for the locked-accelerator setting, $z$ is a key-bit pattern applied to a chosen subset of locked neurons plus optional multiplexer-based payload logic in the style of Hardware trojan attacks on neural networks; for the netlist-detector setting, $z$ is a placement of the even-parity XOR cascade that PoisonedGNN showed preserves function and survives synthesis. The attacker queries only the input-output interface — clean and trigger inputs go through simulation of the tampered hardware, and the fitness is a vector:
$$ F(z) = \big(\text{ASR}_{\text{targeted}}(z),\; -\Delta_{\text{clean}}(z),\; -\text{overhead}(z),\; -\text{coverage gap}(z)\big) $$
where $\text{ASR}_{\text{targeted}}$ is the fraction of trigger inputs classified as the attacker's target class, $\Delta_{\text{clean}}$ is the clean-accuracy drop, overhead is area/timing cost, and the coverage gap measures how far the tampered circuit stays from 100% toggle and statement coverage in standard functional simulation. Search is a multi-objective evolutionary algorithm with non-dominated sorting, adapted from LADDER, with preference-based selection letting the attacker weight targeted success above stealth when a Pareto trade-off is unavoidable. No gradient, surrogate model, or weight access is used anywhere in the loop.
The third workstream runs the two attack scenarios. Scenario A targets logic-locked accelerators (the empty cell). Scenario B targets a node-level, sampling-based hardware-Trojan detector: PoisonedGNN backdoored only graph-level classifiers and explicitly flagged node-wise models as untested, while TrojanSAINT: Gate-Level Netlist Sampling-Based Inductive Learning for Hardware Trojan Detection is exactly such a node-level model that localizes Trojan gates without a golden reference — so the question of whether searched (rather than hand-placed) triggers can subvert it is open by both papers' own admission.
Proposed Experiments
Scenario A uses the locked-accelerator benchmark suite from Exploiting Logic Locking: an MLP on MNIST, ResNet18 on CIFAR-10, and ResNeXt29 on CIFAR-10. Metrics follow the conventions of BackdoorBench: A Comprehensive Benchmark of Backdoor Learning: clean accuracy and attack success rate, plus query count, area/timing overhead, and functional-coverage pass rate. Success is defined in advance: a targeted attack success rate above 50% on trigger inputs with clean-accuracy degradation under 2%, versus the 1.15% targeted shift and 1.7% clean degradation reported by the gradient-based baseline. Scenario B uses the GNN4TJ dataset (HT-infected and HT-free variants of AES, PIC, and RS232) and TrustHub benchmarks, training TrojanSAINT as the defender and measuring whether the searched trigger flips node-level Trojan-gate localization while the trigger achieves full toggle coverage — the stealth bar that PoisonedGNN set at 100% statement and toggle coverage with no post-synthesis footprint. As a calibration reference for what an uncontested backdoor looks like in the netlist domain, PoisonedGNN reported up to 100% attack success rate on the GNN4IP piracy task and 100% on GNN4TJ at 20% trigger size with 25% poisoning intensity, but on graph-level models only.
Baselines
The naive reference point is the untouched locked accelerator: the chip fabricated honestly with the correct key, giving the clean-accuracy ceiling for each model, and standard functional verification (design-rule checks plus toggle and statement coverage) run on the tampered variants as the "do nothing" defense — a baseline that PoisonedGNN already showed passes trigger circuits with 100% coverage, which we re-verify for our searched interventions. The strongest existing competitor for Scenario A is the gradient-based trojan-key search of Exploiting Logic Locking, which models the locked neuron mathematically and backpropagates to optimize the key; we reimplement it on the identical benchmark suite, hardware-locked configurations, and query budget (matching total simulator evaluations, not gradient steps) so the comparison isolates the search method rather than compute. Beating it means a targeted attack success rate above 50% where it achieved a 1.15% average increase in target-class probability on ResNet18, at comparable or better clean-accuracy preservation (its untargeted variant cost 1.7% on average). For Scenario B the strongest competitor is the hand-crafted XOR-cascade trigger of PoisonedGNN, transplanted to the node-level TrojanSAINT defender under the same poisoning intensities; beating it means comparable misclassification of Trojan gates on a detector that reported 78% true positive and 85% true negative rates on unseen Trojans without a golden reference (98% and 96% in its leave-one-out best case), using a smaller or more placement-flexible trigger than the manual construction. Two ablations isolate the key ingredient: single-objective evolution (attack success rate only, constraints as hard rejection), which LADDER predicts will collapse on the stealth objectives, and random-restart mutation without crossover or non-dominated sorting, which tests whether the multi-objective machinery is necessary or merely convenient.
Why not just…?
Why not just build a differentiable surrogate and backpropagate through it? This is the closest existing approach and the honest answer is that it is exactly what already failed: the surrogate-based gradient attack on locked accelerators achieved a 1.15% targeted shift (Exploiting Logic Locking), and the authors attribute the failure to error-magnitude control on the discrete key space, which is not a bug a better surrogate obviously fixes. Gradient-based attacks also have a known failure mode against exactly the kind of non-differentiable, masking-heavy targets we consider — derivative-free search was shown to succeed where gradient transfer fails against gradient-masking defenses in Square Attack. Still, we run the surrogate-gradient method as an equal-budget baseline precisely because if it wins, the proposal's premise is wrong and the experiments will say so.
Why not just use simple random search or coordinate descent, SimBA-style? A real threat, and the cheapest one to test, which is why random-restart mutation is an ablation rather than an argument. The evidence against it is that single random perturbations in constrained discrete spaces tend to break validity — in the malware domain, unconstrained byte edits destroy executability and functionality-preserving constraints must be built into the search (GAMMA) — and netlists are stricter still: random gate edits violate timing and design rules, and random key bits on locked neurons have no gradient to tell the sampler which direction helps. Coordinate descent also optimizes one objective at a time, and LADDER demonstrated a genuine conflict between effectiveness and stealthiness that single-objective search resolves badly. If the random-search ablation matches the full engine on Scenario A, we will report that plainly and the contribution would shift to the taxonomy and the negative result on locked accelerators.
Why not just rely on verification and cryptographic provenance instead of studying these attacks? This is the position of You Don’t Need Robust Machine Learning to Manage Adversarial Attack Risks for enterprise IT, and the paper itself names its limit: its argument assumes perimeter controls exist between the adversary and the model. In the foundry setting they do not — the adversary is inside the trust boundary by contract, holding the physical layout, and no signature on a design file constrains what happens to the silicon. Functionally-preserving triggers already pass the verification suite with 100% statement and toggle coverage (PoisonedGNN), so "run more verification" is a defense we measure, not assume; our experiments include the coverage numbers for every searched intervention so this alternative is tested rather than dismissed.
Why not just use existing backdoor triggers like PoisonedGNN's, applied to whatever target? PoisonedGNN's trigger is hand-crafted and heuristic in placement, evaluated only on graph-level classifiers, and has nothing to say about logic-locked accelerators, where the intervention space is key configurations rather than inserted subcircuits. We reuse its XOR cascade as our Scenario B mutation alphabet and as the strongest baseline, so the proposal builds on it rather than duplicating it; the new content is the search over placement and the node-level defender. For post-deployment model defenses, the record is already discouraging for hardware-side attacks — WBP reports that NeuronCleanse and K-arm fail against representation-shifting bit poisoning, and Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networks prunes weight arrays while our Trojan logic lives in silicon — but we will still run fine-pruning on the poisoned Scenario B models to check.
Decisive checks
The proposal stands or falls on three numbers. First, targeted attack success rate on the locked ResNet18/CIFAR-10 and ResNeXt29/CIFAR-10 configurations versus the 1.15% reported for gradient-based key search — anything below 50% with clean degradation under 2% would falsify the core claim that multi-objective gradient-free search navigates the key space where gradients cannot. Second, the Pareto frontier shape: if the effectiveness–stealthness conflict documented by LADDER in images does not reproduce on hardware interventions, the field should know that too, since it changes what a realistic foundry adversary can demand. Third, whether searched triggers subvert node-level detection at TrojanSAINT's reported 78%/85% operating point; if node-level sampling-based detectors turn out robust where graph-level models were not, that is a concrete, previously unmeasured defense property worth reporting on its own.
References
- Exploiting Logic Locking for a Neural Trojan Attack on Machine Learning Accelerators
- LADDER: Multi-Objective Backdoor Attack via Evolutionary Algorithm
- You Don’t Need Robust Machine Learning to Manage Adversarial Attack Risks
- Hardware Trojan Attacks on Neural Networks
- An Optimization Perspective on Realizing Backdoor Injection Attacks on Deep Neural Networks in Hardware
- WBP: Training-Time Backdoor Attacks Through Hardware-Based Weight Bit Poisoning
- Functionality-Preserving Black-Box Optimization of Adversarial Windows Malware
- $\tt{PoisonedGNN}$: Backdoor Attack on Graph Neural Networks-Based Hardware Security Systems
- TrojanSAINT: Gate-Level Netlist Sampling-Based Inductive Learning for Hardware Trojan Detection
- BackdoorBench: A Comprehensive Benchmark of Backdoor Learning
- Square Attack: A Query-Efficient Black-Box Adversarial Attack via Random Search
- Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networks