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

超越静态工具:评估大型语言模型在密码学误用检测中的能力

Beyond Static Tools: Evaluating Large Language Models for Cryptographic Misuse Detection

Ontario Tech University(安大略理工大学)

Zohaib Masood, Miguel Vargas Martin

AI总结:

本研究全面比较了传统静态分析工具与大型语言模型在密码学API误用检测中的表现,发现GPT 4-o-mini在部分数据集上超越静态工具,并评估了LLM提供安全编码建议的实际效用。

摘要:

大型语言模型(LLMs)在软件开发中的应用正迅速增长,开发者越来越依赖这些模型进行编码辅助,包括安全关键任务。我们的工作对传统的密码学API误用检测静态分析工具——CryptoGuard、CogniCrypt和Snyk Code——与LLMs——GPT和Gemini进行了全面比较。使用基准数据集(OWASP、CryptoAPI和MASC),我们评估了每种工具在识别密码学误用方面的有效性。我们的研究结果表明,GPT 4-o-mini在CryptoAPI和MASC数据集上超越了当前最先进的静态分析工具,尽管它在OWASP数据集上表现落后。此外,我们评估了LLM响应的质量,以确定哪些模型能提供可操作且准确的建议,从而让开发者了解它们在安全编码中的实际效用。本研究强调了静态分析与LLM驱动方法的相对优势与局限性,为AI在推进软件安全实践中的不断演变的作用提供了宝贵见解。

英文摘要:

The use of Large Language Models (LLMs) in software development is rapidly growing, with developers increasingly relying on these models for coding assistance, including security-critical tasks. Our work presents a comprehensive comparison between traditional static analysis tools for cryptographic API misuse detection-CryptoGuard, CogniCrypt, and Snyk Code-and the LLMs-GPT and Gemini. Using benchmark datasets (OWASP, CryptoAPI, and MASC), we evaluate the effectiveness of each tool in identifying cryptographic misuses. Our findings show that GPT 4-o-mini surpasses current state-of-the-art static analysis tools on the CryptoAPI and MASC datasets, though it lags on the OWASP dataset. Additionally, we assess the quality of LLM responses to determine which models provide actionable and accurate advice, giving developers insights into their practical utility for secure coding. This study highlights the comparative strengths and limitations of static analysis versus LLM-driven approaches, offering valuable insights into the evolving role of AI in advancing software security practices.

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

↑