Skip to main content
QUICK REVIEW

[Paper 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 Science14 citations
TL;DR

DIVAS presents an end-to-end framework that uses LLMs to identify CWEs from SoC specifications, generate SVAs, and translate them into security policies enforced by RTL-level constructs, validated on open-source SoC benchmarks.

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.

Motivation & Objective

  • Automate identification of relevant hardware CWEs from SoC specifications using LLM knowledge bases.
  • Map identified CWEs to a curated Extensive CWE database for bus- and IP-level vulnerabilities.
  • Generate and verify SystemVerilog Assertions (SVAs) for the detected CWEs.
  • Translate SVAs into 3-tuple security policies and enforce them via RTL-level implementations or a central security module.

Proposed method

  • Generate design-spec-based queries from user-provided SoC specifications in JSON form.
  • Use LLMs (ChatGPT or BARD) to map queries to candidate CWEs and filter them with an Extensive CWE DB using cosine similarity and structural checks.
  • Create SVAs for each relevant CWE and IP/Bus context, and verify them via simulation (e.g., Synopsys VCS).
  • Translate activated SVAs into 3-tuple security policies (<predicate, timing, action>) and implement enforcement through a centralized security module or top-level bus wrapper using RTL code.
  • Provide a workflow that can incorporate policy enforcement across bus-level and IP-level interfaces, leveraging the DiSPEL tool for policy generation and enforcement.

Experimental results

Research questions

  • RQ1How effectively can LLMs identify relevant hardware CWEs from generic SoC specifications and assumptions?
  • RQ2Can a filtering mechanism using an extensive CWE database reliably select bus- and IP-level CWEs relevant to a given SoC context?
  • RQ3Are LLM-generated SVAs syntactically correct and verifiable for pre-silicon simulation and formal verification?
  • RQ4How can asserted security requirements be translated into actionable 3-tuple security policies and enforced at RTL level?
  • RQ5What is the overall viability of DIVAS across open-source SoC benchmarks in terms of automation and enforcement quality?

Key findings

  • DIVAS automates CWE identification from SoC specifications using LLMs and a filtering step against an extensive CWE DB.
  • A filtering algorithm uses cosine similarity to map LLM-generated CWEs to a curated set of relevant HW/SOC CWEs.
  • LLMs can generate SVAs for identified CWEs, which are then verified via simulation tools.
  • SVAs are transformed into 3-tuple security policies and enforced through a centralized module or bus-level wrapper with RTL implementations.
  • The framework demonstrates efficacy on open-source SoC benchmarks, validating the end-to-end flow of analysis, assertion generation, and policy enforcement.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.