VeriCWEty: Embedding enabled Line-Level CWE Detection in Verilog

Prithwish Basu Roy, Zeng Wang, Anatolii Chuvashlov, Weihua Xiao, Johann Knechtel +2 more
4/15/2026
cs.ARcs.AIcs.CR

No confident code implementation found for this paper.

Abstract

Large Language Models (LLMs) have shown significant improvement in RTL code generation. Despite the advances, the generated code is often riddled with common vulnerabilities and weaknesses (CWEs) that can slip by untrained eyes.

Show full abstract

Attackers can often exploit these weaknesses to fulfill their nefarious motives. Existing RTL bug-detection techniques rely on rule-based checks, formal properties, or coarse-grained structural analysis, which either fail to capture semantic vulnerabilities or lack precise localization. In our work, we bridge this gap by proposing an embedding-based bug-detection framework that detects and classifies bugs at both module and line-level granularity. Our method achieves about 89% precision in identifying common CWEs such as CWE-1244 and CWE-1245, and 96% accuracy in detecting line-level bugs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{roy2026vericwety,
  title  = {VeriCWEty: Embedding enabled Line-Level CWE Detection in Verilog},
  author = {Prithwish Basu Roy and Zeng Wang and Anatolii Chuvashlov and Weihua Xiao and Johann Knechtel and Ozgur Sinanoglu and Ramesh Karri},
  year   = {2026},
  eprint = {2604.15375},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.15375v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.15375.svg)](https://codeofpaper.com/paper/2604.15375)

Discussion