mlsanityData to 7 Oct 2026

TrojanGYM: A Detector-in-the-Loop LLM for Adaptive RTL Hardware Trojan Insertion

arXiv 2601.17178 ↗First posted 23 Jan 2026cs.CR cs.AI cs.ARcited by 2

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

Hardware Trojans (HTs) remain a critical threat because learning-based detectors often overfit to narrow trigger/payload patterns and small, stylized benchmarks. We introduce TrojanGYM, an agentic, LLM-driven framework that automatically curates HT insertions to expose detector blind spots. Given high-level HT specifications, a suite of cooperating LLM agents (instantiated with GPT-4, LLaMA-3.3-70B, Gemini-2.5Pro, and Claude Opus 4.5) proposes and refines RTL modifications that realize diverse triggers and payloads without impacting functionality of both the HT and the design under attack. TrojanGYM implements an agentic loop co-designed with HT detectors, in which constraint-aware syntactic checking, testbench-based functional verification, and GNN-based HT detectors provide feedback that iteratively refines HT specifications and insertion strategies to better surface detector blind spots. We further propose Robust-GNN4TJ, a new implementation of GNN4TJ with improved graph extraction, training robustness, and prediction reliability, especially on LLM-generated HT designs. On the most challenging TrojanGYM-generated benchmarks, Robust-GNN4TJ raises HT detection rates from 0% to 60% relative to prior art. We instantiate TrojanGYM on SRAM, AES-128, UART, and RISC-V designs at RTL, and show that it systematically produces diverse, functionally correct HTs that reach up to 68.75% evasion rates against modern GNN-based detectors, revealing robustness gaps that are not apparent when these detectors are evaluated on existing TrustHub-style benchmarks. We release all codes and artifacts at https://github.com/DfX-NYUAD/TrojanGYM.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 23 of its 42 references that are in the map. First posted on arXiv 23 Jan 2026.

Builds on

23 of 42 references.

References · 23

  1. 2024Reinforcement learningcited by 236
  2. 2023VeriGen: A Large Language Model for Verilog Code Generationcited by 197
  3. 2023Chip-Chat: Challenges and Opportunities in Conversational Hardware Designcited by 136
  4. 2024LLMs and the Future of Chip Design: Unveiling Security Risks and Building Trustcited by 18
  5. 2021HW2VEC: A Graph Learning Tool for Automating Hardware Securitycited by 16
  6. 2024RTL-Breaker: Assessing the Security of LLMs against Backdoor Attacks on HDL Code Generationcited by 13
  7. 2025VeriContaminated: Assessing LLM-Driven Verilog Coding for Data Contaminationcited by 12
  8. 2022ATTRITION: Attacking Static Hardware Trojan Detection Techniques Using Reinforcement Learningcited by 11
  9. 2025VeriLeaky: Navigating IP Protection vs Utility in Fine-Tuning for LLM-Driven Verilog Codingcited by 10
  10. 2025SALAD: Systematic Assessment of Machine Unlearning on LLM-Aided Hardware Designcited by 10
  11. 2025DeepRTL2: A Versatile Model for RTL-Related Taskscited by 10
  12. 2023TrojanSAINT: Gate-Level Netlist Sampling-Based Inductive Learning for Hardware Trojan Detectioncited by 8
11 more
  1. 2025NetDeTox: Adversarial and Efficient Evasion of Hardware-Security GNNs via RL-LLM Orchestrationcited by 8
  2. 2025Veritas: Deterministic Verilog Code Synthesis from LLM-Generated Conjunctive Normal Formcited by 7
  3. 2024AttackGNN: Red-Teaming GNNs in Hardware Security Using Reinforcement Learningcited by 6
  4. 2025LockForge: Automating Paper-to-Code for Logic Locking with Multi-Agent Reasoning LLMscited by 5
  5. 2025TrojanLoC: LLM-based Framework for RTL Trojan Localizationcited by 5
  6. 2023Trojan Playground: A Reinforcement Learning Framework for Hardware Trojan Insertion and Detectioncited by 4
  7. 2024SENTAUR: Security EnhaNced Trojan Assessment Using LLMs Against Undesirable Revisionscited by 3
  8. 2024Unleashing GHOST: An LLM-Powered Framework for Automated Hardware Trojan Designcited by 2
  9. 2024TrojanWhisper: Evaluating Pre-trained LLMs to Detect and Localize Hardware Trojanscited by 2
  10. 2025LATENT: LLM-Augmented Trojan Insertion and Evaluation Framework for Analog Netlist Topologiescited by 2
  11. 2025SAND: A Self-supervised and Adaptive NAS-Driven Framework for Hardware Trojan Detectioncited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024SPICED: Syntactical Bug and Trojan Pattern Identification in A/MS Circuits using LLM-Enhanced Detection
  2. 2026SecureRAG-RTL: A Retrieval-Augmented, Multi-Agent, Zero-Shot LLM-Driven Framework for Hardware Vulnerability Detection
  3. 2025MARVEL: Multi-Agent RTL Vulnerability Extraction using Large Language Models
  4. 2026HarmChip: Evaluating Hardware Security Centric LLM Safety via Jailbreak Benchmarking
  5. 2026Blind Spots in the Guard: How Domain-Camouflaged Injection Attacks Evade Detection in Multi-Agent LLM Systems
  6. 2023Trojan Activation Attack: Red-Teaming Large Language Models using Activation Steering for Safety-Alignment
  7. 2026AgentDV: Closed-Loop Agentic AI for Hardware Design Verification
  8. 2025ThreatLens: LLM-guided Threat Modeling and Test Plan Generation for Hardware Security Verification