arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.06131cs.CRcs.SE
收藏

Timeloops:容器化微服务的自动系统调用策略学习

Timeloops: Automatic System Call Policy Learning for Containerized Microservices

Meghna Pancholi, Andreas D. Kellas, Vasileios P. Kemerlis, Simha Sethumadhavan

摘要:

在本文中,我们介绍了Timeloops,这是一种自动学习容器化微服务应用程序的系统调用过滤策略的新技术。在运行时,Timeloops自动学习程序应该被允许调用哪些系统调用,同时拒绝调用虚假系统调用的尝试。此外,Timeloops解决了现有技术的基于静态分析的技术的许多缺点,诸如为以解释语言(诸如PHP、Python和JavaScript)编写的程序生成严格过滤器的能力。Timeloops有一个简单而健壮的实现,因为它主要是由商业和成熟的技术构建的,如seccomp-BPF,systemd和Podman容器,代码不到500行。我们通过学习单个服务和两个微服务基准应用程序的系统调用来演示Timeloops的实用性,这些微服务基准应用程序利用了流行的技术,如Python Flask,Nginx(带有PHP和Lua模块),Apache Thrift,Memcached,Redis和MongoDB。此外,在产生比现有技术的基于静态分析的技术更小的系统调用过滤器的同时,Timeloops的摊销性能类似于未加固系统的摊销性能。

英文摘要:

In this paper we introduce Timeloops a novel technique for automatically learning system call filtering policies for containerized microservices applications. At run-time, Timeloops automatically learns which system calls a program should be allowed to invoke while rejecting attempts to call spurious system calls. Further, Timeloops addresses many of the shortcomings of state-of-the-art static analysis-based techniques, such as the ability to generate tight filters for programs written in interpreted languages such as PHP, Python, and JavaScript. Timeloops has a simple and robust implementation because it is mainly built out of commodity, and proven, technologies such as seccomp-BPF, systemd, and Podman containers, with fewer than 500 lines of code. We demonstrate the utility of Timeloops by learning system calls for individual services and two microservices benchmark applications, which utilize popular technologies like Python Flask, Nginx (with PHP and Lua modules), Apache Thrift, Memcached, Redis, and MongoDB. Further, the amortized performance of Timeloops is similar to that of an unhardened system while producing a smaller system call filter than state-of-the-art static analysis-based techniques.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑