Skip to main content
QUICK REVIEW

[论文解读] DIVAS: An LLM-based End-to-End Framework for SoC Security Analysis and Policy-based Protection

Sudipta Paria, Aritra Dasgupta|arXiv (Cornell University)|Aug 14, 2023
Physical Unclonable Functions (PUFs) and Hardware SecurityComputer Science被引用 14
一句话总结

DIVAS 提出了一种端到端框架,使用大语言模型从 SoC 规范中识别 CWEs,生成 SVA,并将其翻译为由 RTL 级构造实现并由开放源代码 SoC 基准验证的安全策略。

ABSTRACT

Securing critical assets in a bus-based System-On-Chip (SoC) is imperative to mitigate potential vulnerabilities and prevent unauthorized access, ensuring the integrity, availability, and confidentiality of the system. Ensuring security throughout the SoC design process is a formidable task owing to the inherent intricacies in SoC designs and the dispersion of assets across diverse IPs. Large Language Models (LLMs), exemplified by ChatGPT (OpenAI) and BARD (Google), have showcased remarkable proficiency across various domains, including security vulnerability detection and prevention in SoC designs. In this work, we propose DIVAS, a novel framework that leverages the knowledge base of LLMs to identify security vulnerabilities from user-defined SoC specifications, map them to the relevant Common Weakness Enumerations (CWEs), followed by the generation of equivalent assertions, and employ security measures through enforcement of security policies. The proposed framework is implemented using multiple ChatGPT and BARD models, and their performance was analyzed while generating relevant CWEs from the SoC specifications provided. The experimental results obtained from open-source SoC benchmarks demonstrate the efficacy of our proposed framework.

研究动机与目标

  • 使用 LLM 知识库自动识别来自 SoC 规范的相关硬件 CWE。
  • 将识别出的 CWE 映射到经过精心整理的 Extensive CWE 数据库,用于总线级和 IP 级漏洞。
  • 为检测到的 CWE 生成并验证 SystemVerilog 断言(SVA)。
  • 将 SVA 转换为三元组安全策略,并通过 RTL 级实现或集中安全模块进行强制执行。

提出的方法

  • 从用户提供的 JSON 形式的 SoC 规范生成基于设计规格的查询。
  • 使用 LLM(如 ChatGPT 或 BARD)将查询映射到候选 CWE,并使用余弦相似性和结构检查通过 Extensive CWE 数据库对其进行过滤。
  • 为每个相关 CWE 和 IP/总线上下文创建 SVA,并通过仿真(例如 Synopsys VCS)进行验证。
  • 将已激活的 SVA 转换为三元组安全策略(<谓词,时序,行动>),并通过集中安全模块或使用 RTL 代码的顶层总线包装实现强制执行。
  • 提供一个工作流,可在总线级和 IP 级接口中整合策略执行,利用 DiSPEL 工具进行策略生成和执行。

实验结果

研究问题

  • RQ1LLMs 在从通用 SoC 规范与假设中识别相关硬件 CWE方面的有效性如何?
  • RQ2是否可以使用对 Extensive CWE 数据库的过滤机制可靠地选择与给定 SoC 情境相关的总线级和 IP 级 CWE?
  • RQ3LLM 生成的 SVA 在语法上是否正确且可用于前硅仿真和形式验证?
  • RQ4如何将明确的安全需求转化为可执行的三元组安全策略并在 RTL 级实施?
  • RQ5在自动化和执行质量方面,DIVAS 在开放源代码的 SoC 基准上的总体可行性如何?

主要发现

  • DIVAS 使用 LLM 和对 Extensive CWE 数据库的过滤步骤自动识别来自 SoC 规范的 CWE。
  • 一种过滤算法使用余弦相似性将 LLM 生成的 CWE 映射到一组相关的硬件/SoC CWE 的经过筛选集。
  • LLMs 可以为识别出的 CWE 生成 SVA,然后通过仿真工具进行验证。
  • SVA 被转换为三元组安全策略,并通过集中模块或带有 RTL 实现的总线级包装器进行强制执行。
  • 该框架在开源 SoC 基准测试中显示出有效性,验证了分析、断言生成和策略执行的端到端流程。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。