arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2601.19970cs.CRcs.LG
收藏

根据OWASP Top 10为LLM应用程序的框架对LLAMA模型安全性能进行基准测试

Benchmarking LLAMA Model Security Against OWASP Top 10 For LLM Applications

Texas A&M University(德克萨斯A&M大学)

Nourin Shahin, Izzat Alsmadi

AI总结:

本研究通过对比不同LLama模型的安全性能,发现小型专用模型在威胁检测上表现优于大型通用模型,并提供开源数据集支持AI安全研究。

摘要:

随着大型语言模型(LLMs)从研究原型发展为企业系统,其安全漏洞对数据隐私和系统完整性构成了严重风险。本研究将各种LLama模型变体与OWASP Top 10 for LLM Applications框架进行基准测试,评估威胁检测准确性、响应安全性和计算开销。使用配备NVIDIA A30 GPU的FABRIC测试床,我们对五个标准LLama模型和五个LLama Guard变体在100个对抗性提示上进行了测试,这些提示覆盖了十个漏洞类别。我们的结果揭示了安全性能的显著差异:紧凑的LLama-Guard-3-1B模型在检测率方面最高,达到76%,且延迟最低(每个测试0.165秒),而基模型如Llama-3.1-8B在威胁检测上未能达到准确率(0%)尽管推理时间更长(0.754秒)。我们观察到模型大小与安全有效性之间存在反比关系,表明较小的专用模型在安全任务中往往优于较大的通用模型。此外,我们提供了一个开源的基准数据集,包括对抗性提示、威胁标签和攻击元数据,以支持人工智能安全领域的可重复研究。

英文摘要:

As large language models (LLMs) move from research prototypes to enterprise systems, their security vulnerabilities pose serious risks to data privacy and system integrity. This study benchmarks various Llama model variants against the OWASP Top 10 for LLM Applications framework, evaluating threat detection accuracy, response safety, and computational overhead. Using the FABRIC testbed with NVIDIA A30 GPUs, we tested five standard Llama models and five Llama Guard variants on 100 adversarial prompts covering ten vulnerability categories. Our results reveal significant differences in security performance: the compact Llama-Guard-3-1B model achieved the highest detection rate of 76% with minimal latency (0.165s per test), whereas base models such as Llama-3.1-8B failed to detect threats (0% accuracy) despite longer inference times (0.754s). We observe an inverse relationship between model size and security effectiveness, suggesting that smaller, specialized models often outperform larger general-purpose ones in security tasks. Additionally, we provide an open-source benchmark dataset including adversarial prompts, threat labels, and attack metadata to support reproducible research in AI security, [1].

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

↑