IntelEX: A LLM-driven Attack-level Threat Intelligence Extraction Framework

Ming Xu, Hongtai Wang, Jiahao Liu, Yun Lin, Chenyang Xu, Yingshi Liu, Hoon Wei Lim, Jin Song DongarXiv 2024 · DOI

Abstract

Cyber Threat Intelligence (CTI) reports are vital for understanding adversary behavior, yet their unstructured nature makes them difficult to operationalize. We present ThreatPilot, a framework that utilizes Large Language Models (LLMs) and GraphRAG to transform these reports into "Attack-driven Threat Intelligence" (ATI). ThreatPilot reconstructs multi-step attack procedures and automatically generates high-fidelity Sigma detection rules and executable commands. Our evaluation shows that ThreatPilot significantly outperforms existing methods in extraction accuracy and actionability, providing a scalable solution for modern Security Operations Centers (SOCs).

Introduction

Security teams rely on reports from organizations like Cisco Talos or Mandiant to stay ahead of threats. However, translating these natural language documents into defensive measures is often a manual and fragmented process. Existing automated tools typically suffer from a Granularity Gap, focusing on atomic indicators (IPs, hashes) while missing procedural context, and Static Logic, failing to infer implicit information not explicitly stated in the text.

ThreatPilot addresses these challenges by moving beyond simple indicator extraction to reconstruct the "how" of an attack—the specific procedures and behavioral variants that define Advanced Persistent Threats (APTs).

Overview of the ThreatPilot framework, illustrating the flow from unstructured CTI reports to structured attack intelligence and downstream defensive/offensive tasks.

The ThreatPilot Framework

The system operates in two primary phases: extraction of high-level intelligence and the generation of actionable downstream tasks.

1. Attack-driven Threat Intelligence (ATI) Extraction

To handle the complexity of long-form reports, ThreatPilot employs a multi-stage pipeline:

  • CTI Chunker: Segments reports based on Indicators of Compromise (IoCs) to prevent LLM context window issues.
  • Intention Interpreter & Knowledge Enhancer: Uses Chain-of-Thought (CoT) prompting to map text to MITRE ATT&CK tactics. A Retrieval-Augmented Generation (RAG) component integrates official MITRE documentation to validate and enhance these findings.
  • GraphRAG Procedure Generation: By leveraging a knowledge graph of attack procedures, the system can infer procedure variants—technically consistent attack steps that may be implicit or omitted in the original report.
The detailed extraction pipeline, featuring the Intention Interpreter, Knowledge Enhancer, and the GraphRAG-based generator for procedural inference.

2. Downstream Task Generation

The extracted intelligence is converted into two primary formats:

  • Sigma Rule Generator: Maps behaviors to vendor-agnostic detection fields. It utilizes a feedback loop where generated rules are tested against a Splunk API; syntax errors are fed back to the LLM for automated correction.
  • Command Construction: Generates executable PowerShell or CMD commands, allowing Red Teams to replicate and validate the attack chain in a controlled environment.

Evaluation and Key Insights

The framework was tested against 1,769 recent CTI reports and validated using real-world logs from a Cowrie honeypot and simulated system logs.

  • Superior Accuracy: ThreatPilot achieved a 1.34x improvement in F1 score for technique identification compared to the previous state-of-the-art, AttacKG.
  • High Actionability: Generated commands reached a 99.3% execution success rate, a significant leap from the 50.3% achieved by standard LLM prompting.
  • Efficiency and Cost: The system processes a standard report in approximately 60 seconds at a cost of $0.05. Notably, GPT-4o-mini was found to be the optimal model, offering better precision and lower costs than the larger GPT-4o.

Discussion and Limitations

A core strength of ThreatPilot is its ability to infer implicit procedures via GraphRAG, moving defense from a reactive to a proactive stance. However, limitations remain regarding the detection of statistical anomalies (e.g., high-frequency events) which are difficult to express in standard Sigma rules. Future research will explore more complex detection logic, such as EQL or KQL, to support stateful and statistical analysis.

Conclusion

ThreatPilot demonstrates that LLMs, when augmented with structured domain knowledge and automated feedback loops, can effectively bridge the gap between human-readable threat intelligence and machine-executable defense. This framework provides a path toward fully automated, attack-driven security operations.

Summary updated

BibTeX
@misc{xu2024intelex,
  author = {Ming Xu and Hongtai Wang and Jiahao Liu and Yun Lin and Chenyang Xu and Yingshi Liu and Hoon Wei Lim and Jin Song Dong},
  title = {{IntelEX: A LLM-driven Attack-level Threat Intelligence Extraction Framework}},
  year = {2024},
  eprint = {2412.10872},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.10872},
}
Figure