探討在現實系統中實現資訊流追蹤的挑戰
On the Hardness of Practical Information Flow Tracking for Production Systems
摘要
動態資訊追蹤系統是一個被廣泛發展中的資訊安全研究技術。在2017年由Yu-Hsing Hung提出的HIT嘗試透過利用LLVM對目標程式揷樁,經由紀錄程式執行時流經的基本區塊(basic block),並將記錄傳遞至紀錄重播引擎以實現動態資訊流追蹤,此方法程式在非耦合實際程式執行流程與資訊流分析引擎得情況下,減少系統執行的運行負擔。
但在過去的研究中我們發現由於過多的紀錄基本區塊,當遇到程式中包含大量迴圈結構時經常造成必須寫入大量的紀錄檔而導致高昂的效能負擔,為了解決這問題,本論文嘗試提出一份初步的解決方案,透過直接傳遞迴圈資訊至重播引擎與取消迴圈內部的基本區塊紀錄,期望達到提升目標程式運行效能之目的。
然而,此研究也指出在多個特殊情境,如隱式控制流或複雜的迴圈結構時,目前的優化方案由於難易套用而無法達到有效的應用。總結來說雖然HIT的優化具有淺在的應用價值,但是在套用至現實程式中仍需要克服許多挑戰。
但在過去的研究中我們發現由於過多的紀錄基本區塊,當遇到程式中包含大量迴圈結構時經常造成必須寫入大量的紀錄檔而導致高昂的效能負擔,為了解決這問題,本論文嘗試提出一份初步的解決方案,透過直接傳遞迴圈資訊至重播引擎與取消迴圈內部的基本區塊紀錄,期望達到提升目標程式運行效能之目的。
然而,此研究也指出在多個特殊情境,如隱式控制流或複雜的迴圈結構時,目前的優化方案由於難易套用而無法達到有效的應用。總結來說雖然HIT的優化具有淺在的應用價值,但是在套用至現實程式中仍需要克服許多挑戰。
Dynamic Information Flow Tracking (DIFT) is a widely developed technique in security analysis. In 2017, Yu-Hsing Hung introduced HIT, a DIFT system that utilizes LLVM by logging the basic blocks traversed during execution and passing these logs to a replay engine to achieve dynamic information flow tracking. This approach aims to reduce the system’s runtime overhead by decoupling program’s execution from the information flow analysis engine.
Previous research on HIT has shown that excessive logging of basic blocks within loop structure, often results in the generating extremely large log files, leading to significant performance overhead. To address this issue, this paper proposes a solution: by directly passing loop information to the replay engine and eliminating the logging of basic blocks within loops, the goal is to improve the runtime performance of the target program.
However, this study also reveal the challenges in applying the proposed optimization in specific scenarios, such as implicit control flows or complex loop structures, where the current methods may be difficult to apply effectively. In conclusion, while the HIT optimizations show potential, multiple challenges must be overcome before they can be effectively applied to real-world programs.
Previous research on HIT has shown that excessive logging of basic blocks within loop structure, often results in the generating extremely large log files, leading to significant performance overhead. To address this issue, this paper proposes a solution: by directly passing loop information to the replay engine and eliminating the logging of basic blocks within loops, the goal is to improve the runtime performance of the target program.
However, this study also reveal the challenges in applying the proposed optimization in specific scenarios, such as implicit control flows or complex loop structures, where the current methods may be difficult to apply effectively. In conclusion, while the HIT optimizations show potential, multiple challenges must be overcome before they can be effectively applied to real-world programs.