SecID: An LLM-Guided Framework for Threat-Aware Secondary Asset Identification with Quantitative RTL Analysis

Md Ajoad Hasan, Dipayan Saha, Upoma Das, Sujan Kumar Saha, Mark Tehranipoor, Farimah FarahmandiarXiv 2026

TL;DR

Securing a computer chip means protecting its crown jewels (like cryptographic keys), yet attackers often strike hidden "side doors"—obscure internal wires and control registers that quietly steer or carry sensitive data. This paper introduces SecID, a multi-agent system that pairs traditional chip-design tools with Large Language Models (LLMs) to automatically hunt down these vulnerable secondary signals before a chip is ever manufactured. By grounding AI reasoning in hard numbers from circuit simulations, SecID pinpoints exactly how an internal wire could be exploited under specific threats, turning hardware security from guesswork into an explainable science.

What Problem Does This Paper Address?

Imagine guarding a bank vault. You obviously lock the main vault door—that’s your primary asset. In hardware design, primary assets are obvious targets like encryption keys, privilege states, or a processor’s program counter (which tracks which instruction runs next).

However, modern Systems-on-Chip (SoCs) are sprawling cities of logic gates written in Register-Transfer Level (RTL) code—the blueprint of hardware before it becomes physical silicon. An attacker doesn't need to crack the vault door if they can flip a tiny multiplexer switch down the hall that tricks the processor into jumping to malicious code, or read a temporary buffer where secret key bits briefly rest. These surrounding internal signals are secondary assets.

Fig. 2. Overview of Asset Types in an AES Encryption Design

Finding secondary assets has historically required exhausting manual inspection by veteran engineers. Simply tracing every wire connected to a secret key doesn't work—hundreds of wires might touch it structurally, yet most can't actually hurt it, or only matter under a specific type of attack (for instance, a wire vulnerable to a physical laser glitch might be completely useless for an unauthorized software read). On the flip side, asking an LLM to read RTL code and guess the vulnerabilities leads to inconsistent, irreproducible hallucinations. Hardware engineers need an automated, repeatable way to find secondary assets tailored to specific threats, complete with a clear explanation of why each signal is dangerous.

Methods

SecID tackles this by dividing the detective work across five specialized agents, blending deterministic Electronic Design Automation (EDA) tools with LLM semantic reasoning (specifically GPT-5.6-Sol):

Fig. 3. Overview of the SecID workflow. Each dashed region represents an agent
  1. Initial Candidate Generation: Using standard graph analysis, Agent 1 maps out a Program Dependence Graph from the RTL code, grabbing every signal structurally connected to the primary asset (following outputs for confidentiality secrets, and inputs for integrity/availability targets).
  2. Functional-Influence Pruning: Structural connection doesn't mean real impact. Agent 2 converts local circuit cones into Boolean logic and computes static Hamming approximations—essentially measuring how strongly flipping a candidate wire can mathematically ripple through logic gates and branch conditions to alter the primary asset. Weak links get cut early.
  3. Threat-Feature Extraction: This is where threat-awareness kicks in. Covering the classic Confidentiality, Integrity, and Availability (CIA) triad, SecID evaluates four threat models: Information Leakage, Unauthorized Access, Fault Injection, and Denial-of-Service. An LLM writes targeted simulation scenarios and testbenches, while standard hardware simulators measure two concrete, quantitative metrics per threat (such as Shannon mutual information over time for leakage, or fault masking rates for glitching).
  4. Attack-Mechanism Generation: Running in parallel with Agent 3, Agent 4 feeds small clusters of surviving signals and their local RTL code to an LLM to map out semantic attack stories: what preconditions are needed, how the signal propagates, and what goes wrong.
  5. Final LLM Reasoning: Agent 5 acts as the judge. It only flags a signal as a true secondary asset when the quantitative simulation scores from Agent 3 and the semantic attack story from Agent 4 agree.

Datasets

Because no standardized benchmark exists for secondary hardware assets, the authors evaluated SecID across seven open-source RTL designs spanning VHDL, Verilog, and SystemVerilog:

  • 3 Processors: openMSP430, NEORV32, and CV32E40P.
  • 2 Peripherals: APB GPIO and an AXI adapter.
  • 2 Cryptographic Cores: SHA-3 and AES.

Across these designs, they tested 12 primary-asset/threat combinations, validating four of those cases against reference sets independently curated by human RTL security experts.

Key Insights and Ideas

  • Secondary assets shift with the threat: The exact same primary asset yields different secondary assets depending on how you attack it. Looking at NEORV32's load/store privilege signal, SecID identified 12 secondary assets under Unauthorized Access, but 8 different (only partially overlapping) ones under Fault Injection.
  • Numbers and narratives need each other: In ablation tests, relying purely on LLM attack narratives ("Attack-only") caused the model to over-select plausible-sounding decoys (0.523 precision). Relying purely on simulation numbers ("Feature-only") did better (0.738 precision) but missed subtle context. Combining both jumped precision to 0.962.
  • Crypto cores resist static pruning: In iterative, tangled datapaths like AES and SHA-3, every bit rapidly mixes with every other bit across rounds. As a result, static mathematical pruning (Agent 2) kept 100% of initial candidates, proving that dynamic threat simulation is essential for narrowing down cryptographic assets.

Key Results

SecID dramatically narrows the verification search space—for example, trimming 494 structurally connected signals in the CV32E40P processor down to just 4 critical secondary assets for unauthorized access.

Fig. 5. Summarized statistics of candidate reduction across all case studies.
  • High Accuracy: Against expert-curated ground truth across four case studies, full SecID achieved 0.962 precision and 0.911 recall.
  • Physical & Formal Corroboration: SecID’s analytical fault-susceptibility scores strongly matched industrial stuck-at fault simulations in Synopsys Z01X (Spearman rank correlation $\rho = 0.888$). Formal verification (JasperGold) further confirmed the findings: in CV32E40P, 100% of tested SecID fault checks successfully corrupted the primary asset, compared to just 17.9% for randomly chosen connected wires.
  • Repeatability: Grounding the final LLM decision in deterministic EDA numbers tamed AI randomness, yielding high consistency across five independent runs (mean Jaccard similarity between 0.806 and 0.867).

Limitations and Future Work

  • Bounded Simulation Coverage: Because Agent 3 relies on bounded dynamic simulations rather than exhaustive proofs, its threat scores reflect relative behavior under generated test scenarios—not guaranteed probabilities of attack success. (Though SecID conservatively passes "unresolved" signals forward rather than dropping them.)
  • Crypto Pruning Bottlenecks: As seen in SHA-3 and AES, highly reconvergent round logic defeats Agent 2's static pruning, forcing downstream simulation stages to do all the heavy lifting.
  • Threshold Trade-offs: Agent 2 uses a fixed influence cutoff ($\tau = 0.05$). Raising it to $0.10$ accidentally drops true assets, while lowering it to $0.025$ inflates downstream compute workloads by 20.6%.
  • Downstream Integration: The authors position SecID as a front-end foundation to feed subsequent automated security tasks, such as assertion generation, countermeasure design, and formal verification planning.

Summary updated

BibTeX
@misc{hasan2026secid,
  author = {Md Ajoad Hasan and Dipayan Saha and Upoma Das and Sujan Kumar Saha and Mark Tehranipoor and Farimah Farahmandi},
  title = {{SecID: An LLM-Guided Framework for Threat-Aware Secondary Asset Identification with Quantitative RTL Analysis}},
  year = {2026},
  eprint = {2611.33453},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.33453},
}
Figure