利用Kubernetes镜像拉取实现拒绝节点可用性
Exploiting Kubernetes' Image Pull Implementation to Deny Node Availability
AI总结:
本文利用Kubernetes与CRI-API间状态信息缺失,提出拒绝服务攻击方法,导致节点CPU高达95%并阻止镜像下载,并给出eBPF缓解方案MAGI。
摘要:
Kubernetes(K8s)在过去几年中日益流行,已成为云原生环境中容器编排的事实标准。虽然关于容器化和访问控制安全等主题的研究并不新鲜,但K8s与其运行时接口之间的应用程序编程接口(API)交互尚未得到深入研究。特别是,CRI-API负责抽象容器运行时,管理容器的创建和生命周期以及相应镜像的下载。然而,这种关注点分离和容器运行时的抽象使得K8s无法感知容器镜像下载过程的状态,从而阻碍了对分配给该过程的资源的监控。在本文中,我们讨论了如何利用这种状态信息的缺失在K8s集群中发起拒绝服务攻击。我们展示了此类攻击如何影响工作节点,产生高达平均95%的CPU使用率,阻止新容器镜像的下载,并可能无限期地增加I/O和网络使用量。我们认为解决此问题需要对K8s与CRI-API之间的关系进行彻底的架构变革,这在短期内是不可行的。因此,作为临时解决方案,我们提出了MAGI:一种基于eBPF的概念验证缓解措施,用于检测并终止潜在攻击。
英文摘要:
Kubernetes (K8s) has grown in popularity over the past few years to become the de-facto standard for container orchestration in cloud-native environments. While research is not new to topics such as containerization and access control security, the Application Programming Interface (API) interactions between K8s and its runtime interfaces have not been studied thoroughly. In particular, the CRI-API is responsible for abstracting the container runtime, managing the creation and lifecycle of containers along with the downloads of the respective images. However, this decoupling of concerns and the abstraction of the container runtime renders K8s unaware of the status of the downloading process of the container images, obstructing the monitoring of the resources allocated to such process. In this paper, we discuss how this lack of status information can be exploited as a Denial of Service attack in a K8s cluster. We show how such attacks can impact worker nodes, generating up to 95% average CPU usage, prevent downloads of new container images, and increase I/O and network usage for a potentially unlimited amount of time. We argue that solving this problem would require a radical architectural change in the relationship between K8s and the CRI-API, which would be unfeasible in the short term. Thus, as a stopgap solution, we propose MAGI: an eBPF-based, proof-of-concept mitigation that detects and terminates potential attacks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。