LiCA: A Fine-grained and Path-sensitive Linux Capability Analysis Framework

Menghan Sun, Zirui Song, Xiaoxi Ren, Daoyuan Wu, Kehuan Zhang

Research output: Chapter in Book/Conference Proceeding/ReportConference Paper published in a bookpeer-review

6 Citations (Scopus)

Abstract

The capability mechanism in Linux-based systems is designed for dispersing the root privileges into a set of more refined capabilities, making programs gain no-more-necessary privileges. However, it is challenging to check the necessity and sufficiency of capabilities assigned to programs due to the highly complicated call chains invoked in practice. Inappropriate capability assignment brings threats to the systems. For example, over-privileged programs could allow an attacker to misuse root privileges, while under-privileged programs may incur runtime errors. In this paper, we propose a new Linux capability analysis framework called LiCA to find necessary and sufficient capabilities for programs effectively. LiCA presents fine-grained and path-sensitive code flow analysis based on LLVM to construct accurate mappings between system calls and their capabilities. In particular, we solve the constraint equations along each path from a given system call to individual capabilities and strategically overcome the path explosion problem. Our experiments show that LiCA can correctly find necessary capabilities for the Linux utility programs (e.g., ping and tcpdump) and the public programs from GitHub. By comparing the capabilities claimed by program developers and the results from LiCA, we identify a batch of programs requiring more capabilities than necessary, even root privileges. Therefore, LiCA could help those third-party developers validate their programs' capability setting to achieve the least privilege principle.

Original languageEnglish
Title of host publicationProceedings of 25th International Symposium on Research in Attacks, Intrusions and Defenses, RAID 2022
PublisherAssociation for Computing Machinery
Pages364-379
Number of pages16
ISBN (Electronic)9781450397049
DOIs
Publication statusPublished - 26 Oct 2022
Externally publishedYes
Event25th International Symposium on Research in Attacks, Intrusions and Defenses, RAID 2022 - Limassol, Cyprus
Duration: 26 Oct 202228 Oct 2022

Publication series

NameACM International Conference Proceeding Series

Conference

Conference25th International Symposium on Research in Attacks, Intrusions and Defenses, RAID 2022
Country/TerritoryCyprus
CityLimassol
Period26/10/2228/10/22

Bibliographical note

Publisher Copyright:
© 2022 ACM.

Keywords

  • Linux capability
  • mapping
  • security analysis

Fingerprint

Dive into the research topics of 'LiCA: A Fine-grained and Path-sensitive Linux Capability Analysis Framework'. Together they form a unique fingerprint.

Cite this