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

AI生成代码的漏洞处理——现有解决方案与开放性挑战

Vulnerability Handling of AI-Generated Code -- Existing Solutions and Open Challenges

Sabrina Kaniewski, Dieter Holstein, Fabian Schmidt, Tobias Heer

AI总结:

针对生成式AI尤其是LLM生成代码易引入安全漏洞、传统人工审查流程难以适配的问题,梳理了基于LLM的漏洞检测、定位与修复方法的研究进展,指出了建立可靠可扩展的AI生成代码漏洞处理流程需解决的开放性挑战。

摘要:

生成式人工智能(AI)在现代软件工程中的应用日益广泛,尤其是用于代码生成的大语言模型(Large Language Models, LLMs),通过提升生产力、自动化开发流程变革了专业软件开发。然而,这种应用也凸显了一个重大问题:代码中被引入安全漏洞。这些漏洞的成因包括训练数据中的缺陷传播至生成代码,给漏洞披露带来挑战。传统漏洞处理流程通常需要大量人工审查,将这类传统流程应用于AI生成代码存在困难。AI生成代码可能包含多个漏洞,形式可能略有不同——因为开发者可能并非在已有实现代码的基础上构建,而是对相似任务发起提示。本研究探讨了基于LLM的漏洞处理方法的现状,重点关注漏洞检测、定位和修复方法,概述了该领域的最新进展,并指出了要建立可靠、可扩展的AI生成代码漏洞处理流程必须解决的开放性挑战。

英文摘要:

The increasing use of generative Artificial Intelligence (AI) in modern software engineering, particularly Large Language Models (LLMs) for code generation, has transformed professional software development by boosting productivity and automating development processes. This adoption, however, has highlighted a significant issue: the introduction of security vulnerabilities into the code. These vulnerabilities result, e.g., from flaws in the training data that propagate into the generated code, creating challenges in disclosing them. Traditional vulnerability handling processes often involve extensive manual review. Applying such traditional processes to AI-generated code is challenging. AI-generated code may include several vulnerabilities, possibly in slightly different forms as developers might not build on already implemented code but prompt similar tasks. In this work, we explore the current state of LLM-based approaches for vulnerability handling, focusing on approaches for vulnerability detection, localization, and repair. We provide an overview of recent progress in this area and highlight open challenges that must be addressed in order to establish a reliable and scalable vulnerability handling process of AI-generated code.

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

↑