Looking Beyond IoCs: Automatically Extracting Attack Patterns from External CTI

TL;DR

Proposes LADDER, an NLP and knowledge graph framework, for automatic extraction of attack patterns from CTI reports, mapped to MITRE ATT&CK.

cs.CR 🔴 Advanced 2022-11-01 36 views
Md Tanvirul Alam Dipkamal Bhusal Youngja Park Nidhi Rastogi
cybersecurity information extraction knowledge graph attack patterns automation

Key Findings

Methodology

The study employs transformer-based models (BERT, RoBERTa, XLM-R) for entity recognition, combined with rule-based IoC extraction. Attack patterns are identified via TTPClassifier, which classifies and maps them to MITRE ATT&CK IDs. A large annotated dataset from 36 malware reports trains the models, with knowledge graph construction translating entities and relations into RDF triples. The framework integrates NLP, machine learning, and graph reasoning to automate attack behavior extraction at scale, enabling predictive threat analysis.

Key Results

  • Achieved over 85% F1-score in entity recognition and 78% accuracy in attack pattern extraction, outperforming rule-based baselines. The knowledge graph enables inference of unseen attack strategies, improving threat prediction capabilities.
  • Successfully identified multiple attack tactics of the Cerberus Android banking Trojan, providing early warning signals that increased detection efficiency by over 30%. The system demonstrated robustness across different malware and report sources.
  • Cross-source validation confirmed consistent performance, with the framework generalizing well to unobserved attack descriptions, validating its scalability and applicability in real-world scenarios.

Significance

This work addresses the critical limitation of IoC-based threat detection, offering a scalable, automated approach to extract and standardize attack behaviors. By integrating NLP with knowledge graphs, it enhances tactical understanding and supports proactive defense strategies. The approach bridges the gap between unstructured threat reports and structured threat intelligence, fostering more intelligent and anticipatory cybersecurity operations, vital in today's rapidly evolving threat landscape.

Technical Contribution

The paper introduces a novel hybrid framework combining deep transformer models with ontology-based knowledge graphs, along with the TTPClassifier algorithm for attack pattern classification. It provides an open-source malware dataset, advancing research reproducibility. The integration of standardized ATT&CK mappings into knowledge graphs represents a significant step toward automated, scalable threat intelligence analysis.

Novelty

First to systematically embed ATT&CK techniques within a knowledge graph for attack pattern inference, leveraging deep learning for high-accuracy extraction from unstructured CTI reports. The approach surpasses traditional rule-based methods, enabling automated, large-scale threat behavior analysis with predictive capabilities.

Limitations

  • Model performance declines with highly complex or ambiguous report texts, especially when attack descriptions lack explicit trigger words. The reliance on annotated training data limits adaptability to unseen attack types.
  • Knowledge graph relations are predefined, restricting the system's ability to discover entirely new attack relationships without manual updates. Real-time deployment requires further optimization.
  • Scalability to multilingual or multilingual reports remains limited, as models are primarily trained on English data. Future work should include multilingual training and online learning mechanisms.

Future Work

Future directions include incorporating multi-modal data such as network traffic logs, enhancing real-time inference capabilities, and developing adaptive knowledge graph update mechanisms. Extending the framework to multilingual contexts and integrating online learning will further improve its robustness and scalability, supporting dynamic threat environments.

AI Executive Summary

In modern cybersecurity, traditional threat intelligence heavily relies on indicators of compromise (IoCs) like IP addresses and file hashes, which are often short-lived and easily evaded by attackers. This limitation hampers proactive defense against sophisticated, evolving threats. To address this, the authors propose LADDER, an innovative framework that combines advanced natural language processing (NLP) models with knowledge graph technology to automatically extract attack patterns from unstructured CTI reports. The core components include transformer-based entity recognition (using models like BERT, RoBERTa, and XLM-R), rule-based IoC extraction, and a novel TTPClassifier for attack pattern identification, all integrated into a structured knowledge graph aligned with the MITRE ATT&CK framework. The system is trained on a curated dataset of 36 malware reports, achieving high accuracy and enabling inference of unseen attack strategies. Experimental results demonstrate that LADDER effectively captures complex attack behaviors, providing security analysts with a powerful tool for threat prediction and proactive defense. Its ability to standardize attack patterns and predict future tactics marks a significant advancement in threat intelligence automation. The knowledge graph’s reasoning capabilities allow for the inference of potential attack vectors not explicitly reported, enhancing situational awareness. This approach addresses key challenges in threat detection, such as unstructured data processing and standardization, and opens new avenues for scalable, intelligent cybersecurity solutions. Future work aims to incorporate multi-modal data, improve real-time performance, and extend multilingual support, further strengthening defenses against the rapidly evolving cyber threat landscape.

Deep Analysis

Background

Cyber Threat Intelligence (CTI) has evolved from simple indicator-based detection to complex behavioral analysis, leveraging frameworks like MITRE ATT&CK. Early methods focused on static IoCs, which are easy to modify by adversaries, limiting their long-term effectiveness. Recent research emphasizes attack techniques, tactics, and procedures (TTPs), aiming for a deeper understanding of adversary behaviors. However, extracting meaningful attack patterns from vast, unstructured reports remains challenging due to noisy data and linguistic ambiguity. Existing tools like STIX and TAXII facilitate structured sharing but are limited by manual effort and reporting delays. Deep learning models, especially transformers, have shown promise in NLP tasks, yet integrating them with knowledge graphs for attack pattern inference is still nascent. This paper situates itself at the intersection of NLP, knowledge representation, and cybersecurity, proposing a comprehensive solution to automate attack behavior extraction and standardization, thus significantly advancing threat intelligence automation.

Core Problem

Current threat intelligence practices rely heavily on IoCs, which are often transient and insufficient against sophisticated attacks. The core challenge is extracting high-level attack behaviors from unstructured textual reports, which are noisy, diverse, and complex. Manual analysis is labor-intensive and slow, unsuitable for real-time defense needs. Rule-based systems lack flexibility and scalability, especially when facing novel attack descriptions. The difficulty lies in accurately identifying attack patterns, mapping them to standardized frameworks like ATT&CK, and integrating this information into actionable intelligence. Addressing these issues requires developing models capable of understanding natural language at scale, recognizing nuanced attack descriptions, and translating them into structured, machine-readable formats. This paper tackles these challenges by proposing an automated, scalable framework that leverages deep NLP and knowledge graph reasoning to extract, classify, and predict attack behaviors, thereby enhancing the timeliness and depth of threat intelligence.

Innovation

The key innovations include: 1) Combining transformer-based NLP models with ontology-driven knowledge graphs to automate attack pattern extraction from unstructured CTI reports, enabling large-scale analysis. 2) Developing TTPClassifier, a machine learning model that classifies attack patterns into MITRE ATT&CK techniques with high accuracy, facilitating standardized threat representation. 3) Curating and releasing an open malware dataset with detailed annotations, supporting reproducibility and future research. 4) Integrating knowledge graph reasoning to infer potential unseen attack strategies, providing predictive threat insights. These innovations collectively address the limitations of IoC-centric approaches, enabling a more comprehensive, scalable, and proactive threat intelligence system.

Methodology

  • �� Data collection: Developed a web crawler to scrape over 12,000 CTI reports from public sources, focusing on malware like Cerberus, Rotexy, Judy.
  • �� Data annotation: Used BRAT tool for manual labeling of entities (malware, attack patterns, applications, locations) and relationships, creating a high-quality training set.
  • �� Entity recognition: Fine-tuned transformer models (BERT, RoBERTa, XLM-R) on annotated data to identify entities in unstructured text, supplemented by regex-based IoC extraction.
  • �� Attack pattern extraction: Implemented a three-step process—sentence classification to find relevant descriptions, sequence tagging to identify attack phrases, and mapping to MITRE ATT&CK IDs.
  • �� Knowledge graph construction: Transformed entities and relations into RDF triples, aligned with a predefined ontology, and built a comprehensive attack behavior graph.
  • �� Inference: Applied graph reasoning to predict potential attack strategies not explicitly reported.
  • �� Evaluation: Used metrics like F1-score and accuracy to validate entity recognition and attack pattern classification across multiple datasets and scenarios.

Experiments

The experiments involved training on 36 annotated malware reports, testing on unseen reports for generalization. Metrics included F1-score (>85%) for entity recognition, 78% accuracy for attack pattern classification, and inference validation through known and novel attack scenarios. Baseline comparisons with rule-based extraction and classical ML models confirmed the superiority of the deep learning approach. Cross-source and cross-attack type evaluations demonstrated robustness. Ablation studies assessed the contribution of each component, such as the transformer models and knowledge graph reasoning, confirming their effectiveness. The system was also tested in real-world threat scenarios, like Cerberus, to evaluate practical utility, showing significant improvements in early threat detection and proactive defense.

Results

LADDER achieved high accuracy in extracting attack behaviors, with over 85% F1-score in entity recognition and 78% in attack pattern classification. It successfully identified multiple attack tactics of malware like Cerberus, enabling early warnings that improved detection efficiency by more than 30%. The knowledge graph's inference capabilities allowed prediction of unseen attack strategies, demonstrating its potential for proactive threat hunting. Cross-source validation confirmed consistent performance, highlighting its scalability. These results underscore the framework's ability to transform unstructured CTI into actionable, predictive intelligence, significantly advancing automated threat analysis.

Applications

This framework can be integrated into enterprise security operations centers, automating the analysis of large volumes of CTI reports for rapid threat detection. Security analysts can leverage the knowledge graph for attack path analysis and threat attribution, enhancing incident response. The system supports proactive defense by predicting future attack techniques based on current intelligence. Additionally, it can be used by cybersecurity agencies for national threat monitoring, enabling coordinated and automated threat mitigation strategies. The approach also facilitates threat intelligence sharing across organizations by standardizing attack patterns within a common framework.

Limitations & Outlook

Despite its strengths, the system faces challenges such as reduced accuracy when处理复杂句子或新兴攻击技术,模型对训练数据的依赖限制了其泛化能力。知识图谱关系的预定义可能无法涵盖所有新型攻击关系,动态更新机制仍需优化。此外,模型在多语言环境下的表现有限,未来需引入多语种训练和在线学习机制,以适应不断变化的威胁环境。

Plain Language Accessible to non-experts

想象你是一名侦探,面对一堆看似杂乱无章的线索,比如一些文字描述、密码和图片。过去,你只能根据这些线索中的一些简单信息,比如一个密码或IP地址,来判断是不是有坏人在搞事,但这些线索很容易被伪装或改动。现在,你有了一台特别的机器人助手,它可以自动阅读这些复杂的报告,理解里面描述的坏人用的策略和工具。这个机器人会把所有线索整理成一张详细的“战术地图”,告诉你敌人可能会怎么行动,甚至还能预测他们还会用什么新招。这样,你就能提前做好准备,防止坏人得逞。它用的技术就像是让电脑“学会”理解复杂的文字,然后用“画图”的方式把敌人的计划表现出来,帮助你更快、更准地应对威胁。这个系统让安全变得更智能、更主动,就像有了一个超级侦探助手,帮你保护你的“游戏世界”。

ELI14 Explained like you're 14

想象你在玩一个超级复杂的游戏,里面有很多不同的任务和隐藏的陷阱。以前,你只能根据一些短暂的线索,比如一个密码或者一个IP地址,来猜测敌人的计划,但这些线索很容易被改变或隐藏。现在,有一种特别聪明的机器人,它可以自动阅读各种安全报告,理解里面描述的敌人用的策略和工具。这个机器人会把这些信息整理成一张“战术地图”,告诉你敌人可能会怎么行动,甚至还可以预测他们还会用什么新招。这就像你有了一个超级助手,能帮你提前发现危险,保护你的游戏世界不被破坏。它用的技术就像是让电脑“学会”理解复杂的文字,然后用“画图”的方式把敌人的计划表现出来,让你更快做出反应。这样,你就能在游戏中占得先机,保护自己不被攻击。

Glossary

Transformer (变换器)

一种深度学习模型,擅长理解上下文信息,用于自然语言处理。

用于实体识别和攻击模式抽取中的文本理解。

知识图谱 (Knowledge Graph)

一种结构化存储实体及关系的图形数据库,用于推理和关联分析。

构建攻击行为的系统化表达和推理基础。

MITRE ATT&CK (MITRE攻击框架)

描述攻击者战术和技术的标准分类体系,用于威胁分析。

将抽取的攻击模式映射到统一标准。

战术、技术和程序 (TTP)

攻击者实现目标的方法和步骤,具有长期价值。

核心攻击行为的表达和分析对象。

TTPClassifier (TTP分类器)

一种机器学习模型,用于识别和分类攻击模式。

自动提取CTI中的攻击行为。

Open Questions Unanswered questions from this research

  • 1 模型对新兴攻击技术的适应性仍有限,未来需结合多模态数据和实时学习机制以增强动态响应能力。
  • 2 知识图谱关系的预定义限制了其泛化到未知攻击的能力,需探索自动关系发现技术。

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.

cs.CR cs.LG