Abstract
Cyber Threat Intelligence (CTI) reports are essential for disseminating knowledge about adversary behaviors, yet their unstructured, natural-language format makes automated analysis difficult. This paper introduces AttacKG, a novel framework designed to automatically transform prose CTI reports into structured Technique Knowledge Graphs (TKGs). By utilizing a specialized NLP pipeline and a fuzzy graph alignment algorithm, AttacKG maps report content to MITRE ATT&CK techniques. Our evaluation on over 1,500 real-world reports shows that AttacKG achieves an F1-score of 0.789, significantly outperforming existing state-of-the-art tools in both precision and recall.
Introduction
Security practitioners rely on CTI reports from vendors like Cisco Talos and Microsoft to understand emerging threats. However, the sheer volume of these reports—often hundreds of pages of unstructured text—creates a significant manual burden. Furthermore, individual reports often provide only a fragmented view of an attack campaign. Existing automated tools frequently rely on simple keyword matching, which fails to capture the structural context of complex attack behaviors, leading to high false-positive rates. AttacKG addresses these challenges by extracting structured relationships and aggregating them into a comprehensive knowledge graph.
Methodology
AttacKG employs a multi-stage pipeline to bridge the gap between human-readable text and machine-actionable graphs.
NLP-based Extraction
The system first processes raw text using a specialized NLP pipeline. To prevent the corruption of technical data, regular expressions protect domain-specific terms such as file paths, registry keys, and URLs. The pipeline then identifies key entities (e.g., Actors, Executables, Files) and extracts relationships using a "Lowest Common Ancestor" (LCA) approach on dependency trees.
Technique Templates and Fuzzy Alignment
To standardize the extracted data, the authors developed graph-based "templates" for 179 MITRE ATT&CK techniques. The core innovation of AttacKG is its Fuzzy Graph Alignment algorithm. Unlike rigid matching systems, AttacKG calculates similarity scores for both nodes (entity types/attributes) and edges (structural connectivity). This allows the system to identify techniques even when reports use variant terminology or describe novel implementation details.
Knowledge Aggregation
As the system processes more reports, it enriches its templates with real-world implementation details, such as specific malicious URLs or registry keys. This iterative process builds a robust Technique Knowledge Graph that captures the diverse ways a single technique (e.g., "Persistence") can be executed in the wild.
Evaluation and Results
The researchers evaluated AttacKG using a dataset of 1,515 real-world CTI reports and 7,373 procedure examples from MITRE ATT&CK. Performance was measured against 16 manually labeled ground-truth reports covering high-profile APT campaigns.
AttacKG demonstrated superior performance compared to existing tools like Extractor and TTPDrill:
- Technique Identification: AttacKG achieved an F1-score of 0.789, whereas TTPDrill achieved only 0.318.
- Precision: AttacKG maintained high precision by requiring structural alignment, avoiding the high false-positive rates (averaging 15.5 per report) seen in keyword-based tools.
- Extraction Quality: The NLP pipeline achieved F1-scores of 0.887 for entity extraction and 0.896 for dependency extraction.
- Scalability: In a bulk analysis of 1,515 reports, the system identified over 28,000 attack techniques and extracted 8,393 unique Indicators of Compromise (IoCs).
Conclusion and Future Work
AttacKG represents a significant advancement in automated CTI analysis by shifting the focus from simple keywords to structural relationships. By aggregating fragmented data into a unified TKG, it provides a more complete blueprint of adversary tactics. Future work includes expanding language support beyond English and integrating these graphs directly into automated Security Operations Center (SOC) workflows for real-time threat reconstruction.
Summary updated