基於LLVM的資訊流追蹤的模組化
Modular Hybrid Mode Information Flow Tracking
摘要
HIT 資訊流追蹤機制是在 2017 年由 Yu-Hsing Hung 所提出的資訊流追蹤技術,並且在 2021 年由Pei-Ting Peng 對其程式的建置套用流程提出了優化,以提高HIT對於適應更廣泛應用的可能性。不同於其他現有的資訊流追蹤引擎大多基於字節層
級且使用內嵌污點傳播所造成應用程式負載急遽增加,HIT 會在編譯應用程式時期從目標程式的LLVM 中繼碼萃取專為資訊流設計的污染中繼碼,將資訊流追蹤從應用程式執行抽離。從而讓應用程式在執行時只需記錄程式執行流程的順序還有必要
的變數資訊。在之前對 HIT 的評估中,它確實在一些程式測試中有效降低程式執行負載,但是,在遇到大型迴圈時仍然有可以優化的空間。在本文中,我們旨在將HIT模組化,讓 HIT 可以在我們覺得需要的地方套用另一種資訊流追蹤策略,以減少傳統資訊流紀錄的負擔,藉此提高 HIT的效能,並且評估 HIT 資訊流追蹤引擎在模組化前後的差異。
級且使用內嵌污點傳播所造成應用程式負載急遽增加,HIT 會在編譯應用程式時期從目標程式的LLVM 中繼碼萃取專為資訊流設計的污染中繼碼,將資訊流追蹤從應用程式執行抽離。從而讓應用程式在執行時只需記錄程式執行流程的順序還有必要
的變數資訊。在之前對 HIT 的評估中,它確實在一些程式測試中有效降低程式執行負載,但是,在遇到大型迴圈時仍然有可以優化的空間。在本文中,我們旨在將HIT模組化,讓 HIT 可以在我們覺得需要的地方套用另一種資訊流追蹤策略,以減少傳統資訊流紀錄的負擔,藉此提高 HIT的效能,並且評估 HIT 資訊流追蹤引擎在模組化前後的差異。
HIT is an information flow tracking tool proposed by Yu-Hsing Hung in 2017. In 2021, Pei-Ting Peng optimized the implementation process of its program to enhance the potential for broader applications of HIT. Unlike many existing information flow tracking engines that are mostly based on the byte level and cause a rapid increase in application load due to embedded tainted propagation, HIT extracts tainted semantics designed for information flow tracking from the LLVM intermediate code of the target program during the compilation of the application. This separates information flow tracking from the execution of the application, allowing the application to only record the sequence of program execution and necessary variable information during runtime. In previous evaluations of HIT, it indeed effectively reduced the program execution load in some test cases; however, there is still room for optimization when dealing with large loops. In this paper, we aim to modularize parts of the HIT to improve its performance. We evaluate the differences in the HIT information flow tracking engine before and after modularization.