← Back to Papers

Paper Files / DFIR

A Formal and Scalable Architecture for Graph-Based DFIR with Probabilistic Temporal Correlation and Cryptographic Integrity Guarantees

DFIREN

TITLE: A Formal and Scalable Architecture for Graph-Based DFIR with Probabilistic Temporal Correlation and Cryptographic Integrity Guarantees ABSTRACT: The growing complexity of computational environments in 2025—characterized by cloud-native architectures, microservices, ephemeral workloads, DevSecOps pipelines, hybrid environments, and integrations with artificial intelligence systems—poses substantial challenges to the discipline of Digital Forensics and Incident Response (DFIR). The causal reconstruction of incidents involving multiple heterogeneous sources, under conditions of temporal uncertainty, statistical noise, and possible log tampering, remains an open problem from a formal perspective. In this work, we propose a mathematically grounded architecture for graph-based DFIR, based on a probabilistic acyclic causal graph model with explicit temporal uncertainty, Bayesian inference, and cryptographic integrity guarantees through Merkle trees and write-once-read-many (WORM) immutable storage. We formalize the problem of reconstructing attack sequences as a conditional probability maximization problem over admissible paths in a DAG, demonstrating equivalence to minimizing the sum of log-probabilities. We introduce two algorithms: (i) Temporal Causal Reconstruction (TCR), with complexity O(|E_c|log|V|), and (ii) Incremental Integrity Verification (IIV), with inclusion proof in O(log n). The architecture was implemented on Elastic Stack 8.x, Apache Kafka 3.5, S3 Object Lock in compliance mode, and PostgreSQL, and was evaluated on 12 TB of real and synthetic data, including DARPA Transparent Computing and the Los Alamos Cybersecurity Dataset. The results demonstrate a statistically significant increase in precision (91.4% vs. 64.2%), a 37.8% reduction in mean triage time, and controlled computational overhead (8.6%). We argue that the integration of probabilistic formalism, cryptographic guarantees, and causal modeling provides a rigorous, auditable, and scalable foundation for modern DFIR, aligned with NIST guidelines, ISO/IEC 27037, and the MITRE ATT&CK taxonomy, as well as compatible with contemporary scenarios involving eBPF, CNAPP, and AI-driven environments.

  1. Introduction

The discipline of Digital Forensics and Incident Response (DFIR) has evolved substantially over the past two decades, following the expansion of distributed, virtualized, microservices-oriented, cloud-based infrastructures integrated with machine learning pipelines. Normative guidelines such as NIST SP 800-61r2 (CICHONSKI et al., 2012), currently undergoing updates to reflect modern architectures, and NIST SP 800-86 (KENT et al., 2006) establish structural principles for incident response and the integration of forensic techniques. However, such documents do not formalize explicit mathematical mechanisms for causal reconstruction under statistical uncertainty and high data volume.

The central problem we address consists of the accurate, verifiable, and scalable reconstruction of malicious event sequences from multiple heterogeneous sources — including EDR, NDR, telemetry via eBPF, application logs, audit trails in Kubernetes environments, and CNAPP platforms — while preserving formal guarantees of integrity and chain of custody in accordance with ISO/IEC 27037 (ISO, 2012).

High-impact incidents, such as the exploitation of Log4Shell (CVE-2021-44228) and critical vulnerabilities in edge devices and managed file transfer platforms observed in 2023–2024, highlight the complexity of inter-source correlation in hybrid environments. Techniques cataloged in MITRE ATT&CK — for example, T1059 (Command and Scripting Interpreter), T1078 (Valid Accounts), and T1041 (Exfiltration Over C2 Channel) — produce distributed, partially inconsistent artifacts that are frequently subject to adversarial manipulation (MITRE, 2023).

Empirical reports indicate that the average time to detect sophisticated intrusions may still exceed weeks, especially in attack chains involving multiple administrative domains (VERIZON, 2023). This phenomenon is exacerbated by the base-rate fallacy described by Axelsson (1999), according to which even detectors with high sensitivity produce a significant volume of false positives when the actual attack rate is low.

We therefore formulate the following research questions:

RQ1: How can heterogeneous forensic events be formally modeled so as to enable consistent, auditable, and scalable causal correlation?

RQ2: Is it possible to integrate cryptographic integrity guarantees directly into the DFIR pipeline with asymptotically controlled overhead?

RQ3: What is the quantitative impact of probabilistic causal graphs on accuracy, triage time, and computational cost?

Our contributions are:

  1. Theoretical Foundations and Related Work

2.1 Formal Definitions

We define a forensic event as the tuple:

$e = (s, t, a, m, \sigma_t)$

where $s$ represents the source (host, container, cloud service), $t \in \mathbb{R}$ is the observed timestamp, $a$ is the action categorized according to a taxonomy (e.g., MITRE ATT&CK), $m$ represents structured metadata, and $\sigma_t$ denotes the variance associated with temporal uncertainty.

Let $E = {e_1,\dots,e_n}$ be the set of collected events. We model causal dependencies by means of a directed acyclic graph (DAG):

$G = (V, E_c, w)$

where $V = E$, $E_c \subseteq V \times V$, and $w: E_c \rightarrow [0,1]$ represents conditional probabilities $P(v \mid u)$.

The acyclicity property is expressed as:

$\nexists (v_1,\dots,v_k)$ such that $v_1 \rightarrow \dots \rightarrow v_k \rightarrow v_1$.

Temporal uncertainty is modeled assuming a normal distribution:

$t_i \sim \mathcal{N}(\mu_i, \sigma_i^2)$.

The probability of temporally consistent precedence between $e_i$ and $e_j$ is:

$$ P(t_i < t_j) = \Phi\left(\frac{\mu_j - \mu_i}{\sqrt{\sigma_i^2 + \sigma_j^2}}\right) $$

where $\Phi$ is the cumulative distribution function of the standard normal distribution.

2.2 Related Work

Carrier and Spafford (2004) introduced an event-chaining-based framework. Beebe and Clark (2005) proposed a goal-oriented hierarchical structure. King and Chen (2003) explored intrusion backtracking via system dependencies.

Commercial solutions such as Splunk, IBM QRadar, and Microsoft Sentinel use rule-based correlation, declarative queries, and supervised learning models (SPLUNK, 2023; IBM, 2023; MICROSOFT, 2023), but lack explicit probabilistic formalization of causal reconstruction.

System provenance models, such as those studied in the context of the DARPA Transparent Computing program (DARPA, 2019), advanced the capture of fine-grained dependencies, but rarely incorporate auditable incremental cryptographic guarantees.

Our proposal integrates Bayesian inference, weighted acyclic graphs, and auditable Merkle trees, aligning with security engineering principles (ANDERSON, 2020; BISHOP, 2018).

  1. Threat Model and Problem Formalization

We assume an adversary capable of:

(i) Remote code execution.
(ii) Lateral movement with valid credentials.
(iii) Modification or deletion of local logs.
(iv) Exfiltration via encrypted channels.

We do not assume the breaking of standardized cryptographic primitives as of 2025, such as SHA-256, SHA-3, RSA-3072, or NIST-standardized post-quantum schemes, nor compromise of the central WORM repository.

We define the reconstruction problem as:

$$ S^ = \arg\max_{S \in \mathcal{A}(G)} P(S \mid E, \Theta) $$

where $\mathcal{A}(G)$ is the set of admissible acyclic paths and $\Theta$ represents model parameters.

Assuming conditional independence along the path:

$$ P(S \mid E, \Theta) = \prod_{(u,v)\in S} P(v \mid u; \Theta) $$

Applying a logarithmic transformation:

$$ \log P(S \mid E, \Theta) = \sum_{(u,v)\in S} \log P(v \mid u; \Theta) $$

Maximizing the product is equivalent to minimizing:

$$ \sum_{(u,v)\in S} -\log P(v \mid u; \Theta) $$

Formal properties:

  1. Proposed Methodology

Four-layer architecture:

  1. Immutable Collection: Apache Kafka 3.5 with configured retention and S3 Object Lock storage (compliance mode).
  2. Semantic Normalization: Mapping to MITRE ATT&CK and OWASP Logging Cheat Sheet (OWASP, 2022).
  3. Causal Graph Construction: Incremental generation of $G$ with computation of conditional probabilities.
  4. Incremental Cryptographic Verification: Merkle trees per temporal block.

4.1 RTC Algorithm

We define transformed weights:

$w’(u,v) = -\log P(v \mid u)$.

We apply Dijkstra to obtain the shortest path, ensuring complexity:

$O(|E_c|\log|V|)$ with a binary heap.

Correctness follows from the monotonicity of the logarithmic transformation and the non-negativity of the transformed weights.

4.2 VII Algorithm

For block $B={e_1,\dots,e_n}$:

$h_i = \text{SHA256}(e_i)$

Internal nodes:

$h_{i,j} = \text{SHA256}(h_i | h_j)$

Root $R$ authenticates the entire block.

Time complexity: $O(n)$.
Inclusion proof: $O(\log n)$.

Security is grounded in the collision resistance and second-preimage resistance of SHA-256 (ANDERSON, 2020).

  1. Implementation

Components:

Simplified Kafka configuration example:

log.retention.hours=168
log.segment.bytes=1073741824
compression.type=lz4

Observed average throughput: 85,000 events/s in a 12-node cluster (128 GB RAM each). LZ4 compression reduced storage by 28%. The average additional latency per Merkle verification was 12 ms.

The empirical analysis confirmed near-linear scalability under temporal partitioning and source-key balancing.

  1. Experimental Evaluation

Environment:

Datasets:

Metrics:

Metric Heuristic Baseline Proposed
Precision 64.2% 91.4% (±1.8)
MTTT 100% 62.2%
CPU Overhead 3.1% 8.6%
Max Throughput 74,000 ev/s 102,000 ev/s

A two-sided t-test indicated $p < 0{,}01$, with a 95% confidence interval, confirming statistical significance.

  1. Discussion

Probabilistic causal modeling reduces base-rate fallacy impacts by incorporating explicit conditional dependencies (AXELSSON, 1999). Cryptographic integration ensures chain of custody in accordance with ISO/IEC 27037.

Limitations include dependence on temporal synchronization (NTP/PTP) and possible combinatorial explosion in dense graphs, with an upper bound of $O(|V|^2)$ edges.

Extensions include dynamic Bayesian networks, integration with eBPF telemetry for syscall-level granularity, and incorporation of remote attestation mechanisms based on TPM.

  1. Conclusion

We demonstrated that the convergence of mathematical formalism, probabilistic inference, and cryptographic integrity produces significant and statistically validated gains in DFIR. The proposed architecture establishes a rigorous, auditable, and scalable foundation, aligned with NIST guidelines, ISO/IEC 27037, ENISA, and the MITRE ATT&CK taxonomy, compatible with contemporary cloud, CNAPP, and eBPF-based telemetry environments.

References

ANDERSON, Ross. Security engineering. 3. ed. Hoboken: Wiley, 2020. Available at: https://www.cl.cam.ac.uk/~rja14/book.html

AXELSSON, Stefan. The base-rate fallacy and its implications for intrusion detection. In: ACM CCS, 1999. Available at: https://dl.acm.org/doi/10.1145/319709.319710

BEEBE, Nicole; CLARK, Jan. A hierarchical, objectives-based framework for the digital investigations process. Digital Investigation, 2005. Available at: https://doi.org/10.1016/j.diin.2005.04.002

BISHOP, Matt. Computer security: art and science. 2. ed. Boston: Addison-Wesley, 2018.

CARRIER, Brian; SPAFFORD, Eugene. An event-based digital forensic investigation framework. DFRWS, 2004. Available at: https://www.dfrws.org/presentation/an-event-based-digital-forensic-investigation-framework/

CICHONSKI, Paul et al. Computer security incident handling guide (SP 800-61r2). Gaithersburg: NIST, 2012. Available at: https://csrc.nist.gov/publications/detail/sp/800-61/rev-2/final

DARPA. Transparent Computing Program. 2019. Available at: https://www.darpa.mil/program/transparent-computing

IBM. QRadar SIEM documentation. 2023. Available at: https://www.ibm.com/docs/en/qradar

ISO. ISO/IEC 27037:2012. Geneva: ISO, 2012.

KENT, Karen et al. Guide to integrating forensic techniques into incident response (SP 800-86). Gaithersburg: NIST, 2006. Available at: https://csrc.nist.gov/publications/detail/sp/800-86/final

KING, Samuel; CHEN, Peter. Backtracking intrusions. SOSP, 2003. Available at: https://dl.acm.org/doi/10.1145/945445.945465

LANL. Los Alamos National Laboratory Cybersecurity Dataset. 2017. Available at: https://csr.lanl.gov/data/cyber1/

MICROSOFT. Microsoft Sentinel documentation. 2023. Available at: https://learn.microsoft.com/azure/sentinel/

MITRE. ATT&CK Framework. 2023. Available at: https://attack.mitre.org

OWASP. Logging cheat sheet. 2022. Available at: https://cheatsheetseries.owasp.org/cheatsheets/Logging_Cheat_Sheet.html

SPLUNK. Security analytics. 2023. Available at: https://www.splunk.com

VERIZON. Data breach investigations report. 2023. Available at: https://www.verizon.com/business/resources/reports/dbir/