SecureCoder: A Framework for Mitigating Vulnerabilities in Automated Code Generation Using Large Language Models

计算机科学 程序设计语言 编码(集合论) 代码生成 软件工程 计算机安全 钥匙(锁) 集合(抽象数据类型)
作者
R. Y. Zhu
出处
期刊: 卷期号:116 (1): 128-136
标识
DOI:10.54254/2755-2721/2025.20425
摘要

In recent years, the proliferation of code generation models based on large language models such as GitHub Copilot and ChatGPT allows automated source code generation to meet the needs of developers and helps increase coding efficiency. However, a recent study revealed security concerns in generated code, leading the code to be vulnerable to attacks. My research introduces a framework aimed at mitigating the risk of code generation models generating vulnerable code specific to data leakage issues. The ranker is developed to use VUDENC, a deep learning model for vulnerability detection, along with CodeQL and Bandit, two Python code analyzers, to evaluate and rank generated code based on security metrics. By generating multiple code candidates and utilizing the ranker to select the most secure option, it ensures the generation of more secure code. The framework is evaluated on an aggregated SecurityEval and LLMSecEval dataset on relevant scenarios, which shows the framework has newfound advantages compared to the gpt3.5-turbo model. With its proven effectiveness, the framework could be expanding its applicability beyond data leakage issues, adapting to mitigate a comprehensive range of vulnerabilities.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
舒适的藏花完成签到 ,获得积分10
刚刚
1秒前
1秒前
fsf完成签到,获得积分10
2秒前
chilin完成签到,获得积分10
2秒前
3秒前
科研通AI6.2应助小董不懂采纳,获得10
3秒前
4秒前
5秒前
ahh完成签到 ,获得积分10
5秒前
科研通AI6.2应助风趣幻枫采纳,获得10
6秒前
foggycity完成签到,获得积分10
6秒前
薯条完成签到,获得积分10
6秒前
温柔的兔子完成签到 ,获得积分10
6秒前
TT发布了新的文献求助10
7秒前
科研通AI6.2应助mm采纳,获得10
8秒前
8秒前
机智的纹完成签到 ,获得积分10
8秒前
8秒前
星星轨迹发布了新的文献求助10
10秒前
听安完成签到 ,获得积分10
11秒前
机灵乐驹完成签到,获得积分10
12秒前
踏雪完成签到,获得积分10
14秒前
陶玟霖发布了新的文献求助10
15秒前
赘婿应助horsam采纳,获得10
15秒前
16秒前
丘比特应助dsd采纳,获得10
17秒前
李健应助云开阳采纳,获得10
18秒前
迷路的雪兰完成签到 ,获得积分10
18秒前
钮钴禄鬼鬼完成签到 ,获得积分10
19秒前
19秒前
菜鸟完成签到,获得积分10
20秒前
Chen1n完成签到,获得积分10
20秒前
swslgd完成签到,获得积分10
20秒前
风趣幻枫完成签到,获得积分10
21秒前
22秒前
北鲲居士完成签到,获得积分10
24秒前
25秒前
libai完成签到 ,获得积分10
26秒前
Shawn发布了新的文献求助10
27秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
HYDROLYSE ACIDE DE QUELQUES DIOXASPIROCYCLANES 1314
Essentials of Carbohydrate Chemistry and Biochemistry, 4th Edition 800
Navigating Normative Orders. Interdisciplinary Perspectives 800
1 Peter and Christ's Descent to the Dead in Its Early Christian Reception 700
A Psychological Understanding of Criticism and Mental Health 600
Organizational Behavior 510
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7750866
求助须知:如何正确求助?哪些是违规求助? 9298349
关于积分的说明 20245918
捐赠科研通 7332987
什么是DOI,文献DOI怎么找? 3309780
关于科研通互助平台的介绍 2461256
邀请新用户注册赠送积分活动 2322310