BadGPT: Exploring Security Vulnerabilities of ChatGPT via Backdoor Attacks to InstructGPT
Open accessAbstract
Recently, ChatGPT has gained significant attention in research due to its ability to interact with humans effectively. The core idea behind this model is reinforcement learning (RL) fine-tuning, a new paradigm that allows language models to align with human preferences, i.e., InstructGPT. In this study, we propose BadGPT, the first backdoor attack against RL fine-tuning in language models. By injecting a backdoor into the reward model, the language model can be compromised during the fine-tuning stage. Our initial experiments on movie reviews, i.e., IMDB, demonstrate that an attacker can manipulate the generated text through BadGPT.
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
BadGPT embeds backdoors within the reward model, which can be activated via specific trigger prompts, allowing attackers to control the model's output to align with their preferences.
“This approach involves embedding backdoors within the reward model, which can be activated via specific trigger prompts. Such activation allows attackers to control the model's output to align with their preferences, showcasing a critical security vulnerability.”
From When LLMs meet cybersecurity: a systematic literature review (2025) · cites this paper as Shi et al. (2023)
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Cites
Still being checked.
Research works printed but not linked: 5
- Ziegler, Daniel M., et al. "Fine-tuning language models from human preferences." arXiv preprint arXiv:1909.08593 (2019). · arXiv
- Ouyang, Long, et al. "Training language models to follow instructions with human feedback." arXiv preprint arXiv:2203.02155 (2022). · arXiv
- Zhou, Ce, et al. "A Comprehensive Survey on Pretrained Founda- tion Models: A History from BERT to ChatGPT." arXiv preprint arXiv:2302.09419 (2023). · arXiv
- Wu, Baoyuan, et al. "Backdoorbench: A comprehensive benchmark of backdoor learning." arXiv preprint arXiv:2206.12654 (2022). · arXiv
- Cai, Xiangrui, et al. "BadPrompt: Backdoor Attacks on Continuous Prompts." arXiv preprint arXiv:2211.14719 (2022). · arXiv
Cited by
Sorted by citations
Security and Privacy Challenges of Large Language Models: A Survey
Das, B. C., Amini, M. H., & Wu, Y. (2025) · ACM Computing Surveys · doi:10.1145/3712001 · Cited by 445 · see citing works
When LLMs meet cybersecurity: a systematic literature review
Zhang, J., Bu, H., Wen, H., Liu, Y., Fei, H., Xi, R., Li, L., Yang, Y., Zhu, H., & Meng, D. (2025) · Cybersecurity · doi:10.1186/s42400-025-00361-w · Cited by 220 · see citing works
Self-citationKheddar, H. (2025) · Information Fusion · doi:10.1016/j.inffus.2025.103347 · Cited by 215 · see citing works
Vulnerability of Machine Learning Approaches Applied in IoT-Based Smart Grid: A Review
Zhang, Z., Liu, M., Sun, M., Deng, R., Cheng, P., Niyato, D. T., Chow, M., & Chen, J. (2024) · IEEE Internet of Things Journal · doi:10.1109/jiot.2024.3349381 · Cited by 170 · see citing works
An Overview on Generative AI at Scale With Edge–Cloud Computing
Wang, Y.-C., Xue, J., Wei, C., & Kuo, C. ‐. J. (2023) · IEEE Open Journal of the Communications Society · doi:10.1109/ojcoms.2023.3320646 · Cited by 117 · see citing works
Enhancing Autonomous System Security and Resilience With Generative AI: A Comprehensive Survey
Lopez, M. A., Lunardi, W. T., Lawton, G., & Thakkar, S. (2024) · IEEE Access · doi:10.1109/access.2024.3439363 · Cited by 115 · see citing works
Trustworthy Distributed AI Systems: Robustness, Privacy, and Governance
Wei, W., & Liu, L. (2024) · ACM Computing Surveys · doi:10.1145/3645102 · Cited by 88 · see citing works
Sebastian, G. (2023) · doi:10.2139/ssrn.4454761 · Cited by 56 · see citing works
A Security Risk Taxonomy for Prompt-Based Interaction With Large Language Models
Derner, E., Batistič, K., Zahálka, J., & Babuška, R. (2024) · IEEE Access · doi:10.1109/access.2024.3450388 · Cited by 58 · see citing works
Vulnerability Detection and Monitoring Using LLM
Akuthota, V., Kasula, R., Sumona, S. T., Mohiuddin, M., Reza, M. T., & Rahman, M. M. (2023) · IEEE International Women in Engineering (WIE) Conference on Electrical and Computer Engineering (WIECON-ECE) · doi:10.1109/wiecon-ece60392.2023.10456393 · Cited by 46 · see citing works
Cheng, P., Wu, Z., Du, W., Zhao, H., Lu, W., & Liu, G. (2025) · IEEE Transactions on Neural Networks and Learning Systems · doi:10.1109/tnnls.2025.3540303 · Cited by 46 · see citing works
Assessing the Security of GitHub Copilot's Generated Code - A Targeted Replication Study
Majdinasab, V., Bishop, M. J., Rasheed, S., Dakhel, A. M., Tahir, A., & Khomh, F. (2024) · IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER) · doi:10.1109/saner60148.2024.00051 · Cited by 35 · see citing works
Mengara, O., Avila, A. R., & Falk, T. H. (2024) · IEEE Access · doi:10.1109/access.2024.3355816 · Cited by 32 · see citing works
Rao, J., Gao, S., Mai, G., & Janowicz, K. (2023) · ACM SIGSPATIAL International Conference on Advances in Geographic Information Systems (SIGSPATIAL GIS) · doi:10.1145/3589132.3625611 · Cited by 30 · see citing works
Zhang, J., Wu, P., London, J., & Tenney, D. (2025) · IEEE Access · doi:10.1109/access.2025.3540075 · Cited by 30 · see citing works
Artificial intelligence security and privacy: a survey
He, X., Xu, G., Han, X., Wang, Q., Zhao, L., Shen, C., Lin, C., Zhao, Z., Li, Q., Yang, L., et al. (2025) · Science China Information Sciences · doi:10.1007/s11432-025-4388-5 · Cited by 23 · see citing works
AI Large Models for Power System: A Survey and Outlook
Yao, Q. J., Fang, F., Chen, Y., Liu, J., Mo, H., & Ao, Y. (2025) · IET Smart Energy Systems · doi:10.1049/ses2.70000 · Cited by 20 · see citing works
Exploiting Large Language Models (LLMs) through Deception Techniques and Persuasion Principles
Singh, S., Abri, F., & Namin, A. S. (2023) · IEEE International Conference on Big Data (BigData) · doi:10.1109/bigdata59044.2023.10386814 · Cited by 17 · see citing works
LLM-based Attack Scenarios Generator with IT Asset Management and Vulnerability Information
Naito, T., Watanabe, R., & Mitsunaga, T. (2023) · International Conference on Signal Processing and Information Security (ICSPIS) · doi:10.1109/icspis60075.2023.10344019 · Cited by 16 · see citing works
Progressive Poisoned Data Isolation for Training-Time Backdoor Defense
Chen, Y., Wu, H., & Zhou, J. (2024) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v38i10.29023 · Cited by 16 · see citing works
Enhancing Privacy and Security in Large-Language Models: A Zero-Knowledge Proof Approach
Singh, S. R. (2024) · International Conference on Cyber Warfare and Security · doi:10.34190/iccws.19.1.2096 · Cited by 12 · see citing works
Physical Backdoor: Towards Temperature-Based Backdoor Attacks in the Physical World
Yin, W., Lou, J., Zhou, P., Xie, Y., Feng, D., Sun, Y., Zhang, T., & Sun, L. (2024) · IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · doi:10.1109/cvpr52733.2024.01210 · Cited by 12 · see citing works
Self-citationPwnPilot: Reflections on Trusting Trust in the Age of Large Language Models and AI Code Assistants
Horne, D. (2023) · Congress in Computer Science, Computer Engineering, and Applied Computing (CSCE) · doi:10.1109/csce60160.2023.00396 · Cited by 9 · see citing works
Universal Jailbreak Backdoors from Poisoned Human Feedback
Rando, J., & Tramèr, F. (2023) · arXiv · doi:10.48550/arxiv.2311.14455 · Cited by 10 · see citing works
Mitigating Backdoor Threats to Large Language Models: Advancement and Challenges
Liu, Q., Mo, W., Tong, T., Xu, J., Wang, F., Xiao, C., & Chen, M. (2024) · Allerton Conference on Communication, Control, and Computing · doi:10.1109/allerton63246.2024.10735305 · Cited by 6 · see citing works
Artificial General Intelligence (AGI) for Medical Education and TrainingPreprint
Lema, K. G. (2023) · doi:10.31730/osf.io/xytzm · Cited by 4 · see citing works
AI Ethics and Social Norms: Exploring ChatGPT's Capabilities From What to How
Veisi, O., Bahrami, S., Englert, R., & Müller, C. (2025) · Proc. ACM Hum. Comput. Interact. · doi:10.1145/3757397 · Cited by 4 · see citing works
Backdoor threats in large language models—a survey
Liu, S., Pan, Y. F., Hong, K., Fei, R., Lin, C., Li, Q., & Shen, C. (2025) · Science China Information Sciences · doi:10.1007/s11432-024-4351-3 · Cited by 1 · see citing works
Duan, Z. Y., Xiong, H., Yang, S., Cai, M., & Zhao, S. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-37676-3_12
- Authors
- Shi, J., Liu, Y., Zhou, P., & Sun, L.
- Affiliations
- Huazhong University of Science and Technology (CN)
- Lehigh University (US)
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2023
- ISSN
- 2331-8422 (ISSN-L)
- arXiv
- 2304.12298
- OpenAlex
- W4367000527
- Cited by
- 26
- References
- 0
- Citations by year
- 2026: 1 · 2025: 8 · 2024: 10 · 2023: 7
- Type
- posted content
- Language
- en
- Open access
- green
- arxiv.org
- Locations
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning
- Physical Sciences › Computer Science › Artificial Intelligence › Security and Verification in Computing
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Keywords
- backdoor attacks, language model security, ChatGPT, reinforcement learning fine-tuning, reward models
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review