Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
97 tokens/sec
GPT-4o
53 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
4 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Fixing Hardware Security Bugs with Large Language Models (2302.01215v1)

Published 2 Feb 2023 in cs.CR

Abstract: Novel AI-based code-writing LLMs such as OpenAI's Codex have demonstrated capabilities in many coding-adjacent domains. In this work we consider how LLMs maybe leveraged to automatically repair security relevant bugs present in hardware designs. We focus on bug repair in code written in the Hardware Description Language Verilog. For this study we build a corpus of domain-representative hardware security bugs. We then design and implement a framework to quantitatively evaluate the performance of any LLM tasked with fixing the specified bugs. The framework supports design space exploration of prompts (i.e., prompt engineering) and identifying the best parameters for the LLM. We show that an ensemble of LLMs can repair all ten of our benchmarks. This ensemble outperforms the state-of-the-art Cirfix hardware bug repair tool on its own suite of bugs. These results show that LLMs can repair hardware security bugs and the framework is an important step towards the ultimate goal of an automated end-to-end bug repair framework.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (5)
  1. Baleegh Ahmad (9 papers)
  2. Shailja Thakur (12 papers)
  3. Benjamin Tan (42 papers)
  4. Ramesh Karri (92 papers)
  5. Hammond Pearce (35 papers)
Citations (32)

Summary

We haven't generated a summary for this paper yet.