arrow
返回

Poisoned source code detection in code models

delete2025-03-01
delete0
delete
OA
AI
E
Ehab Ghannoum *
Mohammad Ghafari 封面图
Mohammad Ghafari (Mohammad Ghafari)
DOI:10.1016/j.jss.2025.112384delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
Deep learning models have gained popularity for conducting various tasks involving source code. However, their black-box nature raises concerns about potential risks. One such risk is a poisoning attack, where an attacker intentionally contaminates the training set with malicious samples to mislead the model's predictions in specific scenarios. To protect source code models from poisoning attacks, we introduce CodeGarrison (CG), a hybrid deep-learning model that relies on code embeddings to identify poisoned code samples. We evaluated CG against the state-of-the-art technique ONION for detecting poisoned samples generated by DAMP, MHM, ALERT, as well as a novel poisoning technique named CodeFooler. Results showed that CG significantly outperformed ONION with an accuracy of 93.5%. We also tested CG's robustness against unknown attacks, achieving an average accuracy of 85.6% in identifying poisoned samples across the four attacks mentioned above.
Keyword:
Poisoned code detection
Source code poisoning
Adversarial machine learning
A Lightweight Defense Against Code Poisoning Attacks Based on Code Naturalness基于代码自然性的轻量级代码污染攻击防御方法
err2026-06-18
err0
PREAI
errMengzhe Yuan; Weisong Sun; Yuchen Chen; Chunrong Fang; Zhenpeng Chen; Peizhuo Lv; Wenbo Guo; Yang Liu; Baowen Xu; Zhenyu Chen; Yanhui Li
err分享
err收藏
Securing Code Understanding: Detecting Natural Backdoor Vulnerability in Code Language Models保障代码理解:检测代码语言模型中的自然后门漏洞
err2026-06-16
err0
PREAI
errYuchen Chen; Weisong Sun; Haocheng Huang; Yuan Xiao; Chunrong Fang; Yiran Zhang; Tingting Xu; Zhenpeng Chen; An Guo; Peizhuo Lv; Xiaofang Zhang; Zhenyu Chen; Yang Liu; Baowen Xu
err分享
err收藏
Automatic detection of Long Method and God Class code smells through neural source code embeddings
err2022-10-01
err25
errOAAI
errKovacevic, Aleksandar; Slivka, Jelena; Vidakovic, Dragan; Grujic, Katarina-Glorija; Luburic, Nikola; Prokic, Simona; Sladic, Goran
err分享
err收藏
ChatGPT Code Detection: Techniques for Uncovering the Source of CodeChatGPT代码检测: 揭露代码来源的技术
errAI
IF5
err2024-07-02
err2
errOAAI
errOedingen, Marc; Engelhardt, Raphael C.; Denz, Robin; Hammer, Maximilian; Konen, Wolfgang
err分享
err收藏
Source code expert identification: Models and application
err2024-06-01
err0
PREAI
errCury, Otavio; Avelino, Guilherme; Neto, Pedro Santos; Valente, Marco Tulio; Britto, Ricardo
err分享
err收藏
Stealthy Backdoor Attack for Code Models代码模型的隐身后门攻击
err2024-04-01
err10
errOAAI
errYang, Zhou; Xu, Bowen; Zhang, Jie M.; Kang, Hong Jin; Shi, Jieke; He, Junda; Lo, David
err分享
err收藏
Android Source Code Vulnerability Detection: A Systematic Literature ReviewAndroid源代码漏洞检测: 系统的文献综述
err2023-01-16
err22
errOAAI
errSenanayake, Janaka; Kalutarage, Harsha; Al-Kadri, Mhd Omar; Petrovski, Andrei; Piras, Luca
err分享
err收藏

期刊

Journal of Systems and Software 封面图
Journal of Systems and Software
IF:
4.1
论文数:
5.5K
被引数:
1.0W

机构

T
tu clausthal
学者数:
26
论文数: 12
被引数: 1.1K
引用论文

引用论文

暂无论文信息