Skip to main content
QUICK REVIEW

[Paper Review] Using Retriever Augmented Large Language Models for Attack Graph Generation

Renascence Tarafder Prapty, Ashish Kundu|arXiv (Cornell University)|Aug 11, 2024
Topic ModelingComputer Science3 citations
TL;DR

This paper proposes CrystalBall, a retriever-augmented large language model (LLM) framework that automates attack graph generation from CVEs and threat reports by leveraging semantic retrieval and LLM reasoning. It achieves scalable, precise attack graph construction with minimal manual effort, outperforming baseline LLMs in accuracy and completeness.

ABSTRACT

As the complexity of modern systems increases, so does the importance of assessing their security posture through effective vulnerability management and threat modeling techniques. One powerful tool in the arsenal of cybersecurity professionals is the attack graph, a representation of all potential attack paths within a system that an adversary might exploit to achieve a certain objective. Traditional methods of generating attack graphs involve expert knowledge, manual curation, and computational algorithms that might not cover the entire threat landscape due to the ever-evolving nature of vulnerabilities and exploits. This paper explores the approach of leveraging large language models (LLMs), such as ChatGPT, to automate the generation of attack graphs by intelligently chaining Common Vulnerabilities and Exposures (CVEs) based on their preconditions and effects. It also shows how to utilize LLMs to create attack graphs from threat reports.

Motivation & Objective

  • Address the growing challenge of manually constructing comprehensive attack graphs in complex, evolving systems.
  • Overcome limitations of traditional rule-based and static model-based attack graph generation that fail to adapt to new vulnerabilities.
  • Enable scalable, automated generation of attack graphs using LLMs without requiring extensive retraining.
  • Improve precision and recall in attack path discovery by integrating semantic retrieval with LLM reasoning.
  • Demonstrate the feasibility of using LLMs to interpret unstructured threat reports and convert them into structured, actionable attack graphs.

Proposed method

  • Design a retriever-augmented generation (RAG) pipeline that retrieves relevant CVEs from a semantic search index based on system configuration or threat report input.
  • Construct a semantic search-capable structured database of CVEs using embeddings to enable fast, context-aware retrieval of vulnerabilities.
  • Use LLMs (e.g., ChatGPT, GPT-4) to analyze retrieved CVE descriptions and chain vulnerabilities based on preconditions and postconditions.
  • Formulate attack graphs as JSON with nodes (vulnerabilities) and edges (exploitation chains), preserving full semantic detail.
  • Apply zero-shot prompting and few-shot fine-tuning to guide LLMs in generating attack graphs from unstructured threat reports.
  • Evaluate system performance using metrics like graph completeness, attack path accuracy, and semantic relevance of generated edges.
Figure 1. Semi-structured format of a CVE record description
Figure 1. Semi-structured format of a CVE record description

Experimental results

Research questions

  • RQ1Can LLMs effectively chain CVEs based on their preconditions and postconditions to generate accurate attack graphs without fine-tuning?
  • RQ2How does retrieval-augmented generation improve the precision and recall of CVE selection compared to direct LLM prompting?
  • RQ3To what extent can LLMs extract and structure attack paths from unstructured threat reports such as the SolarWinds incident report?
  • RQ4How do different LLMs (e.g., GPT-4 vs. GPT-3.5) compare in generating semantically correct and complete attack graphs?
  • RQ5Can the proposed system scale to large-scale, real-world attack surface configurations while maintaining performance?

Key findings

  • The proposed CrystalBall framework successfully generates detailed, structured attack graphs from both CVE descriptions and unstructured threat reports with high fidelity.
  • Retrieval-augmented prompting significantly improves the relevance and accuracy of retrieved CVEs, reducing hallucination in attack path generation.
  • GPT-4 outperformed GPT-3.5 in attack graph completeness and semantic correctness, particularly in interpreting complex preconditions and postconditions.
  • The system was able to reconstruct a detailed attack graph from the SolarWinds supply chain compromise report, including lateral movement, C2 spoofing, and memory-only droppers.
  • The semantic search database enabled fast and accurate retrieval of CVEs based on system context, forming a scalable foundation for real-time threat modeling.
  • The framework demonstrated robustness in handling diverse input formats, including semi-structured CVEs and rich-text threat reports, without retraining.
Figure 2. Atttack Graph constructed from threat report of SolarWinds Supply Chain Compromise Incident
Figure 2. Atttack Graph constructed from threat report of SolarWinds Supply Chain Compromise Incident

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.