CyberSecEval 2: A Wide-Ranging Cybersecurity Evaluation Suite for Large Language Models

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Bhatt, Manish, Chennabasappa, Sahana, Li, Yue, Nikolaidis, Cyrus, Song, Daniel, Wan, Shengye, Ahmad, Faizan, Aschermann, Cornelius, Chen, Yaohui, Kapil, Dhaval, Molnar, David, Whitman, Spencer, Saxe, Joshua
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866913322505338880
author Bhatt, Manish
Chennabasappa, Sahana
Li, Yue
Nikolaidis, Cyrus
Song, Daniel
Wan, Shengye
Ahmad, Faizan
Aschermann, Cornelius
Chen, Yaohui
Kapil, Dhaval
Molnar, David
Whitman, Spencer
Saxe, Joshua
author_facet Bhatt, Manish
Chennabasappa, Sahana
Li, Yue
Nikolaidis, Cyrus
Song, Daniel
Wan, Shengye
Ahmad, Faizan
Aschermann, Cornelius
Chen, Yaohui
Kapil, Dhaval
Molnar, David
Whitman, Spencer
Saxe, Joshua
contents Large language models (LLMs) introduce new security risks, but there are few comprehensive evaluation suites to measure and reduce these risks. We present BenchmarkName, a novel benchmark to quantify LLM security risks and capabilities. We introduce two new areas for testing: prompt injection and code interpreter abuse. We evaluated multiple state-of-the-art (SOTA) LLMs, including GPT-4, Mistral, Meta Llama 3 70B-Instruct, and Code Llama. Our results show that conditioning away risk of attack remains an unsolved problem; for example, all tested models showed between 26% and 41% successful prompt injection tests. We further introduce the safety-utility tradeoff: conditioning an LLM to reject unsafe prompts can cause the LLM to falsely reject answering benign prompts, which lowers utility. We propose quantifying this tradeoff using False Refusal Rate (FRR). As an illustration, we introduce a novel test set to quantify FRR for cyberattack helpfulness risk. We find many LLMs able to successfully comply with "borderline" benign requests while still rejecting most unsafe requests. Finally, we quantify the utility of LLMs for automating a core cybersecurity task, that of exploiting software vulnerabilities. This is important because the offensive capabilities of LLMs are of intense interest; we quantify this by creating novel test sets for four representative problems. We find that models with coding capabilities perform better than those without, but that further work is needed for LLMs to become proficient at exploit generation. Our code is open source and can be used to evaluate other LLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2404_13161
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle CyberSecEval 2: A Wide-Ranging Cybersecurity Evaluation Suite for Large Language Models
Bhatt, Manish
Chennabasappa, Sahana
Li, Yue
Nikolaidis, Cyrus
Song, Daniel
Wan, Shengye
Ahmad, Faizan
Aschermann, Cornelius
Chen, Yaohui
Kapil, Dhaval
Molnar, David
Whitman, Spencer
Saxe, Joshua
Cryptography and Security
Machine Learning
Large language models (LLMs) introduce new security risks, but there are few comprehensive evaluation suites to measure and reduce these risks. We present BenchmarkName, a novel benchmark to quantify LLM security risks and capabilities. We introduce two new areas for testing: prompt injection and code interpreter abuse. We evaluated multiple state-of-the-art (SOTA) LLMs, including GPT-4, Mistral, Meta Llama 3 70B-Instruct, and Code Llama. Our results show that conditioning away risk of attack remains an unsolved problem; for example, all tested models showed between 26% and 41% successful prompt injection tests. We further introduce the safety-utility tradeoff: conditioning an LLM to reject unsafe prompts can cause the LLM to falsely reject answering benign prompts, which lowers utility. We propose quantifying this tradeoff using False Refusal Rate (FRR). As an illustration, we introduce a novel test set to quantify FRR for cyberattack helpfulness risk. We find many LLMs able to successfully comply with "borderline" benign requests while still rejecting most unsafe requests. Finally, we quantify the utility of LLMs for automating a core cybersecurity task, that of exploiting software vulnerabilities. This is important because the offensive capabilities of LLMs are of intense interest; we quantify this by creating novel test sets for four representative problems. We find that models with coding capabilities perform better than those without, but that further work is needed for LLMs to become proficient at exploit generation. Our code is open source and can be used to evaluate other LLMs.
title CyberSecEval 2: A Wide-Ranging Cybersecurity Evaluation Suite for Large Language Models
topic Cryptography and Security
Machine Learning
url https://arxiv.org/abs/2404.13161