Skip to main content
QUICK REVIEW

[Paper Review] CYBERSECEVAL 3: Advancing the Evaluation of Cybersecurity Risks and Capabilities in Large Language Models

Shengye Wan, Cyrus Nikolaidis|arXiv (Cornell University)|Aug 2, 2024
Topic ModelingComputer Science7 citations
TL;DR

CyberSecEval 3 introduces a comprehensive benchmark suite evaluating eight security risks and capabilities of LLMs, focusing on risks to third parties and to developers/users, including new offensive security capabilities and publicly releasing guardrails like Code Shield, Prompt Guard, and Llama Guard 3.

ABSTRACT

We are releasing a new suite of security benchmarks for LLMs, CYBERSECEVAL 3, to continue the conversation on empirically measuring LLM cybersecurity risks and capabilities. CYBERSECEVAL 3 assesses 8 different risks across two broad categories: risk to third parties, and risk to application developers and end users. Compared to previous work, we add new areas focused on offensive security capabilities: automated social engineering, scaling manual offensive cyber operations, and autonomous offensive cyber operations. In this paper we discuss applying these benchmarks to the Llama 3 models and a suite of contemporaneous state-of-the-art LLMs, enabling us to contextualize risks both with and without mitigations in place.

Motivation & Objective

  • Provide transparent, empirical measurements of cybersecurity risks and capabilities for large language models (LLMs).
  • Extend prior CyberSecEval work to cover offensive security aspects such as automated social engineering and autonomous cyber operations.
  • Publicly release non-manual evaluation elements and guardrails to enable transparency, reproducibility, and community contributions.

Proposed method

  • Benchmark eight cybersecurity risks across two categories: risks to third parties and risks to developers/end users.
  • Use human-in-the-loop and judge LLM assessments to measure spear-phishing risk, uplift in manual cyber operations, autonomous offensive operations, and autonomous vulnerability discovery.
  • Compare Llama 3 models (405B, 70B, 8B) with contemporaries (GPT‑4 Turbo, Qwen 2-72b-instruct, Mixtral 8x22B, etc.).
  • Publicly release evaluation scripts, test sets, and guardrails (Code Shield, Prompt Guard, Llama Guard 3).
  • Assess risks with and without guardrails to show mitigation effects.
Figure 1: Overview of risks evaluated, evaluation approach, our limitations, and our results in evaluating Llama 3 with CyberSecEval. We have publicly released all non-manual evaluation elements within CyberSecEval for transparency, reproducibility, and to encourage community contributions. We also
Figure 1: Overview of risks evaluated, evaluation approach, our limitations, and our results in evaluating Llama 3 with CyberSecEval. We have publicly released all non-manual evaluation elements within CyberSecEval for transparency, reproducibility, and to encourage community contributions. We also

Experimental results

Research questions

  • RQ1What are the cybersecurity risks and capabilities of state-of-the-art LLMs across two risk categories (third-party risks and developer/end-user risks)?
  • RQ2How do Llama 3 models compare to other top models in offensive security tasks such as spear-phishing, manual uplift, autonomous operations, and vulnerability exploitation?
  • RQ3Can guardrails (Code Shield, Prompt Guard, Llama Guard 3) meaningfully mitigate these risks in practical deployments?

Key findings

  • Llama 3 405B can automate moderately persuasive spear-phishing attacks comparable to GPT-4 Turbo and Qwen 2-72b-instruct; mitigation via guardrails reduces risk.
  • In a human-subject uplift study, Llama 3 405B did not show a statistically significant improvement over web search baselines in speeding up offensive network operations.
  • Autonomous cyber operations with Llama 3 70B/405B showed limited capability; no robust strategic planning or exploitation success observed in 85 test runs.
  • Among tested models, Llama 3 405B bested GPT-4 Turbo by about 23% on small-scale program vulnerability exploitation challenges, but this is not a breakthrough.
  • Insecure coding risk persists across models; Llama 3 405B produced higher insecure-code rates in instruct-based tests than GPT-4 Turbo (38.57% vs 35.24%), though Code Shield reduces risk.
  • Prompt injection susceptibility is common across models (ASR 20-40%), with non-English injections and visual/multimodal factors not fully covered; Prompt Guard significantly lowers textual prompt-injection risk.
Figure 2: An example dialogue from our automated social engineering evaluation, between Llama 3 405b and an LLM-simulated phishing victim where the Llama 3 405b attacker reasons about the simulated victim’s personal attributes to execute a strategy to persuade them to download and open a malicious a
Figure 2: An example dialogue from our automated social engineering evaluation, between Llama 3 405b and an LLM-simulated phishing victim where the Llama 3 405b attacker reasons about the simulated victim’s personal attributes to execute a strategy to persuade them to download and open a malicious a

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.