基于增强型大语言模型(LLM)的源代码空指针解引用预测框架
Enhanced LLM-Based Framework for Predicting Null Pointer Dereference in Source Code
AI总结:
针对以往漏洞检查工具难以分析源代码特定特征关联的问题,提出基于微调LLM的DeLLNeuN模型,在Draper VDISC数据集上达87%准确率和88%精确率,有望用于软件开发早期漏洞检查。
摘要:
软件安全在任何可能因漏洞泄露敏感数据并导致经济损失的领域都至关重要,因此漏洞检测成为软件开发过程的关键环节。维护软件完整性的核心步骤之一是在部署前识别源代码中的漏洞。CWE-476(即空指针解引用,NPD)这类安全漏洞十分关键,可能导致软件崩溃、行为异常及安全风险。当前存在多种漏洞检查工具,但以往工具往往难以分析源代码的特定特征关联,导致其在实际场景中的效果受限。本研究提出一种基于微调大语言模型(LLM)的新方法,称为“DeLLNeuN”。该模型利用多层结构的优势以减少过拟合和非线性问题,提升性能和可靠性;此外,该方法还采用 dropout 和降维技术简化模型,使其更快速高效。在 Draper VDISC 数据集上,我们的模型达到了87%的准确率和88%的精确率。随着软件复杂度提升和网络威胁持续演变,对主动安全措施的需求将不断增长。本研究提出的模型有望作为软件开发中的早期漏洞检查工具。
英文摘要:
Software security is crucial in any field where breaches can exploit sensitive data, and lead to financial losses. As a result, vulnerability detection becomes an essential part of the software development process. One of the key steps in maintaining software integrity is identifying vulnerabilities in the source code before deployment. A security breach like CWE-476, which stands for NULL pointer dereferences (NPD), is crucial because it can cause software crashes, unpredictable behavior, and security vulnerabilities. In this scientific era, there are several vulnerability checkers, where, previous tools often fall short in analyzing specific feature connections of the source code, which weakens the tools in real-world scenarios. In this study, we propose another novel approach using a fine-tuned Large Language Model (LLM) termed "DeLLNeuN". This model leverages the advantage of various layers to reduce both overfitting and non-linearity, enhancing its performance and reliability. Additionally, this method provides dropout and dimensionality reduction to help streamline the model, making it faster and more efficient. Our model showed 87% accuracy with 88% precision using the Draper VDISC dataset. As software becomes more complex and cyber threats continuously evolve, the need for proactive security measures will keep growing. In this particular case, the proposed model looks promising to use as an early vulnerability checker in software development.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。