Multi-target Backdoor Attacks for Code Pre-trained Models
Yanzhou Li, Shangqing Liu, Kangjie Chen, Xiaofei Xie, Tianwei Zhang, and Yang Liu

TL;DR
This paper introduces task-agnostic backdoor attacks on code pre-trained models, enabling multi-target attacks across understanding and generation tasks with high effectiveness and stealth.
Contribution
It proposes a novel task-agnostic backdoor attack method for code pre-trained models supporting multiple downstream tasks.
Findings
Effective multi-target backdoor attacks demonstrated across various datasets.
High stealthiness of the backdoor triggers in code models.
Supports both code understanding and generation tasks.
Abstract
Backdoor attacks for neural code models have gained considerable attention due to the advancement of code intelligence. However, most existing works insert triggers into task-specific data for code-related downstream tasks, thereby limiting the scope of attacks. Moreover, the majority of attacks for pre-trained models are designed for understanding tasks. In this paper, we propose task-agnostic backdoor attacks for code pre-trained models. Our backdoored model is pre-trained with two learning strategies (i.e., Poisoned Seq2Seq learning and token representation learning) to support the multi-target attack of downstream code understanding and generation tasks. During the deployment phase, the implanted backdoors in the victim models can be activated by the designed triggers to achieve the targeted attack. We evaluate our approach on two code understanding tasks and three code generation…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research
MethodsSigmoid Activation · Tanh Activation · Long Short-Term Memory · Sequence to Sequence
