Skip to main content
QUICK REVIEW

[논문 리뷰] CyberMetric: A Benchmark Dataset based on Retrieval-Augmented Generation for Evaluating LLMs in Cybersecurity Knowledge

Norbert Tihanyi, Mohamed Amine Ferrag|arXiv (Cornell University)|2024. 02. 12.
Topic ModelingComputer Science인용 수 7
한 줄 요약

CyberMetric은 LLM 지식을 사이버보안 전문가의 지식과 비교 평가하기 위해 80문항의 인간-대-LLM 비교 부분을 포함한 10,000문항의 사이버보안 벤치마크를 도입하고, 다단계 반자동 QA 생성 파이프라인과 광범위한 인간 검증을 사용합니다.

ABSTRACT

Large Language Models (LLMs) are increasingly used across various domains, from software development to cyber threat intelligence. Understanding all the different fields of cybersecurity, which includes topics such as cryptography, reverse engineering, and risk assessment, poses a challenge even for human experts. To accurately test the general knowledge of LLMs in cybersecurity, the research community needs a diverse, accurate, and up-to-date dataset. To address this gap, we present CyberMetric-80, CyberMetric-500, CyberMetric-2000, and CyberMetric-10000, which are multiple-choice Q&A benchmark datasets comprising 80, 500, 2000, and 10,000 questions respectively. By utilizing GPT-3.5 and Retrieval-Augmented Generation (RAG), we collected documents, including NIST standards, research papers, publicly accessible books, RFCs, and other publications in the cybersecurity domain, to generate questions, each with four possible answers. The results underwent several rounds of error checking and refinement. Human experts invested over 200 hours validating the questions and solutions to ensure their accuracy and relevance, and to filter out any questions unrelated to cybersecurity. We have evaluated and compared 25 state-of-the-art LLM models on the CyberMetric datasets. In addition to our primary goal of evaluating LLMs, we involved 30 human participants to solve CyberMetric-80 in a closed-book scenario. The results can serve as a reference for comparing the general cybersecurity knowledge of humans and LLMs. The findings revealed that GPT-4o, GPT-4-turbo, Mixtral-8x7B-Instruct, Falcon-180B-Chat, and GEMINI-pro 1.0 were the best-performing LLMs. Additionally, the top LLMs were more accurate than humans on CyberMetric-80, although highly experienced human experts still outperformed small models such as Llama-3-8B, Phi-2 or Gemma-7b.

연구 동기 및 목표

  • 사이버 보안 지식에 대한 인간 검증 벤치마크를 제시하여 LLM이 다양한 도메인(암호화, 네트워크 보안, 거버넌스 등)을 포괄적으로 평가하도록 동기를 부여합니다.
  • LLMs와 인간 전문가를 결합한 확장 가능한 QA 생성 파이프라인을 구축하여 고품질의 사이버 보안 질문을 생성합니다.
  • 현 모델의 강점과 격차를 강조하며 인간 전문가와 다양한 LLM을 공정하게 비교할 수 있는 프레임워크를 제공합니다.
  • 연구자들이 사이버 보안 특화 LLM의 벤치마크를 설정하고 개발을 가이드할 수 있도록 합니다.

제안 방법

  • 총 580건의 공개 사이버 보안 문서를 수집하여 약 100,000페이지에 달하는 데이터를 확보합니다.
  • 반자동 문제 생성: GPT-3.5가 질문을 만들고 Falcon-180B가 검증자로 작용하며 인간 검증자들이 관련성과 문법을 다듬습니다.
  • 문제의 후처리와 더불어 문법 교정(T5-base) 및 맥락 관련성 점검(Falcon-180B, GPT-4 분석)을 수행합니다.
  • 테스트 단계에서 GPT-4가 잠재적으로 잘못된 항목을 표시하고 인간 검토를 거치며 문제를 다중 답변, 구식 맥락, 불완전한 맥락, 소스 오류, 누락된 참조로 분류합니다.
  • 최종적으로 정확히 10,000개의 문제가 9개 도메인에 배포됩니다(CyberMetric 표).
  • CyberMetric-80: 사이버 보안 전문가가 인간 대 LLM 비교를 위해 선정한 80문항의 검증된 부분이며, 다양한 배경의 30명이 설문에 참여했습니다.
Figure 1: Covered Domains in CyberMetric
Figure 1: Covered Domains in CyberMetric

실험 결과

연구 질문

  • RQ1RQ1: Do current LLMs match or surpass human experts across cybersecurity domains?
  • RQ2RQ2: Which available model offers the best efficiency relative to its size?
  • RQ3RQ3: In which domains do humans still outperform LLMs?

주요 결과

  • GPT-4 achieved the highest mean accuracy on CyberMetric-80 at 95.63%.
  • Among open-source options, Mixtral-8x7B-Instruct and Falcon-180B were strongest performers; Zephyr-7B-beta achieved 80.94% with 7B parameters.
  • LLMs generally outperformed humans on the 80-question survey, but humans showed higher performance in several expert-subject cases and in certain up-to-date or complex topics.
  • CyberMetric-80 results show a mean human accuracy of about 53.83%, with experienced participants scoring ~72.24% and highly experienced experts reaching up to ~88.75% on individual cases.
  • A two-tier evaluation (CyberMetric-80 vs CyberMetric-10,000) serves as a cross-check: larger datasets reveal issues in question accuracy or scope that the expert panel can detect.
  • The study highlights the impact of up-to-date information and retrieval capabilities (RAG) on answering recently published guidelines (e.g., NIST SP 800-63B, BSI TR-02102-1).
Figure 2: Framework for AI-driven question generation methodology, incorporating human validation.
Figure 2: Framework for AI-driven question generation methodology, incorporating human validation.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.