LASHED:结合大语言模型与静态硬件分析以早期检测RTL漏洞
LASHED: LLMs And Static Hardware Analysis for Early Detection of RTL Bugs
AI总结:
LASHED结合大语言模型与静态分析,通过识别资产、消除误报和解释违规来克服彼此局限性,实现早期硬件安全漏洞检测,在87.5%的实例中准确识别出CWEs。
摘要:
虽然静态分析在检测早期硬件安全漏洞方面很有用,但其有效性受限,因为它需要信息来形成检查,且往往无法解释所检测到的漏洞的安全影响。大语言模型可以通过识别相关资产、消除静态分析工具标记的误报,并解释所报告的违规行为来填补这些空白。LASHED结合了这两种方法(LLMs和静态分析),以克服彼此在硬件安全漏洞检测中的局限性。我们在四个开源SoC上针对五种常见弱点枚举(CWEs)调查了我们的方法,并提出了通过更好的提示工程进行改进的策略。我们发现,我们推荐的方案标记的实例中有87.5%是合理的CWEs。上下文学习和要求模型“再思考一次”提高了LASHED的精确度。
英文摘要:
While static analysis is useful in detecting early-stage hardware security bugs, its efficacy is limited because it requires information to form checks and is often unable to explain the security impact of a detected vulnerability. Large Language Models can be useful in filling these gaps by identifying relevant assets, removing false violations flagged by static analysis tools, and explaining the reported violations. LASHED combines the two approaches (LLMs and Static Analysis) to overcome each other's limitations for hardware security bug detection. We investigate our approach on four open-source SoCs for five Common Weakness Enumerations (CWEs) and present strategies for improvement with better prompt engineering. We find that 87.5% of instances flagged by our recommended scheme are plausible CWEs. In-context learning and asking the model to 'think again' improves LASHED's precision.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。