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

大语言模型辅助编程中的安全问题:系统文献综述

Security in LLM-Assisted Coding: A Systematic Literature Review

Australian Catholic University(澳大利亚天主教大学)

Liang Yuan, Maryam Khanian Najafabadi, Mashud Rana, Varvara Vetrova

AI总结:

本系统综述探讨LLM辅助编程的安全风险,指出模型因训练数据偏差生成不安全代码、易受攻击,现有评估方法存缺陷,需安全模型架构、专用基准及人机协作框架缓解风险。

摘要:

大语言模型(LLM)可加速软件开发,但会引入严重的安全漏洞。本系统综述研究了自动编程中的安全风险、基准测试的局限性以及人类开发者的作用。研究发现,由于训练数据存在偏差,模型频繁生成不安全代码和有缺陷的补丁;此外,模型本身易受直接攻击。当前评估方法存在数据污染问题,且缺乏可靠的安全指标。因此,人类监督仍然至关重要。要实现自动化的更安全整合,需要更具安全意识的模型架构、更强大的安全专用基准,以及更有效的人机协作框架,以缓解这些系统性风险。

英文摘要:

Large Language Models accelerate software development but introduce severe security vulnerabilities. This systematic review investigates security risks in automated coding, benchmark limitations, and the role of human developers. Findings indicate that models frequently generate insecure code and faulty patches due to training data biases. Additionally, the models themselves are susceptible to direct attacks. Current evaluation methods suffer from data contamination and lack robust security metrics. Consequently, human oversight remains essential. Safer integration of automation will require more security-aware model architectures, stronger security-specific benchmarks, and more effective human-AI collaboration frameworks to mitigate these systemic risks.

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

↑