arXiv:2610.02544cs.CROct 2026

Manuscript Offprint

arXiv:2610.02544

CITADEL: CWE-Guided Insertion of Hardware Trojans via Analysis of DFG-Enabled LLMs

Jayanth Thangellamudi, Raghul Saravanan, Sudipta Paria, Swarup Bhunia, Sai Manoj P D

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Jayanth Thangellamudi*, Raghul Saravanan*, Sudipta Paria†, Swarup Bhunia†, and Sai Manoj P D*

*Department of Electrical and Computer Engineering, George Mason University, Fairfax, VA

†Department of Electrical and Computer Engineering, University of Florida, Gainesville, FL

jthangel@gmu.edu, rsaravan@gmu.edu, sudiptaparia@ufl.edu, swarup@ece.ufl.edu, spudukot@gmu.edu

Abstract—The increasing sophistication of Hardware Trojans (HTs) and system-level vulnerabilities poses significant risks to modern integrated circuits. However, constructing realistic HT scenarios, remains a substantial burden: researchers must manually analyze complex RTL structures, identify plausible weaknesses, and craft stealthy, synthesizable insertions that preserve functional correctness. This paper introduces CITADEL (CWE-Guided Insertion of Trojans via Analysis of DFG-Enabled LLMs), a framework that leverages Large Language Models (LLMs) and Data Flow Graphs (DFGs) to automate CWE-grounded HT synthesis. CITADEL uses structured CWE semantics together with DFG-derived structural context to assist the user in identifying relevant vulnerabilities, localize the module surrounding the chosen insertion point, and perform intent-conditioned RTL modification. The framework produces minimal, synthesizable, and interface-preserving HTs with ultra-rare triggers. Experimental evaluation across diverse RTL designs demonstrates that all generated HTs are 100% syntactically correct, remain undetectable under large-scale random simulation, and are functionally triggerable under their intended activation conditions. These results highlight CITADEL as a scalable and principled method for generating realistic HT benchmarks.

Index Terms—Hardware Trojans, LLM, RTL, RTL Trojans

I. INTRODUCTION

The globalization of the semiconductor supply chain has fundamentally reshaped integrated circuit (IC) design and manufacturing. To remain competitive, design houses increasingly depend on third-party intellectual property (3PIP) blocks and fabrication at external foundries [1], [2]. Establishing and maintaining advanced fabrication facilities is prohibitively expensive, often requiring investments of several billions of dollars [3]. As a result, outsourcing has become the industry standard, lowering costs and accelerating time-to-market. However, this distributed model also introduces significant security risks, since untrusted entities at different stages of the pipeline may alter the design [4]. Among these risks, Hardware Trojans (HTs) remain one of the most insidious threats: malicious circuit modifications that can remain dormant during validation only activate under rare conditions to compromise confidentiality, integrity, or availability [5].

To study and evaluate such threats, numerous HT insertion frameworks have been proposed; however, as discussed in Section II-C, they suffer from fundamental limitations. Existing approaches span manual netlist edits, semi-automated FPGA-level perturbations, and probabilistic or ML-based insertion strategies [6]–[8]. Despite this apparent diversity, most frameworks still rely on handcrafted HT patterns or require substantial manual effort, limiting their scalability to the structural complexity of modern RTL designs. Furthermore, their lack of explicit awareness of module hierarchy and data-flow relationships restricts the realism of the HTs they generate. Public benchmarks such as Trust-Hub [9] offer valuable case studies, but they remain narrow, manually curated examples that fail to capture the breadth of vulnerabilities present in modern systems. These limitations collectively motivate the need for a principled, scalable methodology capable of generating realistic HT scenarios directly grounded in standardized vulnerability taxonomies.

A natural foundation for enabling systematic HT construction is the Common Weakness Enumeration (CWE), a curated vulnerability catalog maintained by MITRE [10]. CWE encompasses both software and hardware weaknesses, with hardware entries describing issues such as improper access control, unprotected communication paths, and insecure state machines. By providing a structured classification of vulnerabilities, CWE serves as an important foundation for hardware security research. Aligning HT scenarios with CWE entries ensures coverage across a broad threat space, comparability across research efforts, and reproducibility anchored in a widely recognized standard. Despite these advantages, applying CWE directly to hardware designs remains challenging, as mapping abstract vulnerability categories to concrete RTL constructs and signal dependencies is still largely manual and expertise-driven, which limits scalability.

Advances in Large Language Models (LLMs) open new opportunities to address this challenge [11]. LLMs have demonstrated strong capabilities in semantic reasoning, program analysis, and code generation across structured and unstructured data [12], [13]. In hardware design, they have already been applied to tasks such as RTL synthesis, verification, and bug detection [14], showing their ability to interpret domain-specific representations. Extending these capabilities to hardware security enables a new research direction: LLMs can parse Data Flow Graphs (DFGs) derived from hardware designs, reason about their structure, and align design-level features with CWE descriptions. This enables not only the identification of vulnerabilities but also the generation of CWE-guided HT scenarios that are realistic, stealthy, and reproducible. By reframing HT analysis as a reasoning and generation task, LLMs provide a pathway to automate what has historically been manual, error-prone, and limited in scope.

The cardinal contributions of this paper are summarized as follows:

  • We present the first HT-insertion framework that integrates DFGs with the CWE hardware taxonomy to generate vulnerability-grounded HT scenarios.

  • We develop an LLM-assisted CWE applicability analysis that interprets DFG structural cues to provide rationale for vulnerability relevance, supporting the user in selecting suitable CWE mechanisms for HT insertion.

  • We propose an intent-conditioned RTL modification pipeline in which the LLM, guided by DFG context and strict prompt constraints, synthesizes minimal, synthesizable, and module-localized HTs aligned with CWE.

  • We validate the framework on diverse RTL designs through syntax checking, formal trigger reachability, and large-scale random simulation, demonstrating correctness, reachability, and strong stealthiness.

References (39)