Trojans inside the Semantic Encoder

Semantic communication (SemCom) is a design philosophy for 6G wireless systems in which the transmitter sends not bits but task-relevant meaning: a neural encoder compresses an image or sentence into a short vector of continuous features, the physical channel carries those features as analog waveforms, and a neural decoder at the receiver reconstructs the data or directly performs a task such as classification. The security literature on SemCom has converged on a striking finding: an attacker who perturbs the transmitted feature vector by a tiny, carefully chosen amount — so-called semantic noise — can flip the receiver's task output while the received signal looks perfectly normal to every conventional radio monitor, because signal power and bit-error checks stay within tolerance. Less noticed is where these systems physically run. SemCom encoders and decoders are exactly the kind of custom neural-network accelerators that fabless companies design in-house and fabricate at offshore foundries — the same supply chain where hardware intellectual property theft and foundry-inserted hardware Trojans (malicious circuit modifications that lie dormant during all standard testing) are endemic. Every SemCom security paper in the literature treats the silicon executing the encoder as flawless.

This proposal argues that the blind spot is not incidental but exploitable, and that it sits precisely at a three-way intersection. An untrusted foundry does not need to jam the channel at all: it can insert a small Trojan into the transmitter's encoder accelerator that injects semantic noise before the channel, from inside the chip. Hardware IP theft supplies the threat model (who the attacker is and what they can touch), semantic communication vulnerability supplies the payload mechanism (small latent perturbations that break task accuracy invisibly), and adaptive attack vulnerability supplies the methodological discipline: we will not claim any defense works until it survives an attacker who observes the defense and optimizes against it, in the spirit of recent work showing that stationary, non-adaptive evaluation produces false security. The core scientific question is whether a cross-layer hardware-model attack can operate across a stochastic wireless channel — the literature contains a genuine tension here, because fading and noise corrupt the exact floating-point values a hardware trigger would need to monitor — and, on the defensive side, whether detection can be rescued by conditioning on the channel state.

Core Claim

The claim is threefold. First, a foundry-inserted Trojan in the transmitter encoder, not the receiver, sidesteps the channel-robustness problem that makes a naive port of existing cross-layer attacks fail: the trigger sees clean pre-channel values, and the injected payload can be made small enough to hide inside ordinary channel variance, so physical-layer monitors built for jamming see nothing. Second, existing SemCom defenses — receiver-side ensembling, distributionally robust training, cloaking networks — were designed against channel-borne jammers and have never been tested against an adversary who attacks from inside the encoder; we predict, and will test, that some of them partially detect the payload while an adaptive attacker who queries the receiver's task outputs can re-optimize around them. Third, the one defense ingredient that should survive adaptation is channel-conditioned detection: a receiver that knows the channel realization can test whether the received latent is consistent with any legitimate encoder output under that realization, a test that fading cannot fool because the conditioning removes exactly the variance that today's unconditioned perturbation detectors confuse for attacks.

Research Program

The attack. We will design and build a hardware-model co-designed attack, generalizing HAMLOCK, which split a backdoor between a software model (benign "trigger neurons" that fire only on a chosen input pattern) and a tiny hardware Trojan (an 8-bit comparator watching the IEEE-754 exponent bits of those neurons, plus a logit-bias circuit), achieving near-100% attack success at 0.01% chip area while Neural Cleanse and MNTD detected it at 0%. HAMLOCK's authors tested only isolated image classifiers on noiseless single devices and hardcoded a static alignment between model neurons and silicon comparators. Our design differs in three ways. The Trojan sits in the transmitter's encoder accelerator, so the trigger condition is evaluated on clean pre-channel activations and the payload is injected into the latent before channel coding. The trigger is statistical rather than bit-exact: instead of comparing exponent bits of one neuron, a small circuit computes a running inner product between the current latent and a learned trigger direction $w$ and fires when its average over a window exceeds a threshold — robust to implementation noise and, importantly, usable even in a hardware-only variant where the foundry never touches the model, but instead selects $w$ post-hoc from the netlist and refines it by black-box queries, mirroring how Query-Based Adversarial Prompt Generation optimized attacks against an API using only output-side signals. The payload is a small additive vector in the latent,

$$\tilde{x} = f_\theta(x) + \mathbb{1}[\langle f_\theta(x), w \rangle > \tau] \cdot \beta u, \qquad y = h \odot \tilde{x} + n,$$

where $f_\theta$ is the semantic encoder, $u$ is a direction chosen to cross the receiver decoder's decision boundary, $\beta$ its magnitude, and $h, n$ the fading gain and noise of the physical channel. Because $\beta u$ is added before the stochastic channel, the attack is the mirror image of over-the-air semantic jamming analyzed in the semantic-wall work Title, which proved that corrupting meaning needs far less power than corrupting bits, and of the Semantic IoT study Title, which showed energy detectors and bit-error monitors are blind to such perturbations.

The adaptive layer. Following the lesson of Optimizing Adaptive Attacks against Content Watermarks for Language Models — where an attacker knowing only the algorithm class stripped four watermarking schemes with 96–98% evasion for under $10 — we will build an adaptive attacker that queries the deployed receiver's task output (or task accuracy) as feedback and iteratively refines $u$, $w$, and $\beta$ against whatever receiver defense is present, including defenses that re-weight themselves at runtime.

The defense. We will build a channel-conditioned consistency monitor: given the receiver's channel estimate $\hat{h}$ (standard in any modern receiver) and the received latent $y$, estimate whether $y$ is plausible under the encoder's latent manifold transformed by $\hat{h}$, i.e., score $s = \log p(y \mid \hat{h})$ against a model of legitimate encoder output statistics. This directly targets the acknowledged weakness of ROME: Robust Model Ensembling for Semantic Communication Against Semantic Jamming Attacks, whose perturbation detector degrades over Rayleigh and Rician fading because channel-induced amplitude swings look like attacks; conditioning on $\hat{h}$ removes that confound. We will additionally test a cross-layer screening fusion that pairs this runtime monitor with netlist-level inspection in the style of TrojanSAINT, which localizes Trojan gates on gate-level netlists via graph neural network sampling without a golden reference.

Baselines

The "do nothing" reference point is an undefended SemCom pipeline with a standard classifier at the receiver. The relevant number comes from the ROME paper itself: under its Adjustable Perturbation Generator attack, a standard classifier's accuracy on CIFAR-10 dropped to 10.00% at a test perturbation-to-signal ratio of $-7$ dB ROME. This is the floor our attack must beat in stealth (comparable task damage at equal or lower injected power) and the floor any defense must lift.

The strongest existing competitor on the defensive side is ROME's full stack: an ensemble of base classifiers trained at varying adversarial-training strengths, dynamically weighted by a Multi-Level Perturbation Detector built from $l_p$-pooling groups. ROME reports a worst-case figure of 62.22% accuracy on CIFAR-10 at an SNR of 7 dB for this detector-based ensemble under its power-adaptive jamming attack ROME. We will reimplement ROME faithfully on our CIFAR-10 and MNIST pipelines, run it over the identical channel realizations, SNR grid, and tuning budget as our defense, and count our monitor as beating it only if it maintains higher task accuracy under attacks of equal or greater strength and flags triggered frames with higher detection accuracy — including under the adaptive attacker that ROME was never evaluated against. We will also run WaSeCom (bilevel Wasserstein distributionally robust training of the SemCom codecs) with the same budget; no reported result found on Lacuna for WaSeCom's task accuracy under Rayleigh fading, so we will establish its operating point ourselves.

On the attack side, the strongest existing competitor is a direct HAMLOCK port: trigger neurons in the decoder-side model, an exponent-bit comparator Trojan in the receiver accelerator, and a logit-bias payload, with HAMLOCK's reported near-100% attack success rate, under-1% clean accuracy drop, and 0.01% area overhead as the bar HAMLOCK. Our transmitter-side statistical design must match or exceed its success rate while surviving the fading channel that the port, we predict, cannot.

The key ablation isolates channel conditioning: our consistency monitor run without conditioning on $\hat{h}$, i.e., an unconditioned latent anomaly detector structurally similar to ROME's perturbation detector. If the conditioned and unconditioned versions perform equally over Rayleigh fading, the core defensive claim is wrong and we will report that. A second ablation isolates the trigger design: bit-exact exponent-bit triggering versus windowed statistical triggering, both placed in the transmitter, to separate the contribution of trigger robustness from payload placement.

Why not just…?

Why not just scan the model with software backdoor detectors before deployment? This is the natural first response, and the evidence against it is direct: HAMLOCK evaluated Neural Cleanse and MNTD against a cross-layer attack and both detected it at exactly 0%, because the software model is functionally benign in isolation — the malicious logic lives in silicon HAMLOCK. In our hardware-only variant the model is not even altered, so there is nothing for a weight-space scanner to find. Fine-pruning is worse than useless here: HAMLOCK showed pruning low-activation neurons makes engineered high-activation trigger neurons stand out more, helping the attack.

Why not just port HAMLOCK to the receiver accelerator? A reviewer might say the transmitter placement is unnecessary cleverness. We agree this must be tested rather than argued, and it is our first decisive experiment: the receiver-side port must fire its comparator on floating-point activations that have traversed fading and noise, and we expect large false-trigger and missed-trigger rates as channel realizations shift exponent bits. If the port in fact survives Rayleigh fading at practical SNRs, the transmitter placement loses its motivation and we will say so — but the tension is documented on both sides: HAMLOCK's static bit-exact alignment is its own acknowledged limitation, and ROME's detector already degrades in fading because channel swings masquerade as perturbations ROME.

Why not just rely on post-silicon testing and design rule checks? The hardware Trojan literature has repeatedly shown triggers stay dormant under all standard functional test vectors Huili Chen et al. and can even mirror nominal outputs under typical test sets via implicit functional masking Syed Kamran Haider et al.. At 0.01% area and power, the Trojan hides inside ordinary process variation HAMLOCK. The honest caveat is netlist learning: TrojanSAINT reports 78% true positive and 85% true negative rates on unseen Trojans and circuits across 17 TrustHub benchmarks, rising to 98% and 96% in its best-case validation TrojanSAINT. We will run a TrojanSAINT-style graph neural network on our Trojan netlists; this is a real threat to the attack, and its own authors report degradation across heterogeneous IP libraries, which is exactly the regime a neural accelerator netlist creates. If the scanner catches us reliably, that itself is a finding about where cross-layer attacks break.

Why not just verify the chip mathematically? Verifiable ASICs built Zebra, an untrusted 7nm prover chip generating correctness proofs for a trusted 350nm verifier, but only for wide, shallow arithmetic circuits (number-theoretic transforms, Curve25519); it cannot handle the non-linear activations, attention, and deep structure of SemCom codecs built on ViT and BERT backbones WaSeCom. Verifiable computation also checks arithmetic correctness of a fixed function — it says nothing about whether the function itself was Trojan-compiled — so it is orthogonal to our threat model rather than a competing fix.

Proposed Experiments and Decisive Checks

All experiments run on a DeepSC-style text pipeline (BERT backbone, Europarl corpus, as in WaSeCom) and an image pipeline (DAE-ViT and ResNet-class backbones) on CIFAR-10, MNIST, and GTSRB — the datasets shared by ROME, WaSeCom, Paired ARNs, and HAMLOCK, with GTSRB giving the cyber-physical reading, where over-the-air semantic noise already caused a verbatim 40% drop in traffic-sign recognition Title. The encoder accelerator is written in RTL with the Trojan inserted at the foundry-masking stage, synthesized for area and power, and co-simulated with an AWGN and Rayleigh channel model between transmitter and receiver. Metrics: attack success rate (targeted misclassification on triggered frames), clean accuracy drop, injected-power-to-signal ratio at the antenna, Trojan area and power overhead, and detection rates (true positives and false alarms) for every defense.

Four checks decide the proposal. First, the fading stress test: the receiver-side HAMLOCK port versus our transmitter-side statistical trigger across an SNR grid from $-7$ dB to 15 dB under Rayleigh fading, measuring trigger false-fire and miss rates; the port failing while ours holds is the evidence for the channel-robustness claim. Second, the invisibility test: physical-layer monitors (energy detection, SNR tracking, CRC where applicable) run on attacked versus clean transmissions, with the bar being attack success at injected ratios at or below the semantic-wall regime while monitors register nothing, replicating the monitor-blindness methodology of Title. Third, the defense gauntlet: ROME's ensemble and detector, WaSeCom's robustly trained codecs, and Paired ARNs-style cloaking each confronted with the Trojan payload, first statically and then through the adaptive query loop; the Paired-ARN paper itself flags active adaptive eavesdroppers as open, and our attacker instantiates exactly that concern on the attack side rather than the eavesdropping side. Beating ROME means holding task accuracy above its reported 62.22% worst-case CIFAR-10 figure at 7 dB SNR under an adversary at least as strong as its own, while detecting triggered frames it misses. Fourth, the defense ablation: channel-conditioned versus unconditioned consistency monitoring over the same fading realizations, plus the TrojanSAINT-style netlist scan of clean and Trojan accelerators; the conditioning gap and the scan's false-alarm behavior on neural-accelerator netlists are the two numbers that determine whether the defensive half of the proposal stands. A positive result is a working threat model and a detector that closes the gap ROME's authors identified in fading; a negative result — the naive port surviving fading, or unconditioned detection sufficing — would itself collapse the paper into a useful negative finding about which intuitions about cross-layer attacks in wireless pipelines are wrong.