Backdoor attack on neural code search modelsBackdooring Neural Code Search
AI summary
The paper proposes BADCODE, a backdoor attack against neural code search models; the authors claim that modifying just one variable or function name can cause defective or vulnerable code to enter the top 11% of retrieval results. The attack includes a dedicated trigger generation and injection pipeline, with the goal of making the model return code with security or privacy issues. The authors evaluate on two neural code search models and claim the attack is 60% more effective than baselines; a user study measured by F1 score claims its stealthiness is about twice that of baselines.