FDI: Attack Neural Code Generation Systems through User Feedback Channel

被引:0
|
作者
Sun, Zhensu [1 ,2 ]
Du, Xiaoning [3 ]
Luo, Xiapu [2 ]
Song, Fu [4 ,7 ,8 ]
Lo, David [5 ]
Li, Li [6 ]
机构
[1] Singapore Management Univ Singapore, Singapore, Singapore
[2] Hong Kong Polytech Univ, Hong Kong, Peoples R China
[3] Monash Univ, Melbourne, Vic, Australia
[4] Chinese Acad Sci, Inst Software, State Key Lab Comp Sci, Key Lab Syst Software, Beijing, Peoples R China
[5] Singapore Management Univ, Sch Comp & Informat Syst, Singapore, Singapore
[6] Beihang Univ, Beijing, Peoples R China
[7] Univ Chinese Acad Sci, Beijing, Peoples R China
[8] Nanjing Inst Software Technol, Nanjing, Jiangsu, Peoples R China
基金
中国国家自然科学基金; 新加坡国家研究基金会;
关键词
Code Generation; Data Poisoning; User Feedback;
D O I
10.1145/3650212.3680300
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Neural code generation systems have recently attracted increasing attention to improve developer productivity and speed up software development. Typically, these systems maintain a pre-trained neural model and make it available to general users as a service (e.g., through remote APIs) and incorporate a feedback mechanism to extensively collect and utilize the users' reaction to the generated code, i.e., user feedback. However, the security implications of such feedback have not yet been explored. With a systematic study of current feedback mechanisms, we find that feedback makes these systems vulnerable to feedback data injection (FDI) attacks. We discuss the methodology of FDI attacks and present a pre-attack profiling strategy to infer the attack constraints of a targeted system in the black-box setting. We demonstrate two proof-of-concept examples utilizing the FDI attack surface to implement prompt injection attacks and backdoor attacks on practical neural code generation systems. The attacker may stealthily manipulate a neural code generation system to generate code with vulnerabilities, attack payload, and malicious and spam messages. Our findings reveal the security implications of feedback mechanisms in neural code generation systems, paving the way for increasing their security.
引用
收藏
页码:528 / 540
页数:13
相关论文
共 42 条
  • [1] Compilable Neural Code Generation with Compiler Feedback
    Wang, Xin
    Wang, Yasheng
    Wan, Yao
    Mi, Fei
    Li, Yitong
    Zhou, Pingyi
    Liu, Jin
    Wu, Hao
    Jiang, Xin
    Liu, Qun
    FINDINGS OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS (ACL 2022), 2022, : 9 - 19
  • [2] User Interface Adaptation through Ontology Models and Code Generation
    Braham, Amani
    Khemaja, Maha
    Buendia, Felix
    Gargouri, Faiez
    HUMAN-COMPUTER INTERACTION, HCI-COLLAB, 2021, 1478 : 225 - 236
  • [3] Attack Injection into Avionic Systems through Application Code Mutation
    Damien, Alienor
    Feyt, Nathalie
    Nicomette, Vincent
    Alata, Eric
    Kaaniche, Mohamed
    2019 IEEE/AIAA 38TH DIGITAL AVIONICS SYSTEMS CONFERENCE (DASC), 2019,
  • [4] Quick and Accurate Attack Detection in Recommender Systems through User Attributes
    Aktukmak, Mehmet
    Yilmaz, Yasin
    Uysal, Ismail
    RECSYS 2019: 13TH ACM CONFERENCE ON RECOMMENDER SYSTEMS, 2019, : 348 - 352
  • [5] Dynamic Channel Feedback Control for Limited-Feedback Multi-User MIMO Systems
    Sohn, Illsoo
    Park, Chang Soon
    Lee, Kwang Bok
    2009 IEEE INTERNATIONAL CONFERENCE ON COMMUNICATIONS, VOLS 1-8, 2009, : 3776 - +
  • [6] Rethinking AI code generation: a one-shot correction approach based on user feedback
    Le, Kim Tuyen
    Andrzejak, Artur
    AUTOMATED SOFTWARE ENGINEERING, 2024, 31 (02)
  • [7] Code construction for the ideal two-user Poisson multiple-access channel with noiseless feedback
    Bross, SI
    Lapidoth, A
    ISIT: 2002 IEEE INTERNATIONAL SYMPOSIUM ON INFORMATION THEORY, PROCEEDINGS, 2002, : 306 - 306
  • [8] Space Time Block Code for Next Generation Multi-user MIMO Systems
    Sharma, Nidhi
    9TH INTERNATIONAL CONFERENCE ON FUTURE NETWORKS AND COMMUNICATIONS (FNC'14) / THE 11TH INTERNATIONAL CONFERENCE ON MOBILE SYSTEMS AND PERVASIVE COMPUTING (MOBISPC'14) / AFFILIATED WORKSHOPS, 2014, 34 : 172 - 179
  • [9] Efficient Channel Feedback Scheme for Multi-User MIMO Hybrid Beamforming Systems
    Lee, Won-Seok
    Song, Hyoung-Kyu
    SENSORS, 2021, 21 (16)
  • [10] Beamforming and user selection in SDMA systems utilizing channel statistics and instantaneous SNR feedback
    Hammarwall, David
    Bengtsson, Mats
    Ottersten, Bjorn
    2007 IEEE INTERNATIONAL CONFERENCE ON ACOUSTICS, SPEECH, AND SIGNAL PROCESSING, VOL III, PTS 1-3, PROCEEDINGS, 2007, : 113 - +