Looking Beyond IoCs: Automatically Extracting Attack Patterns from External CTI

Md Tanvirul Alam, Dipkamal Bhusal, Youngja Park, Nidhi Rastogi

TL;DR

LADDER is a new framework that moves beyond "brittle" security indicators like IP addresses to automatically extract high-level attack patterns from unstructured threat reports. By combining natural language processing (NLP) with Knowledge Graphs, it maps adversary behaviors to the standardized MITRE ATT&CK framework, allowing security teams to predict future attack steps even when they haven't been explicitly reported yet.

What Problem Does This Paper Address?

In the world of Cyber Threat Intelligence (CTI), most defenders rely on Indicators of Compromise (IoCs)—things like specific file hashes, IP addresses, or domain names. The problem? These are incredibly easy for attackers to change. A single bit flip in a malware binary creates a new hash, rendering the old intelligence useless. This is often referred to in the industry as the "Pyramid of Pain," where IoCs are at the bottom (easy to change) and Tactics, Techniques, and Procedures (TTPs) are at the apex (hard for attackers to change).

While TTPs are more valuable, they are usually buried in thousands of unstructured, human-written blog posts and reports. Manually extracting these patterns is a Herculean task for security analysts. The authors of this paper tackle the challenge of automating the extraction of these robust "attack patterns" and organizing them into a format that machines can actually reason with.

Methods

The authors propose LADDER, a multi-stage pipeline designed to turn messy text into a structured Knowledge Graph (KG). The process involves several key steps:

  1. Data Collection: A high-performance web crawler scraped over 12,000 CTI reports from reputable security sources (McAfee, Symantec, Kaspersky, etc.).
  2. Information Extraction: Using state-of-the-art Transformer models (BERT, RoBERTa, and XLM-RoBERTa), LADDER performs Named Entity Recognition (NER) to identify entities like Malware, Operating Systems, and Locations.
  3. Relationship Extraction: The system identifies how these entities relate (e.g., <Malware> uses <AttackPattern>) to form "triples."
  4. TTPClassifier: This is a novel component that identifies specific attack phrases in text and maps them to standardized MITRE ATT&CK IDs. It uses semantic similarity—comparing the meaning of the extracted text to the official MITRE descriptions—to ensure accuracy even when the wording differs.
  5. Knowledge Graph & Inference: All extracted triples are fed into a Knowledge Graph. Using a link prediction algorithm called TuckER, the system can "infer" missing information. For example, if the graph knows Malware A is similar to Malware B, it can predict that Malware A might use a specific attack pattern even if the report didn't mention it.

Datasets

One of the paper's major contributions is a new, open-access benchmark malware dataset.

  • The Dataset: Contains 140,447 tokens with 11,555 manually annotated named entities and 5,499 relations.
  • Scope: It focuses on 36 representative malware families (primarily Android-based) from 2015–2022.
  • Significance: Publicly available, labeled CTI datasets for relationship extraction are rare, making this a valuable resource for training future security-focused NLP models.

Key Insights and Ideas

  • The Power of Inference: The most striking "aha moment" is that LADDER doesn't just summarize what it reads; it predicts. By treating threat intelligence as a graph problem, the authors show that you can uncover "hidden" attack patterns by looking at the neighbors of a malware node in the graph.
  • Semantic Mapping vs. Keyword Matching: Traditional tools often fail if an attacker's behavior is described using different words. LADDER’s use of sentence embeddings to map text to MITRE IDs makes it much more resilient to the natural variations in human writing.
  • Filtering the Noise: The authors found that a multi-step approach—first identifying if a sentence contains an attack pattern before trying to extract it—significantly reduced false positives compared to existing state-of-the-art tools like TTPDrill.

Key Results

  • NLP Performance: The XLM-RoBERTa-large model proved most effective for entity extraction, achieving an F1-score of 78.98%. For relationship extraction, BERT-large led the pack with a 92.62% F1-score.
  • Attack Pattern Extraction: LADDER achieved a 90.64% F1-score in extracting attack phrases, significantly outperforming previous template-matching approaches which suffered from high false-positive rates.
  • Predictive Accuracy: In testing on well-known malware like Anubis and Flubot, the Knowledge Graph correctly predicted 9 out of the top 10 attack patterns for Anubis, demonstrating that the "link prediction" approach is a viable way to anticipate adversary behavior.

Limitations and Future Work

While LADDER is powerful, the authors note a few areas for improvement:

  • Temporal Dynamics: The current model treats all intelligence as a snapshot. In reality, malware evolves. Future work aims to integrate temporal analysis to track how attack patterns change over time.
  • System Log Integration: While the paper shows a case study correlating CTI with kernel logs, fully automating the bridge between "what the report says" and "what the server logs show" remains a complex challenge.
  • Manual Mapping Refinement: Some mapping to MITRE IDs still requires manual threshold tuning to balance precision and recall.

LADDER represents a significant step toward "proactive" defense, moving the needle from chasing ephemeral IP addresses to understanding the fundamental DNA of cyberattacks.

Summary updated

Abstract

Public and commercial organizations extensively share cyberthreat intelligence (CTI) to prepare systems to defend against existing and emerging cyberattacks. However, traditional CTI has primarily focused on tracking known threat indicators such as IP addresses and domain names, which may not provide long-term value in defending against evolving attacks. To address this challenge, we propose to use more robust threat intelligence signals called attack patterns. LADDER is a knowledge extraction framework that can extract text-based attack patterns from CTI reports at scale. The framework characterizes attack patterns by capturing the phases of an attack in Android and enterprise networks and systematically maps them to the MITRE ATT&CK pattern framework. LADDER can be used by security analysts to determine the presence of attack vectors related to existing and emerging threats, enabling them to prepare defenses proactively. We also present several use cases to demonstrate the application of LADDER in real-world scenarios. Finally, we provide a new, open-access benchmark malware dataset to train future cyberthreat intelligence models.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
MITRE ATT&CK · Attack pattern extraction on five MITRE ATT&CK reports cTTPClassifierRecall0.63+0.05 vs baselineAttack Pattern Extraction · reports=5 · platform=enterprise
Source quote
L364: TTPClassifier │ 41 │ 24 │ 22 │ 0.65 │ 0.63 │ 0.64
AttackPattern prediction for AnubisTuckER (LADDER knowledge graph)Correct predictions in top 109 predictionsLink Prediction · k=10 · target=Anubis · knowledge-graph=KG2
Source quote
L415: We show the top 20 attack patterns predicted for the two malware with confidence scores in Table \ref{tab:usecase}. As we include more predictions, it invariably includes less confident outputs resulting in more false positives. However, we see promising results for the top predictions. We get 9 correct predictions for Anubis and 7 correct predictions for Flubot out of the top 10. When we extend to the top 15, the number of correct predictions is 12 for both malware. These results suggest a strong correlation exists between different malware behavior. We can use a knowledge graph to leverage this for predicting unknown behavior, viz., infer future attack patterns from the available information. We can also use this for filling up missing information in existing knowledge graphs.
AttackPattern prediction for FlubotTuckER (LADDER knowledge graph)Correct predictions in top 107 predictionsLink Prediction · k=10 · target=Flubot · knowledge-graph=KG2
Source quote
L415: We show the top 20 attack patterns predicted for the two malware with confidence scores in Table \ref{tab:usecase}. As we include more predictions, it invariably includes less confident outputs resulting in more false positives. However, we see promising results for the top predictions. We get 9 correct predictions for Anubis and 7 correct predictions for Flubot out of the top 10. When we extend to the top 15, the number of correct predictions is 12 for both malware. These results suggest a strong correlation exists between different malware behavior. We can use a knowledge graph to leverage this for predicting unknown behavior, viz., infer future attack patterns from the available information. We can also use this for filling up missing information in existing knowledge graphs.
AttackPattern prediction for AnubisTuckER (LADDER knowledge graph)Correct predictions in top 1512 predictionsLink Prediction · k=15 · target=Anubis · knowledge-graph=KG2
Source quote
L415: We show the top 20 attack patterns predicted for the two malware with confidence scores in Table \ref{tab:usecase}. As we include more predictions, it invariably includes less confident outputs resulting in more false positives. However, we see promising results for the top predictions. We get 9 correct predictions for Anubis and 7 correct predictions for Flubot out of the top 10. When we extend to the top 15, the number of correct predictions is 12 for both malware. These results suggest a strong correlation exists between different malware behavior. We can use a knowledge graph to leverage this for predicting unknown behavior, viz., infer future attack patterns from the available information. We can also use this for filling up missing information in existing knowledge graphs.
AttackPattern prediction for FlubotTuckER (LADDER knowledge graph)Correct predictions in top 1512 predictionsLink Prediction · k=15 · target=Flubot · knowledge-graph=KG2
Source quote
L415: We show the top 20 attack patterns predicted for the two malware with confidence scores in Table \ref{tab:usecase}. As we include more predictions, it invariably includes less confident outputs resulting in more false positives. However, we see promising results for the top predictions. We get 9 correct predictions for Anubis and 7 correct predictions for Flubot out of the top 10. When we extend to the top 15, the number of correct predictions is 12 for both malware. These results suggest a strong correlation exists between different malware behavior. We can use a knowledge graph to leverage this for predicting unknown behavior, viz., infer future attack patterns from the available information. We can also use this for filling up missing information in existing knowledge graphs.
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
MITRE ATT&CK · Attack pattern extraction on five MITRE ATT&CK reports cMITRE baselineRecall0.58Attack Pattern Extraction · reports=5 · platform=enterprise
Source quote
L361: Method │ TP │ FN │ FP │ Precision │ Recall │ F1-score MITRE │ 38 │ 27 │ 0 │ 1.00 │ 0.58 │ 0.74
BibTeX
@inproceedings{alam2023looking,
  author = {Md Tanvirul Alam and Dipkamal Bhusal and Youngja Park and Nidhi Rastogi},
  title = {{Looking Beyond IoCs: Automatically Extracting Attack Patterns from External CTI}},
  booktitle = {RAID},
  year = {2023},
  doi = {10.1145/3607199.3607208},
}

Loading related content...

Figure