Self-Deception: Reverse Penetrating the Semantic Firewall of Large Language Models
On the map: LLM safety and security → Jailbreaking
Abstract (arXiv)
Large language models (LLMs), such as ChatGPT, have emerged with astonishing capabilities approaching artificial general intelligence. While providing convenience for various societal needs, LLMs have also lowered the cost of generating harmful content. Consequently, LLM developers have deployed semantic-level defenses to recognize and reject prompts that may lead to inappropriate content. Unfortunately, these defenses are not foolproof, and some attackers have crafted "jailbreak" prompts that temporarily hypnotize the LLM into forgetting content defense rules and answering any improper questions. To date, there is no clear explanation of the principles behind these semantic-level attacks and defenses in both industry and academia. This paper investigates the LLM jailbreak problem and proposes an automatic jailbreak method for the first time. We propose the concept of a semantic firewall and provide three technical implementation approaches. Inspired by the attack that penetrates traditional firewalls through reverse tunnels, we introduce a "self-deception" attack that can bypass the semantic firewall by inducing LLM to generate prompts that facilitate jailbreak. We generated a total of 2,520 attack payloads in six languages (English, Russian, French, Spanish, Chinese, and Arabic) across seven virtual scenarios, targeting the three most common types of violations: violence, hate, and pornography. The experiment was conducted on two models, namely the GPT-3.5-Turbo and GPT-4. The success rates on the two models were 86.2% and 67%, while the failure rates were 4.7% and 2.2%, respectively. This highlighted the effectiveness of the proposed attack method. All experimental code and raw data will be released as open-source to inspire future research. We believe that manipulating AI behavior through carefully crafted prompts will become an important research direction in the future.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Placed in Jailbreaking, one of 12 directions in LLM safety and security. Builds on 32 of its 62 references that are in the map. First posted on arXiv 16 Aug 2023.
Builds on
32 of 62 references.
Closest ancestors · 1
Same direction, newest first
Other references · 31
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 3,050
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2021Ethical and social risks of harm from Language Modelscited by 966
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learnedcited by 729
- 2021GPT Understands, Toocited by 716
- 2023Prompt Injection attack against LLM-integrated Applicationscited by 605
- 2023Augmented Language Models: a Surveycited by 403
19 more
- 2023Multi-step Jailbreaking Privacy Attacks on ChatGPTcited by 333
- 2023Exploiting Programmatic Behavior of LLMs: Dual-Use Through Standard Security Attackscited by 278
- 2020AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Promptscited by 249
- 2023Fundamental Limitations of Alignment in Large Language Modelscited by 155
- 2020Dynamic Backdoor Attacks Against Machine Learning Modelscited by 151
- 2021BadEncoder: Backdoor Attacks to Pre-trained Encoders in Self-Supervised Learningcited by 123
- 2023Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Modelscited by 110
- 2022Truth Serum: Poisoning Machine Learning Models to Reveal Their Secretscited by 101
- 2023Prompt as Triggers for Backdoor Attack: Examining the Vulnerability in Language Modelscited by 94
- 2022DeepSight: Mitigating Backdoor Attacks in Federated Learning Through Deep Model Inspectioncited by 81
- 2021Poisoning the Unlabeled Dataset of Semi-Supervised Learningcited by 44
- 2021Data Poisoning Attacks to Deep Learning Based Recommender Systemscited by 43
- 2023Large Language Models are Edge-Case Fuzzers: Testing Deep Learning Libraries via FuzzGPTcited by 36
- 2022Fooling the Eyes of Autonomous Vehicles: Robust Physical Adversarial Examples Against Traffic Sign Recognition Systemscited by 27
- 2023BEAGLE: Forensics of Deep Learning Backdoor Attack for Better Defensecited by 15
- 2022XAI for Cybersecurity: State of the Art, Challenges, Open Issues and Future Directionscited by 10
- 2022Post-breach Recovery: Protection against White-box Adversarial Examples for Leaked DNN Modelscited by 7
- 2022Careful What You Wish For: on the Extraction of Adversarially Trained Modelscited by 6
- 2023A Plot is Worth a Thousand Words: Model Information Stealing Attacks via Scientific Plotscited by 5
Built on by
Citing papers per year: 2023: 3; 2024: 4.
7 papers.
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 387
- 2024The Emerged Security and Privacy of LLM Agent: A Survey with Case Studiescited by 131
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 71
- 2023FuzzLLM: A Novel and Universal Fuzzing Framework for Proactively Discovering Jailbreak Vulnerabilities in Large Language Modelscited by 51
- 2024Recent advancements in LLM Red-Teaming: Techniques, Defenses, and Ethical Considerationscited by 8
- 2024From COBIT to ISO 42001: Evaluating Cybersecurity Frameworks for Opportunities, Risks, and Regulatory Compliance in Commercializing Large Language Modelscited by 7
- 2023Survey on AI Ethics: A Socio-technical Perspectivecited by 4
- 2024Recent advancements in LLM Red-Teaming: Techniques, Defenses, and Ethical Considerations9 Oct 2024
- 2024The Emerged Security and Privacy of LLM Agent: A Survey with Case Studies28 Jul 2024
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Review6 May 2024
- 2024From COBIT to ISO 42001: Evaluating Cybersecurity Frameworks for Opportunities, Risks, and Regulatory Compliance in Commercializing Large Language Models24 Feb 2024
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Ugly4 Dec 2023
- 2023Survey on AI Ethics: A Socio-technical Perspective28 Nov 2023
- 2023FuzzLLM: A Novel and Universal Fuzzing Framework for Proactively Discovering Jailbreak Vulnerabilities in Large Language Models11 Sep 2023
Similar, not cited
Close in wording, no citation either way
- 2025RoguePrompt: Dual-Layer Ciphering for Self-Reconstruction to Circumvent LLM Moderation
- 2024Jailbreaking and Mitigation of Vulnerabilities in Large Language Models
- 2024SelfDefend: LLMs Can Defend Themselves against Jailbreaking in a Practical Manner
- 2025Automating Deception: Scalable Multi-Turn LLM Jailbreaks
- 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey
- 2023A Wolf in Sheep's Clothing: Generalized Nested Jailbreak Prompts can Fool Large Language Models Easily
- 2026Breaking the Assumptions: Auditing Input-Side Jailbreak Defenses Against Semantic Attacks
- 2023Analyzing the Inherent Response Tendency of LLMs: Real-World Instructions-Driven Jailbreak