Paper Files / DFIR
A formally grounded architecture for graph-based DFIR with temporal graphs, cryptographic integrity guarantees, and probabilistic attack-chain reconstruction
TITLE: A formally grounded architecture for graph-based DFIR with temporal graphs, cryptographic integrity guarantees, and probabilistic attack-chain reconstruction ABSTRACT: A formally grounded architecture for graph-based DFIR with temporal graphs, cryptographic integrity guarantees, and probabilistic attack-chain reconstruction ABSTRACT: A formally grounded architecture for graph-based DFIR with temporal graphs, cryptographic integrity guarantees, and probabilistic attack-chain reconstruction SUMMARY: The increasing sophistication of modern cyber campaigns poses significant challenges to Digital Forensics and Incident Response (DFIR) practices. Contemporary enterprise environments generate massive amounts of telemetry across multiple layers—endpoints, networks, applications, and cloud infrastructures—making manual reconstruction of incidents practically impossible. Although monitoring systems and SIEM platforms provide mechanisms for event correlation, such approaches often lack a formal foundation to preserve causal relationships and temporal consistency among digital evidence. In this work, we present a formal architecture for DFIR based on temporal graphs, augmented by probabilistic inference and cryptographic mechanisms for evidence integrity assurance. We propose a mathematical model that represents forensic events as typed nodes in a temporally consistent directed graph, enabling the capture of causal dependencies between processes, files, network connections, and identities. On this graph, we introduce the Attack Probabilistic Reconstruction (APR) algorithm, which uses Bayesian inference in consideration of tactical and technical patterns as described in the MITRE ATT&CK framework to estimate the most likely sequence of attacker actions. In addition, we implement a cryptographic hash-chaining mechanism that ensures the integrity and verifiability of evidence throughout the entire investigative pipeline. We experimentally evaluate the proposed architecture using three representative datasets: the DARPA Transparent Computing dataset, large-scale real-world enterprise logs, and synthetic Log4Shell exploitation scenarios. The results show clear improvements in precision, recall, and attack-chain reconstruction time compared with approaches based solely on heuristic correlation or isolated statistical detection. We observe an average reduction of 37.4% in investigative reconstruction time as well as a significant increase in the accuracy of attack-chain inference. We also discuss practical implications for integration into modern SIEM platforms and limitations related to log quality and storage overhead. We conclude that the combination of formal temporal-graph-based modeling, probabilistic inference, and cryptographic guarantees provides a promising foundation for scalable and verifiable DFIR systems in contemporary enterprise environments.
- Introduction
The discipline of Digital Forensics and Incident Response (DFIR) has evolved significantly over the last ten years in response to the increasing complexity of digital infrastructures and the substantial expansion of the attack surface in enterprise environments. Contemporary computing systems integrate cloud services, hybrid environments, microservice architectures, and distributed devices, thereby generating massive volumes of security telemetry. In this context, digital forensic investigation has become a large-scale computational problem that requires automated methods capable of preserving causal relationships and temporal consistency among events (BISHOP, 2018).
Well-documented incidents illustrate this operational complexity. The mass exploitation of vulnerability CVE‑2021‑44228, known as Log4Shell, demonstrated how flaws in widely deployed libraries can enable remote code execution and rapid propagation across enterprise environments (NIST, 2021). Supply-chain attacks, such as the compromise of the SolarWinds Orion software, showed that advanced adversaries operate through persistent, multi-stage campaigns involving initial compromise, lateral movement, and data exfiltration (MANDIANT, 2023). In contemporary ransomware campaigns conducted by groups such as LockBit and ALPHV/BlackCat, one also observes the combination of persistence techniques, abuse of valid credentials, and disabling of audit mechanisms.
A large portion of this activity can be described using the MITRE ATT&CK framework, which systematizes adversary tactics and techniques empirically observed in real-world campaigns (MITRE, 2024). Techniques such as T1059 (Command and Scripting Interpreter), T1021 (Remote Services), T1078 (Valid Accounts), and T1070 (Indicator Removal) frequently appear in sequence in advanced attacks. Although ATT&CK provides a useful taxonomy for threat analysis, the formal reconstruction of attack chains from heterogeneous logs remains a significant challenge.
The central problem in contemporary DFIR is to reconstruct, in a consistent and verifiable manner, the causal sequence of events that constitute a security incident. Large organizations often generate billions of events per day from EDR systems, firewalls, proxies, identity platforms, and cloud services. Manual analysis of this data is impractical, while automated approaches based on rules or heuristic correlation often produce false positives or fail to identify relevant causal relationships (ANDERSON, 2020).
Empirical reports substantiate this operational gap. The Verizon Data Breach Investigations Report documents that adversaries frequently remain in compromised environments for long periods before initial detection occurs (VERIZON, 2023). Similarly, operational analyses by Mandiant indicate that a significant share of investigated incidents involve substantial lateral movement before the attack is identified (MANDIANT, 2023).
In this context, we investigate the following research questions:
RQ1: How can forensic events be formally modeled in order to preserve causality and temporal consistency?
RQ2: Is it possible to reconstruct complex attack chains with higher accuracy using graph-oriented probabilistic inference?
RQ3: What are the performance and scalability implications of applying these models in large-scale telemetry environments?
Our main contributions are:
C1: Formal definition of a temporal graph model for representing digital evidence with explicit integrity and temporal consistency properties.
C2: Proposal of a probabilistic attack reconstruction algorithm based on Bayesian inference, conditioned on MITRE ATT&CK pattern structure.
C3: Implementation of a scalable prototype and experimental evaluation on representative datasets, showing measurable improvements in investigative accuracy and reconstruction time.
The remainder of the article is organized as follows. Section 2 presents the theoretical foundations and related work. Section 3 formalizes the threat model and the problem under study. Section 4 describes the proposed methodology. Section 5 explains the experimental implementation. Section 6 presents the empirical evaluation. Section 7 discusses implications and limitations. Finally, Section 8 concludes the paper.
- Foundations and Related Work
Digital forensics rests on four classical phases: identification, preservation, analysis, and presentation of digital evidence (KENT et al., 2006). Formally, a set of observed evidence may be represented as:
$E = {e_1, e_2, …, e_n}$
where each event $e_i$ has structural attributes:
$(t_i, s_i, m_i)$
where $t_i$ represents the timestamp, $s_i$ denotes the source of origin (e.g., endpoint, firewall, or application), and $m_i$ corresponds to a set of metadata.
Traditional models often treat events as independent observations and merely order them by timestamps. This timeline-based approach ignores causal dependencies among computational actions and hinders the reconstruction of complex attack chains (BISHOP, 2018).
As an alternative, provenance graphs have been extensively studied in the systems security literature. In such models, a directed graph $G = (V, E)$ represents computational entities and their interactions, including processes, files, and network connections (BATES et al., 2015).
This concept can be extended to temporal graphs by defining:
$G = (V, E, \tau)$
where $\tau : V \rightarrow \mathbb{R}$ assigns a time point to each node. Temporal consistency of the graph requires:
$$ \forall (u,v) \in E,\ \tau(u) \leq \tau(v) $$
This property prevents the formation of inconsistent causal dependencies in the graph.
Over the last decade, several provenance-capture systems have been proposed. The PASS system introduced provenance collection mechanisms at the operating-system level, while the SPADE framework investigated distributed audit-event collection (FREIRE et al., 2008; BATES et al., 2015).
In the specific context of multi-stage attack detection, Milajerdi et al. proposed HOLMES, a system that correlates system events using phases defined by the ATT&CK structure (MILAJERDI et al., 2019). Although effective in detecting malicious behavior, this system provides neither formal completeness guarantees nor explicit probabilistic reconstruction of attack chains.
In enterprise environments, SIEM platforms such as Splunk Enterprise Security and IBM QRadar use rule-based correlation, heuristics, and statistical models to identify suspicious patterns (SPLUNK, 2023; IBM, 2023). However, such systems often function as analytical black boxes, making formal verification of the inferences they produce difficult.
In recent years, modern observability and security architectures have also begun integrating telemetry from cloud environments and containerized workloads, often correlated within CNAPP (Cloud-Native Application Protection Platform) solutions (SCARFONE; SOUPPAYA, 2022). This expansion of the monitoring surface increases the need for scalable formal models for investigative analysis.
Our approach differs by integrating three complementary dimensions: formal modeling based on temporal graphs, ATT&CK-aligned probabilistic inference, and cryptographic integrity guarantees for evidence.
- Threat Model and Problem Formalization
We consider an adversary $\mathcal{A}$ capable of conducting multi-stage campaigns in enterprise environments monitored by standard logging mechanisms. The assumed capabilities include:
- remote exploitation of known vulnerabilities;
- arbitrary code execution on compromised hosts;
- local privilege escalation;
- lateral movement using valid credentials;
- attempts to remove or manipulate logs.
These capabilities are consistent with patterns observed in documented campaigns of advanced persistent threats (TANKARD, 2011; MITRE, 2024).
We further assume that the monitored infrastructure generates telemetry from multiple sources, including EDR, authentication logs, network flows, and application events. However, this data may exhibit delays, partial loss, or temporal inconsistencies.
We define the problem under study as follows. Given a set of observed events $E_{obs}$, we seek to reconstruct a sequence of adversarial actions:
$A = (a_1, a_2, …, a_k)$
that maximizes the posterior probability:
$$ A^ = \arg\max_A P(A | E_{obs}) $$
where $A$ represents a chain of techniques compatible with the threat model.
Three fundamental properties are desirable in the system:
Integrity: recorded evidence must be resistant to modification without detection.
Completeness: all plausible chains must be representable in the investigative graph.
Correctness: inferred chains with probability above a threshold $\theta$ must be consistent with the assumed attack model.
These properties form the theoretical basis of the proposed architecture.
- Proposed Methodology
The GT‑DFIR architecture consists of four main modules:
- event ingestion and normalization;
- construction of the temporal provenance graph;
- probabilistic inference mechanism;
- cryptographic integrity layer.
During ingestion, events from multiple sources are mapped into a common representation schema. Each event is transformed into a typed node belonging to one of the following categories: process, file, network, or user.
Algorithm 1: Construction of a temporal graph
Input: normalized event set E
Output: temporal graph G
1: initialize G ← (V = ∅, E = ∅)
2: for each event e ∈ E:
3: create vertex v_e
4: add v_e to V
5: identify causal dependencies D
6: for each d ∈ D:
7: add edge (d, v_e) to E
8: return G
The algorithmic complexity is approximately $O(n \log n)$ when time indices are used to locate dependencies.
Algorithm 2: Probabilistic Attack Reconstruction (PAR)
Input: graph G, set of techniques T
Output: attack chain A
1: initialize hypothesis set H
2: for each technique t ∈ T:
3: identify compatible subgraphs S_t
4: estimate probability P(t | S_t)
5: update H
6: apply Bayesian inference over H
7: return chain with highest probability
Probabilistic inference is based on the relationship:
$$ P(A|E) \propto P(E|A)P(A) $$
where $P(A)$ is the prior probability of an attack chain and $P(E|A)$ represents the likelihood of the observed evidence.
To ensure evidence integrity, we use cryptographic hash chaining:
$$ h_i = SHA256(e_i || h_{i-1}) $$
This mechanism creates a verifiable chain of records and prevents undetected alteration of stored events.
- Implementation
We implemented an experimental prototype using a distributed architecture with eight compute nodes, each equipped with Intel Xeon Gold processors and 128 GB of RAM.
Event integration was performed with the Elastic Stack, with normalization based on the Elastic Common Schema (ECS) (ELASTIC, 2024). Storage and querying of the temporal graph were implemented with Neo4j, which provides efficient support for structural queries and temporal indexing (NEO4J, 2023).
The probabilistic inference mechanism was developed in Python, using scientific libraries for conditional probability computation and graph analysis.
The observed average ingestion rate was approximately 50,000 events per second, with an average processing latency of 220 ms. To ensure horizontal scalability, we used partitioning by time windows $\Delta t$, enabling parallel processing across multiple nodes.
- Experimental Evaluation
The experimental evaluation used three distinct datasets.
| Dataset | Size | Description |
|---|---|---|
| DARPA Transparent Computing | 5.1 TB | Operating-system telemetry for security research |
| Enterprise logs | 4.2 TB | 1.3 billion anonymized real-world events |
| Log4Shell scenarios | 800 GB | Simulations of CVE‑2021‑44228 exploitation |
We compared the proposed architecture with two baseline approaches.
| Identifier | Method |
|---|---|
| B1 | Rule-based correlation (traditional SIEM) |
| B2 | Isolated statistical detection |
The evaluated metrics included Precision, Recall, F1-score, and Reconstruction Time (RT).
| Method | Precision | Recall | F1 | RT (min) |
|---|---|---|---|---|
| B1 | 0.74 | 0.68 | 0.71 | 42.3 |
| B2 | 0.69 | 0.64 | 0.66 | 38.7 |
| GT‑DFIR | 0.91 | 0.87 | 0.89 | 26.5 |
We observed an average reduction of 37.4% in investigative reconstruction time ($\sigma = 4.8$). Statistical tests based on the t-test showed significance with $p < 0.01$.
The average computational overhead introduced by the architecture was 12.6%, a value considered acceptable given the gains in investigative accuracy.
- Discussion
The experimental results show that graph-oriented modeling of temporal graphs substantially reduces causal ambiguity during forensic investigations. By explicitly representing dependencies between events, the system avoids false inferences common in purely chronological approaches.
The use of Bayesian inference also makes it possible to integrate prior knowledge about empirically observed attack patterns, especially those documented in the MITRE ATT&CK framework (MITRE, 2024). This integration of expert knowledge and observed evidence improves the robustness of investigative inferences.
Nevertheless, several limitations remain. The quality of the inferences depends strongly on the completeness and accuracy of the collected telemetry. Environments with insufficient logging may produce incomplete graphs, impairing attack-chain reconstruction.
In addition, provenance graphs at scale can reach billions of nodes, creating storage and querying challenges. Event compression and aggregation strategies constitute promising directions for future research.
From an operational standpoint, practical deployment of this architecture requires integration with existing SIEM platforms and incident response tools, as well as specialized training for security analysts.
- Conclusion
We presented a formal architecture for Digital Forensics and Incident Response based on temporal graphs, probabilistic inference, and cryptographic mechanisms for preserving evidence integrity. We showed that this approach enables reconstruction of complex attack chains with higher accuracy and efficiency than traditional methods based solely on heuristic correlation.
Our contribution includes the mathematical formalization of the investigative model, the definition of probabilistic reconstruction algorithms, and empirical validation on datasets representative of contemporary enterprise environments.
The experimental results indicate substantial improvements in accuracy metrics and a reduction in investigative reconstruction time. These findings suggest that temporal graph-based architectures represent a promising direction for scalable and verifiable DFIR systems.
References
ANDERSON, Ross. Security engineering: a guide to building dependable distributed systems. 3. ed. Hoboken: Wiley, 2020. Available at: https://www.cl.cam.ac.uk/~rja14/book.html
BATES, Adam et al. Trustworthy whole-system provenance for the Linux kernel. In: USENIX SECURITY SYMPOSIUM. Proceedings… 2015. Available at: https://www.usenix.org/conference/usenixsecurity15
BILGE, Leyla; DUMITRAȘ, Tudor. Before we knew it: an empirical study of zero-day attacks in the real world. In: ACM CCS. Proceedings… 2012. Available at: https://doi.org/10.1145/2382196.2382284
BISHOP, Matt. Computer security: art and science. 2. ed. Boston: Addison‑Wesley, 2018. Available at: https://www.pearson.com/en-us/subject-catalog/p/computer-security-art-and-science/P200000003095
CARRIER, Brian. File system forensic analysis. Boston: Addison‑Wesley, 2005. Available at: https://www.pearson.com/en-us/subject-catalog/p/file-system-forensic-analysis
DARPA. Transparent computing program. Arlington: DARPA, 2018. Available at: https://www.darpa.mil/program/transparent-computing
ELASTIC. Elastic Common Schema (ECS) reference documentation. 2024. Available at: https://www.elastic.co/guide/en/ecs/current/index.html
FREIRE, Juliana et al. Provenance for computational tasks: a survey. Computing in Science & Engineering, 2008. Available at: https://doi.org/10.1109/MCSE.2008.79
IBM. IBM QRadar SIEM documentation. 2023. Available at: https://www.ibm.com/docs/en/qradar
KENT, Karen et al. Guide to integrating forensic techniques into incident response. NIST Special Publication 800‑86. Gaithersburg: NIST, 2006. Available at: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-86.pdf
MANDIANT. M‑Trends 2023: insights into today’s cyber attack trends. 2023. Available at: https://www.mandiant.com/resources/m-trends
MILAJERDI, Sadegh M. et al. HOLMES: real-time APT detection through correlation of suspicious information flows. IEEE Symposium on Security and Privacy, 2019. Available at: https://doi.org/10.1109/SP.2019.00044
MITRE. MITRE ATT&CK framework. 2024. Available at: https://attack.mitre.org
NEO4J. Graph database platform documentation. 2023. Available at: https://neo4j.com/docs
NIST. National vulnerability database entry CVE‑2021‑44228. 2021. Available at: https://nvd.nist.gov/vuln/detail/CVE-2021-44228
NIST. Computer security incident handling guide. NIST SP 800‑61 Revision 2. 2012. Available at: https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-61r2.pdf
NOEL, Steven et al. Measuring security risk of networks using attack graphs. IEEE Security & Privacy, 2009. Available at: https://doi.org/10.1109/MSP.2009.64
OWASP. OWASP Top 10: the ten most critical web application security risks. 2021. Available at: https://owasp.org/www-project-top-ten
SCARFONE, Karen; SOUPPAYA, Murugiah. Guidelines on security and privacy in public cloud computing. NIST, 2022. Available at: https://nvlpubs.nist.gov/nistpubs
SPLUNK. Splunk Enterprise Security documentation. 2023. Available at: https://docs.splunk.com/Documentation/ES
TANKARD, Colin. Advanced persistent threats and how to monitor and deter them. Network Security, 2011. Available at: https://doi.org/10.1016/S1353-4858(11)70086-1
VERIZON. 2023 Data breach investigations report. 2023. Available at: https://www.verizon.com/business/resources/reports/dbir/