How (un)ethical are instruction-centric responses of LLMs? Unveiling the vulnerabilities of safety guardrails to harmful queries
On the map: LLM safety and security → Safety alignment, refusal and guardrails
Abstract (arXiv)
In this study, we tackle a growing concern around the safety and ethical use of large language models (LLMs). Despite their potential, these models can be tricked into producing harmful or unethical content through various sophisticated methods, including 'jailbreaking' techniques and targeted manipulation. Our work zeroes in on a specific issue: to what extent LLMs can be led astray by asking them to generate responses that are instruction-centric such as a pseudocode, a program or a software snippet as opposed to vanilla text. To investigate this question, we introduce TechHazardQA, a dataset containing complex queries which should be answered in both text and instruction-centric formats (e.g., pseudocodes), aimed at identifying triggers for unethical responses. We query a series of LLMs -- Llama-2-13b, Llama-2-7b, Mistral-V2 and Mistral 8X7B -- and ask them to generate both text and instruction-centric responses. For evaluation we report the harmfulness score metric as well as judgements from GPT-4 and humans. Overall, we observe that asking LLMs to produce instruction-centric responses enhances the unethical response generation by ~2-38% across the models. As an additional objective, we investigate the impact of model editing using the ROME technique, which further increases the propensity for generating undesirable content. In particular, asking edited LLMs to generate instruction-centric responses further increases the unethical response generation by ~3-16% across the different models.
Key facts. Cited by 26 papers in the map (data through 7 Oct 2026). Placed in Safety alignment, refusal and guardrails, one of 12 directions in LLM safety and security. Builds on 36 of its 47 references that are in the map. First posted on arXiv 23 Feb 2024.
Builds on
36 of 47 references.
Closest ancestors · 2
Same direction, newest first
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!5 Oct
- 2023Fundamental Limitations of Alignment in Large Language Models19 Apr
Other references · 34
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2021TruthfulQA: Measuring How Models Mimic Human Falsehoodscited by 2,919
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,565
- 2023Tree of Attacks: Jailbreaking Black-Box LLMs Automaticallycited by 619
- 2021Editing Factual Knowledge in Language Modelscited by 548
- 2024How Johnny Can Persuade LLMs to Jailbreak Them: Rethinking Persuasion to Challenge AI Safety by Humanizing LLMscited by 533
22 more
- 2023DecodingTrust: A Comprehensive Assessment of Trustworthiness in GPT Modelscited by 505
- 2023"Do Anything Now": Characterizing and Evaluating In-The-Wild Jailbreak Prompts on Large Language Modelscited by 457
- 2020Artificial Intelligence, Values and Alignmentcited by 443
- 2023Catastrophic Jailbreak of Open-source LLMs via Exploiting Generationcited by 439
- 2023GPT-4 Is Too Smart To Be Safe: Stealthy Chat with LLMs via Ciphercited by 401
- 2023Jailbreak and Guard Aligned Language Models with Only Few In-Context Demonstrationscited by 401
- 2023Poisoning Language Models During Instruction Tuningcited by 254
- 2023Specializing Smaller Language Models towards Multi-Step Reasoningcited by 249
- 2023Scalable and Transferable Black-Box Jailbreaks for Language Models via Persona Modulationcited by 202
- 2022On Second Thought, Let's Not Think Step by Step! Bias and Toxicity in Zero-Shot Reasoningcited by 191
- 2023Backdooring Instruction-Tuned Large Language Models with Virtual Prompt Injectioncited by 143
- 2023Universal Jailbreak Backdoors from Poisoned Human Feedbackcited by 120
- 2023On the Exploitability of Instruction Tuningcited by 110
- 2024Weak-to-Strong Jailbreaking on Large Language Modelscited by 100
- 2024The Language Barrier: Dissecting Safety Challenges of LLMs in Multilingual Contextscited by 92
- 2023Cognitive Overload: Jailbreaking Large Language Models with Overloaded Logical Thinkingcited by 78
- 2023Attack Prompt Generation for Red Teaming and Defending Large Language Modelscited by 73
- 2023Ignore This Title and HackAPrompt: Exposing Systemic Vulnerabilities of LLMs through a Global Scale Prompt Hacking Competitioncited by 65
- 2023Bias Testing and Mitigation in LLM-based Code Generationcited by 53
- 2023Spear Phishing With Large Language Modelscited by 49
- 2024Leveraging the Context through Multi-Round Interactions for Jailbreaking Attackscited by 32
- 2024Sowing the Wind, Reaping the Whirlwind: The Impact of Editing Language Modelscited by 20
Built on by
Citing papers per year: 2024: 8; 2025: 13; 2026: 5.
26 papers.
Sort:
By area:
- 2024Jailbreak Attacks and Defenses Against Large Language Models: A Surveycited by 215
- 2024JailbreakZoo: Survey, Landscapes, and Horizons in Jailbreaking Large Language and Vision-Language Modelscited by 67
- 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 44
- 2024JailbreakEval: An Integrated Toolkit for Evaluating Jailbreak Attempts Against Large Language Modelscited by 28
- 2025The Scales of Justitia: A Comprehensive Survey on Safety Evaluation of LLMscited by 24
- 2024SafeInfer: Context Adaptive Decoding Time Safety Alignment for Large Language Modelscited by 22
- 2024Mission Impossible: A Statistical Perspective on Jailbreaking LLMscited by 21
- 2025Inverse Reinforcement Learning with Dynamic Reward Scaling for LLM Alignmentcited by 20
- 2024Swiss Cheese Model for AI Safety: A Taxonomy and Reference Architecture for Multi-Layered Guardrails of Foundation Model Based Agentscited by 13
- 2024GASP: Efficient Black-Box Generation of Adversarial Suffixes for Jailbreaking LLMscited by 12
- 2025From LLMs to MLLMs to Agents: A Survey of Emerging Paradigms in Jailbreak Attacks and Defenses within LLM Ecosystemcited by 11
- 2025Soteria: Language-Specific Functional Parameter Steering for Multilingual Safety Alignmentcited by 10
14 more
- 2025What Really Matters in Many-Shot Attacks? An Empirical Study of Long-Context Vulnerabilities in LLMscited by 7
- 2025Attributional Safety Failures in Large Language Models under Code-Mixed Perturbationscited by 6
- 2025SafeAgent: Safeguarding LLM Agents via an Automated Risk Simulatorcited by 6
- 2024Breaking Boundaries: Investigating the Effects of Model Editing on Cross-linguistic Performancecited by 4
- 2025SoK: Systematizing LLM Prompt Security: Taxonomies, Datasets, and Unified Evaluation of Attacks and Defensescited by 4
- 2026SafeTutors: Benchmarking Pedagogical Safety in AI Tutoring Systemscited by 3
- 2025Phonetic Perturbations Reveal Tokenizer-Rooted Safety Gaps in LLMscited by 2
- 2025AURA: Affordance-Understanding and Risk-aware Alignment Technique for Large Language Modelscited by 2
- 2025ConceptGuard: Neuro-Symbolic Safety Guardrails via Sparse Interpretable Jailbreak Conceptscited by 2
- 2025Turning Logic Against Itself : Probing Model Defenses Through Contrastive Questionscited by 1
- 2026Tutoring Large Language Models to be Domain-adaptive, Precise, and Safecited by 0
- 2026JT-SAFE-V2: Safety-by-Design Foundation Model with World-Context Datacited by 0
- 2026When Safety Speaks a Language: A Mechanistic Analysis of Safety-Language Identity Entanglement in LLMscited by 0
- 2026Tutoring Large Language Models to be Domain-adaptive, Precise and Safecited by 0
- 2026Tutoring Large Language Models to be Domain-adaptive, Precise and Safe19 Sep 2026
- 2026When Safety Speaks a Language: A Mechanistic Analysis of Safety-Language Identity Entanglement in LLMs30 Aug 2026
- 2026JT-SAFE-V2: Safety-by-Design Foundation Model with World-Context Data23 May 2026
- 2026SafeTutors: Benchmarking Pedagogical Safety in AI Tutoring Systems18 Mar 2026
- 2026Tutoring Large Language Models to be Domain-adaptive, Precise, and Safe14 Feb 2026
- 2025SoK: Systematizing LLM Prompt Security: Taxonomies, Datasets, and Unified Evaluation of Attacks and Defenses17 Oct 2025
- 2025ConceptGuard: Neuro-Symbolic Safety Guardrails via Sparse Interpretable Jailbreak Concepts22 Aug 2025
- 2025AURA: Affordance-Understanding and Risk-aware Alignment Technique for Large Language Models8 Aug 2025
- 2025From LLMs to MLLMs to Agents: A Survey of Emerging Paradigms in Jailbreak Attacks and Defenses within LLM Ecosystem18 Jun 2025
- 2025The Scales of Justitia: A Comprehensive Survey on Safety Evaluation of LLMs6 Jun 2025
- 2025What Really Matters in Many-Shot Attacks? An Empirical Study of Long-Context Vulnerabilities in LLMs26 May 2025
- 2025SafeAgent: Safeguarding LLM Agents via an Automated Risk Simulator23 May 2025
14 more
- 2025Attributional Safety Failures in Large Language Models under Code-Mixed Perturbations20 May 2025
- 2025Phonetic Perturbations Reveal Tokenizer-Rooted Safety Gaps in LLMs20 May 2025
- 2025Inverse Reinforcement Learning with Dynamic Reward Scaling for LLM Alignment23 Mar 2025
- 2025Soteria: Language-Specific Functional Parameter Steering for Multilingual Safety Alignment16 Feb 2025
- 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insights10 Feb 2025
- 2025Turning Logic Against Itself : Probing Model Defenses Through Contrastive Questions3 Jan 2025
- 2024GASP: Efficient Black-Box Generation of Adversarial Suffixes for Jailbreaking LLMs21 Nov 2024
- 2024Swiss Cheese Model for AI Safety: A Taxonomy and Reference Architecture for Multi-Layered Guardrails of Foundation Model Based Agents5 Aug 2024
- 2024Mission Impossible: A Statistical Perspective on Jailbreaking LLMs2 Aug 2024
- 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey5 Jul 2024
- 2024JailbreakZoo: Survey, Landscapes, and Horizons in Jailbreaking Large Language and Vision-Language Models26 Jun 2024
- 2024SafeInfer: Context Adaptive Decoding Time Safety Alignment for Large Language Models18 Jun 2024
- 2024Breaking Boundaries: Investigating the Effects of Model Editing on Cross-linguistic Performance17 Jun 2024
- 2024JailbreakEval: An Integrated Toolkit for Evaluating Jailbreak Attempts Against Large Language Models13 Jun 2024
- 2024Jailbreak Attacks and Defenses Against Large Language Models: A Surveycited by 215
- 2024JailbreakEval: An Integrated Toolkit for Evaluating Jailbreak Attempts Against Large Language Modelscited by 28
- 2024GASP: Efficient Black-Box Generation of Adversarial Suffixes for Jailbreaking LLMscited by 12
- 2025What Really Matters in Many-Shot Attacks? An Empirical Study of Long-Context Vulnerabilities in LLMscited by 7
- 2025Attributional Safety Failures in Large Language Models under Code-Mixed Perturbationscited by 6
- 2025SoK: Systematizing LLM Prompt Security: Taxonomies, Datasets, and Unified Evaluation of Attacks and Defensescited by 4
- 2025ConceptGuard: Neuro-Symbolic Safety Guardrails via Sparse Interpretable Jailbreak Conceptscited by 2
- 2025SoK: Systematizing LLM Prompt Security: Taxonomies, Datasets, and Unified Evaluation of Attacks and Defenses17 Oct 2025
- 2025ConceptGuard: Neuro-Symbolic Safety Guardrails via Sparse Interpretable Jailbreak Concepts22 Aug 2025
- 2025What Really Matters in Many-Shot Attacks? An Empirical Study of Long-Context Vulnerabilities in LLMs26 May 2025
- 2025Attributional Safety Failures in Large Language Models under Code-Mixed Perturbations20 May 2025
- 2024GASP: Efficient Black-Box Generation of Adversarial Suffixes for Jailbreaking LLMs21 Nov 2024
- 2024Jailbreak Attacks and Defenses Against Large Language Models: A Survey5 Jul 2024
- 2024JailbreakEval: An Integrated Toolkit for Evaluating Jailbreak Attempts Against Large Language Models13 Jun 2024
- 2024SafeInfer: Context Adaptive Decoding Time Safety Alignment for Large Language Modelscited by 22
- 2024Mission Impossible: A Statistical Perspective on Jailbreaking LLMscited by 21
- 2025Inverse Reinforcement Learning with Dynamic Reward Scaling for LLM Alignmentcited by 20
- 2025Soteria: Language-Specific Functional Parameter Steering for Multilingual Safety Alignmentcited by 10
- 2025AURA: Affordance-Understanding and Risk-aware Alignment Technique for Large Language Modelscited by 2
- 2026When Safety Speaks a Language: A Mechanistic Analysis of Safety-Language Identity Entanglement in LLMscited by 0
- 2026When Safety Speaks a Language: A Mechanistic Analysis of Safety-Language Identity Entanglement in LLMs30 Aug 2026
- 2025AURA: Affordance-Understanding and Risk-aware Alignment Technique for Large Language Models8 Aug 2025
- 2025Inverse Reinforcement Learning with Dynamic Reward Scaling for LLM Alignment23 Mar 2025
- 2025Soteria: Language-Specific Functional Parameter Steering for Multilingual Safety Alignment16 Feb 2025
- 2024Mission Impossible: A Statistical Perspective on Jailbreaking LLMs2 Aug 2024
- 2024SafeInfer: Context Adaptive Decoding Time Safety Alignment for Large Language Models18 Jun 2024
- 2024Swiss Cheese Model for AI Safety: A Taxonomy and Reference Architecture for Multi-Layered Guardrails of Foundation Model Based Agentscited by 13
- 2025From LLMs to MLLMs to Agents: A Survey of Emerging Paradigms in Jailbreak Attacks and Defenses within LLM Ecosystemcited by 11
- 2025SafeAgent: Safeguarding LLM Agents via an Automated Risk Simulatorcited by 6
- 2025From LLMs to MLLMs to Agents: A Survey of Emerging Paradigms in Jailbreak Attacks and Defenses within LLM Ecosystem18 Jun 2025
- 2025SafeAgent: Safeguarding LLM Agents via an Automated Risk Simulator23 May 2025
- 2024Swiss Cheese Model for AI Safety: A Taxonomy and Reference Architecture for Multi-Layered Guardrails of Foundation Model Based Agents5 Aug 2024
- 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 44
- 2025The Scales of Justitia: A Comprehensive Survey on Safety Evaluation of LLMscited by 24
- 2024Breaking Boundaries: Investigating the Effects of Model Editing on Cross-linguistic Performancecited by 4
- 2026SafeTutors: Benchmarking Pedagogical Safety in AI Tutoring Systemscited by 3
- 2025Phonetic Perturbations Reveal Tokenizer-Rooted Safety Gaps in LLMscited by 2
- 2026Tutoring Large Language Models to be Domain-adaptive, Precise, and Safecited by 0
- 2026JT-SAFE-V2: Safety-by-Design Foundation Model with World-Context Datacited by 0
- 2026Tutoring Large Language Models to be Domain-adaptive, Precise and Safecited by 0
- 2026Tutoring Large Language Models to be Domain-adaptive, Precise and Safe19 Sep 2026
- 2026JT-SAFE-V2: Safety-by-Design Foundation Model with World-Context Data23 May 2026
- 2026SafeTutors: Benchmarking Pedagogical Safety in AI Tutoring Systems18 Mar 2026
- 2026Tutoring Large Language Models to be Domain-adaptive, Precise, and Safe14 Feb 2026
- 2025The Scales of Justitia: A Comprehensive Survey on Safety Evaluation of LLMs6 Jun 2025
- 2025Phonetic Perturbations Reveal Tokenizer-Rooted Safety Gaps in LLMs20 May 2025
- 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insights10 Feb 2025
- 2024Breaking Boundaries: Investigating the Effects of Model Editing on Cross-linguistic Performance17 Jun 2024