LSMET Linux安全模組篩選與評估工具
LSMET A Framework to Help System Administrators Select Linux Security Modules
摘要
Linux使用者可以使透過使用Linux Security Module (LSM) 來增強訪問控制,透過訂定Security Policiy管理系統存取行為,以彌補原Linux權限控制機制Discretionary Access Control (DAC) 的不足。Linux Kernel有提供四款LSM可供使用者直接安裝使用,分別為AppArmor、SELinux、SMACK、TOMOYO Linux。由於一個Linux系統只能安裝一個LSM,但每個LSM能為系統帶來的安全保護,能帶給使用者的管理便利性都不盡相同,這些特點是優點還是缺點也都因人而異。因此在選擇LSM上,需要多方的評估與考量。
我們設計出一款工具名為LSM Evaluation Tool (LSMET)的工具,協助系統開發人員針對其產品特性與需求,評估並決定合適的安全模組。為了更好比較各個LSM所提供的功能,我們提出的一套名為LSM Evaluation Criteria Set (LSMECSet)的一系列標準,LSMET 使用這些標準針對不同的 LSM 進行功能上的篩選評估。過往的測量LSM對系統效能的影響,都是著重在測量system calls上,但對大部分使用者來言,更在意的是Applicaitons在LSM管理之下可能造成的效能下降程度。因此,LSMET的效能測試將專注在application level 的校能評估,且提供了兩個測試基準給使用者參考,分別為micro-benchmark與marco-benchmark。除了功能評估與效能測試,LSMET透過提供每個LSM的特色與用法、與系統環境的相容性等重要資訊,全面性的幫助使用者篩選出最適合其需求的LSM。最後,我們提出了四個應用場景,模擬使用者使用LSMET的流程,及LSMET所產出的結果是如何有效幫助使用者,找到最適合最能滿足其需求的LSM。實驗證明我們所提供的 LSMET 能協助使用者依據其產品需求與開發環境,快速評估並決定所需的安全模組。
我們設計出一款工具名為LSM Evaluation Tool (LSMET)的工具,協助系統開發人員針對其產品特性與需求,評估並決定合適的安全模組。為了更好比較各個LSM所提供的功能,我們提出的一套名為LSM Evaluation Criteria Set (LSMECSet)的一系列標準,LSMET 使用這些標準針對不同的 LSM 進行功能上的篩選評估。過往的測量LSM對系統效能的影響,都是著重在測量system calls上,但對大部分使用者來言,更在意的是Applicaitons在LSM管理之下可能造成的效能下降程度。因此,LSMET的效能測試將專注在application level 的校能評估,且提供了兩個測試基準給使用者參考,分別為micro-benchmark與marco-benchmark。除了功能評估與效能測試,LSMET透過提供每個LSM的特色與用法、與系統環境的相容性等重要資訊,全面性的幫助使用者篩選出最適合其需求的LSM。最後,我們提出了四個應用場景,模擬使用者使用LSMET的流程,及LSMET所產出的結果是如何有效幫助使用者,找到最適合最能滿足其需求的LSM。實驗證明我們所提供的 LSMET 能協助使用者依據其產品需求與開發環境,快速評估並決定所需的安全模組。
Linux users can use Linux Security Module (LSM) to enhance access control and address the limitations of the original Linux permission control mechanism. LSMs such as AppArmor, SELinux, SMACK, and TOMOYO Linux offer varying security protection and management convenience by defining security policies to govern system access behaviors. However, due to Linux, only one LSM can be utilized at a time, necessitating careful evaluation and consideration when selecting the most suitable LSM. We have developed the LSM Evaluation Tool (LSMET) to facilitate the decision-making process. LSMET employs our proposed set of criteria, known as the LSM Evaluation Criteria Set (LSMECSet), to evaluate and compare the functions provided by each LSM. Unlike previous performance testing that primarily focused on system calls, LSMET's performance tests concentrate on measuring the impact of LSMs on applications. It provides two benchmarks (micro- and marco-benchmark) that aid users in assessing the performance effects of the applications they manage. Beyond functional evaluation and performance testing, LSMET is a comprehensive resource that provides crucial information on the characteristics, usage of each LSM, and compatibility with the system environment. It empowers users to make informed decisions by offering all the necessary information to select the LSM that best aligns with their needs. To demonstrate the efficacy of LSMET, we present four scenarios that simulate user experiences with the tool. These scenarios showcase how the results produced by LSMET effectively guide users in finding the most suitable LSM that caters to their requirements. In conclusion, LSMET equips Linux users with the means to make informed choices through its facilitation of functional screening evaluation, performance testing, and comprehensive analysis of LSMs.