Abstract
Cyber Threat Intelligence (CTI) is essential for modern defense, yet much of it remains trapped in unstructured text reports. Converting this data into standardized, machine-readable formats like STIX 2.1 is currently a manual, labor-intensive process. This paper introduces AZERG, a framework designed to automate the extraction of entities and their semantic relationships using fine-tuned Large Language Models (LLMs). By decomposing the extraction process into a four-stage pipeline and leveraging a specialized dataset, AZERG achieves state-of-the-art performance, outperforming significantly larger models like GPT-4o.
Introduction
The effectiveness of automated defense systems, such as SIEM and SOAR platforms, depends on high-quality, structured intelligence. However, the vast majority of CTI is shared via unstructured blog posts and PDF reports. Security analysts currently spend upwards of 50% of their time manually transcribing these reports into the Structured Threat Information Expression (STIX) format. This manual bottleneck leads to analyst burnout and delays the deployment of critical indicators of compromise (IOCs).
Existing automation attempts often rely on rigid regular expressions or lack the semantic depth required to identify complex relationships between entities. AZERG addresses these challenges by applying domain-specific fine-tuning to open-source LLMs, providing a scalable solution for high-fidelity threat intelligence extraction.
The AZERG Framework
AZERG treats STIX extraction as a sequential pipeline, decomposing the complex task into four manageable subtasks:
- Entity Detection (T1): Identifying potential threat-related entities within the raw text.
- Entity Type Identification (T2): Classifying identified entities into specific STIX categories, such as Malware, Tool, Infrastructure, or Vulnerability.
- Related Pair Detection (T3): Determining whether a semantic link exists between two identified entities.
- Relationship Type Identification (T4): Labeling the nature of the relationship (e.g., uses, targets, exfiltrates-to).
This decomposition allows for targeted optimization at each stage and facilitates human-in-the-loop verification, ensuring that errors in early stages can be corrected before they cascade through the pipeline.
Methodology and Datasets
Rather than relying on general-purpose zero-shot prompting, the researchers utilized continual fine-tuning via Low-Rank Adaptation (LoRA). The base model, Mistral-7B, was trained on a specialized CTI corpus.
The study utilized two primary datasets to benchmark performance:
- AZERG Data: 21 complex malware reports from 11 vendors, annotated by offensive security experts.
- AnnoCTRPlus: An expanded version of the AnnoCTR dataset, encompassing 120 reports.
Combined, the benchmark includes 4,011 entities and 2,075 relationships derived from 141 real-world Advanced Persistent Threat (APT) reports, all aligned with the STIX 2.1 specification.
Results and Performance
AZERG demonstrated a significant performance leap over previous state-of-the-art methods, showing improvements of 2–25% across various tasks. The "AZERG-MixTask" model achieved the following F1-scores:
- Entity Detection (T1): 84.43%
- Entity Typing (T2): 88.49%
- Relationship Detection (T3): 95.47%
- Relationship Typing (T4): 84.60%
Notably, the fine-tuned 7B parameter model outperformed GPT-4o in entity and relationship classification. The system is also computationally efficient, with inference times ranging from 0.4 to 2.5 seconds per task, making it suitable for real-time integration into analyst workflows.
Key Insights
- Specialization Over Scale: The success of the fine-tuned Mistral model suggests that domain-specific high-quality data is more valuable than raw model parameters for specialized tasks like CTI extraction.
- The Contextual Trap: LLMs frequently encounter "semantic ambiguity," where a single term (e.g., a software name) could represent an Identity, a Tool, or Infrastructure depending on the context. Precise entity detection remains the most critical bottleneck.
- Error Propagation: The sequential nature of the pipeline means that a failure in T1 (Entity Detection) inevitably leads to missed relationships in T3 and T4, highlighting the need for high-precision initial detection.
Conclusion and Future Work
AZERG represents a significant step toward fully automated, actionable threat intelligence. Future iterations of the framework will focus on integrating vision-language models to process charts and tables, improving entity resolution to handle threat actor aliases, and building cross-report knowledge graphs to identify global threat patterns. By reducing the manual burden on analysts, AZERG enables a more proactive and automated defensive posture.
Summary updated