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

使用深度学习技术的自动化漏洞检测

Automated Vulnerability Detection Using Deep Learning Technique

National Taiwan University(国立台湾大学);National Yang Ming Chiao Tung University(阳明交通大学)

Guan-Yan Yang, Yi-Heng Ko, Farn Wang, Kuo-Hui Yeh, Haw-Shiang Chang, Hsueh-Yi Chen

AI总结:

本文提出结合 CodeBERT 向量表示与 LSTM 的深度学习方法,用于自动检测 Python 代码中的 SQL 注入漏洞,性能优于现有 SAST 工具。

摘要:

我们的工作探索利用深度学习,特别是借助 CodeBERT 模型,通过检测 SQL 注入漏洞来增强 Python 应用程序的代码安全测试。与可能缓慢且容易出错的传统安全测试方法不同,我们的方法将源代码转换为向量表示,并训练长短期记忆(LSTM)模型以识别易受攻击的模式。与现有静态应用程序安全测试(SAST)工具相比,我们的模型表现出更优的性能,取得了更高的精确率、召回率和 F1 分数。该研究表明,深度学习技术,尤其是结合 CodeBERT 先进的上下文理解能力,可以显著改进漏洞检测,并提出一种可扩展的方法,适用于各种编程语言和漏洞类型。

英文摘要:

Our work explores the utilization of deep learning, specifically leveraging the CodeBERT model, to enhance code security testing for Python applications by detecting SQL injection vulnerabilities. Unlike traditional security testing methods that may be slow and error-prone, our approach transforms source code into vector representations and trains a Long Short-Term Memory (LSTM) model to identify vulnerable patterns. When compared with existing static application security testing (SAST) tools, our model displays superior performance, achieving higher precision, recall, and F1-score. The study demonstrates that deep learning techniques, particularly with CodeBERT's advanced contextual understanding, can significantly improve vulnerability detection, presenting a scalable methodology applicable to various programming languages and vulnerability types.

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

↑