Research map / Adversarial robustness and security / Backdoor and poisoning
Backdooring Neural Code Search
Weisong Sun, Yuchen Chen, Guanhong Tao, Chunrong Fang, Xiangyu Zhang, Quanjun Zhang, Bin Luo
Nanjing University · Purdue University
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| use BadCode fixed trigger instead of baseline dead-code trigger | CodeBERT-CS and CodeT5-CS · CodeSearchNet | ANR: 27.72% -> 11.13% | Improved |
| use BadCode mixed trigger instead of baseline trigger | CodeBERT-CS and CodeT5-CS · CodeSearchNet | ANR: 27.72% -> 23.24% | Improved |
| use mixed instead of fixed BadCode trigger (ablation) | BadCode · Human study | detection F1: 0.46 -> 0.43 (NLP group) | Improved |
| use random code tokens as trigger instead of target-oriented tokens (ablation) | BadCode · CodeBERT-CS, target file | ANR: 21.27% -> 44.87% | Hurt |
| exclude high-frequency tokens shared across target words from trigger (ablation) | BadCode · CodeBERT-CS, target file | ANR: 49.39% -> 21.27% | Improved |
| apply BadCode instead of baseline attack | CodeBERT-CS and CodeT5-CS · CodeSearchNet | MRR: 0.9277 (benign) vs 0.9233 (BadCode-fixed) | No clear effect |
| use BadCode instead of baseline trigger for human detection | annotators with NLP knowledge · Human study | detection F1: 0.98 -> 0.46 (fixed); 0.98 -> 0.43 (mixed) | Improved |
| apply activation clustering and spectral signature defenses to BadCode | BadCode · CodeBERT-CS and CodeT5-CS | detection recall: AC recall below 35%, SS recall below 10% | No clear effect |
| inject trigger into rank-11 snippets rather than rank-50% snippets | BadCode · CodeSearchNet | ASR@10: 78.75% ASR@10 and 40.06% ASR@5 (64.90%/20.75% baseline) | Improved |
Open problems in trigger-based backdoor attacks
Do trigger-based backdoor attacks and their defenses hold up beyond small image classifiers and a few known defenses?
- Tested only on small image classification benchmarks. · 11 papers state it
- Theory covers only simplified models and idealized assumptions. · 8 papers state it
- Attacks are checked against only a few defenses and simple adaptive attacks. · 7 papers state it
Closest papers by meaning
- Vulnerable Code Search: Transferable Attack for Code Language Models (EMNLP 2026 · similarity 0.89)
- Multi-target Backdoor Attacks for Code Pre-trained Models (ACL 2023 · similarity 0.88)
- BaDExpert: Extracting Backdoor Functionality for Accurate Backdoor Input Detection (ICLR 2024 · similarity 0.86)
- Demystifying Poisoning Backdoor Attacks from a Statistical Perspective (ICLR 2024 · similarity 0.85)
- Injecting Undetectable Backdoors in Obfuscated Neural Networks and Language Models (NeurIPS 2024 · similarity 0.85)
- LT-Defense: Searching-free Backdoor Defense via Exploiting the Long-tailed Effect (NeurIPS 2024 · similarity 0.85)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.