Paper Files / Detection
Adaptive Multilevel Cyber Threat Detection Based on Bayesian Fusion of Telemetry and Temporal Attack Graphs
TITLE: Adaptive Multilevel Cyber Threat Detection Based on Bayesian Fusion of Telemetry and Temporal Attack Graphs ABSTRACT: TITLE: Adaptive Multilevel Cyber Threat Detection Based on Bayesian Fusion of Telemetry and Temporal Attack Graphs ABSTRACT: The growing complexity of contemporary digital infrastructures, characterized by hybrid cloud environments, distributed architectures, and massive streams of operational telemetry, poses substantial challenges for the early detection of cyber threats. Traditional security information and event management (SIEM) systems, based on deterministic rules, present structural limitations in identifying multi-stage campaigns, particularly when adversaries use legitimate credentials, discrete lateral movement, and evasion techniques. In parallel, purely machine learning-based approaches often suffer degradation under distribution shifts and lack operational interpretability. In this work, we present a multilevel adaptive detection architecture that integrates incremental Bayesian evidence fusion with structural modeling based on temporal attack graphs. The proposed approach makes it possible to correlate heterogeneous telemetry from endpoints, networks, identities, and cloud environments while preserving explicit temporal dependencies between events and semantic alignment with the MITRE ATT&CK taxonomy. We formalize the problem as probabilistic inference over attack chains in a dynamic graph G_t=(V_t,E_t,w_t), in which weights represent conditional probabilities of malicious behavior. We developed an incremental Bayesian update mechanism capable of processing streams exceeding 10^6 events per minute while maintaining probabilistic convergence and low operational latency. The implementation was carried out on a stream processing architecture based on Apache Kafka and Apache Flink, with graph persistence in Neo4j and state management in RocksDB. Experimental evaluations were conducted using the UNSW-NB15 and CIC-IDS2017 datasets and an anonymized enterprise corpus containing approximately 400 million events. Compared with rule-based approaches, Random Forest, and LSTM networks, the proposed method achieved a mean precision of 0.91, a recall of 0.88, and an F1-score of 0.89, while reducing the false positive rate by 42% relative to conventional SIEM systems. The results show that probabilistic telemetry fusion, combined with the structural representation of attack chains, offers substantial gains in robustness, interpretability, and scalability. We also discuss the implications for modern cloud security architectures, integration with CNAPP platforms, and the limitations associated with a priori modeling of adversarial assumptions.
- Introduction
Cyber threat detection has evolved considerably over the past two decades, moving from static signature-based mechanisms to distributed architectures capable of processing massive volumes of telemetry in near real time. This transformation has been driven by the growing complexity of digital infrastructures, particularly in hybrid environments combining public clouds, containers, microservices, and ephemeral workloads (SCARFONE; SOUZA, 2018; ENISA, 2023).
Despite these advances, large-scale incidents continue to reveal structural weaknesses in detection mechanisms. The exploitation of the Log4Shell vulnerability (CVE-2021-44228) showed how remote code execution vectors can be rapidly operationalized on a global scale by leveraging libraries widely deployed in enterprise applications (NIST, 2023). Similarly, the attack against Colonial Pipeline in 2021, associated with the misuse of compromised credentials, highlighted the importance of correlating identity events with network activity in detection processes (CISA, 2021).
Recent reports reinforce this trend. The 2023 Verizon Data Breach Investigations Report indicates that approximately 74% of security breaches involve the human factor, frequently exploiting valid credentials or phishing campaigns (VERIZON, 2023). In addition, analyses from the M-Trends report show that the average dwell time of adversaries in enterprise networks still exceeds two weeks in several sectors, suggesting persistent difficulties in detecting lateral movement and persistence activities (MANDIANT, 2023).
The central problem lies in the fragmentation of observable signals. Traditional SIEM platforms operate mostly through deterministic rules, unable to capture complex temporal dependencies and probabilistic relationships among distributed events across multiple telemetry domains. In contrast, approaches based exclusively on deep learning often exhibit low operational interpretability and degrade when faced with data distribution shifts, a phenomenon known as concept drift (SOMMER; PAXSON, 2010).
In this context, we formulate the following research questions:
-
RQ1: How can heterogeneous telemetry from endpoints, network, identity, and cloud infrastructure be integrated into a unified probabilistic model that preserves temporal dependencies?
-
RQ2: Is it possible to significantly reduce the false positive rate without sacrificing sensitivity in multi-stage attack scenarios?
-
RQ3: How can computational scalability be ensured in the face of streams exceeding $10^6$ events per minute?
The main contributions of this work are:
-
C1: We propose a formal probabilistic temporal graph model for representing attack chains aligned with the MITRE ATT&CK framework.
-
C2: We develop an incremental Bayesian inference algorithm capable of performing adaptive fusion of distributed evidence in streaming environments.
-
C3: We empirically demonstrate substantial performance gains in realistic scenarios, with a 42% reduction in the false positive rate and an 18.7% increase in F1-score compared to traditional baselines.
The remainder of the paper is organized as follows. Section 2 reviews the theoretical foundations and related work. Section 3 formalizes the threat model. Section 4 presents the proposed methodology. Section 5 describes the system implementation. Section 6 presents the experimental evaluation. Section 7 discusses the implications and limitations. Section 8 concludes the work.
- Background and Related Work
Formally, we consider a security event stream as an ordered sequence
$E = {e_1, e_2, …, e_n}$
in which each event $e_i$ corresponds to a feature vector in $\mathbb{R}^d$ accompanied by a timestamp $t_i$. An intrusion detector can be modeled as a function
$D: E \rightarrow {0,1}$
in which the value 1 indicates the presence of potentially malicious activity.
Signature-based models implement a set of rules $R_j$ such that
$D(e_i)=1$ if $e_i$ satisfies $R_j$.
These systems exhibit low latency and high interpretability, but fail to detect unknown variants or polymorphic attacks (HUBBALLI; SURYANARAYANAN, 2014).
Anomaly-based approaches model the probabilistic distribution $P(X)$ of legitimate behavior and flag deviations when
$P(x) < \epsilon$.
Widely used techniques include Isolation Forest, One-Class SVM, and deep autoencoders (PATCHA; PARK, 2007).
Supervised methods treat the problem as binary classification and estimate
$P(Y|X)$
using algorithms such as Random Forest (BREIMAN, 2001), Gradient Boosting, and LSTM recurrent neural networks (HOCHREITER; SCHMIDHUBER, 1997). However, these approaches depend heavily on the availability of labeled data and are sensitive to severe imbalance.
More recently, graph-based approaches have gained importance by explicitly modeling the structural relationships between processes, users, and network resources. Camacho et al. (2019) show that process dependency graphs can reveal complex attack patterns that remain invisible in traditional vector representations.
However, much of this work explicitly ignores the probabilistic uncertainty associated with observed evidence. Classical event correlation systems, such as those discussed by Julisch (2003), use heuristic aggregation to reduce alert redundancy, but lack a rigorous statistical foundation.
Thus, we observe a significant gap between graph-based structural modeling and formal mechanisms for real-time probabilistic inference.
- Threat Model and Problem Formalization
We consider an adversary whose capabilities are consistent with modern enterprise intrusion campaigns.
More specifically, we assume that the adversary can:
-
execute arbitrary code on compromised endpoints;
-
use valid credentials obtained through phishing or credential leaks;
-
perform lateral movement using legitimate administrative protocols;
-
introduce deliberate noise into telemetry to conceal malicious activity.
We do not assume compromise of the detection system control plane nor direct manipulation of the telemetry infrastructure.
We define a probabilistic temporal graph as
$$ G_t = (V_t, E_t, w_t) $$
where:
-
$V_t$ represents the set of observed entities (hosts, users, processes, or service identities);
-
$E_t$ represents temporal interactions among entities;
-
$w_t: E_t \rightarrow [0,1]$ defines a weighting function associated with the probability of maliciousness of each interaction.
Our objective is to estimate the conditional probability of an attack chain $A_k$ given the set of observed evidence up to time $t$:
$$ P(A_k | \mathcal{E}_t) $$
where $\mathcal{E}_t$ represents the cumulative set of processed events.
Probabilistic consistency requires that
$$ \sum_k P(A_k | \mathcal{E}_t) \leq 1 $$
and that successive updates preserve convergence under incremental Bayesian inference.
- Proposed Methodology
The proposed architecture is composed of four main layers:
- distributed telemetry collection;
- semantic normalization of events;
- incremental Bayesian inference;
- structural detection based on temporal graphs.
The probabilistic update process uses incremental Bayesian inference for each modeled attack chain.
Algorithm 1: Incremental Bayesian Update
Input: evidência e_t, distribuição prévia P(A_k)
Output: distribuição posterior atualizada
1: para cada cadeia A_k:
2: calcular verossimilhança L = P(e_t | A_k)
3: atualizar P(A_k) ← (L P(A_k)) / Z
4: normalizar P(A_k)
5: retornar P(A_k)
The normalization factor $Z$ ensures that the posterior distribution remains valid:
$$ Z = \sum_k P(e_t|A_k)P(A_k) $$
To identify ongoing attack chains, we use temporal graph search with heuristic pruning.
Algorithm 2: Attack Chain Detection
Input: grafo G_t, limiar θ
Output: alertas correlacionados
1: para cada caminho π em G_t:
2: calcular score S(π) = ∏ w(e_i)
3: se S(π) > θ e alinhado ao ATT&CK:
4: gerar alerta
The score of a path $\pi$ is defined as
$$ S(\pi) = \prod_{e_i \in \pi} w(e_i) $$
The complexity of Algorithm 1 is $O(K)$ per event, where $K$ represents the number of modeled attack hypotheses. Algorithm 2 uses threshold-based pruning, reducing average complexity to sub-exponential behavior in sparse graphs.
- Implementation
The implementation was carried out on a stream-processing architecture widely used in modern security platforms.
Apache Kafka was employed for event ingestion, supporting flows exceeding 1.5 million events per minute. Stream processing was implemented using Apache Flink, which enables parallel execution of operators and consistent state management (APACHE SOFTWARE FOUNDATION, 2023a; 2023b).
The structural persistence of the temporal graph was implemented with Neo4j, enabling efficient queries over relationships between entities (NEO4J INC., 2023). Processing state was stored in RocksDB integrated into the Flink runtime.
Simplified example of Kafka ingestion configuration:
bootstrap.servers=kafka-cluster:9092
group.id=threat-detection
auto.offset.reset=latest
enable.auto.commit=false
We adopted entity-based partitioning to ensure horizontal scalability and minimize contention over state.
In tests conducted on a 12-node cluster with 64 vCPUs each, we observed sustained throughput of approximately 920,000 events per second with average latency below four seconds.
- Experimental Evaluation
The experimental environment consisted of Dell PowerEdge R740 servers equipped with two Intel Xeon Gold processors and 256 GB of RAM.
Three main datasets were used:
| Dataset | Type | Approximate volume |
|---|---|---|
| UNSW-NB15 | Labeled network traffic | 2.5 million flows |
| CIC-IDS2017 | Traffic with multiple attacks | 2.8 million records |
| Enterprise telemetry | Heterogeneous events | 400 million events |
The compared methods included:
| Method | Description |
|---|---|
| SIEM | Deterministic rules |
| Random Forest | 100 trees |
| LSTM | 2 recurrent layers |
| Proposed method | Temporal graph + Bayesian inference |
Observed average results:
| Method | Precision | Recall | F1-score |
|---|---|---|---|
| SIEM | 0.71 | 0.64 | 0.67 |
| Random Forest | 0.83 | 0.78 | 0.80 |
| LSTM | 0.85 | 0.81 | 0.83 |
| Proposed | 0.91 | 0.88 | 0.89 |
The observed average standard deviation was below 0.02.
The false positive rate was reduced from 7.8% in rule-only systems to approximately 4.5% in the proposed approach. Average detection latency remained at 3.4 seconds.
Under the injection of synthetic noise equivalent to 20% additional benign events, the proposed model’s F1-score decreased by only 3.1%, indicating robustness to data distribution perturbations.
- Discussion
The results obtained indicate that Bayesian fusion of heterogeneous evidence contributes significantly to mitigating the local uncertainties present in isolated events. By incorporating structural dependencies into temporal graphs, it becomes possible to reconstruct complete attack chains, facilitating investigative analysis by security analysts.
Explicit modeling of relationships between entities also increases operational interpretability. For example, observed attack chains frequently follow patterns such as remote command execution ($T1059$), followed by lateral movement ($T1021$), and ultimately ransomware deployment ($T1486$), in accordance with MITRE ATT&CK categorization (MITRE, 2023).
However, the method has important limitations. The dependence on previously modeled ATT&CK chain hypotheses may reduce the ability to detect entirely novel techniques. In addition, the number of attack hypotheses grows with the complexity of the monitored environment, increasing the computational cost of probabilistic inference.
Another limitation concerns the potential bias of public datasets, which often do not faithfully reflect the diversity of behaviors observed in modern enterprise environments. Nevertheless, the combined use of multiple data sources partially mitigates this risk.
- Conclusion
We presented a multi-level adaptive detection architecture based on Bayesian telemetry fusion and structural modeling through temporal graphs. The approach integrates signals from multiple observability domains — network, endpoint, identity, and cloud — while preserving temporal dependencies and enabling real-time probabilistic inference.
The experiments demonstrate relevant quantitative gains in precision, recall, and false positive reduction, while maintaining operational scalability for massive event streams.
These results suggest that combining incremental probabilistic inference with structural attack modeling is a promising direction for modern threat detection systems, particularly in distributed enterprise environments and cloud infrastructures.
References
APACHE SOFTWARE FOUNDATION. Apache Kafka Documentation. 2023a. Available at: https://kafka.apache.org/documentation/. Accessed on: 10 jan. 2024.
APACHE SOFTWARE FOUNDATION. Apache Flink Documentation. 2023b. Available at: https://flink.apache.org/. Accessed on: 10 jan. 2024.
BISHOP, Christopher M. Pattern Recognition and Machine Learning. New York: Springer, 2006. Available at: https://link.springer.com/book/10.1007/978-0-387-45528-0
BREIMAN, Leo. Random Forests. Machine Learning, v. 45, n. 1, p. 5–32, 2001. Available at: https://link.springer.com/article/10.1023/A:1010933404324
CAMACHO, Jorge et al. Graph-based Intrusion Detection. In: NDSS Symposium. 2019. Available at: https://www.ndss-symposium.org
CISA. DarkSide Ransomware: Best Practices for Preventing Business Disruption. 2021. Available at: https://www.cisa.gov
ENISA. ENISA Threat Landscape 2023. 2023. Available at: https://www.enisa.europa.eu/publications/enisa-threat-landscape-2023
HOCHREITER, Sepp; SCHMIDHUBER, Jürgen. Long Short-Term Memory. Neural Computation, v. 9, n. 8, p. 1735–1780, 1997. Available at: https://www.bioinf.jku.at/publications/older/2604.pdf
HUBBALLI, Neminath; SURYANARAYANAN, Venkatesh. False Alarm Minimization Techniques in Intrusion Detection Systems. IEEE Communications Surveys & Tutorials, 2014. Available at: https://ieeexplore.ieee.org/document/6847097
JULISCH, Klaus. Clustering Intrusion Detection Alarms to Support Root Cause Analysis. IEEE Symposium on Security and Privacy. 2003. Available at: https://ieeexplore.ieee.org/document/1201203
KOLLER, Daphne; FRIEDMAN, Nir. Probabilistic Graphical Models. Cambridge: MIT Press, 2009. Available at: https://mitpress.mit.edu/9780262013192
MANDIANT. M-Trends 2023 Report. 2023. Available at: https://www.mandiant.com/resources/m-trends-2023
MITRE. MITRE ATT&CK Framework. 2023. Available at: https://attack.mitre.org
NEO4J INC. Neo4j Graph Data Platform. 2023. Available at: https://neo4j.com
NIST. National Vulnerability Database: CVE-2021-44228. 2023. Available at: https://nvd.nist.gov/vuln/detail/CVE-2021-44228
NIST. Computer Security Incident Handling Guide (SP 800-61r2). 2012. Available at: https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-61r2.pdf
OWASP. OWASP Top 10 – 2021. 2021. Available at: https://owasp.org/www-project-top-ten/
PATCHA, Animesh; PARK, Jung-Min. An Overview of Anomaly Detection Techniques. Computer Networks, v. 51, n. 12, 2007. Available at: https://doi.org/10.1016/j.comnet.2007.02.001
SCARFONE, Karen; SOUZA, Pedro. Guide to Intrusion Detection and Prevention Systems. NIST, 2018. Available at: https://nvlpubs.nist.gov
SHARAFALDIN, Iman; HABIBI LASHKARI, Arash; GHORBANI, Ali A. Toward Generating a New Intrusion Detection Dataset. ICISSP, 2018. Available at: https://www.unb.ca/cic/datasets/ids-2017.html
SOMMER, Robin; PAXSON, Vern. Outside the Closed World: On Using Machine Learning for Network Intrusion Detection. IEEE Symposium on Security and Privacy. 2010. Available at: https://ieeexplore.ieee.org/document/5504793
TAVALLAEE, Mahbod et al. A Detailed Analysis of the UNSW-NB15 Dataset. IEEE MILCOM, 2015. Available at: https://ieeexplore.ieee.org
VERIZON. 2023 Data Breach Investigations Report. 2023. Available at: https://www.verizon.com/business/resources/reports/dbir/