Skip to main content
QUICK REVIEW

[Paper Review] When LLMs Meet Cybersecurity: A Systematic Literature Review

Jie Zhang, H. Bu|arXiv (Cornell University)|May 6, 2024
Cybercrime and Law Enforcement StudiesComputer Science10 citations
TL;DR

This paper systematically reviews how large language models (LLMs) are constructed and applied in cybersecurity, analyzing over 180 works across 25 LLMs and 10+ tasks, and outlining challenges and future directions.

ABSTRACT

The rapid development of large language models (LLMs) has opened new avenues across various fields, including cybersecurity, which faces an evolving threat landscape and demand for innovative technologies. Despite initial explorations into the application of LLMs in cybersecurity, there is a lack of a comprehensive overview of this research area. This paper addresses this gap by providing a systematic literature review, covering the analysis of over 300 works, encompassing 25 LLMs and more than 10 downstream scenarios. Our comprehensive overview addresses three key research questions: the construction of cybersecurity-oriented LLMs, the application of LLMs to various cybersecurity tasks, the challenges and further research in this area. This study aims to shed light on the extensive potential of LLMs in enhancing cybersecurity practices and serve as a valuable resource for applying LLMs in this field. We also maintain and regularly update a list of practical guides on LLMs for cybersecurity at https://github.com/tmylla/Awesome-LLM4Cybersecurity.

Motivation & Objective

  • Survey the construction of cybersecurity-oriented domain LLMs using CPT, SFT, and PEFT techniques.
  • Catalog and analyze cybersecurity tasks where LLMs are applied (e.g., vulnerability detection, secure code generation, IT operations, threat intelligence).
  • Identify baselines, evaluation benchmarks, and data resources for assessing cybersecurity capabilities of LLMs.
  • Highlight challenges such as reproducibility, fragmentation, and LLM vulnerabilities, and propose directions for future research.

Proposed method

  • Systematic literature review of over 180 papers since 2023 on LLMs in cybersecurity.
  • Classification of LLM types (open-source vs closed-source) and domain- and code-focused models.
  • Discussion of domain adaptation methods: continual pre-training (CPT) and supervised fine-tuning (SFT), with full-parameter and parameter-efficient fine-tuning (PEFT) variants.
  • Analysis of base-model selection via cybersecurity benchmarks (CyberBench, SecEval, CyberMetric, SecQA, CyberSecEval, PythonSecurityEval, IT-operations benchmarks).
  • Examination of domain-specific fine-tuning efforts (e.g., vulnerability detection, secure code generation, program repair, binary analysis, IT operations).
  • Outline of model editing, prompt engineering, and other techniques to construct cybersecurity LLMs.

Experimental results

Research questions

  • RQ1RQ1: How to construct cybersecurity-oriented domain LLMs?
  • RQ2RQ2: What are the potential applications of LLMs in cybersecurity?
  • RQ3RQ3: What are the existing challenges and further research directions about the application of LLMs in cybersecurity?

Key findings

  • LLMs can be adapted to cybersecurity by fine-tuning general models with domain data using CPT and SFT, with PEFT methods offering efficient alternatives.
  • A broad set of cybersecurity tasks benefit from LLMs, including threat intelligence, vulnerability detection, code generation, program repair, binary analysis, IT operations, and anomaly detection.
  • Benchmark suites (CyberBench, SecEval, CyberMetric, SecQA, SecureCodeEval, etc.) support evaluating cybersecurity capabilities of LLMs and guide base-model selection.
  • Fine-tuned domain LLMs (e.g., SecureCoder, SafeCoder, Hackmentor, Owl) demonstrate improved performance on targeted cybersecurity tasks.
  • There are notable challenges related to reproducibility, fragmentation of studies, model vulnerabilities, and potential LLM-oriented attacks, with future directions suggested for stronger, more integrated research.

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.