Automating Seccomp Filter Generation for Linux Applications

Claudio Canella, M. Werner, D. Gruss, Michael Schwarz
{"title":"Automating Seccomp Filter Generation for Linux Applications","authors":"Claudio Canella, M. Werner, D. Gruss, Michael Schwarz","doi":"10.1145/3474123.3486762","DOIUrl":null,"url":null,"abstract":"Software vulnerabilities undermine the security of applications. By blocking unused functionality, the impact of potential exploits can be reduced. While seccomp provides a solution for filtering syscalls, it requires manual implementation of filter rules for each individual application. Recent work has investigated approaches to automate this task. However, as we show, these approaches make assumptions that are not necessary or require overly time-consuming analysis. In this paper, we propose Chestnut, an automated approach for generating strict syscall filters with lower requirements and limitations. Chestnut comprises two phases, with the first phase consisting of two static components, i.e., a compiler and a binary analyzer, that statically extract the used syscalls. The compiler-based approach of Chestnut is up to factor 73 faster than previous approaches with the same accuracy. On the binary level, our approach extends over previous ones by also applying to non-PIC binaries. An optional second phase of Chestnut is dynamic refinement to restrict the set of allowed syscalls further. We demonstrate that Chestnut on average blocks 302 syscalls (86.5%) via the compiler and 288 (82.5%) using the binary analysis on a set of 18 applications. Chestnut blocks the dangerous exec syscall in 50% and 77.7% of the tested applications using the compiler- and binary-based approach, respectively. For the tested applications, Chestnut blocks exploitation of more than 61% of the 175 CVEs that target the kernel via syscalls.","PeriodicalId":109533,"journal":{"name":"Proceedings of the 2021 on Cloud Computing Security Workshop","volume":"104 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2020-12-04","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"25","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings of the 2021 on Cloud Computing Security Workshop","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3474123.3486762","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 25

Abstract

Software vulnerabilities undermine the security of applications. By blocking unused functionality, the impact of potential exploits can be reduced. While seccomp provides a solution for filtering syscalls, it requires manual implementation of filter rules for each individual application. Recent work has investigated approaches to automate this task. However, as we show, these approaches make assumptions that are not necessary or require overly time-consuming analysis. In this paper, we propose Chestnut, an automated approach for generating strict syscall filters with lower requirements and limitations. Chestnut comprises two phases, with the first phase consisting of two static components, i.e., a compiler and a binary analyzer, that statically extract the used syscalls. The compiler-based approach of Chestnut is up to factor 73 faster than previous approaches with the same accuracy. On the binary level, our approach extends over previous ones by also applying to non-PIC binaries. An optional second phase of Chestnut is dynamic refinement to restrict the set of allowed syscalls further. We demonstrate that Chestnut on average blocks 302 syscalls (86.5%) via the compiler and 288 (82.5%) using the binary analysis on a set of 18 applications. Chestnut blocks the dangerous exec syscall in 50% and 77.7% of the tested applications using the compiler- and binary-based approach, respectively. For the tested applications, Chestnut blocks exploitation of more than 61% of the 175 CVEs that target the kernel via syscalls.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
为Linux应用程序自动生成Seccomp过滤器
软件漏洞会破坏应用程序的安全性。通过阻止未使用的功能,可以减少潜在漏洞的影响。虽然seccomp提供了过滤系统调用的解决方案,但它需要为每个单独的应用程序手动实现过滤规则。最近的工作研究了自动化这项任务的方法。然而,正如我们所展示的,这些方法所做的假设是不必要的,或者需要过度耗时的分析。在本文中,我们提出了Chestnut,一种自动化的方法来生成严格的系统调用过滤器,具有较低的要求和限制。Chestnut包含两个阶段,第一阶段包含两个静态组件,即编译器和二进制分析器,它们静态地提取使用的系统调用。Chestnut基于编译器的方法在相同精度下比以前的方法快了73倍。在二进制级别上,我们的方法扩展了以前的方法,也适用于非pic二进制文件。Chestnut的第二个可选阶段是动态细化,以进一步限制允许的系统调用集。我们证明了Chestnut通过编译器平均阻塞302个系统调用(86.5%),在一组18个应用程序上使用二进制分析平均阻塞288个系统调用(82.5%)。Chestnut分别在50%和77.7%的测试应用程序中使用基于编译器和二进制的方法阻止了危险的exec系统调用。对于测试的应用程序,在175个通过系统调用攻击内核的cve中,Chestnut阻止了61%以上的漏洞利用。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
ACCO: Algebraic Computation with Comparison Proceedings of the 2021 on Cloud Computing Security Workshop Live Migration of Operating System Containers in Encrypted Virtual Machines Programmable Security in the Age of Software-Defined Infrastructure m-Stability: Threshold Security Meets Transferable Utility
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1