MCI : Modeling-based Causality Inference in Audit Logging for Attack Investigation

Yonghwi Kwon, Fei Wang, Weihang Wang, Kyu Hyung Lee, Wen-Chuan Lee, Shiqing Ma, Xiangyu Zhang, Dongyan Xu, Somesh Jha, Gabriela F. Ciocarlie, Ashish Gehani, Vinod Yegneswaran

Abstract

Forensic analysis of security breaches often relies on system audit logs to trace attack provenance. However, traditional syscall-based logging suffers from "dependence explosion," where long-running processes generate noisy causal graphs filled with false dependencies. MCI (Modeling-based Causality Inference) addresses this by combining offline "dual-execution" to build behavioral models with a novel "segmented parser" for log analysis. This approach achieves high-precision forensics using standard, unmodified audit logs without requiring application instrumentation or kernel modifications.

Introduction

When a security incident occurs, analysts use tools like Linux Audit or DTrace to answer critical questions about the attack's origin and path. A major hurdle in this process is the "dependence explosion" problem. For instance, if a text editor reads a sensitive file in the morning and writes to a network socket in the evening, standard analysis might incorrectly assume a causal link between the two events. Existing solutions often require intrusive changes to the operating system or application source code, which are impractical for many production environments.

Methodology: Two-Phase Causality Inference

MCI decouples the forensic process into two distinct stages: an offline modeling phase and an online parsing phase.

MCI System Architecture: The two-phase workflow consisting of offline model generation and online model parsing.

1. Offline: Causal Model Generation

The system uses LDX (Dual Execution) to identify precise causal links. By executing an application and mutating its inputs, MCI observes changes in output system calls. This allows the identification of both explicit and implicit causal links (e.g., data transfers through memory logic) without needing source code. These links are formalized into Causal Models represented as grammars.

2. Online/Forensic: Segmented Parsing

In production, standard low-overhead audit logging is used. During an investigation, the MCI Parser processes raw logs using the pre-built models. To handle the computational complexity of parsing billions of events, MCI utilizes "explicit dependencies" (like PIDs or file handles) as a skeleton to partition the log into manageable segments, enabling efficient reconstruction of the true causal chain.

Evaluation and Key Results

MCI was evaluated against 17 real-world programs, including Firefox, Apache, and GnuPG, and tested on a week-long system-wide trace containing 3.7 billion events.

Comparative Analysis: Comparison of causal graphs generated by Linux Audit, BEEP, TaintGrind, and MCI (LDX).

High Accuracy and Conciseness

MCI achieved 0% False Positives and False Negatives for most programs. Even for complex applications like Firefox, error rates remained low (8.3% FP, 3.2% FN). As shown in the comparative analysis, MCI produces significantly smaller and more accurate causal graphs than state-of-the-art tools like BEEP, effectively pruning "bogus" dependencies.

Scalability and Deployment

The system successfully processed 732 GB of uncompressed logs in approximately four days, a reasonable timeframe for deep forensic investigations. Crucially, MCI requires zero deployment effort, as it works with standard audit logs and requires no changes to the production environment.

Conclusion

MCI provides a scalable, high-precision solution for attack forensics. By leveraging offline behavioral modeling and efficient segmented parsing, it overcomes the dependence explosion problem inherent in traditional audit logging. Its ability to capture implicit flows and its non-intrusive nature make it a powerful tool for modern security operations.

Summary updated

BibTeX
@inproceedings{kwon2018mci,
  author = {Yonghwi Kwon and Fei Wang and Weihang Wang and Kyu Hyung Lee and Wen-Chuan Lee and Shiqing Ma and Xiangyu Zhang and Dongyan Xu and Somesh Jha and Gabriela F. Ciocarlie and Ashish Gehani and Vinod Yegneswaran},
  title = {{MCI : Modeling-based Causality Inference in Audit Logging for Attack Investigation}},
  booktitle = {NDSS},
  year = {2018},
}
Figure