Logging to the Danger Zone: Race Condition Attacks and Defenses on System Audit Frameworks
Riccardo Paccagnella, Kevin Liao, Dave Tian, Adam Bates
摘要
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.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 26 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- SHADEWATCHER: Recommendation-guided Cyber Threat Analysis using System Audit Records 引用了 NoDoze: Combatting Threat Alert Fatigue with Automated Provenance Triage
- SHADEWATCHER: Recommendation-guided Cyber Threat Analysis using System Audit Records 引用了 HOLMES: Real-Time APT Detection through Correlation of Suspicious Information Flows
- SHADEWATCHER: Recommendation-guided Cyber Threat Analysis using System Audit Records 引用了 POIROT: Aligning Attack Behavior with Kernel Audit Records for Cyber Threat Hunting
- SHADEWATCHER: Recommendation-guided Cyber Threat Analysis using System Audit Records 引用了 DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- POIROT: Aligning Attack Behavior with Kernel Audit Records for Cyber Threat Hunting 引用了 NoDoze: Combatting Threat Alert Fatigue with Automated Provenance Triage
- POIROT: Aligning Attack Behavior with Kernel Audit Records for Cyber Threat Hunting 引用了 HOLMES: Real-Time APT Detection through Correlation of Suspicious Information Flows
- HARDLOG: Practical Tamper-Proof System Auditing Using a Novel Audit Device 引用了 NoDoze: Combatting Threat Alert Fatigue with Automated Provenance Triage
- Kairos: Practical Intrusion Detection and Investigation using Whole-system Provenance 引用了 NoDoze: Combatting Threat Alert Fatigue with Automated Provenance Triage
- Kairos: Practical Intrusion Detection and Investigation using Whole-system Provenance 引用了 HOLMES: Real-Time APT Detection through Correlation of Suspicious Information Flows
- Kairos: Practical Intrusion Detection and Investigation using Whole-system Provenance 引用了 SHADEWATCHER: Recommendation-guided Cyber Threat Analysis using System Audit Records
- Kairos: Practical Intrusion Detection and Investigation using Whole-system Provenance 引用了 POIROT: Aligning Attack Behavior with Kernel Audit Records for Cyber Threat Hunting
- Kairos: Practical Intrusion Detection and Investigation using Whole-system Provenance 引用了 DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep Learning
- Kairos: Practical Intrusion Detection and Investigation using Whole-system Provenance 引用了 DEPCOMM: Graph Summarization on System Audit Logs for Attack Investigation
- Kairos: Practical Intrusion Detection and Investigation using Whole-system Provenance 引用了 Log2vec: A Heterogeneous Graph Embedding Based Approach for Detecting Cyber Threats within Enterprise
- DEPCOMM: Graph Summarization on System Audit Logs for Attack Investigation 引用了 HOLMES: Real-Time APT Detection through Correlation of Suspicious Information Flows
- DEPCOMM: Graph Summarization on System Audit Logs for Attack Investigation 引用了 POIROT: Aligning Attack Behavior with Kernel Audit Records for Cyber Threat Hunting
- DEPCOMM: Graph Summarization on System Audit Logs for Attack Investigation 引用了 Log2vec: A Heterogeneous Graph Embedding Based Approach for Detecting Cyber Threats within Enterprise
- ARCUS: Symbolic Root Cause Analysis of Exploits in Production Systems 引用了 NoDoze: Combatting Threat Alert Fatigue with Automated Provenance Triage
- ARCUS: Symbolic Root Cause Analysis of Exploits in Production Systems 引用了 HOLMES: Real-Time APT Detection through Correlation of Suspicious Information Flows
引用它的顶会 Paper26
- SHADEWATCHER: Recommendation-guided Cyber Threat Analysis using System Audit RecordsJun Zeng, Xiang Wang, Jiahao Liu, Yinfang Chen 等S&P 2022 · 187 次引用
- Kairos: Practical Intrusion Detection and Investigation using Whole-system ProvenanceZijun Cheng, Qiujian Lv, Jinyuan Liang, Yan Wang 等S&P 2024 · 125 次引用
- DEPCOMM: Graph Summarization on System Audit Logs for Attack InvestigationZhiqiang Xu, Pengcheng Fang, Changlin Liu, Xusheng Xiao 等S&P 2022 · 88 次引用
- HARDLOG: Practical Tamper-Proof System Auditing Using a Novel Audit DeviceAdil Ahmad, Sangho Lee, Marcus PeinadoS&P 2022 · 46 次引用
- ARCUS: Symbolic Root Cause Analysis of Exploits in Production SystemsCarter Yagemann, Matthew Pruett, Simon P. Chung, Kennon Bittick 等USENIX Security 2021 · 42 次引用
它引用的 Paper21
- DeepLog: Anomaly Detection and Diagnosis from System Logs through Deep LearningMin Du, Feifei Li, Guineng Zheng, Vivek SrikumarCCS 2017 · 1,823 次引用
- HOLMES: Real-Time APT Detection through Correlation of Suspicious Information FlowsSadegh Momeni Milajerdi, Rigel Gjomemo, Birhanu Eshete, R. Sekar 等S&P 2019 · 550 次引用
- NoDoze: Combatting Threat Alert Fatigue with Automated Provenance TriageWajih Ul Hassan, Shengjian Guo, Ding Li, Zhengzhang Chen 等NDSS 2019 · 411 次引用
- Log2vec: A Heterogeneous Graph Embedding Based Approach for Detecting Cyber Threats within EnterpriseFucheng Liu, Yu Wen, Dongxue Zhang, Xihe Jiang 等CCS 2019 · 314 次引用
- POIROT: Aligning Attack Behavior with Kernel Audit Records for Cyber Threat HuntingSadegh M. Milajerdi, Birhanu Eshete, Rigel Gjomemo, V. N. VenkatakrishnanCCS 2019 · 313 次引用
相关 Paper
- 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 等USENIX Security 2026
- Rethinking System Audit Architectures for High Event Coverage and Synchronous Log AvailabilityVarun Gandhi, Sarbartha Banerjee, Aniket Agrawal, Adil Ahmad 等USENIX Security 2023
- Custos: Practical Tamper-Evident Auditing of Operating Systems Using Trusted ExecutionRiccardo Paccagnella, Pubali Datta, Wajih Ul Hassan, Adam Bates 等NDSS 2020
- Rethinking Tamper-Evident Logging: A High-Performance, Co-Designed Auditing SystemRui Zhao, Muhammad Shoaib, Viet Tung Hoang, Wajih Ul HassanCCS 2025 · 1 次引用
