Skip to main content
QUICK REVIEW

[Paper Review] Memory DoS Attacks in Multi-tenant Clouds: Severity and Mitigation

Tianwei Zhang, Yinqian Zhang|arXiv (Cornell University)|Mar 10, 2016
Security and Verification in ComputingComputer Science65 references13 citations
TL;DR

This paper proposes a novel defense against memory Denial-of-Service (DoS) attacks in multi-tenant cloud environments, where a malicious VM induces performance degradation in co-located victim VMs by exploiting shared hardware memory resources. The defense uses runtime statistical analysis of hardware performance counters and duty-cycle modulation to detect and mitigate attacks with less than 5% performance overhead, effectively protecting real-world workloads like Hadoop and e-commerce applications from up to 38× response time degradation.

ABSTRACT

In cloud computing, network Denial of Service (DoS) attacks are well studied and defenses have been implemented, but severe DoS attacks on a victim's working memory by a single hostile VM are not well understood. Memory DoS attacks are Denial of Service (or Degradation of Service) attacks caused by contention for hardware memory resources on a cloud server. Despite the strong memory isolation techniques for virtual machines (VMs) enforced by the software virtualization layer in cloud servers, the underlying hardware memory layers are still shared by the VMs and can be exploited by a clever attacker in a hostile VM co-located on the same server as the victim VM, denying the victim the working memory he needs. We first show quantitatively the severity of contention on different memory resources. We then show that a malicious cloud customer can mount low-cost attacks to cause severe performance degradation for a Hadoop distributed application, and 38X delay in response time for an E-commerce website in the Amazon EC2 cloud. Then, we design an effective, new defense against these memory DoS attacks, using a statistical metric to detect their existence and execution throttling to mitigate the attack damage. We achieve this by a novel re-purposing of existing hardware performance counters and duty cycle modulation for security, rather than for improving performance or power consumption. We implement a full prototype on the OpenStack cloud system. Our evaluations show that this defense system can effectively defeat memory DoS attacks with negligible performance overhead.

Motivation & Objective

  • To demonstrate the severity of memory DoS attacks in real public cloud environments like Amazon EC2, where co-located malicious VMs can degrade performance of distributed applications.
  • To show that existing performance isolation and QoS mechanisms fail to detect or mitigate sophisticated memory DoS attacks due to their non-conventional resource contention patterns.
  • To design and implement a generalizable, low-overhead defense that detects and mitigates all known types of memory DoS attacks without modifying hardware, hypervisor, or guest OS.
  • To enable practical deployment of the defense in production public clouds by minimizing performance overhead and ensuring compatibility with existing infrastructure.

Proposed method

  • Collect baseline performance behavior of a victim VM during a 'pseudo isolated' period by using duty-cycle modulation to throttle co-located VMs, ensuring clean reference samples.
  • Use hardware performance counters (e.g., LLC misses, memory bandwidth) to monitor runtime behavior of the victim VM and compare it against the baseline.
  • Apply statistical hypothesis testing to detect significant deviations in performance probability distributions between reference and monitored samples, indicating a potential memory DoS attack.
  • Upon detection, apply selective execution throttling to the malicious VM to mitigate attack impact, using existing hardware features re-purposed for security.
  • Implement the full defense prototype on OpenStack, integrating it with existing cloud infrastructure without requiring changes to CPU, hypervisor, or guest OS.
  • Ensure low overhead by keeping persistent performance monitoring below 5% of total execution time, suitable for production deployment.

Experimental results

Research questions

  • RQ1To what extent can a malicious VM co-located on the same physical host cause performance degradation in a victim VM through memory resource contention?
  • RQ2Why do existing performance isolation and QoS scheduling mechanisms fail to detect or mitigate memory DoS attacks, even when resource contention is severe?
  • RQ3Can a general-purpose detection mechanism be built using runtime statistical analysis of hardware performance counters to identify memory DoS attacks across diverse attack types?
  • RQ4How effective is duty-cycle modulation in creating a reliable baseline for performance behavior without fully pausing co-located VMs?
  • RQ5Can the proposed defense mitigate memory DoS attacks with minimal performance overhead in real-world cloud workloads?

Key findings

  • A single malicious VM co-located with a Hadoop application node caused up to 3.7× slowdown in the entire 20-node distributed application on Amazon EC2.
  • For an e-commerce workload, the attack induced up to 38× increase in response time and reduced server throughput to just 13% of normal.
  • The defense system achieved less than 5% performance overhead for persistent monitoring, making it viable for production cloud deployment.
  • Statistical detection using performance counter deviations successfully identified memory DoS attacks with high confidence, even when traditional metrics like LLC miss rate remained unchanged.
  • The defense effectively mitigated all known memory DoS attack types, including atomic locking and Adaptive LLC cleaning attacks, which bypass traditional performance-based detection.
  • The solution is compatible with existing cloud stacks like OpenStack and requires no modifications to CPU, hypervisor, or guest operating systems.

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.