mlsanityData to 14 Oct 2026

TrojanWhisper: Evaluating Pre-trained LLMs to Detect and Localize Hardware Trojans

arXiv 2412.07636 ↗First posted 10 Dec 2024cs.CR cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

Existing Hardware Trojans (HT) detection methods face several critical limitations: logic testing struggles with scalability and coverage for large designs, side-channel analysis requires golden reference chips, and formal verification methods suffer from state-space explosion. The emergence of Large Language Models (LLMs) offers a promising new direction for HT detection by leveraging their natural language understanding and reasoning capabilities. For the first time, this paper explores the potential of general-purpose LLMs in detecting various HTs inserted in Register Transfer Level (RTL) designs, including SRAM, AES, and UART modules. We propose a novel tool for this goal that systematically assesses state-of-the-art LLMs (GPT-4o, Gemini 1.5 pro, and Llama 3.1) in detecting HTs without prior fine-tuning. To address potential training data bias, the tool implements perturbation techniques, i.e., variable name obfuscation, and design restructuring, that make the cases more sophisticated for the used LLMs. Our experimental evaluation demonstrates perfect detection rates by GPT-4o and Gemini 1.5 pro in baseline scenarios (100%/100% precision/recall), with both models achieving better trigger line coverage (TLC: 0.82-0.98) than payload line coverage (PLC: 0.32-0.46). Under code perturbation, while Gemini 1.5 pro maintains perfect detection performance (100%/100%), GPT-4o (100%/85.7%) and Llama 3.1 (66.7%/85.7%) show some degradation in detection rates, and all models experience decreased accuracy in localizing both triggers and payloads. This paper validates the potential of LLM approaches for hardware security applications, highlighting areas for future improvement.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 4 of its 35 references that are in the map. First posted on arXiv 10 Dec 2024.

Builds on

4 of 35 references.

References · 4

  1. 2023LLM for SoC Security: A Paradigm Shiftcited by 22
  2. 2018Hardware Trojan Detection through Information Flow Security Verificationcited by 6
  3. 2019Socio-network Analysis of RTL Designs for Hardware Trojan Localizationcited by 2
  4. 2022Golden Reference-Free Hardware Trojan Localization using Graph Convolutional Networkcited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

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. 2024Trojan Detection in Large Language Models: Insights from The Trojan Detection Challenge
  3. 2026SecureRAG-RTL: A Retrieval-Augmented, Multi-Agent, Zero-Shot LLM-Driven Framework for Hardware Vulnerability Detection
  4. 2022AdaTest:Reinforcement Learning and Adaptive Sampling for On-chip Hardware Trojan Detection
  5. 2025TROJAN-GUARD: Hardware Trojans Detection Using GNN in RTL Designs
  6. 2026HarmChip: Evaluating Hardware Security Centric LLM Safety via Jailbreak Benchmarking
  7. 2025Towards LLM-based Root Cause Analysis of Hardware Design Failures
  8. 2026SafeTune: Mitigating Data Poisoning in LLM Fine-Tuning for RTL Code Generation