Skip to content

Double Backdoor: Turning Code Large Language Model Backdoors into Traditional Malware via Adversarial Instruction Fine-Tuning AttacksDouble Backdoored: Converting Code Large Language Model Backdoors to Traditional Malware via Adversarial Instruction Tuning Attacks

arXiv· arXiv:2404.18567· Md Imran Hossen, Sai Venkatesh Chilukoti, Liqun Shan, Sheng Chen, Yinzhi Cao, Xiali Hei·Indexed by this site · 24 days ago· Originally publishedAttacks
AI summary

The researchers propose the MalInstructCoder framework to evaluate the data poisoning and backdoor attack risks of instruction-tuned code large language models. The framework injects malicious code snippets into normal code through an automated data poisoning pipeline, and presents two adversarial instruction fine-tuning attacks: clean-prompt poisoning attacks and backdoor attacks. On three code models, CodeLlama, DeepSeek-Coder, and StarCoder2, by poisoning only 1% (162 samples) of the instruction fine-tuning data, the ASR@1 of clean-prompt poisoning attacks reaches over 75% to 86%; backdoor attacks achieve an ASR@1 of 76% to 86% at a 0.5% poisoning rate. The authors state that these models are highly vulnerable to the above attacks and emphasize the need for more robust defense mechanisms.

Read originalarxiv.org