[Paper Review] Enabling Efficient Cyber Threat Hunting With Cyber Threat Intelligence
ThreatRaptor is a system that automates cyber threat hunting by extracting structured threat behaviors—indicators of compromise (IOCs) and their relationships—from unstructured open-source cyber threat intelligence (OSCTI) texts. It uses a lightweight NLP pipeline to build a threat behavior graph, enables efficient querying via a domain-specific language (TBQL), and automatically synthesizes hunting queries to detect malicious activities in system audit logs with high accuracy and low latency.
Log-based cyber threat hunting has emerged as an important solution to counter sophisticated attacks. However, existing approaches require non-trivial efforts of manual query construction and have overlooked the rich external threat knowledge provided by open-source Cyber Threat Intelligence (OSCTI). To bridge the gap, we propose ThreatRaptor, a system that facilitates threat hunting in computer systems using OSCTI. Built upon system auditing frameworks, ThreatRaptor provides (1) an unsupervised, light-weight, and accurate NLP pipeline that extracts structured threat behaviors from unstructured OSCTI text, (2) a concise and expressive domain-specific query language, TBQL, to hunt for malicious system activities, (3) a query synthesis mechanism that automatically synthesizes a TBQL query for hunting, and (4) an efficient query execution engine to search the big audit logging data. Evaluations on a broad set of attack cases demonstrate the accuracy and efficiency of ThreatRaptor in practical threat hunting.
Motivation & Objective
- Address the labor-intensive and error-prone nature of manual threat hunting in enterprise environments.
- Overcome the limitation of existing approaches that rely on fragmented IOCs and ignore rich contextual knowledge in unstructured OSCTI reports.
- Enable automated, scalable, and accurate threat hunting by leveraging external OSCTI knowledge and system audit logs.
- Reduce the manual effort required to construct hunting queries by synthesizing them automatically from OSCTI-derived threat behavior graphs.
- Improve detection of multi-stage attacks by modeling threat behaviors as structured relationships between IOCs, which are more resilient to signature changes.
Proposed method
- Develops an unsupervised, lightweight, and accurate NLP pipeline tailored for security-specific nuances (e.g., special characters in IOCs) to extract IOCs and their relationships from unstructured OSCTI reports.
- Constructs a structured threat behavior graph where nodes represent IOCs (e.g., file paths, IPs) and edges represent semantic relationships (e.g., 'read', 'execute') between them.
- Introduces Threat Behavior Query Language (TBQL), a concise and expressive domain-specific language for writing queries over system audit logs to detect malicious event sequences.
- Employs a query synthesis mechanism that automatically generates TBQL queries from the threat behavior graph, filtering out unsupported IOC types to ensure compatibility with system auditing data.
- Utilizes a high-performance query execution engine integrated with PostgreSQL and Neo4j to efficiently search large-scale audit log datasets (0.5–1 GB per host per day).
- Incorporates a pre-synthesis screening step to improve efficiency by excluding IOCs not captured by the system auditing component.
Experimental results
Research questions
- RQ1Can an unsupervised NLP pipeline accurately extract both IOCs and their semantic relationships from unstructured OSCTI reports despite domain-specific linguistic nuances?
- RQ2To what extent can a domain-specific query language (TBQL) express complex, multi-step threat behaviors for effective threat hunting in system audit logs?
- RQ3How effective is automatic query synthesis from OSCTI-derived threat behavior graphs in reducing manual effort while maintaining detection accuracy?
- RQ4Can the integration of OSCTI knowledge with system audit logging improve the detection of sophisticated, multi-stage attacks compared to IOCs alone?
- RQ5What is the performance overhead and scalability of executing TBQL queries on large-scale audit log workloads?
Key findings
- The NLP pipeline achieves high accuracy in extracting IOCs and their relationships from OSCTI reports, even in the presence of security-specific syntactic complexities such as special characters and non-standard formatting.
- ThreatRaptor’s query synthesis mechanism significantly reduces the manual effort required to write hunting queries, enabling analysts to focus on threat analysis rather than low-level query construction.
- The system demonstrates high efficiency in processing large-scale audit logs (0.5–1 GB per host per day), with the query execution engine enabling low-latency search across big data.
- Evaluations on a broad set of real-world attack cases show that ThreatRaptor successfully detects multi-stage attacks by identifying complex, chained behaviors modeled as event paths in the threat behavior graph.
- The use of structured threat behavior graphs improves detection resilience to signature-based evasion, as attackers cannot easily alter their behavior without breaking the semantic flow of the attack chain.
- The system’s fuzzy search mode, enhanced via integration with Poirot’s inexact graph pattern matching, supports exhaustive subgraph alignment, increasing detection coverage compared to single-iteration approaches.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.