Logging to the Danger Zone: Race Condition Attacks and Defenses on System Audit Frameworks
Riccardo Paccagnella, Kevin Liao, Dave Tian, Adam Bates
Abstract
For system logs to aid in security investigations, they must be beyond the reach of the adversary. Unfortunately, attackers that have escalated privilege on a host are typically able to delete and modify log events at will. In response to this threat, a variety of secure logging systems have appeared over the years that attempt to provide tamper-resistance (e.g., write once read many drives, remote storage servers) or tamper-evidence (e.g., cryptographic proofs) for system logs. These solutions expose an interface through which events are committed to a secure log, at which point they enjoy protection from future tampering. However, all proposals to date have relied on the assumption that an event's occurrence is concomitant with its commitment to the secured log. In this work, we challenge this assumption by presenting and validating a race condition attack on the integrity of audit frameworks. Our attack exploits the intrinsically asynchronous nature of I/O and IPC activity, demonstrating that an attacker can snatch events about their intrusion out of message buffers after they have occurred but before they are committed to the log, thus bypassing existing protections. We present a first step towards defending against our attack by introducing KennyLoggings, the first kernel- based tamper-evident logging system that satisfies the synchronous integrity property, meaning that it guarantees tamper-evidence of events upon their occurrence. We implement KennyLoggings on top of the Linux kernel and show that it imposes between 8% and 11% overhead on log-intensive application workloads.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
26 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- SHADEWATCHER: Recommendation-guided Cyber Threat Analysis using System Audit Records cites NoDoze: Combatting Threat Alert Fatigue with Automated Provenance Triage
- SHADEWATCHER: Recommendation-guided Cyber Threat Analysis using System Audit Records cites HOLMES: Real-Time APT Detection through Correlation of Suspicious Information Flows
- SHADEWATCHER: Recommendation-guided Cyber Threat Analysis using System Audit Records cites POIROT: Aligning Attack Behavior with Kernel Audit Records for Cyber Threat Hunting
- SHADEWATCHER: Recommendation-guided Cyber Threat Analysis using System Audit Records cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- POIROT: Aligning Attack Behavior with Kernel Audit Records for Cyber Threat Hunting cites NoDoze: Combatting Threat Alert Fatigue with Automated Provenance Triage
- POIROT: Aligning Attack Behavior with Kernel Audit Records for Cyber Threat Hunting cites HOLMES: Real-Time APT Detection through Correlation of Suspicious Information Flows
- HARDLOG: Practical Tamper-Proof System Auditing Using a Novel Audit Device cites NoDoze: Combatting Threat Alert Fatigue with Automated Provenance Triage
- Kairos: Practical Intrusion Detection and Investigation using Whole-system Provenance cites NoDoze: Combatting Threat Alert Fatigue with Automated Provenance Triage
- Kairos: Practical Intrusion Detection and Investigation using Whole-system Provenance cites HOLMES: Real-Time APT Detection through Correlation of Suspicious Information Flows
- Kairos: Practical Intrusion Detection and Investigation using Whole-system Provenance cites SHADEWATCHER: Recommendation-guided Cyber Threat Analysis using System Audit Records
- Kairos: Practical Intrusion Detection and Investigation using Whole-system Provenance cites POIROT: Aligning Attack Behavior with Kernel Audit Records for Cyber Threat Hunting
- Kairos: Practical Intrusion Detection and Investigation using Whole-system Provenance cites DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Kairos: Practical Intrusion Detection and Investigation using Whole-system Provenance cites DEPCOMM: Graph Summarization on System Audit Logs for Attack Investigation
- Kairos: Practical Intrusion Detection and Investigation using Whole-system Provenance cites Log2vec: A Heterogeneous Graph Embedding Based Approach for Detecting Cyber Threats within Enterprise
- DEPCOMM: Graph Summarization on System Audit Logs for Attack Investigation cites HOLMES: Real-Time APT Detection through Correlation of Suspicious Information Flows
- DEPCOMM: Graph Summarization on System Audit Logs for Attack Investigation cites POIROT: Aligning Attack Behavior with Kernel Audit Records for Cyber Threat Hunting
- DEPCOMM: Graph Summarization on System Audit Logs for Attack Investigation cites Log2vec: A Heterogeneous Graph Embedding Based Approach for Detecting Cyber Threats within Enterprise
- ARCUS: Symbolic Root Cause Analysis of Exploits in Production Systems cites NoDoze: Combatting Threat Alert Fatigue with Automated Provenance Triage
- ARCUS: Symbolic Root Cause Analysis of Exploits in Production Systems cites HOLMES: Real-Time APT Detection through Correlation of Suspicious Information Flows
Cited by top-tier papers26
- SHADEWATCHER: Recommendation-guided Cyber Threat Analysis using System Audit RecordsJun Zeng, Xiang Wang, Jiahao Liu, Yinfang Chen et al.S&P 2022 · 187 citations
- Kairos: Practical Intrusion Detection and Investigation using Whole-system ProvenanceZijun Cheng, Qiujian Lv, Jinyuan Liang, Yan Wang et al.S&P 2024 · 125 citations
- DEPCOMM: Graph Summarization on System Audit Logs for Attack InvestigationZhiqiang Xu, Pengcheng Fang, Changlin Liu, Xusheng Xiao et al.S&P 2022 · 88 citations
- HARDLOG: Practical Tamper-Proof System Auditing Using a Novel Audit DeviceAdil Ahmad, Sangho Lee, Marcus PeinadoS&P 2022 · 46 citations
- ARCUS: Symbolic Root Cause Analysis of Exploits in Production SystemsCarter Yagemann, Matthew Pruett, Simon P. Chung, Kennon Bittick et al.USENIX Security 2021 · 42 citations
Builds on21
- DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep LearningMin Du, Feifei Li, Guineng Zheng, Vivek SrikumarCCS 2017 · 1,823 citations
- HOLMES: Real-Time APT Detection through Correlation of Suspicious Information FlowsSadegh Momeni Milajerdi, Rigel Gjomemo, Birhanu Eshete, R. Sekar et al.S&P 2019 · 550 citations
- NoDoze: Combatting Threat Alert Fatigue with Automated Provenance TriageWajih Ul Hassan, Shengjian Guo, Ding Li, Zhengzhang Chen et al.NDSS 2019 · 411 citations
- Log2vec: A Heterogeneous Graph Embedding Based Approach for Detecting Cyber Threats within EnterpriseFucheng Liu, Yu Wen, Dongxue Zhang, Xihe Jiang et al.CCS 2019 · 314 citations
- POIROT: Aligning Attack Behavior with Kernel Audit Records for Cyber Threat HuntingSadegh M. Milajerdi, Birhanu Eshete, Rigel Gjomemo, V. N. VenkatakrishnanCCS 2019 · 313 citations
Related papers
- Faster Yet Safer: Logging System Via Fixed-Key BlockcipherViet Tung Hoang, Cong Wu, Xin YuanUSENIX Security 2022
- HyperAudit: Towards User Transparent and Highly Efficient System Auditing for Cloud PlatformsRenpeng Zhang, Kai Shen, Peng Jiang, Ding Li et al.USENIX Security 2026
- Rethinking System Audit Architectures for High Event Coverage and Synchronous Log AvailabilityVarun Gandhi, Sarbartha Banerjee, Aniket Agrawal, Adil Ahmad et al.USENIX Security 2023
- Custos: Practical Tamper-Evident Auditing of Operating Systems Using Trusted ExecutionRiccardo Paccagnella, Pubali Datta, Wajih Ul Hassan, Adam Bates et al.NDSS 2020
- Rethinking Tamper-Evident Logging: A High-Performance, Co-Designed Auditing SystemRui Zhao, Muhammad Shoaib, Viet Tung Hoang, Wajih Ul HassanCCS 2025 · 1 citation
