[논문 리뷰] Unlocking Hardware Security Assurance: The Potential of LLMs
논문은 NSPG를 제시합니다. NSPG는 HS-BERT를 활용하는 NLP 기반 프레임워크로 SoC 문서에서 하드웨어 보안 특성을 자동으로 추출하여 취약점 탐지와 버그 발견을 가능하게 하며, OpenTitan에서 1,723문장에서 326개의 특성을 식별하고 여덟 개의 버그를 찾아내며, ChatGPT보다 약 15% 정도 더 우수합니다.
System-on-Chips (SoCs) form the crux of modern computing systems. SoCs enable high-level integration through the utilization of multiple Intellectual Property (IP) cores. However, the integration of multiple IP cores also presents unique challenges owing to their inherent vulnerabilities, thereby compromising the security of the entire system. Hence, it is imperative to perform hardware security validation to address these concerns. The efficiency of this validation procedure is contingent on the quality of the SoC security properties provided. However, generating security properties with traditional approaches often requires expert intervention and is limited to a few IPs, thereby resulting in a time-consuming and non-robust process. To address this issue, we, for the first time, propose a novel and automated Natural Language Processing (NLP)-based Security Property Generator (NSPG). Specifically, our approach utilizes hardware documentation in order to propose the first hardware security-specific language model, HS-BERT, for extracting security properties dedicated to hardware design. To evaluate our proposed technique, we trained the HS-BERT model using sentences from RISC-V, OpenRISC, MIPS, OpenSPARC, and OpenTitan SoC documentation. When assessedb on five untrained OpenTitan hardware IP documents, NSPG was able to extract 326 security properties from 1723 sentences. This, in turn, aided in identifying eight security bugs in the OpenTitan SoC design presented in the hardware hacking competition, Hack@DAC 2022.
연구 동기 및 목표
- 다중 IP 코어를 가진 SoC의 강건한 하드웨어 보안 특성 생성을 위한 도전과제 해결.
- 하드웨어 도메인 BERT(HS-BERT)를 활용해 설계 문서로부터 보안 특성을 추출하는 자동화된 NLP 기반 특성 생성기(NSPG)를 개발합니다.
- HS-BERT 및 시퀀스 분류기를 학습시키기 위한 도메인 특화 데이터 증가 및 수정 기법을 창출합니다.
- 새로운 OpenTitan 문서에 대해 NSPG를 검증하고 ChatGPT와 비교하여 Hack@DAC 2022에서의 실용적 버그 발견 사례를 시연합니다.
제안 방법
- 데이터 증가, 도메인 적응 사전 학습(HS-BERT)을 활용한 하드웨어 문서에서의 마스킹 언어 모델링, 그리고 시퀀스 분류 모델(SCM)을 포함하는 NSPG를 구성합니다.
- 하드웨어 문서 데이터셋을 구성합니다: D_pre(15,583문장에서 MLM 사전 학습), D_cls(보안-특성 여부에 대한 4,427 라벨링 문장), D_val(언더밋(validation) unseen에 대한 708 라벨링 문장).
- 데이터 증가(무작위 교환, 무작위 삭제, 동의어 대체, 무작위 삽입) 및 도메인 특화 조각 삽입으로 학습 데이터를 풍부하게 만듭니다.
- 레이블된 데이터에서 HS-BERT로 SCM을 미세 조정하여 문장을 보안 특성과 관련 있는지 여부로 분류하고 최적의 결과를 얻기 위해 MOT 기반 데이터 수정을 선택합니다.
- HS-BERT를 일반 BERT 및 SciBERT와 구성별로 비교합니다(베이스라인, MT, MOT, MTT, MOTMT) 최적의 모델을 선택합니다.
- OpenTitan/OpenTitan 파생 문서에서 평가하고 특성 추출을 시연한 뒤, 이 특성을 OpenTitan 설계의 취약점 탐지에 적용합니다.
실험 결과
연구 질문
- RQ1NSPG가 SoC 문서에서 하드웨어 보안 특성을 자동으로 마이닝하고 생성할 수 있나요?
- RQ2도메인 데이터 증가를 갖춘 하드웨어 도메인 튜닝된 BERT(HS-BERT)는 이 작업에서 일반 BERT 모델과 비교하여 어떠한 성능 차이를 보이나요?
- RQ3데이터 수정 기법이 보안 특성 분류 성능에 미치는 영향은 무엇인가요?
- RQ4생성된 특성이 OpenTitan 설계에서 실제 취약점을 드러내고 베이스라인 또는 비도메인 모델보다 우수한가요?
주요 결과
- NSPG는 unseen OpenTitan 문서에서 1,723문장에서 326개의 보안 특성을 추출했습니다.
- Hack@DAC 2022 OpenTitan 설계에서 NSPG가 생성한 특성을 사용하여 여덟 개의 보안 버그를 식별했습니다.
- NSPG는 OpenTitan 문서에서 보안 특성 식별 측면에서 ChatGPT보다 약 15% 우수했습니다.
- HS-BERT 변형 중 MOT 수정은 OpenTitan 데이터에서(82% 정확도, 평균 90% 재현율) 최상의 검증 성능을 보였습니다.
- 검증 세트에서 특성 추출 작업에서 HS-BERT가 일반 BERT 및 SciBERT보다 정확도와 재현율이 우수했습니다.
- MOT-HS-BERT 하에서 OpenTitan, RISCV, OpenRISC의 검증 정확도는 각각 81.5%, 79.1%, 88.3%에 이르렀고 재현율은 각각 93%, 90.1%, 87%에 달했습니다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.