[Paper Review] Anomaly Detection in Log Data using Graph Databases and Machine Learning to Defend Advanced Persistent Threats
This paper proposes a graph database and machine learning framework for detecting Advanced Persistent Threats (APTs) by modeling attack kill chains and analyzing log event sequences. By combining time-series log processing with a directed graph model enriched by Support Vector Machines, the system achieves fast, accurate anomaly detection—demonstrating effective identification of simulated APTs with reduced detection time and the ability to trace attacker paths and compromised systems.
Advanced Persistent Threats (APTs) are a main impendence in cyber security of computer networks. In 2015, a successful breach remains undetected 146 days on average, reported by [Fi16].With our work we demonstrate a feasible and fast way to analyse real world log data to detect breaches or breach attempts. By adapting well-known kill chain mechanisms and a combine of a time series database and an abstracted graph approach, it is possible to create flexible attack profiles. Using this approach, it can be demonstrated that the graph analysis successfully detects simulated attacks by analysing the log data of a simulated computer network. Considering another source for log data, the framework is capable to deliver sufficient performance for analysing real-world data in short time. By using the computing power of the graph database it is possible to identify the attacker and furthermore it is feasible to detect other affected system components. We believe to significantly reduce the detection time of breaches with this approach and react fast to new attack vectors.
Motivation & Objective
- To address the critical problem of prolonged undetected APT breaches, which average 146 days in 2015, as reported by Fireeye.
- To develop a scalable, efficient, and privacy-compliant solution for detecting APTs in real-world log data using graph databases and machine learning.
- To enable detection of complex, multi-stage attacks by modeling attack kill chains as directed graphs with abstracted event sequences.
- To support compliance with German data protection laws (§3a BDSG) by enabling pseudonymized data processing without loss of detection accuracy.
- To demonstrate the framework's adaptability to diverse log sources and attack vectors through simulation and real-world data processing.
Proposed method
- The framework uses a modified kill chain model as a directed graph to represent stages of APTs, including reconnaissance, delivery, exploitation, and exfiltration.
- Raw log events are stored chronologically in a time-series database and mapped to intermediate layers of abstracted event sequences in a graph database.
- An abstraction layer enables flexible detection of divergent and looping attack patterns by grouping related log events into higher-level sequences.
- Support Vector Machines (SVMs) are trained on labeled log data (clean vs. malicious) to classify attack patterns and detect anomalies.
- The system normalizes and enriches heterogeneous log data from multiple sources to ensure consistency and improve detection accuracy.
- The framework integrates with existing SIEM systems and leverages graph database query capabilities for efficient traversal and correlation of attack indicators.
Experimental results
Research questions
- RQ1Can a graph-based model effectively represent and detect multi-stage APT attack patterns using log event sequences?
- RQ2How does combining time-series log processing with graph database technology improve detection speed and accuracy for APTs?
- RQ3To what extent can machine learning models, particularly SVMs, detect anomalies in log data when trained on simulated and real-world attack scenarios?
- RQ4Can the framework maintain high detection precision while processing pseudonymized log data in compliance with data protection regulations?
- RQ5How well does the system perform in identifying not only the initial breach but also secondary compromised systems and attacker paths?
Key findings
- The framework successfully detected simulated APT attacks by correlating log events through the graph-based kill chain model, demonstrating high detection accuracy in controlled environments.
- Using graph database queries, the system efficiently traced attacker behavior and identified compromised systems, enabling rapid incident response.
- The approach reduced detection time for APTs compared to traditional signature-based methods, with results showing faster identification of attack stages.
- The system achieved sufficient performance for real-world log data analysis, processing large volumes of data in short time due to optimized graph query execution.
- The integration of SVMs with event sequence abstraction improved anomaly detection precision, especially for previously unseen attack variants.
- The framework maintained detection accuracy when processing pseudonymized data, confirming compliance with German data protection standards (§3a BDSG).
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.