我知道你同步什么:通过syncfs对文件系统的隐蔽和侧信道攻击
I Know What You Sync: Covert and Side Channel Attacks on File Systems via syncfs
摘要:
操作系统使用进程、容器和隔离技术等抽象来强制逻辑隔离,以保护系统免受恶意代码或错误代码的攻击。在本文中,我们展示了通过打破这种逻辑隔离的文件系统的新型侧通道。文件系统在操作系统中起着至关重要的作用,它管理应用程序层和物理存储设备之间的所有I/O活动。我们观察到文件系统实现是共享的,这导致了在使用公共I/O系统调用时的时序泄漏。具体来说,我们发现现代操作系统利用任何刷新操作(将内存中的缓存块保存到SSD或磁盘)来刷新所有I/O缓冲区,甚至是其他隔离域使用的I/O缓冲区。因此,通过测量syncfs的延迟,攻击者可以推断受害程序的I/O行为。然后,我们演示了一个syncfs隐蔽通道攻击多个文件系统,包括Linux本地文件系统和Windows文件系统,实现了最大带宽为5 Kbps的出错率为0.15%的Linux和7.6 Kbps的出错率为1.9%的Windows。此外,我们构建了三个侧信道攻击,针对Linux和Android设备。在Linux设备上,我们通过跟踪临时缓冲文件的写入模式来实现网站指纹攻击和视频指纹攻击。在Android设备上,我们设计了一种应用程序指纹攻击,在启动期间泄漏应用程序写入模式。攻击达到90%以上的F1得分,精确度和召回率。最后,我们证明了这些攻击可以利用跨容器实现容器检测技术和跨容器隐蔽通道攻击。
英文摘要:
Operating Systems enforce logical isolation using abstractions such as processes, containers, and isolation technologies to protect a system from malicious or buggy code. In this paper, we show new types of side channels through the file system that break this logical isolation. The file system plays a critical role in the operating system, managing all I/O activities between the application layer and the physical storage device. We observe that the file system implementation is shared, leading to timing leakage when using common I/O system calls. Specifically, we found that modern operating systems take advantage of any flush operation (which saves cached blocks in memory to the SSD or disk) to flush all of the I/O buffers, even those used by other isolation domains. Thus, by measuring the delay of syncfs, the attacker can infer the I/O behavior of victim programs. We then demonstrate a syncfs covert channel attack on multiple file systems, including both Linux native file systems and the Windows file system, achieving a maximum bandwidth of 5 Kbps with an error rate of 0.15% on Linux and 7.6 Kbps with an error rate of 1.9% on Windows. In addition, we construct three side-channel attacks targeting both Linux and Android devices. On Linux devices, we implement a website fingerprinting attack and a video fingerprinting attack by tracking the write patterns of temporary buffering files. On Android devices, we design an application fingerprinting attack that leaks application write patterns during boot-up. The attacks achieve over 90% F1 score, precision, and recall. Finally, we demonstrate that these attacks can be exploited across containers implementing a container detection technique and a cross-container covert channel attack.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。