On this page 9 sections
A substantive extension beyond the earlier critique
The earlier article focused on the absence of wholly clean test modules in the accessible TrojanWhisper evaluation. That remains a paper-specific measurement question, but current related work is broader. TrojanGYM v3 evaluates an adaptive pipeline on SRAM, AES-128, UART, and RISC-V, and describes training using 884 clean designs paired with 3,536 generated infected samples.1
A blanket claim that this research area uses only three designs or lacks clean examples would be false. The right critique must identify the study, version, split, and denominator.
How the TrojanGYM loop produces its outcomes
TrojanGYM is an agentic, LLM-driven framework for generating RTL hardware-Trojan insertions that expose blind spots in learning-based detectors. Each candidate passes through three gates inside a generation-and-refinement loop: syntactic checking, testbench-based functional verification, and a GNN-based detector. The study uses four LLMs (GPT-4, LLaMA-3.3-70B, Gemini-2.5 Pro, and Claude Opus 4.5) and evaluates four Trojan types for each LLM-design combination.1
Table III records three terminal outcomes rather than a binary success label: detection evaded, detection not evaded, and syntax error or testbench failure, across up to four attempts per case, with later attempts marked N/A once a case evades. That structure is what makes the denominator question answerable. A reader can ask whether a non-evasion came from the detector's classification or from an earlier stage of the pipeline.
What TrojanWhisper does and does not show
TrojanWhisper evaluates general-purpose LLMs for detecting and localising hardware Trojans in RTL. Its abstract reports perfect baseline detection for GPT-4o and Gemini 1.5 Pro, degradation under code perturbation, and decreased accuracy for all models in localising triggers and payloads.2
Because its described setup evaluates infected modules, it does not by itself resolve clean-module specificity. That is a statement about one evaluation setup, not evidence that hardware-Trojan detection research as a whole lacks clean-module evaluation.
What was reanalyzed
We manually transcribed all 64 rows of Table III in TrojanGYM v3, preserving the four attempt statuses and source legend. A local script classified each row by its final recorded non-N/A status and counted the cumulative first-evasion outcomes. The transcription, derived tables, and computation are included.1
The final-status counts are 23 evaded, 14 not evaded, and 27 syntax-error or testbench-failure rows. Thus 23/64 is 35.94%, consistent with the paper's rounded 36% overall evasion result.
Its complement, 41/64 or 64.06%, combines two categories: rows ending without evasion and rows ending in validation failure. That is not the same denominator as detector sensitivity on a set of valid malicious designs.
Why this distinction matters
A failed attack-generation pipeline is meaningful to an attacker-success analysis. It is not automatically a successful classification by the detector. Syntax rejection, testbench rejection, and a detector's positive decision are separate mechanisms.
Among rows whose terminal status is evaded or not evaded, 23/37, or 62.16%, are evaded. This conditional descriptive fraction is not a corrected population evasion rate: it selects on terminal outcome, excludes failures, and does not characterise all intermediate valid candidates. It simply exposes the effect of changing the denominator.
Nor does a passing testbench establish exhaustive functional correctness or that the malicious trigger and payload behave under all relevant conditions.
Match the denominator to the question
Every stage of the pipeline has its own denominator: how many candidates were generated, how many were validated, how many were tested, and how many were classified. A headline rate is defensible only when it states which of these it divides by, and the right choice depends on the question being asked.
| Question | Reporting rule |
|---|---|
| End-to-end attacker success | Include validation failures in the denominator. |
| Detector sensitivity on valid malicious designs | Exclude validation failures, but only after the candidate set has been independently validated. |
| Generation reliability | Report syntax failures and testbench failures separately. |
| Detector robustness | Report clean-module false positives and held-out generalisation separately. |
The terminal-only fraction should not stand in for the whole-pipeline figure unless the report states explicitly that the question has changed.
What the attempt budget does and does not show
The cumulative counts show that most evasions occur early. The paper reaches a consistent conclusion, reporting that evasion, when achievable, is typically reached within one or two attempts, and that further iterations serve as recovery opportunities for challenging cases.1 Neither observation establishes that additional attempts are useless for every model or design.
A second discrepancy worth clarification
The transcribed table gives Gemini three first-evasion successes by attempt two, or 18.75% of its 16 cases, and a fourth by attempt three, reaching 25%. The surrounding discussion describes reaching a 25% peak by attempt two.1
This appears to be a table-versus-narrative inconsistency in the inspected version. It warrants an author query and artefact check, not a misconduct allegation or assumption about which is authoritative. No author contact has occurred.
A better reporting scheme
Report generation validity, triggered malicious behaviour, detector decision, and end-to-end evasion separately. Keep timeouts and graph-extraction failures distinct. Report sample counts at every stage.
Evaluate clean-module specificity and design-family generalisation independently of the attack-generation pipeline. Adaptive examples and larger training corpora do not by themselves establish a fully held-out test design.
Reading the detector-hardening result
The paper also reports that Robust-GNN4TJ raises hardware-Trojan detection rates from 0% to 60% on the hardest LLM-generated benchmarks.1 That is a meaningful improvement within the reported setup. It should not be read as a universal detector-performance claim.
A protocol for testing the scheme
The objective is to determine whether a hardware-Trojan detection evaluation separates generation validity, detector decision, and end-to-end evasion. The protocol is proposed and has not been executed. It tests three hypotheses:
- H1: stage-by-stage accounting will show that some non-evasions are validation failures, not detector decisions.
- H2: detector sensitivity on valid malicious designs will differ from whole-pipeline evasion.
- H3: clean-module false positives and held-out generalisation will differ from infected-only detection.
| Element | Specification |
|---|---|
| Held fixed | Detector version, LLM version, design set, and Trojan-type set, with the detector and LLM version-pinned. |
| Varied | Attempt budget, validation outcome, detector decision, and training data. |
| Outcomes | Generation validity, testbench outcome, detector decision, end-to-end evasion, clean-module false positive, held-out generalisation, and attempt budget, each defined before testing. A control with no relevant attempt is recorded as unexercised, not credited with a block. |
| Controls | Attempt budget and validation criteria predeclared; clean modules and held-out design families included; a separate reviewer for the transcription and the test oracle. |
| Analysis | Generation validity, testbench outcome, detector decision, and end-to-end evasion reported separately. Clean-module false positives reported apart from infected-module detection, and held-out generalisation apart from in-distribution performance. Detector sensitivity is never inferred from a whole-pipeline denominator. |
| Adjudication | Successful and materially disruptive traces reviewed to separate intended behaviour, alternate in-scope routes, harness defects, and unresolved cases. Original outcomes preserved and exclusions explained; ambiguous traces examined by a second reviewer before publication. |
| Stopping rules | Stop when a transcription discrepancy is found, when the detector cannot be validated, when the LLM cannot be queried, or when the test oracle is ambiguous. Preserve logs and policy versions before remediation. |
| Acceptance | Acceptable generation-validity, testbench-failure, detector-sensitivity, clean-module false-positive, and held-out generalisation rates defined before the study. If no event is observed, the result is reported as no observed events under the tested conditions, not as proof of impossibility. |
Proposed, not executed. No universal numerical thresholds are supplied.
Until such a study is run, this page remains a source-based technical analysis with a descriptive reanalysis of published table data. Any future result should carry its tested configuration and uncertainty, and should not be presented as a universal detector-performance claim or a real-world failure-rate estimate.
The enterprise decision
A headline detection or evasion rate is only as informative as its denominator. Before relying on one, ask:
- What denominator does the headline number use, and which failures does it exclude?
- Which question does it actually answer?
- What are the generation-validity and testbench-failure rates?
- What is the clean-module false-positive rate?
- What is the held-out generalisation result?
- What attempt budget applied?
Technical appendix
Table transcription
The 64-case input table is a manual transcription of TrojanGYM v3 Table III, not downloaded experimental output. Its status legend is preserved: E means detection evaded, X means detection not evaded, S means syntax error or testbench failure, and N means no further attempt after an evasion. The classification used here is the last recorded non-N status. It is not an independently validated label of functional correctness.
Why one minus evasion is not necessarily detector sensitivity
The whole-pipeline question includes whether an adversary can produce a candidate that survives generation and validation. A detector-only question conditions on a defined set of valid malicious inputs. Both can be useful. They require different denominators.
The transcribed final outcomes are 23 E, 14 X, and 27 S. Therefore whole-pipeline evasion is 23/64 = 35.9375%, and its complement is 41/64 = 64.0625%. The complement includes all 27 terminal validation-failure cases. Reporting that complement as detector sensitivity would require additional justification and a precise definition of the detector stage.
Restricting to terminal E or X produces 23/37 = 62.1622% evasion. This is not a corrected headline or a population estimate. Selection on terminal result changes the question and can introduce survivorship effects. Intermediate valid candidates are not reconstructed by the terminal table.
Syntax/testbench failure also combines two mechanisms. The available table cannot separate them. A testbench pass establishes behaviour under its test conditions, not unrestricted equivalence or exhaustive proof of Trojan functionality. No such stronger claim is made here.
Attempt budget
Across the fixed 64 cases, first evasion occurs by attempt 1 in eight cases, by attempt 2 in seventeen, by attempt 3 in twenty-one, and by attempt 4 in twenty-three. These are descriptive cumulative counts, not independent trials or extrapolatable attack probabilities.
For Gemini the inspected table gives three successes by attempt 2 and four by attempt 3. The prose describing a 25% peak by attempt 2 appears inconsistent with that table. This is an unresolved version-specific observation. Artefact inspection and author clarification are required before presenting a formal correction.
What was not inferred
We do not infer that an invalid generated candidate was detected by the GNN. We do not infer independent sampling from 64 selected combinations. We do not infer prevalence, production detection quality, or a causal effect of a specific model. No confidence interval is attached to these deliberately selected cases as though they were a random population sample.
Verification status
Arithmetic and software checks were performed locally. Published experiments were not reproduced. Manual source transcription was checked for internal consistency but not independently by another reviewer. No author was contacted, and no vulnerability disclosure is made.
| Model | Cases | Evaded | Not evaded | Syntax or testbench failure | Evasion, all cases | Evasion, evaded or not evaded only |
|---|---|---|---|---|---|---|
| GPT-4 | 16 | 4 | 5 | 7 | 25.00% | 44.44% |
| Gemini-2.5Pro | 16 | 4 | 4 | 8 | 25.00% | 50.00% |
| LLaMA-3.3-70B | 16 | 4 | 4 | 8 | 25.00% | 50.00% |
| Claude Opus 4.5 | 16 | 11 | 1 | 4 | 68.75% | 91.67% |
| ALL | 64 | 23 | 14 | 27 | 35.94% | 62.16% |
Descriptive arithmetic on 64 deliberately selected cases. These are not population estimates, and no confidence interval applies.
| Attempts allowed | Cases evaded by then | Total cases |
|---|---|---|
| 1 | 8 | 64 |
| 2 | 17 | 64 |
| 3 | 21 | 64 |
| 4 | 23 | 64 |
Cumulative counts over the same 64 cases, not independent trials.
Show all 64 transcribed rows
| Model | Design | Trojan type | Attempt 1 | Attempt 2 | Attempt 3 | Attempt 4 | Terminal status |
|---|---|---|---|---|---|---|---|
| GPT-4 | SRAM | HT1 | X | X | X | X | X |
| GPT-4 | SRAM | HT2 | E | N | N | N | E |
| GPT-4 | SRAM | HT3 | S | S | S | S | S |
| GPT-4 | SRAM | HT4 | X | E | N | N | E |
| GPT-4 | AES-128 | HT1 | S | S | S | S | S |
| GPT-4 | AES-128 | HT2 | S | S | S | S | S |
| GPT-4 | AES-128 | HT3 | S | S | S | S | S |
| GPT-4 | AES-128 | HT4 | S | S | S | S | S |
| GPT-4 | UART | HT1 | S | S | S | S | S |
| GPT-4 | UART | HT2 | E | N | N | N | E |
| GPT-4 | UART | HT3 | S | S | S | S | S |
| GPT-4 | UART | HT4 | E | N | N | N | E |
| GPT-4 | RISC-V | HT1 | X | X | X | X | X |
| GPT-4 | RISC-V | HT2 | X | X | X | X | X |
| GPT-4 | RISC-V | HT3 | X | X | X | X | X |
| GPT-4 | RISC-V | HT4 | X | X | X | X | X |
| Gemini-2.5Pro | SRAM | HT1 | X | E | N | N | E |
| Gemini-2.5Pro | SRAM | HT2 | X | E | N | N | E |
| Gemini-2.5Pro | SRAM | HT3 | S | S | S | S | S |
| Gemini-2.5Pro | SRAM | HT4 | X | S | S | S | S |
| Gemini-2.5Pro | AES-128 | HT1 | S | S | S | S | S |
| Gemini-2.5Pro | AES-128 | HT2 | S | S | S | S | S |
| Gemini-2.5Pro | AES-128 | HT3 | S | S | S | S | S |
| Gemini-2.5Pro | AES-128 | HT4 | S | S | S | S | S |
| Gemini-2.5Pro | UART | HT1 | X | E | N | N | E |
| Gemini-2.5Pro | UART | HT2 | X | X | E | N | E |
| Gemini-2.5Pro | UART | HT3 | X | X | S | S | S |
| Gemini-2.5Pro | UART | HT4 | S | S | S | S | S |
| Gemini-2.5Pro | RISC-V | HT1 | X | X | X | X | X |
| Gemini-2.5Pro | RISC-V | HT2 | X | X | X | X | X |
| Gemini-2.5Pro | RISC-V | HT3 | X | X | X | X | X |
| Gemini-2.5Pro | RISC-V | HT4 | X | X | X | X | X |
| LLaMA-3.3-70B | SRAM | HT1 | S | S | S | S | S |
| LLaMA-3.3-70B | SRAM | HT2 | S | S | S | S | S |
| LLaMA-3.3-70B | SRAM | HT3 | S | S | S | S | S |
| LLaMA-3.3-70B | SRAM | HT4 | S | S | S | S | S |
| LLaMA-3.3-70B | AES-128 | HT1 | X | E | N | N | E |
| LLaMA-3.3-70B | AES-128 | HT2 | E | N | N | N | E |
| LLaMA-3.3-70B | AES-128 | HT3 | X | S | S | S | S |
| LLaMA-3.3-70B | AES-128 | HT4 | S | S | S | S | S |
| LLaMA-3.3-70B | UART | HT1 | E | N | N | N | E |
| LLaMA-3.3-70B | UART | HT2 | X | S | S | S | S |
| LLaMA-3.3-70B | UART | HT3 | X | X | X | X | X |
| LLaMA-3.3-70B | UART | HT4 | E | N | N | N | E |
| LLaMA-3.3-70B | RISC-V | HT1 | X | X | X | X | X |
| LLaMA-3.3-70B | RISC-V | HT2 | X | X | X | X | X |
| LLaMA-3.3-70B | RISC-V | HT3 | S | S | S | S | S |
| LLaMA-3.3-70B | RISC-V | HT4 | X | X | X | X | X |
| Claude Opus 4.5 | SRAM | HT1 | X | E | N | N | E |
| Claude Opus 4.5 | SRAM | HT2 | X | X | X | E | E |
| Claude Opus 4.5 | SRAM | HT3 | X | X | E | N | E |
| Claude Opus 4.5 | SRAM | HT4 | S | S | S | S | S |
| Claude Opus 4.5 | AES-128 | HT1 | S | S | S | S | S |
| Claude Opus 4.5 | AES-128 | HT2 | X | X | X | E | E |
| Claude Opus 4.5 | AES-128 | HT3 | X | X | E | N | E |
| Claude Opus 4.5 | AES-128 | HT4 | X | E | N | N | E |
| Claude Opus 4.5 | UART | HT1 | E | N | N | N | E |
| Claude Opus 4.5 | UART | HT2 | X | E | N | N | E |
| Claude Opus 4.5 | UART | HT3 | E | N | N | N | E |
| Claude Opus 4.5 | UART | HT4 | S | S | S | S | S |
| Claude Opus 4.5 | RISC-V | HT1 | S | S | S | S | S |
| Claude Opus 4.5 | RISC-V | HT2 | X | X | X | X | X |
| Claude Opus 4.5 | RISC-V | HT3 | X | E | N | N | E |
| Claude Opus 4.5 | RISC-V | HT4 | X | X | E | N | E |
E: detection evaded. X: detection not evaded. S: syntax error or testbench failure. N: no further attempt after an evasion. Transcribed by hand from the source table and not yet independently checked.
Source audit
1 and2 are the primary sources. The3 holds the codebase, trained model weights, logs, and vulnerable designs, and is the reference for any artefact inspection.
| Source | Supports | Does not establish |
|---|---|---|
| TrojanGYM v3 (arXiv:2601.17178v3) | Framework design, threat model, Table III structure, the 64-case scope, the 36% headline, and attempt-level outcomes. | Independent validation of this transcription, or resolution of the Gemini narrative discrepancy. |
| TrojanWhisper (arXiv:2412.07636) | LLM-based detection and localisation results, degradation under perturbation, and the decline in localisation accuracy. | That the field as a whole lacks clean-module evaluation. |
| TrojanGYM repository | Codebase, trained model weights, logs, and vulnerable designs. | That the transcription matches the released artefacts, which requires artefact inspection. |
| Claim under review | Assessment | Qualification required |
|---|---|---|
| Current TrojanGYM evaluates only three base designs | Rejected for inspected v3 | v3 adds RISC-V. |
| This field has no clean-design training examples | Rejected | The inspected setup reports 884 clean training designs. |
| Table III terminal counts are E23/X14/S27 | Derived from manual transcription | Requires independent row check; not raw experiment logs. |
| 64% non-evasion equals detector sensitivity on valid inputs | Not established | Complement includes terminal syntax/testbench failure. |
| Gemini attempt-two prose and table agree | Potential inconsistency | Three table successes by attempt 2; clarify before formal correction. |
| The paper's 36% overall evasion figure is wrong | Rejected | 23/64 is consistent with a rounded 36%. |
| The Gemini attempt-two narrative is wrong | Not established | Requires artifact inspection and author clarification. |
| Testbench success proves functional equivalence | Rejected | Testbench success does not establish exhaustive equivalence. |
| The fourth attempt is useless | Rejected | The paper describes additional attempts as recovery opportunities for challenging cases. |
From the claim audit kept with the dossiers. "Rejected" means the source review does not support the claim as worded.
The proposed study at a glance
Show the source reanalyze_table.py
"""Reanalyze the bundled manual transcription; this does not run TrojanGYM.
Usage: python reanalyze_table.py data/trojangym_v3_table_iii_transcription.csv
"""
import csv,sys,json
from collections import Counter
with open(sys.argv[1],newline='',encoding='utf-8') as f: rows=list(csv.DictReader(f))
assert len(rows)==64
assert len({(r['model'],r['design'],r['trojan_type']) for r in rows})==64
for r in rows:
attempts=[r['attempt_'+str(i)] for i in range(1,5)]
terminal=next(x for x in reversed(attempts) if x!='N')
assert terminal==r['terminal_status']
assert all(x in {'E','X','S','N'} for x in attempts)
if 'N' in attempts:
first_n=attempts.index('N'); assert 'E' in attempts[:first_n]
if 'E' in attempts:
e=attempts.index('E'); assert all(x=='N' for x in attempts[e+1:])
counts=Counter(r['terminal_status'] for r in rows)
assert counts=={'E':23,'X':14,'S':27}
summary={'source':'TrojanGYM v3 Table III; manual transcription',
'terminal_status_counts':dict(counts),
'end_to_end_evasion_fraction':counts['E']/len(rows),
'terminal_E_or_X_conditional_evasion_fraction':counts['E']/(counts['E']+counts['X']),
'cumulative_evasion':{str(k):sum(any(r['attempt_'+str(j)]=='E' for j in range(1,k+1)) for r in rows) for k in range(1,5)},
'limits':'Descriptive table arithmetic, not reproduction, detector sensitivity, or a representative sample.'}
print(json.dumps(summary,indent=2))
Sources
- TrojanGYM v3, 19 August 2026arxiv.orgScope of review: Primary preprint; methods, training data, and reported outcomes inspected. 64 rows manually transcribed from retrieved table; no independent transcription check.
- TrojanWhisper accessible manuscriptarxiv.orgScope of review: Primary manuscript; paper-specific limits, not a claim about every revision.
- DfX-NYUAD/TrojanGYM repositorygithub.com







