Skip to main navigation Skip to search Skip to main content

Decap: Deprivileging Programs by Reducing Their Capabilities

  • Stony Brook University

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

11 Scopus citations

Abstract

Linux enables non-root users to perform certain privileged operations through the use of the setuid ("set user ID") mechanism. This represents a glaring violation of the principle of least privilege, as setuid programs run with full superuser privileges-with disastrous outcomes when vulnerabilities are found in them. Linux capabilities aim to improve this situation by splitting superuser privileges into distinct units that can be assigned individually. Despite the clear benefits of capabilities in reducing the risk of privilege escalation, their actual use is scarce, and setuid programs are still prevalent in modern Linux distributions. The lack of a systematic way for developers to identify the capabilities needed by a given program is a contributing factor that hinders their applicability. In this paper we present Decap, a binary code analysis tool that automatically deprivileges programs by identifying the subset of capabilities they require based on the system calls they may invoke. This is made possible by our systematic effort in deriving a complete mapping between all Linux system calls related to privileged operations and the corresponding capabilities on which they depend. The results of our experimental evaluation with a set of 201 setuid programs demonstrate the effectiveness of Decap in meaningfully deprivileging them, with half of them requiring fewer than 16 capabilities, and 69% of them avoiding the use of the security-critical CAP_SYS_ADMIN capability.

Original languageEnglish
Title of host publicationProceedings of 25th International Symposium on Research in Attacks, Intrusions and Defenses, RAID 2022
PublisherAssociation for Computing Machinery
Pages395-408
Number of pages14
ISBN (Electronic)9781450397049
DOIs
StatePublished - Oct 26 2022
Event25th International Symposium on Research in Attacks, Intrusions and Defenses, RAID 2022 - Limassol, Cyprus
Duration: Oct 26 2022Oct 28 2022

Publication series

NameACM International Conference Proceeding Series

Conference

Conference25th International Symposium on Research in Attacks, Intrusions and Defenses, RAID 2022
Country/TerritoryCyprus
CityLimassol
Period10/26/2210/28/22

Keywords

  • Linux capabilities
  • privileges
  • setuid programs

Fingerprint

Dive into the research topics of 'Decap: Deprivileging Programs by Reducing Their Capabilities'. Together they form a unique fingerprint.

Cite this