Skip to main content
QUICK REVIEW

[Paper Review] Scheduler Vulnerabilities and Attacks in Cloud Computing

Fangfei Zhou, Manish Goel|arXiv (Cornell University)|Mar 3, 2011
Cloud Computing and Resource ManagementComputer Science23 references18 citations
TL;DR

This paper identifies a critical vulnerability in the Xen hypervisor scheduler that allows malicious virtual machines to consume up to 98% of CPU resources by exploiting periodic sampling mechanisms, demonstrating both kernel-level and user-space attacks. The authors propose four scheduler modifications that prevent cycle stealing with negligible performance overhead, validated in lab and production environments including Amazon EC2, where a patched version mitigates but does not fully eliminate the attack under certain conditions.

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.

Motivation & Objective

  • To identify and demonstrate a timing-based attack that enables virtual machines to steal CPU cycles from others in cloud environments.
  • To analyze the conditions under which such attacks succeed, particularly in schedulers relying on periodic sampling for CPU usage measurement.
  • To design and evaluate four scheduler modifications that prevent cycle stealing while maintaining fairness, efficiency, and low overhead.
  • To validate the exploit and defenses in real-world cloud environments, including Amazon EC2, under responsible disclosure.
  • To provide a formal analysis of the necessary conditions for successful resource theft in virtualized schedulers.

Proposed method

  • Exploits periodic sampling in the Xen Credit scheduler by manipulating timing to avoid detection during scheduling ticks, enabling sustained high CPU usage.
  • Develops a user-space attack using precise timing loops to consume up to 80% of CPU without kernel modifications.
  • Demonstrates that even in non-work-conserving (NWC) mode, where CPU usage is capped, the attack evades limits and achieves up to 85% CPU utilization.
  • Proposes four scheduler modifications that detect and prevent timing-based cycle stealing by improving CPU usage estimation accuracy.
  • Implements and evaluates the proposed schedulers on Xen 3.2.1, measuring performance and overhead in controlled lab environments.
  • Validates the effectiveness of the fixes on Amazon EC2, confirming that the patch prevents theft of allocated caps but not idle cycle exploitation.

Experimental results

Research questions

  • RQ1What conditions enable a virtual machine to exploit periodic sampling in a hypervisor scheduler to steal CPU cycles?
  • RQ2To what extent can malicious VMs bypass fairness and utilization caps in the Xen Credit scheduler?
  • RQ3How effective are proposed scheduler modifications in preventing cycle stealing without degrading performance or fairness?
  • RQ4Can such attacks be successfully mounted in real cloud environments like Amazon EC2, and how do patched systems respond?
  • RQ5What are the minimal changes required to secure a scheduler against timing-based resource theft attacks?

Key findings

  • The Xen scheduler in unmodified configurations allows a malicious VM to consume up to 98% of CPU cycles, regardless of fair share or the number of competing VMs.
  • A user-space attack achieves up to 80% CPU utilization without requiring kernel-level privileges or modifications.
  • Even in non-work-conserving (NWC) mode, where CPU usage is capped, the attack evades limits and consumes up to 85% of CPU cycles.
  • On Amazon EC2, the patched Xen version prevents other VMs from being starved, but the attack still allows the malicious VM to consume up to 85% of idle CPU cycles.
  • The proposed scheduler modifications effectively block the attack while introducing negligible performance overhead, as confirmed by experimental evaluation.
  • The vulnerability arises from reliance on periodic sampling for CPU usage estimation, which creates a timing window exploitable by well-timed execution patterns.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.