Skip to main content
QUICK REVIEW

[Paper Review] Large Language Models for Cyber Security: A Systematic Literature Review

HanXiang Xu, ShenAo Wang|arXiv (Cornell University)|May 8, 2024
Information and Cyber SecurityComputer Science23 citations
TL;DR

This paper conducts a systematic literature review of LLM applications in cybersecurity (LLM4Security), analyzing 127 papers from top venues to map tasks, datasets, techniques, and challenges.

ABSTRACT

The rapid advancement of Large Language Models (LLMs) has opened up new opportunities for leveraging artificial intelligence in a variety of application domains, including cybersecurity. As the volume and sophistication of cyber threats continue to grow, there is an increasing need for intelligent systems that can automatically detect vulnerabilities, analyze malware, and respond to attacks. In this survey, we conduct a comprehensive review of the literature on the application of LLMs in cybersecurity~(LLM4Security). By comprehensively collecting over 40K relevant papers and systematically analyzing 185 papers from top security and software engineering venues, we aim to provide a holistic view of how LLMs are being used to solve diverse problems across the cybersecurity domain. Through our analysis, we identify several key findings. First, we observe that LLMs are being applied to an expanding range of cybersecurity tasks, including vulnerability detection, malware analysis, and network intrusion detection. Second, we analyze application trends of different LLM architectures (such as encoder-only, encoder-decoder, and decoder-only) across security domains. Third, we identify increasingly sophisticated techniques for adapting LLMs to cybersecurity, such as advanced fine-tuning, prompt engineering, and external augmentation strategies. A significant emerging trend is the use of LLM-based autonomous agents, which represent a paradigm shift from single-task execution to orchestrating complex, multi-step security workflows.

Motivation & Objective

  • Map how LLMs are used to address cybersecurity tasks across domains (security, software security, network security, malware analysis).
  • Identify datasets, preprocessing, and domain adaptation techniques used in LLM-based security solutions.
  • Assess architectures, model types, and trends in LLM deployment for security tasks.
  • Highlight gaps, challenges, and opportunities to guide future LLM4Security research.

Proposed method

  • Collect and filter over 38,112 papers using quasi-gold standard search across security and software engineering venues plus arXiv.
  • Manually screen to 523 candidate papers, then perform quality assessment yielding 93 eligible papers.
  • Apply forward and backward snowballing to reach a final set of 127 papers for data extraction.
  • Classify papers by LLM type, security task, domain adaptation technique, and dataset characteristics.
  • Answer four research questions through structured analysis of architectures, tasks, and data processing.

Experimental results

Research questions

  • RQ1RQ1: What LLMs have been employed to support security tasks?
  • RQ2RQ2: What types of security tasks have been facilitated by LLM-based approaches?
  • RQ3RQ3: What domain specification techniques are used to adapt LLMs to security tasks?
  • RQ4RQ4: What is the difference in data collection and pre-processing when applying LLMs to security tasks?

Key findings

  • LLMs are applied to a wide range of cybersecurity tasks including vulnerability detection, malware analysis, network intrusion detection, and phishing detection.
  • Datasets used for training/evaluation are often limited in size and diversity, signaling a need for more comprehensive datasets.
  • Domain adaptation techniques such as fine-tuning, transfer learning, and domain-specific pre-training are commonly used to tailor LLMs to security tasks.
  • There is a growing emphasis on interpretable/explainable models and on addressing data privacy and security concerns for LLM-based security systems.
  • Decoder-only architectures have become dominant in 2023–2024 for security tasks, with trends showing shifts from encoder-based models in earlier years.
  • The study provides a structured landscape of LLM4Security, highlighting opportunities for proactive defense and threat hunting.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.