arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.12347cs.CR
收藏

Self-HWDebug:面向硬件安全验证的大语言模型自指令自动化方法

Self-HWDebug: Automation of LLM Self-Instructing for Hardware Security Verification

Mohammad Akyash, Hadi Mardani Kamali

AI总结:

针对硬件安全漏洞调试需人工设计精准指令、耗时费力的问题,提出Self-HWDebug框架,利用LLM基于已知CWE漏洞及方案自动生成调试指令,可跨设计解决同类漏洞,减少人工投入并提升调试质量。

摘要:

经过指令微调的大语言模型(LLM)的兴起标志着人工智能(AI)领域的重大进步,这类模型专为响应特定提示而定制。尽管这类模型应用广泛,但将其用于调试硬件设计(即寄存器传输语言(RTL)模块,尤其是片上系统(SoC)层级的设计)中的安全漏洞仍面临巨大挑战。其中一个核心问题是,需要精准设计的指令来定位并修复漏洞,这需要人类专家投入大量时间并具备专业知识。\n针对这一挑战,本文提出了Self-HWDebug这一创新框架,该框架利用LLM自动生成所需的调试指令。在Self-HWDebug中,框架会先获取一组来自最关键的硬件通用缺陷枚举(CWE)列表的已识别漏洞及其修复方案,随后提示LLM为这类修复生成针对性指令。LLM生成的指令随后会被用作参考,用于解决属于同一CWE类别但完全不同的设计中的漏洞,有效证明了该框架能够将解决方案推广至相关安全问题。Self-HWDebug通过利用模型自身的输出来指导调试,大幅减少了人工干预。经全面测试验证,Self-HWDebug不仅能够减少专家的工作量和时间投入,甚至还能提升调试过程的质量。

英文摘要:

The rise of instruction-tuned Large Language Models (LLMs) marks a significant advancement in artificial intelligence (AI) (tailored to respond to specific prompts). Despite their popularity, applying such models to debug security vulnerabilities in hardware designs, i.e., register transfer language (RTL) modules, particularly at system-on-chip (SoC) level, presents considerable challenges. One of the main issues lies in the need for precisely designed instructions for pinpointing and mitigating the vulnerabilities, which requires substantial time and expertise from human experts. In response to this challenge, this paper proposes Self-HWDebug, an innovative framework that leverages LLMs to automatically create required debugging instructions. In Self-HWDebug, a set of already identified bugs from the most critical hardware common weakness enumeration (CWE) listings, along with mitigation resolutions, is provided to the framework, followed by prompting the LLMs to generate targeted instructions for such mitigation. The LLM-generated instructions are subsequently used as references to address vulnerabilities within the same CWE category but in totally different designs, effectively demonstrating the framework's ability to extend solutions across related security issues. Self-HWDebug significantly reduces human intervention by using the model's own output to guide debugging. Through comprehensive testing, Self-HWDebug proves not only to reduce experts' effort/time but also to even improve the quality of the debugging process.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑