arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.09334cs.CRcs.AI
收藏

CyberLLMInstruct:一个揭示网络安全LLM微调中安全与性能权衡的伪恶意数据集

CyberLLMInstruct: A Pseudo-malicious Dataset Revealing Safety-performance Trade-offs in Cyber Security LLM Fine-tuning

University of Kent(肯特大学)

Adel ElZemity, Budi Arief, Shujun Li

AI总结:

本文提出包含54,928对伪恶意指令-响应的CyberLLMInstruct数据集,涵盖多种网络安全任务,通过对七个开源LLMs的评估揭示了微调提升任务性能但严重削弱安全弹性的权衡问题。

摘要:

将大型语言模型(LLMs)集成到网络安全应用中既带来了机遇,也带来了严重的安全风险。我们引入了CyberLLMInstruct,这是一个包含54,928对伪恶意指令-响应的数据集,涵盖包括恶意软件分析、网络钓鱼模拟和零日漏洞在内的网络安全任务。我们使用七个开源LLMs进行的全面评估揭示了一个关键权衡:虽然微调提高了网络安全任务性能(在CyberMetric上实现了高达92.50%的准确率),但它严重损害了所有测试模型和攻击向量上的安全弹性(例如,Llama 3.1 8B针对提示注入的安全得分从0.95降至0.15)。该数据集整合了包括CTF挑战、学术论文、行业报告和CVE数据库在内的多种来源,以确保对网络安全领域的全面覆盖。我们的发现突出了在对抗性领域保护LLMs的独特挑战,并确立了开发在安全敏感领域中平衡性能提升与安全保持的微调方法的迫切需求。

英文摘要:

The integration of large language models (LLMs) into cyber security applications presents both opportunities and critical safety risks. We introduce CyberLLMInstruct, a dataset of 54,928 pseudo-malicious instruction-response pairs spanning cyber security tasks including malware analysis, phishing simulations, and zero-day vulnerabilities. Our comprehensive evaluation using seven open-source LLMs reveals a critical trade-off: while fine-tuning improves cyber security task performance (achieving up to 92.50% accuracy on CyberMetric), it severely compromises safety resilience across all tested models and attack vectors (e.g., Llama 3.1 8B's security score against prompt injection drops from 0.95 to 0.15). The dataset incorporates diverse sources including CTF challenges, academic papers, industry reports, and CVE databases to ensure comprehensive coverage of cyber security domains. Our findings highlight the unique challenges of securing LLMs in adversarial domains and establish the critical need for developing fine-tuning methodologies that balance performance gains with safety preservation in security-sensitive domains.

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

↑