Abstract
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.
| Original language | English |
|---|---|
| Title of host publication | Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis |
| Editors | Maria Christakis, Michael Pradel |
| Place of Publication | New York NY USA |
| Publisher | Association for Computing Machinery (ACM) |
| Pages | 528-540 |
| Number of pages | 13 |
| ISBN (Electronic) | 9798400706127 |
| DOIs | |
| Publication status | Published - 2024 |
| Event | International Symposium on Software Testing and Analysis 2024 - Vienna, Austria Duration: 16 Sept 2024 → 20 Sept 2024 Conference number: 33rd https://dl.acm.org/doi/proceedings/10.1145/3650212 (Proceedings) https://conf.researchr.org/home/issta-2024 (Website) |
Conference
| Conference | International Symposium on Software Testing and Analysis 2024 |
|---|---|
| Abbreviated title | ISSTA 2024 |
| Country/Territory | Austria |
| City | Vienna |
| Period | 16/09/24 → 20/09/24 |
| Internet address |
|
Keywords
- Code Generation
- Data Poisoning
- User Feedback
Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver