mlsanityData to 7 Oct 2026

Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniques

arXiv 2507.13629 ↗First posted 18 Jul 2025cs.CR cs.AI cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) are transforming cybersecurity by enabling intelligent, adaptive, and automated approaches to threat detection, vulnerability assessment, and incident response. With their advanced language understanding and contextual reasoning, LLMs surpass traditional methods in tackling challenges across domains such as IoT, blockchain, and hardware security. This survey provides a comprehensive overview of LLM applications in cybersecurity, focusing on two core areas: (1) the integration of LLMs into key cybersecurity domains, and (2) the vulnerabilities of LLMs themselves, along with mitigation strategies. By synthesizing recent advancements and identifying key limitations, this work offers practical insights and strategic recommendations for leveraging LLMs to build secure, scalable, and future-ready cyber defense systems.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 145 of its 235 references that are in the map. First posted on arXiv 18 Jul 2025.

Builds on

145 of 235 references.

References · 145

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
  4. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
  5. 2019A Survey on Bias and Fairness in Machine Learningcited by 1,911
  6. 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,366
  7. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
  8. 2023Large Language Modelscited by 774
  9. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
  10. 2022Red Teaming Language Models to Reduce Harms: Methods, Scaling Behaviors, and Lessons Learnedcited by 702
  11. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 608
  12. 2018Fine-Pruning: Defending Against Backdooring Attacks on Deep Neural Networkscited by 550
38 more
  1. 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 450
  2. 2023SmoothLLM: Defending Large Language Models Against Jailbreaking Attackscited by 434
  3. 2023Detecting Language Model Attacks with Perplexitycited by 411
  4. 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Basescited by 402
  5. 2023Trustworthy LLMs: a Survey and Guideline for Evaluating Large Language Models' Alignmentcited by 394
  6. 2023Safety-Tuned LLaMAs: Lessons From Improving the Safety of Large Language Models that Follow Instructionscited by 377
  7. 2023Explainability for Large Language Models: A Surveycited by 331
  8. 2023Formalizing and Benchmarking Prompt Injection Attacks and Defensescited by 328
  9. 2020Weight Poisoning Attacks on Pre-trained Modelscited by 318
  10. 2023Poisoning Language Models During Instruction Tuningcited by 254
  11. 2023Challenges and Applications of Large Language Modelscited by 251
  12. 2023Certifying LLM Safety against Adversarial Promptingcited by 248
  13. 2020HateCheck: Functional Tests for Hate Speech Detection Modelscited by 215
  14. 2022Demystifying Prompts in Language Models via Perplexity Estimationcited by 215
  15. 2023Survey of Vulnerabilities in Large Language Models Revealed by Adversarial Attackscited by 189
  16. 2022Do Users Write More Insecure Code with AI Assistants?cited by 186
  17. 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 179
  18. 2023RoleLLM: Benchmarking, Eliciting, and Enhancing Role-Playing Abilities of Large Language Modelscited by 173
  19. 2020Toward Trustworthy AI Development: Mechanisms for Supporting Verifiable Claimscited by 163
  20. 2023Defending Large Language Models Against Jailbreaking Attacks Through Goal Prioritizationcited by 156
  21. 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 125
  22. 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judgecited by 123
  23. 2024Granite Code Models: A Family of Open Foundation Models for Code Intelligencecited by 116
  24. 2023InferFix: End-to-End Program Repair with LLMscited by 113
  25. 2023On the Exploitability of Instruction Tuningcited by 110
  26. 2020Just How Toxic is Data Poisoning? A Unified Benchmark for Backdoor and Data Poisoning Attackscited by 109
  27. 2021Examining Zero-Shot Vulnerability Repair with Large Language Modelscited by 105
  28. 2022Large Language Models are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Modelscited by 102
  29. 2023PentestGPT: An LLM-empowered Automatic Penetration Testing Toolcited by 94
  30. 2023LLMs Cannot Reliably Identify and Reason About Security Vulnerabilities (Yet?): A Comprehensive Evaluation, Framework, and Benchmarkscited by 94
  31. 2022Machine Generated Text: A Comprehensive Survey of Threat Models and Detection Methodscited by 75
  32. 2022A Unified Evaluation of Textual Backdoor Learning: Frameworks and Benchmarkscited by 70
  33. 2023Large Language Models for Test-Free Fault Localizationcited by 67
  34. 2024JailbreakZoo: Survey, Landscapes, and Horizons in Jailbreaking Large Language and Vision-Language Modelscited by 67
  35. 2024Fine-tuning large language models for domain adaptation: Exploration of training strategies, scaling, model merging and synergistic capabilitiescited by 67
  36. 2023GPTScan: Detecting Logic Vulnerabilities in Smart Contracts by Combining GPT with Program Analysiscited by 65
  37. 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
  38. 2022BadPrompt: Backdoor Attacks on Continuous Promptscited by 59

50 most cited of 145 All 145 (JSON)

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025From Texts to Shields: Convergence of Large Language Models and Cybersecurity
  2. 2026Large Language Models (LLMs) and Generative AI in Cybersecurity and Privacy: A Survey of Dual-Use Risks, AI-Generated Malware, Explainability, and Defensive Strategies
  3. 2023Advancing TTP Analysis: Harnessing the Power of Large Language Models with Retrieval Augmented Generation
  4. 2024Unique Security and Privacy Threats of Large Language Models: A Comprehensive Survey
  5. 2024Generative AI in Cybersecurity: A Comprehensive Review of LLM Applications and Vulnerabilities
  6. 2025LLMpatronous: Harnessing the Power of LLMs For Vulnerability Detection
  7. 2024ThreatModeling-LLM: Automating Threat Modeling using Large Language Models for Banking System
  8. 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Ugly