When a hardware design is sent to an untrusted foundry or built from third-party IP, the defender's core question is a precise one: does the implementation I received behave exactly like the specification I wrote, under every possible way of using it? Dormant hardware Trojans are engineered so that the answer is "yes" for almost all uses — they wake only on rare input sequences, such as a specific 32-bit magic value or a huge counter rollover, which is precisely why they survive functional testing and design rule checks (Tuan La et al.). Current detection at the high-level synthesis (HLS) tier is stochastic: FuCE, the strongest existing tool, mutates inputs with a greybox fuzzer and calls a symbolic solver when the fuzzer stalls (FuCE: Fuzzing+Concolic Execution guided Trojan Detection in Synthesizable Hardware Designs). This works when triggers are reachable by luck or solvable by constraint solving, but it degrades under path explosion, cannot prove a design clean, and never guarantees that a missed Trojan would have been caught.
Game semantics offers a different foundation. It models a program fragment not as a closed box but as a player in a dialogue with an arbitrary environment: every bus request, register write, or stream token from the environment is a move, and the design's responses define its strategy. Two fragments are observationally equivalent exactly when no environment can tell them apart — and crucially, the mature tooling around this idea (Homer and Hector) does not just answer yes or no: when two fragments differ, it automatically synthesizes a separating context, a concrete environment that provably makes them diverge (Homer: A Higher-Order Observational Equivalence Model checkER, Hector: An Equivalence Checker for a Higher-Order Fragment of ML). This proposal takes that machinery into hardware for the first time: a separating context between a golden HLS specification and an untrusted implementation is a guaranteed Trojan trigger — an input stimulus, constructed by automata algorithms rather than mutation, that activates the hidden logic.
Core Claim
The claim is that observational equivalence checking via game semantics, compiled over a hardware interface alphabet, can detect functional Trojans in synthesizable HLS designs and synthesize their exact activation stimuli, with completeness guarantees inside a well-defined language fragment, where fuzzing and concolic execution are stochastic and incomplete. Formally, let $M_G$ be the golden specification and $M_U$ the untrusted implementation, both open fragments over the same interface alphabet. We want to decide
$$M_G \cong M_U \;\iff\; \forall C\;[\cdot]:\; C[M_G] \Downarrow \;\Leftrightarrow\; C[M_U] \Downarrow$$
where $C$ ranges over all environments (testbenches, bus masters, streaming consumers) and $\Downarrow$ denotes producing the same observable transcript. If $M_G \not\cong M_U$, the checker emits a $C$ that witnesses the difference. The existing tools solve the software version of this problem by translating terms into visibly pushdown automata (VPAs) — stack automata whose push and pop operations are visible in the input, keeping equivalence decidable — and Hector's on-the-fly construction finds separating contexts for tricky software cases in under 200 ms (Hector). The opportunity is structural, not merely analogical: HLS source code in C/C++/SystemC is largely first-order imperative code with sequential control flow, which sits inside the decidable fragments these tools already handle, and hardware interfaces (request/response, ready/valid handshakes, memory reads and writes) map naturally onto the Player/Opponent move alphabet that game semantics was built for (10252 Executive Summary - Game Semantics and Program Verification).
Two design choices make this tractable where naive porting would not be. First, wide datapaths: a Trojan trigger comparing a 128-bit AES key against a magic constant would blow up any explicit-value automaton (Homer already fails on explicit arrays larger than $n=15$ (Homer)). We abstract data values to names — opaque atoms with an equality oracle but no internal structure — following the nominal game-semantics treatment of generative state, which was introduced precisely to reason about freshly allocated memory without enumerating addresses (Full Abstraction for Reduced ML). Under this abstraction the checker finds the shape of the trigger (which comparisons must succeed, in what order); a single small SMT call then instantiates a concrete witness value. Second, asymmetry of cost: proving equivalence is the expensive direction (Hector pays heavily for full product exploration), but Trojan hunting is the inequivalence direction, which on-the-fly checking resolves quickly when a divergence exists. For clean designs, where we must prove equivalence, we fall back to bounded-depth certificates and say exactly what we proved.
Research Program
The program builds a prototype, Hector-HW, in four parts. The first is a hardware interface language: a first-order call-by-value core with ground-type registers, bounded loops, and interface operations, into which the C/C++/SystemC kernels of existing HLS Trojan benchmarks can be translated mechanically. The move alphabet makes the environment the Opponent: bus transaction requests, FIFO tokens, and register reads are O-moves; the design's data responses and handshakes are P-moves. Both $M_G$ and $M_U$ are compiled into this language, and the compilation is where engineering care goes — the point is to model the interface, not the internal microarchitecture, which is exactly what observational equivalence protects.
The second part is the checker itself: reuse the VPA translation and on-the-fly product exploration of Hector (Hector), extended with the nominal data abstraction so that wide comparisons become equality-oracle moves rather than value enumeration. When the product automaton finds a divergent play, the separating context is emitted as an executable testbench stimulus in the benchmark's native format, so the trigger can be replayed on the real design in any simulator or on FPGA. The third part addresses the honest weakness of this whole line: full observational equivalence for these fragments is EXPTIME-complete and Homer's explicit-state approach already chokes at modest sizes (Homer). Our mitigation is the nominal abstraction plus a hybrid mode: when the automaton grows past a budget, partial exploration still yields systematic, coverage-directed stimuli — every emitted stimulus corresponds to an unexplored equivalence class of plays, not a random mutation — which can seed a standard fuzzer. This gives a graded tool: full guarantees on small cores, directed-but-incomplete search on large ones.
The fourth part applies the same checker to a second, constructive use of synthesis rather than defense: verifying that the transformation recipes of agentic HLS frameworks preserve behavior. HLSmith optimizes C-to-HLS translations through a library of guarded recipes and validates each step by running commercial toolchains and RTL co-simulation (HLSmith: An Expert-Guided Agentic Framework for C/C++-to-HLS Translation); ScaleHLS lowers designs through multiple MLIR dialect tiers with no internal equivalence guarantee between tiers (ScaleHLS: Scalable High-Level Synthesis through MLIR). The same $M_G \cong M_U$ check, run between pre-recipe and post-recipe programs, would certify each rewriting step compositionally at the source tier, replacing per-step co-simulation for the fragment our language covers. This makes the proposal bidirectional: the checker defends the synthesis pipeline against inserted Trojans and certifies the pipeline's own transformations.
A deliberate scope cut: functionally equivalent degradation Trojans, which swap optimized blocks for slower ones and pass any functional equivalence check by construction (Lakshmi Likhitha Mankali et al.), are out of reach for any behavioral equivalence method including ours, and we say so rather than claim otherwise. Our target is functional divergence — incorrect outputs, leaked values, altered control — under any environment.
Baselines
The naive reference point is vanilla greybox fuzzing: AFL alone, with branch instrumentation and no symbolic assist, run on the same S3CBench designs for the same wall-clock and memory budget. FuCE reports that on the AES-cwom benchmark vanilla AFL needed 337 seconds to detect the Trojan, where their combined pipeline needed 47 (FuCE); we reproduce that reference number on our hardware as the floor any method must clear. The strongest existing competitor is FuCE itself — AFL greybox fuzzing plus S2E concolic execution with a stuck-detection heuristic (FuCE) — because it is the only prior tool that addresses Trojans at this exact abstraction level, in synthesizable SystemC/C++, on the exact benchmark suite we use. We will run FuCE ourselves on identical designs, identical machine, and matched compute and time budgets, tuning its stuck heuristic within the budget we give our own tool. Beating FuCE means three things jointly: detecting every Trojan FuCE detects, detecting Trojans FuCE misses within budget (we will construct rare-trigger variants where the trigger requires a specific wide data comparison, so random mutation has essentially zero hit probability), and producing a replayable trigger stimulus plus a clean-design equivalence verdict, which FuCE's dynamic methodology cannot produce in principle. Memory is also a live axis: pure symbolic execution ballooned past 3 GB on ADPCM while FuCE used about 51 MB (FuCE); our automaton's memory is the metric to watch. A second baseline regime, run to be fair rather than to win, is structural GNN detection in the style of TrojanSAINT, which achieved on average 78% true positive rate and 85% true negative rate on TrustHub gate-level benchmarks (98% and 96% best case) despite Trojan gates being under 0.2% of circuitry (TrojanSAINT: Gate-Level Netlist Sampling-Based Inductive Learning for Hardware Trojan Detection); we will synthesize the S3CBench designs to netlists and train a comparable model with the same tuning budget, acknowledging it works at a different abstraction and needs no golden reference. Finally, the key ablation isolates the open-environment ingredient: replace our game model with closed-box bounded model checking seeded by trace-extracted assertions, in the manner of the Design for Assurance flow, which pinpointed 128 malicious LUTs in an AES SDC Trojan via automatically generated SystemVerilog Assertions and commercial model checking (Design for Assurance: Employing Functional Verification Tools for Thwarting Hardware Trojan Threat in 3PIPs). Same golden models, same budget, explicit fixed testbench instead of arbitrary Opponent strategies — this isolates exactly what observational equivalence over all contexts buys.
Why not just…?
Why not just fuzz and solve, like FuCE? Because the failure modes are documented, not hypothetical: FuCE's own evaluation shows pure symbolic execution timing out on AES-cwom and consuming over 3 GB on ADPCM, and its detection depends on a fuzzer lucky enough or a solver fast enough to reach the trigger (FuCE). For triggers guarded by wide data comparisons, random mutation hits with probability near zero and the concolic fallback is exactly where path explosion lives. That said, this is a real threat on speed: FuCE found the AES-cwom Trojan in 47 seconds, and if our automaton construction takes minutes to build for the same design, we lose on practical detection even while winning on guarantees. The head-to-head experiment on S3CBench, with construction time reported separately from checking time, is designed to settle this honestly — and the hybrid seeding mode is our concession that systematic stimulus generation and fuzzing are complementary rather than rivals.
Why not just write assertions and run a commercial model checker? The Design for Assurance flow shows this works when you already have simulation traces that graze the Trojan's territory: its extracted assertions pinpointed the malicious LUTs in an AES SDC Trojan and even supported neutralization by reconfiguration (Design for Assurance). Its published limitation is the one that matters here: properties are extracted from traces, so rare corners the traces never visit go unasserted, and the environment is a fixed closed testbench rather than all possible contexts (Design for Assurance). Game semantics needs no traces and no explicit testbench — the Opponent is the quantifier over all environments (10252 Executive Summary) — and returns a separating context rather than a violated assertion. The ablation baseline above is exactly this comparison, and the decisive case will be interface-protocol Trojans whose divergence appears only under environment interleavings no single fixed testbench produces. I am honest that for a defender willing to hand-write exhaustive assertions, bounded model checking could find the same triggers; the claim is that our method needs neither the hand-writing nor the exhaustiveness guess.
Why not just train a better netlist GNN? TrojanSAINT-style detection needs no golden reference and scales past where formal methods reach, but it is a statistical classifier: it offers no trigger stimulus, no clean-design proof, and it is precisely the target of architectural evasion — functionally equivalent block substitutions that preserve topology pass structural checks by design (Lakshmi Likhitha Mankali et al.), and extreme class imbalance below 0.2% of gates forces delicate threshold tuning (TrojanSAINT). The genuine threat in this alternative is the golden-reference requirement: where no trusted specification exists, our method has nothing to compare against and GNNs are the only game in town. We therefore frame the two as operating in different threat models — reference-available verification versus reference-free screening — and our TrustHub-netlist run will report where each wins rather than claim a sweep.
Proposed Experiments
The primary evaluation is S3CBench, the suite of Synthesizable Hardware Trojans in SystemC (AES, ADPCM, UART with combinational and sequential trigger mechanisms), because it is the exact evaluation ground of the strongest baseline: FuCE detected the AES-cwom Trojan in 47 seconds against 337 for vanilla AFL and a timeout for pure symbolic execution, and reached 100% branch coverage on ADPCM-swm where standalone AFL and S2E stayed below 90% (FuCE). We run Hector-HW on all S3CBench designs under matched budgets and report, per design: detection (yes/no), wall-clock split into compilation versus checking, peak memory against FuCE's ~51 MB and S2E's 3 GB-plus on ADPCM, and the emitted trigger stimulus replayed in simulation to confirm the Trojan actually fires. The headline metrics are detection rate, stimulus specificity (does the replayed stimulus activate the Trojan on the infected design and pass cleanly on the golden one), and clean-design verdicts with their stated depth bounds.
The second experiment is the adversarial set: we construct new benchmark variants whose triggers require a specific wide data equality (the dormancy pattern documented in the Trojan literature, e.g. 32-bit magic values (Tuan La et al.)) or long counter sequences, where the nominal abstraction should let the automaton find the trigger's shape while mutation-based search starves. The prediction is a crossover: FuCE's cost grows with trigger depth and data width, ours grows with design size, so there is a regime — deep, data-guarded triggers in modest-sized cores — where we win outright; we will report where that regime ends rather than hide it, since Homer's software-side scaling wall at explicit arrays of size 15 (Homer) is a warning our abstraction must actually dissolve.
The third experiment exercises the synthesis-side use: run the checker across each step of HLSmith's recipe pipeline on its HLSFactory-28 PolyBench kernels — the suite on which HLSmith achieved a 100% valid-design rate against ChatHLS's 57% and reduced a TRMM kernel's estimated cycles from roughly 22 million to about 26 thousand in five steps (HLSmith) — and certify each transformation preserves observational equivalence, comparing total verification time against the framework's per-step RTL co-simulation. No reported result found on Lacuna for per-kernel co-simulation runtimes in HLSmith, so we will measure both on our own infrastructure and report the comparison directly.
Decisive Checks
The proposal stands or falls on three falsifiable outcomes. If Hector-HW detects every S3CBench Trojan FuCE detects, within comparable time and memory, and additionally produces guaranteed replayable triggers on the rare-trigger adversarial set where FuCE times out, the core claim holds. If bounded model checking with trace-extracted assertions, run as the ablation, matches detection on the interface-interleaving cases, then the open-environment ingredient is not earning its complexity and the honest conclusion is that game semantics adds value only in the certification (clean-design verdict) direction. And if the nominal data abstraction fails to tame construction size on the wide-comparison designs, the method retreats to the hybrid seeded-fuzzing mode and must then be judged as a stimulus generator against FuCE on coverage alone — a weaker but still measurable claim. Concurrent interface Trojans exploiting transaction interleavings, motivated by the multi-module threat picture (Hardware Design and Security in the Era of Chiplets and LLMs), are the natural extension: saturating automata already model concurrency with linear-size constructions for normal forms (Saturating automata for game semantics), and extending the move alphabet to parallel handshakes is the first follow-up if the sequential fragment succeeds.
References
- Denial-of-Service on FPGA-based Cloud Infrastructures - Attack and Defense
- FuCE: Fuzzing+Concolic Execution guided Trojan Detection in Synthesizable Hardware Designs
- Homer: A Higher-Order Observational Equivalence Model checkER
- Hector: An Equivalence Checker for a Higher-Order Fragment of ML
- 10252 Executive Summary - Game Semantics and Program Verification
- Full Abstraction for Reduced ML
- HLSmith: An Expert-Guided Agentic Framework for C/C++-to-HLS Translation
- ScaleHLS: A New Scalable High-Level Synthesis Framework on Multi-Level Intermediate Representation
- RTL-Breaker: Assessing the Security of LLMs Against Backdoor Attacks on HDL Code Generation
- TrojanSAINT: Gate-Level Netlist Sampling-Based Inductive Learning for Hardware Trojan Detection
- Design for Assurance: Employing Functional Verification Tools for Thwarting Hardware Trojan Threat in 3PIPs
- Hardware Design and Security in the Era of Chiplets and LLMs
- Saturating automata for game semantics