Imprint Detection: Finding Rare Permanent Alterations Without a Golden Reference

A transient event can leave a permanent, nearly invisible change in a large system. A foundry engineer hides a few hundred malicious gates among the millions on a chip, and years later the part still passes every functional test; a severe infection or glycemic crisis rewrites DNA methylation in a patch of cells, and long after the virus or the glucose is gone those cells — and their daughter cells — keep running the altered program. In both cases the change is rare (Trojan circuitry is often under 0.2% of a chip's gates), persistent, invisible to behavior-based inspection, and there is no verified clean copy to compare against. The proposal here is to treat these as one statistical problem — imprint detection — and build a single reference-free detector for rare, permanently altered units inside large, heterogeneous populations, in settings where whatever we can observe is a systematically distorted report of the true hidden state.

The two directions in the compiled Lacuna file that carry the technical weight are innate immune memory and hardware IP theft; clinical heterogeneity and self-report bias enter as design constraints rather than testbeds, because the compiled records index no separate bibliography for them — a limitation I return to below, since it also shapes what can honestly be claimed. What the biology literature supplies is the target phenomenon: transient interferon exposure produces stable hypomethylation that keeps immune cells hyper-reactive after the stimulus disappears (Interferon-α-mediated therapeutic resistance in early rheumatoid arthritis implicates epigenetic reprogramming), transient hyperglycemia locks vascular cells into a destructive program even after glucose normalizes (Oxidative stress and epigenetics in ocular vascular aging: an updated review), and a primed methylation state is copied onto daughter cells by maintenance methyltransferases, so the imprint self-propagates (DNA Methylation Sustains "Inflamed" Memory of Peripheral Immune Cells Aggravating Kidney Inflammatory Response in Chronic Kidney Disease). What the hardware literature supplies is the one regime where the identical detection problem comes with ground truth: Trojans are gated by rare internal states and stay dormant during testing (Huili Chen et al.), their corrupted outputs can be engineered to coincide with expected outputs (Syed Kamran Haider et al.), and standard verification tooling is built only for unintentional bugs, not adversarial insertions (Tuan La et al.) — all consequences of the fabless supply chain that forces fabrication offshore (Riad S. Wahby et al., Johann Knechtel et al.).

Core Claim

My claim is that three failure modes that look domain-specific are, statistically, the same problem, and that a detector must model all three jointly or it will fail exactly where it matters. First, the altered units are a rare subpopulation, not a shifted global distribution, so group-level comparisons wash the signal out. Second, the population is heterogeneous: circuits come from different design families and patients carry different backgrounds, so a single global decision rule trained on one mixture will not transfer. Third, the observable is a biased report of the hidden state: dormant Trojan gates present clean functional behavior, and peripheral blood misreports deep-tissue methylation. The closest existing work handles pieces of this but not the joint problem. TrojanSAINT (TrojanSAINT: Gate-Level Netlist Sampling-Based Inductive Learning for Hardware Trojan Detection) supplies the method I build on — it models a gate-level netlist, the graph of logic gates and their wires that sits between high-level design descriptions and physical silicon (Hannes Groß et al.), as a graph and detects Trojans inductively from structural features, with no verified golden netlist — but it uses one population-level decision threshold and no model of observation bias or per-cluster priors. On the biology side, an imprinted rheumatoid-arthritis methylome signature that separates pathogenic phenotypes (John W. Whitaker et al.) shows imprints are detectable from structure, but that analysis is supervised and within-cohort: it does not confront rarity, missing labels, or proxy distortion. Nothing in the file addresses the combination.

The evidence that bias modeling is not optional comes from the biology itself. An exercise-diet intervention in obese mice improved all systemic metabolic parameters while cellular ovarian dysfunction persisted (Exercise-diet intervention ameliorates but fails to fully reverse obesity-induced ovarian dysfunction) — the accessible summary measurement misreported the deep state, which is the archetype of self-report bias, operationalized here as any observable that systematically distorts a hidden state. And the sibling-controlled study of adults born very preterm found that methylation differences are strongly tissue-specific between blood and adipose tissue (Blood and adipose tissue DNA methylation in adults born preterm with a very low birth weight – a sibling comparison study), which both constrains cross-tissue transfer and, usefully, gives us a dataset in which the distortion function can actually be measured. That tissue divergence is also the honest face of clinical heterogeneity in this file: patients and tissues differ enough that one global signature is the wrong model.

Research Program

The model is a latent-variable detector over units. Each unit $i$ — a gate in one regime, a cell in the other — belongs to a cluster $c(i)$, a design family or a patient-tissue source, and carries a hidden binary imprint indicator $z_i$ (Trojan insertion, or epigenetic scar). The observed feature vector $x_i$ is generated as a cluster-distorted report:

$$P(x_i \mid z_i, c) \;=\; q\big(x_i \mid z_i,\; g_c\big), \qquad P(z_i = 1) = \pi_c \ll 1,$$

where $g_c$ is a cluster-specific distortion (the reporting-bias function) and $\pi_c$ is a per-cluster rare prior, tied together across clusters by hierarchical shrinkage so that small clusters borrow strength. Fitting is unsupervised on mixed, unlabeled data under the constraint that imprints are rare; detection flags units with high posterior $P(z_i = 1 \mid x_i, c)$. The GNN backbone and subgraph sampling follow TrojanSAINT's GraphSAINT design, which exists precisely because flattened netlists of tens of millions of gates exceed the memory of standard deep graph models (TrojanSAINT). The new ingredients are the two the field lacks: $g_c$, which lets the detector learn that some clusters systematically understate their anomalies, and $\pi_c$, which stops one family's anomaly rate from being imposed on another.

Three things get built. The detector itself, with the joint fitting procedure. A hardware instantiation using the structural features of TrojanSAINT (gate type, degree, distance to primary inputs and outputs) on gate-level netlists, where inserted Trojans provide ground truth. And a biology instantiation using single-cell-level methylation features, evaluated against imprints that the biology papers have already characterized — the inflamed-memory loci of peripheral immune cells in chronic kidney disease (Zhang et al.) and the hypermethylated, silenced ciliary genes in airway progenitor cells after acute COVID-19, which propagate to every differentiated descendant (DNA methylation changes during acute COVID-19 are associated with long-term transcriptional dysregulation in patients' airway epithelial cells). The same machinery serves both; only the feature extractor changes.

Proposed Experiments

The hardware arm is the controlled validation. Using the Trojan-inserted gate-level netlist benchmarks that TrojanSAINT evaluates on, the decisive protocol is leave-family-out: train on some design families, test on held-out families, and measure gate-level precision and recall plus false positives per million gates under the documented imbalance (exceeding 700:1 in the worst cases). A second, deliberately harsh test injects observation bias: the features of known Trojan gates are masked or shrunk toward clean-gate values, simulating the dormancy documented by Haider et al., and we measure how gracefully each method degrades. This is the experiment that isolates $g_c$: a detector that has learned a cluster's distortion should degrade far less than one that assumes features are faithful.

The biology arm is the transfer target, run with no Trojan-derived pretraining so it cannot be accused of leakage. On the chronic-kidney-disease and post-COVID methylation data, the detector runs unlabeled and is scored on whether the flagged cells and loci enrich for the imprint signatures those papers characterized — fold-enrichment and false-discovery rate against the ciliary and inflamed-memory loci. The cross-tissue test uses the preterm-birth sibling data: fit $g$ on blood, predict on adipose, and report the calibration error of the distortion function against the tissue divergence those authors measured. Beating a standard group-level differential-methylation comparison here is the meaningful bar, because group comparisons average over the rare primed subset that clinical heterogeneity hides.

One limitation must be stated plainly. The compiled Lacuna records contain no separate bibliography for clinical heterogeneity or self-report bias as standalone directions, so those two directions constrain the design rather than supplying testbeds or reported numbers, and all quantitative anchors come from the hardware and epigenetics literature. Where I need a number the file does not give — for instance, TrojanSAINT's own detection scores on its benchmarks — I will say so rather than invent it: no reported result found on Lacuna for TrojanSAINT's gate-level detection accuracy or false-positive rate on its benchmarks. Reproducing it ourselves, under matched conditions, is therefore part of the plan, not a courtesy.

Baselines

The naive reference point is what practitioners actually do today: functional testing against a golden model, or diffing against a reference netlist when one exists. The file documents why this fails — Trojans sit dormant behind rare trigger conditions (Huili Chen et al.), corrupted outputs can be masked to match expected outputs (Haider et al.), and commercial verification is built for accidental bugs (Tuan La et al.). Beating it means any reliable detection on dormant Trojans at a controlled false-positive rate; it is the floor, not the competitor. The strongest existing competitor is TrojanSAINT (Lashen et al.), the inductive graph neural network that detects Trojans from netlist topology without a golden reference. It is the strongest because it already solves the pieces my proposal keeps — reference-free inductive learning, sampling that survives million-gate netlists — so any gain must come from the new ingredients, not from the backbone. The comparison is run on the same benchmarks, same features, same GraphSAINT sampling budget, and the same threshold search over 0 to 0.5 that TrojanSAINT documents, with both methods given identical tuning budget per family; since no reported result exists on Lacuna for its detection metrics, we reproduce it under these matched conditions rather than quote a number. Beating it means higher recall at matched false-positive rate on held-out families, and, just as important, lower variance of that recall across families — because the leave-family-out split is precisely where a single global threshold should crack. Finally, the key ablation is our own architecture with $g_c$ and $\pi_c$ removed: one global prior, one undistorted observation model, everything else identical. If the ablation matches the full model, the proposal's central claim is wrong and the result should be reported as such.

Why not just…?

Why not just use TrojanSAINT and tune the threshold harder? Threshold tuning is exactly the wrong knob, because the failure I target is not calibration within one population but transfer across populations and distortion within them. TrojanSAINT searches a single threshold over 0 to 0.5 for the whole dataset; under leave-family-out evaluation that one threshold must serve families with different anomaly rates and different feature reliability simultaneously. The leave-family-out and bias-injection experiments are designed to settle this directly: if a per-family retuned TrojanSAINT closes the gap, my claim reduces to "tune per family" and the joint model is unnecessary. I consider that a real possibility and have made it the first ablation.

Why not just train a supervised classifier with class weighting to fix the imbalance? Class weighting addresses rarity, not bias, and it needs labels. The regimes that motivate this work have no golden netlist for commercial chips — the explicit motivation for inductive detection (TrojanSAINT, Guru Venkataramani) — and no labels on which cells are primed; supervised methods like the RA methylome signature (Whitaker et al.) work only where a labeled cohort exists. The masking experiment will show whether a class-weighted classifier survives feature distortion; I expect it to degrade sharply, because weighting reweights the loss, not the observation process. Earlier statistical detectors built on gate-level characterization (Hardware Trojan detection with linear regression based gate-level characterization, HTDet: A clustering method using information entropy for hardware Trojan detection) face the same objection plus reference dependence, which is why they are secondary baselines.

Why not just do the biology longitudinally — sequence the same patients over time instead of building a detector? Longitudinal single-cell enzymatic sequencing is the gold standard for separating a self-sustaining historical program from lingering active stimulation, and the file names it as the field's own answer to cross-sectional confounding. But it is expensive and slow, and the realistic deployment setting — a cross-sectional cohort walked into a clinic — is exactly where a computational detector earns its keep. The hardware arm is my answer to the skeptic: it is the same statistical problem with ground truth, so if the method fails there, it fails where it is checkable, and the biology arm should be abandoned rather than excused.

Decisive Checks

Three results would decide this. On hardware, the full model must beat the reproduced TrojanSAINT on recall at matched false positives under leave-family-out splits, and the ablation without $g_c$ and $\pi_c$ must show a measurable gap — otherwise the joint model is decoration. Under injected feature bias, the full model's degradation curve must be flatter than every baseline's. On biology, unlabeled detection must recover the characterized imprint loci with enrichment a group-level differential analysis cannot reach at comparable false-discovery rate, and the cross-tissue transfer on the preterm-birth data must produce a calibration error small enough that the learned distortion function is demonstrably doing work. If all three hold, the payoff is a detector that works where today's methods silently fail: on unlabeled, heterogeneous, indirectly observed systems — which is to say, on most real ones.

References

  1. Interferon-α-mediated therapeutic resistance in early rheumatoid arthritis implicates epigenetic reprogramming
  2. Oxidative stress and epigenetics in ocular vascular aging: an updated review
  3. AdaTest: Reinforcement Learning and Adaptive Sampling for On-chip Hardware Trojan Detection
  4. Advancing the state-of-the-art in hardware Trojans design
  5. Denial-of-Service on FPGA-based Cloud Infrastructures - Attack and Defense
  6. Verifiable ASICs
  7. 3D Integration: Another Dimension Toward Hardware Security
  8. TrojanSAINT: Gate-Level Netlist Sampling-Based Inductive Learning for Hardware Trojan Detection
  9. Formal Verification of Masked Hardware Implementations in the Presence of Glitches
  10. An imprinted rheumatoid arthritis methylome signature reflects pathogenic phenotype
  11. Exercise-diet intervention ameliorates but fails to fully reverse obesity-induced ovarian dysfunction: evidence spanning folliculogenesis to embryonic development
  12. Blood and adipose tissue DNA methylation in adults born preterm with a very low birth weight – a sibling comparison study
  13. DNA Methylation Sustains “Inflamed” Memory of Peripheral Immune Cells Aggravating Kidney Inflammatory Response in Chronic Kidney Disease
  14. DNA methylation changes during acute COVID-19 are associated with long-term transcriptional dysregulation in patients’ airway epithelial cells
  15. Special Issue on Security and Privacy-Preserving Execution Environments
  16. Hardware Trojan detection with linear regression based gate-level characterization
  17. HTDet: A clustering method using information entropy for hardware Trojan detection