[Paper Review] Generative AI in Cybersecurity: A Comprehensive Review of LLM Applications and Vulnerabilities
This survey reviews how Generative AI and Large Language Models are applied across cybersecurity domains, analyzes vulnerabilities, and discusses defense strategies, including a performance evaluation of 42 LLMs.
This paper provides a comprehensive review of the future of cybersecurity through Generative AI and Large Language Models (LLMs). We explore LLM applications across various domains, including hardware design security, intrusion detection, software engineering, design verification, cyber threat intelligence, malware detection, and phishing detection. We present an overview of LLM evolution and its current state, focusing on advancements in models such as GPT-4, GPT-3.5, Mixtral-8x7B, BERT, Falcon2, and LLaMA. Our analysis extends to LLM vulnerabilities, such as prompt injection, insecure output handling, data poisoning, DDoS attacks, and adversarial instructions. We delve into mitigation strategies to protect these models, providing a comprehensive look at potential attack scenarios and prevention techniques. Furthermore, we evaluate the performance of 42 LLM models in cybersecurity knowledge and hardware security, highlighting their strengths and weaknesses. We thoroughly evaluate cybersecurity datasets for LLM training and testing, covering the lifecycle from data creation to usage and identifying gaps for future research. In addition, we review new strategies for leveraging LLMs, including techniques like Half-Quadratic Quantization (HQQ), Reinforcement Learning with Human Feedback (RLHF), Direct Preference Optimization (DPO), Quantized Low-Rank Adapters (QLoRA), and Retrieval-Augmented Generation (RAG). These insights aim to enhance real-time cybersecurity defenses and improve the sophistication of LLM applications in threat detection and response. Our paper provides a foundational understanding and strategic direction for integrating LLMs into future cybersecurity frameworks, emphasizing innovation and robust model deployment to safeguard against evolving cyber threats.
Motivation & Objective
- Motivate the use of Generative AI and LLMs to bolster cybersecurity defenses against evolving threats.
- Map LLM applications across cybersecurity domains such as intrusion detection, threat intelligence, malware detection, and phishing detection.
- Summarize the evolution and current state of LLMs with emphasis on models like GPT-4o, GPT-4, BERT, Falcon, and LLaMA.
- Identify vulnerabilities of LLMs (e.g., prompt injection, data poisoning) and discuss mitigation strategies.
- Outline datasets and lifecycle considerations for training and testing LLMs in cybersecurity contexts.
Proposed method
- Survey 42 LLM models (e.g., GPT-4o, GPT-4, GPT-3.5, Mixtral-8x7B, BERT, Falcon2, Gemma, Phi-2, Phi-3, LLaMA) and their cybersecurity applications.
- Analyze LLM vulnerabilities including prompt injection, insecure output handling, training and inference data poisoning, DDoS, and adversarial NL instructions.
- Evaluate performance of LLMs on cybersecurity knowledge and hardware security datasets.
- Review cybersecurity datasets and their lifecycle from data creation to usage, identifying gaps and opportunities.
- Discuss advanced techniques for LLM leverage such as RLHF, DPO, ORPO, GGUF, QLoRA, and RAG.
- Provide mitigation strategies and attack scenarios to guide secure model deployment.

Experimental results
Research questions
- RQ1What are the main cybersecurity domains where LLMs can be effectively applied?
- RQ2What vulnerabilities affect LLMs in cybersecurity settings, and what mitigation strategies exist?
- RQ3How do state-of-the-art LLMs perform on cybersecurity knowledge and hardware security tasks across defined datasets?
- RQ4What are the lifecycle stages and gaps in cybersecurity datasets used for LLM training and evaluation?
- RQ5What strategic directions and techniques best enable robust, real-time LLM-enabled cybersecurity defenses?
Key findings
- The paper surveys 42 LLM models and their capabilities in cybersecurity knowledge and hardware security.
- LLMs exhibit vulnerabilities such as prompt injection, insecure output handling, training/inference data poisoning, DDoS attacks, and adversarial NL instructions.
- Mitigation strategies and defense techniques are discussed to protect LLMs against identified threats.
- The study evaluates performance of the 42 LLM models on cybersecurity datasets, highlighting strengths and weaknesses.
- A lifecycle analysis of cybersecurity datasets for LLM training and testing is provided, with gaps and opportunities for future research.
- Advanced strategies like RLHF, DPO, ORPO, GGUF, QLoRA, and RAG are reviewed as means to enhance LLM deployment in cybersecurity.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.