使用近端关联的细粒度数据流跟踪
Fine Grained Dataflow Tracking with Proximal Gradients
摘要:
利用动态污点分析(DTA)进行数据流跟踪是系统安全中的一种重要方法,具有许多应用,包括漏洞分析、引导模糊和侧信道信息泄漏检测。然而,DTA从根本上受到污点标签的布尔性质的限制,其不提供关于检测到的异常的重要性的信息,并且导致复杂的真实世界程序上的假阳性/阴性。我们介绍了近端梯度分析(PGA),一种新的,理论上接地的方法,可以跟踪更准确,更细粒度的信息。PGA使用近似梯度(proximal gradients),一种对不可微函数的梯度的概括,来精确地在程序中的不可微操作上组合梯度。在程序上合成梯度消除了DTA中出现的许多低传播错误,并提供了有关每个测量的低传播如何影响程序的更丰富的信息。我们比较了我们的原型PGA实现的最先进的DTA实现7个现实世界的节目。我们的研究结果表明,PGA可以提高数据流跟踪的F1精度高达33%的污点跟踪(平均20%),而不会引入任何显着的开销(平均<5%)。我们进一步证明了PGA的有效性,发现22个错误(20个由开发人员确认)和2个侧通道泄漏,并确定可利用的漏洞,在19个现有的CVE在测试程序。
英文摘要:
Dataflow tracking with Dynamic Taint Analysis (DTA) is an important method in systems security with many applications, including exploit analysis, guided fuzzing, and side-channel information leak detection. However, DTA is fundamentally limited by the Boolean nature of taint labels, which provide no information about the significance of detected dataflows and lead to false positives/negatives on complex real world programs. We introduce proximal gradient analysis (PGA), a novel, theoretically grounded approach that can track more accurate and fine-grained dataflow information. PGA uses proximal gradients, a generalization of gradients for non-differentiable functions, to precisely compose gradients over non-differentiable operations in programs. Composing gradients over programs eliminates many of the dataflow propagation errors that occur in DTA and provides richer information about how each measured dataflow effects a program. We compare our prototype PGA implementation to three state of the art DTA implementations on 7 real-world programs. Our results show that PGA can improve the F1 accuracy of data flow tracking by up to 33% over taint tracking (20% on average) without introducing any significant overhead (<5% on average). We further demonstrate the effectiveness of PGA by discovering 22 bugs (20 confirmed by developers) and 2 side-channel leaks, and identifying exploitable dataflows in 19 existing CVEs in the tested programs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。