Skip to main content
QUICK REVIEW

[论文解读] Scheduler Vulnerabilities and Attacks in Cloud Computing

Fangfei Zhou, Manish Goel|arXiv (Cornell University)|Mar 3, 2011
Cloud Computing and Resource ManagementComputer Science参考文献 23被引用 18
一句话总结

本文识别出Xen虚拟机监控器调度器中的一个关键漏洞,攻击者可通过利用周期性采样机制,使恶意虚拟机消耗高达98%的CPU资源,展示了内核级和用户空间的攻击手段。作者提出了四种调度器修改方案,可在几乎不增加性能开销的情况下防止CPU周期窃取,相关方案已在实验室和生产环境(包括Amazon EC2)中得到验证,其中修补版本虽能缓解但无法在特定条件下完全消除攻击。

ABSTRACT

In hardware virtualization a hypervisor provides multiple Virtual Machines (VMs) on a single physical system, each executing a separate operating system instance. The hypervisor schedules execution of these VMs much as the scheduler in an operating system does, balancing factors such as fairness and I/O performance. As in an operating system, the scheduler may be vulnerable to malicious behavior on the part of users seeking to deny service to others or maximize their own resource usage. Recently, publically available cloud computing services such as Amazon EC2 have used virtualization to provide customers with virtual machines running on the provider's hardware, typically charging by wall clock time rather than resources consumed. Under this business model, manipulation of the scheduler may allow theft of service at the expense of other customers, rather than merely reallocating resources within the same administrative domain. We describe a flaw in the Xen scheduler allowing virtual machines to consume almost all CPU time, in preference to other users, and demonstrate kernel-based and user-space versions of the attack. We show results demonstrating the vulnerability in the lab, consuming as much as 98% of CPU time regardless of fair share, as well as on Amazon EC2, where Xen modifications protect other users but still allow theft of service. In case of EC2, following the responsible disclosure model, we have reported this vulnerability to Amazon; they have since implemented a fix that we have tested and verified (See Appendix B). We provide a novel analysis of the necessary conditions for such attacks, and describe scheduler modifications to eliminate the vulnerability. We present experimental results demonstrating the effectiveness of these defenses while imposing negligible overhead.

研究动机与目标

  • 识别并演示一种基于时间的攻击,使虚拟机能够在云环境中窃取其他虚拟机的CPU周期。
  • 分析此类攻击在依赖周期性采样进行CPU使用量测量的调度器中成功运行的条件。
  • 设计并评估四种调度器修改方案,以在保持公平性、效率和低开销的前提下防止CPU周期窃取。
  • 在真实云环境(包括Amazon EC2)中验证攻击与防御措施,遵循负责任的披露流程。
  • 对虚拟化调度器中成功实施资源窃取的必要条件进行形式化分析。

提出的方法

  • 通过操纵调度周期中的时间点,利用Xen信用调度器中的周期性采样机制,实现隐蔽的持续高CPU使用。
  • 开发了一种用户空间攻击,利用精确计时循环,在无需内核权限或修改的情况下消耗高达80%的CPU。
  • 证明即使在非工作一致性(NWC)模式下(CPU使用量受上限限制),该攻击仍可规避限制,实现高达85%的CPU利用率。
  • 提出四种调度器修改方案,通过提升CPU使用量估算精度,检测并防止基于时间的CPU周期窃取。
  • 在Xen 3.2.1上实现并评估所提出的调度器,通过受控实验环境测量性能与开销。
  • 在Amazon EC2上验证修复方案的有效性,确认补丁可防止其他虚拟机被饿死,但无法完全阻止对空闲CPU周期的利用。

实验结果

研究问题

  • RQ1在何种条件下,虚拟机可利用虚拟机监控器调度器中的周期性采样机制来窃取CPU周期?
  • RQ2恶意虚拟机在Xen信用调度器中在多大程度上可绕过公平性与利用率上限?
  • RQ3所提出的调度器修改方案在不降低性能或公平性的情况下,防止CPU周期窃取的效率如何?
  • RQ4此类攻击是否可在真实云环境(如Amazon EC2)中成功实施?修补后的系统如何响应?
  • RQ5为防止基于时间的资源窃取攻击,调度器所需的最小改动是什么?

主要发现

  • 在未修改的配置下,Xen调度器允许恶意虚拟机消耗高达98%的CPU周期,无论其公平份额或竞争虚拟机数量如何。
  • 用户空间攻击可在无需内核权限或修改的情况下实现高达80%的CPU利用率。
  • 即使在非工作一致性(NWC)模式下(CPU使用量受上限限制),该攻击仍可规避限制,消耗高达85%的CPU周期。
  • 在Amazon EC2上,修补后的Xen版本可防止其他虚拟机被饿死,但恶意虚拟机仍可消耗高达85%的空闲CPU周期。
  • 所提出的调度器修改方案能有效阻止攻击,且实验评估证实其引入的性能开销可忽略不计。
  • 该漏洞源于对周期性采样进行CPU使用量估算的依赖,从而在时间窗口上为精心设计的执行模式提供了可利用的攻击面。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。