arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.01335cs.CRcs.AIcs.LG
收藏

CySecBench:基于生成式AI的网络安全聚焦提示数据集,用于大语言模型基准测试

CySecBench: Generative AI-based CyberSecurity-focused Prompt Dataset for Benchmarking Large Language Models

KTH Royal Institute of Technology(瑞典皇家理工学院)

Johan Wahréus, Ahmed Mohamed Hussain, Panos Papadimitratos

AI总结:

本文提出包含12662条网络安全领域越狱提示的数据集CySecBench,并基于提示混淆方法在ChatGPT、Gemini和Claude上验证了其评估价值,成功率分别达65%、88%和17%。

摘要:

大量研究已经探讨了越狱大语言模型(LLMs)以生成有害内容的方法。通常,这些方法使用恶意提示数据集进行评估,这些提示旨在绕过LLM提供商建立的安全策略。然而,现有数据集普遍范围宽泛且具有开放式性质,这可能使越狱有效性的评估变得复杂,特别是在特定领域,尤其是网络安全领域。为了解决这一问题,我们提出并公开发布了CySecBench,这是一个包含12662条提示的综合数据集,专门用于评估网络安全领域的越狱技术。该数据集按10个不同的攻击类型类别组织,采用封闭式提示,以便对越狱尝试进行更一致和准确的评估。此外,我们详细介绍了数据集生成和过滤的方法,该方法可适用于在其他领域创建类似数据集。为了展示CySecBench的实用性,我们提出并评估了一种基于提示混淆的越狱方法。我们的实验结果表明,该方法成功地从商业黑盒LLM中诱发出有害内容,在ChatGPT上实现了65%的成功率(SR),在Gemini上实现了88%的成功率;相比之下,Claude表现出更强的鲁棒性,越狱成功率为17%。与现有基准方法相比,我们的方法表现出更优的性能,凸显了特定领域评估数据集在评估LLM安全措施方面的价值。此外,当使用广泛使用的数据集(即AdvBench)中的提示进行评估时,该方法实现了78.5%的成功率,高于最先进的方法。

英文摘要:

Numerous studies have investigated methods for jailbreaking Large Language Models (LLMs) to generate harmful content. Typically, these methods are evaluated using datasets of malicious prompts designed to bypass security policies established by LLM providers. However, the generally broad scope and open-ended nature of existing datasets can complicate the assessment of jailbreaking effectiveness, particularly in specific domains, notably cybersecurity. To address this issue, we present and publicly release CySecBench, a comprehensive dataset containing 12662 prompts specifically designed to evaluate jailbreaking techniques in the cybersecurity domain. The dataset is organized into 10 distinct attack-type categories, featuring close-ended prompts to enable a more consistent and accurate assessment of jailbreaking attempts. Furthermore, we detail our methodology for dataset generation and filtration, which can be adapted to create similar datasets in other domains. To demonstrate the utility of CySecBench, we propose and evaluate a jailbreaking approach based on prompt obfuscation. Our experimental results show that this method successfully elicits harmful content from commercial black-box LLMs, achieving Success Rates (SRs) of 65% with ChatGPT and 88% with Gemini; in contrast, Claude demonstrated greater resilience with a jailbreaking SR of 17%. Compared to existing benchmark approaches, our method shows superior performance, highlighting the value of domain-specific evaluation datasets for assessing LLM security measures. Moreover, when evaluated using prompts from a widely used dataset (i.e., AdvBench), it achieved an SR of 78.5%, higher than the state-of-the-art methods.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑