Skip to main content
QUICK REVIEW

[Paper Review] On the Uses of Large Language Models to Interpret Ambiguous Cyberattack Descriptions

Reza Fayyazi, Shanchieh Jay Yang|arXiv (Cornell University)|Jun 24, 2023
Information and Cyber SecurityComputer Science8 citations
TL;DR

The paper compares direct use of LLMs (GPT-3.5 and Bard) with supervised fine-tuning of small LLMs (BERT and SecureBERT) to map TTP descriptions to MITRE ATT&CK tactics, finding small LLMs with SFT more precise while LLMs offer broader interpretations and inherent ambiguity remains.

ABSTRACT

The volume, variety, and velocity of change in vulnerabilities and exploits have made incident threat analysis challenging with human expertise and experience along. Tactics, Techniques, and Procedures (TTPs) are to describe how and why attackers exploit vulnerabilities. However, a TTP description written by one security professional can be interpreted very differently by another, leading to confusion in cybersecurity operations or even business, policy, and legal decisions. Meanwhile, advancements in AI have led to the increasing use of Natural Language Processing (NLP) algorithms to assist the various tasks in cyber operations. With the rise of Large Language Models (LLMs), NLP tasks have significantly improved because of the LLM's semantic understanding and scalability. This leads us to question how well LLMs can interpret TTPs or general cyberattack descriptions to inform analysts of the intended purposes of cyberattacks. We propose to analyze and compare the direct use of LLMs (e.g., GPT-3.5) versus supervised fine-tuning (SFT) of small-scale-LLMs (e.g., BERT) to study their capabilities in predicting ATT&CK tactics. Our results reveal that the small-scale-LLMs with SFT provide a more focused and clearer differentiation between the ATT&CK tactics (if such differentiation exists). On the other hand, direct use of LLMs offer a broader interpretation of cyberattack techniques. When treating more general cases, despite the power of LLMs, inherent ambiguity exists and limits their predictive power. We then summarize the challenges and recommend research directions on LLMs to treat the inherent ambiguity of TTP descriptions used in various cyber operations.

Motivation & Objective

  • Motivate the challenge of interpreting TTP descriptions due to inherent ambiguity.
  • Compare direct LLM usage versus supervised fine-tuning of small-scale LLMs for ATT&CK mapping.
  • Evaluate performance on ATT&CK and CAPEC descriptions to assess generalization.
  • Identify inherent ambiguities in TTP descriptions and propose future research directions.

Proposed method

  • Compile ATT&CK descriptions (618 total) and CAPEC mappings to ATT&CK (177 CAPECs) for evaluation.
  • Fine-tune BERT-base and SecureBERT (12 layers, 768 hidden size) for multi-label ATT&CK tactic classification using sigmoid activation.
  • Design and apply engineered prompts for GPT-3.5 and Bard to map descriptions to 14 ATT&CK tactics or NONE (with constraints for Bard).
  • Evaluate models with Micro-F1, accuracy, precision, recall, and per-tactic analyses across 5-fold cross-validation.
  • Compare results across ATT&CK and CAPEC datasets to analyze ambiguity and generalization.

Experimental results

Research questions

  • RQ1Can direct use of LLMs predict MITRE ATT&CK tactics from cyberattack descriptions?
  • RQ2Can supervised fine-tuning of small-scale LLMs provide more precise differentiation of ATT&CK tactics?
  • RQ3How well do CAPEC descriptions map to ATT&CK tactics and generalize to unseen data?
  • RQ4What inherent ambiguities exist in TTP descriptions and how do LLMs handle them?

Key findings

  • SecureBERT-SFT achieved Avg Accuracy 0.85 and Micro-F1 0.92 on ATT&CK, outperforming BERT-SFT (0.76, 0.87).
  • GPT-3.5 achieved Micro-F1 0.67 and Accuracy 0.44 on ATT&CK, while Bard achieved 0.66 and 0.31, respectively.
  • SecureBERT-SFT generally outperformed GPT-3.5 on ATT&CK with noted weaknesses in Lateral Movement predictions.
  • CAPEC results show both models performing poorly (including 0.00 F1 for some tactics) and SecureBERT-SFT overfitting to ATT&CK data when applied to CAPEC.
  • Two inherent ambiguity types in TTP descriptions were identified, with remaining predictive limits even for advanced LLMs.
  • Recommend future directions including prompt adaptation, self-supervised learning, and reinforcement learning to address ambiguity and evolving vulnerabilities.

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.