Survey on LLM Safety: Attacks, Defenses, Alignment, Metrics, and Guardrails
Pratik Jalan, Vadivel Abishethvarman, Bhavik Chandna, Usman Naseem
Macquarie University · Sabaragamuwa University of Sri Lanka
Abstract
Abstract Large Language Models (LLM) have demonstrated remarkable capabilities across various applications, but their deployment raises critical safety concerns as potential misuse poses significant societal risks. This survey reviews the end-to-end security and safety pipeline of LLMs, focusing on the interaction between users and model responses. We categorize the system into five key components: attacks, defenses, safety alignment, metrics and guarding mechanisms. Attacks involve crafting adversarial inputs to exploit model vulnerabilities. Defenses act as countermeasures, aiming to detect and prevent such inputs before processing. Safety alignment ensures that, even when attacks reach the model, its responses remain consistent with ethical and policy-aligned behavior. Guarding mechanisms operate post-response to flag, filter, or block unsafe outputs. Each of these stages is subject to rigorous evaluation metrics to assess their effectiveness, robustness, and limitations. As LLMs evolve toward more general-purpose intelligence, these safety considerations become increasingly critical for the development of robust and trustworthy AI systems. Finally, we highlight open challenges and future research directions to advance the security and alignment of LLMs.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Security and privacy in LLMs: A comprehensive survey of threats and mitigation strategiesInformation Fusion · 2026
- Safeguarding large language models: a surveyArtificial Intelligence Review · 2025
- From LLMs to MLLMs to Agents: A Survey of Emerging Paradigms in Jailbreak Attacks and Defenses within LLM EcosystemACM Transactions on Knowledge Discovery from Data · 2026
- Security and Privacy of Large Language Models: Threat Taxonomy, Ethical Implications, and GovernanceAI · 2026
- Prompt-Based Jailbreaking of Leading LLM Chatbots: A Survey of Attacks and DefensesIEEE Transactions on Artificial Intelligence · 2026
- Jailbreak and Guard Aligned Language Models With Only Few In-Context DemonstrationsIEEE Transactions on Pattern Analysis and Machine Intelligence · 2026