Trusting the Machine: How Secure is LLM-Generated RTL Code?

With the desire for hardware design automation, large language models (LLMs) are being increasingly incorporated into the IC design flow to assist in register transfer level (RTL) generation, IP development acceleration, reduction of time-to-market (TTM), and satisfying the demands of modern applications such as AI accelerators. However, they do not incorporate security considerations when generating the designs. Our initial investigation reveals that RTL code created by leading LLMs such as OpenAI’s ChatGPT [1], Google DeepMind’s Gemini [2], and xAI’s Grok [3] can exhibit important security flaws, such as improper handling of registers, nonsecure datapaths, and missing access controls, that may lead to information leakage or system malfunction in security-critical applications. Of 42 LLM-generated designs on 7 different models, 74% of the designs contained at least one security vulnerability that compromises the confidentiality, integrity, and availability of these designs. Although AI-driven automation presents a significant benefits in hardware design flows, our study indicates that RTL designs are not secure and specific mechanisms should be taken to mitigate vulnerabilities while using the benefits of LLMs. From this paper’s security investigation, we can sufficiently suggest that using CWE-guided prompting, formal property checks, and FSM-level structural validation can help mitigate vulnerabilities during LLM-guided RTL generation.

Authors

Institutions

Publication Details

Published
2025-09-08
DOI
https://doi.org/10.1109/mlcad65511.2025.11189213
Primary Topic
Digital Rights Management and Security
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Trusting the Machine: How Secure is LLM-Generated RTL Code?

Hasan Al-Shaikh, Sujan Kumar Saha, Farimah Farahmandi, Dipayan Saha et al.
Digital Rights Management and Security
article

Trusting the Machine: How Secure is LLM-Generated RTL Code?

Hasan Al-Shaikh, Sujan Kumar Saha, Farimah Farahmandi, Dipayan Saha, Zahin Ibnat, Mark Tehranipoor, Paul E. Calzada, Jingbo Zhou
article en

Abstract

With the desire for hardware design automation, large language models (LLMs) are being increasingly incorporated into the IC design flow to assist in register transfer level (RTL) generation, IP development acceleration, reduction of time-to-market (TTM), and satisfying the demands of modern applications such as AI accelerators. However, they do not incorporate security considerations when generating the designs. Our initial investigation reveals that RTL code created by leading LLMs such as OpenAI’s ChatGPT [1], Google DeepMind’s Gemini [2], and xAI’s Grok [3] can exhibit important security flaws, such as improper handling of registers, nonsecure datapaths, and missing access controls, that may lead to information leakage or system malfunction in security-critical applications. Of 42 LLM-generated designs on 7 different models, 74% of the designs contained at least one security vulnerability that compromises the confidentiality, integrity, and availability of these designs. Although AI-driven automation presents a significant benefits in hardware design flows, our study indicates that RTL designs are not secure and specific mechanisms should be taken to mitigate vulnerabilities while using the benefits of LLMs. From this paper’s security investigation, we can sufficiently suggest that using CWE-guided prompting, formal property checks, and FSM-level structural validation can help mitigate vulnerabilities during LLM-guided RTL generation.

University of Florida (US)
Openalex Percentile: Top 59%
Digital Rights Management and Security
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Trusting the Machine: How Secure is LLM-Generated RTL Code? — Hasan Al-Shaikh, Sujan Kumar Saha, et al. · (2025) | TGRS Research Map | TGRS