(Security) Assertions by Large Language Models
Rahul Kande (1), Hammond Pearce (2), Benjamin Tan (3), Brendan, Dolan-Gavitt (4), Shailja Thakur (4), Ramesh Karri (4), Jeyavijayan Rajendran, (1) ((1) Texas A&M University, (2) University of New South Wales, (3), University of Calgary, (4) New York University)

TL;DR
This paper explores using large language models to automatically generate security assertions for hardware verification, aiming to improve security verification processes with AI-driven code generation.
Contribution
It introduces an evaluation framework and benchmark suite to assess LLMs' ability to generate hardware security assertions from natural language prompts.
Findings
LLMs can generate assertions with varying accuracy based on prompt detail
The framework enables systematic evaluation of LLMs for hardware security assertion generation
Benchmark suite provides real-world hardware designs for testing assertion generation capabilities
Abstract
The security of computer systems typically relies on a hardware root of trust. As vulnerabilities in hardware can have severe implications on a system, there is a need for techniques to support security verification activities. Assertion-based verification is a popular verification technique that involves capturing design intent in a set of assertions that can be used in formal verification or testing-based checking. However, writing security-centric assertions is a challenging task. In this work, we investigate the use of emerging large language models (LLMs) for code generation in hardware assertion generation for security, where primarily natural language prompts, such as those one would see as code comments in assertion files, are used to produce SystemVerilog assertions. We focus our attention on a popular LLM and characterize its ability to write assertions out of the box, given…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSecurity and Verification in Computing · Software Testing and Debugging Techniques · Adversarial Robustness in Machine Learning
MethodsFocus
