CoProtector: Protect Open-Source Code against Unauthorized Training Usage with Data Poisoning
Authors:
Open Access
- 25 April 2022
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 652-660
Abstract
Github Copilot, trained on billions of lines of public code, has recently become the buzzword in the computer science research and practice community. Although it is designed to help developers implement safe and effective code with powerful intelligence, practitioners and researchers raise concerns about its ethical and security problems, e.g., should the copyleft licensed code be freely leveraged or insecure code be considered for training in the first place? These problems pose a significant impact on Copilot and other similar products that aim to learn knowledge from large-scale open-source code through deep learning models, which are inevitably on the rise with the fast development of artificial intelligence. To mitigate such impacts, we argue that there is a need to invent effective mechanisms for protecting open-source code from being exploited by deep learning models. Here, we design and implement a prototype, CoProtector, which utilizes data poisoning techniques to arm source code repositories for defending against such exploits. Our large-scale experiments empirically show that CoProtector is effective in achieving its purpose, significantly reducing the performance of Copilot-like deep learning models while being able to stably reveal the secretly embedded watermark backdoors.Keywords
All Related Versions
Funding Information
- National key research and development program (2020AAA0107800)
This publication has 12 references indexed in Scilit:
- A Targeted Attack on Black-Box Neural Machine Translation with Parallel Data Poisoning2021
- A Study of Potential Code Borrowing and License Violations in Java Projects on GitHub2020
- TreeGen: A Tree-Based Transformer Architecture for Code GenerationProceedings of the AAAI Conference on Artificial Intelligence, 2020
- Generating Adversarial Examples for Holding Robustness of Source Code Processing ModelsProceedings of the AAAI Conference on Artificial Intelligence, 2020
- Poison Attacks against Text Datasets with Conditional Adversarially Regularized Autoencoder2020
- Auditing Data Provenance in Text-Generation Models2019
- TensorClog: An Imperceptible Poisoning Attack on Deep Neural Network ApplicationsIEEE Access, 2019
- How Can We Craft Large-Scale Android Malware? An Automated Poisoning Attack2019
- BLEU2001
- THE GENERALIZATION OF ‘STUDENT'S’ PROBLEM WHEN SEVERAL DIFFERENT POPULATION VARLANCES ARE INVOLVEDBiometrika, 1947