POSTER: TraceVirt: A Framework for Detecting the Non-tampering Attacks in the Virtual Machine

Jie Lin, Chuanyi Liu, Binxing FangCCS 2014

TL;DR

This paper introduces TraceVirt, a novel framework designed to detect "non-tampering" attacks in virtual machines (VMs). Unlike traditional security measures that focus on detecting modifications to files or programs, TraceVirt monitors VM events from outside the VM, successfully identifying attacks that exploit vulnerabilities without altering system integrity.

What Problem Does This Paper Address?

The increasing reliance on cloud computing brings forth trust issues, as data is moved from local control to remote servers. While integrity measurement architectures (IMAs) like Linux's IMA are designed to ensure data and program integrity, they fall short against a class of attacks that don't modify system files or programs. These "non-tampering attacks" exploit vulnerabilities within running programs or manipulate data in memory without leaving a trace in traditional integrity logs. Examples include binary code injection (like buffer overflows) and command injection via web requests. This paper aims to bridge this gap by providing a detection mechanism for these stealthy attacks.

Methods

TraceVirt employs a two-pronged approach:

  • Detection Nodes: These modules operate outside the VM, leveraging the virtualization capabilities of the host (specifically, Intel's EPT or AMD's NPT for memory access control) and the Xen hypervisor's interfaces. This "out-of-VM" design prevents attackers from compromising the detection mechanism itself.
  • System Call Logging: Intercepts system calls (e.g., via int 0x80) by monitoring the execution of kernel code, logging the system call number and the process identifier (CR3 register).
  • Data Manipulation Logging: Monitors writes to specific memory regions (like .bss and .data sections) that are known to be writable and thus susceptible to manipulation.
  • Memory Dumping: Periodically or on-demand, the entire VM memory is dumped for later analysis, particularly useful for detecting string-based attacks like command injection.
  • Remote Data Analysis Cluster: A separate system, built on Hadoop, receives the collected logs and memory dumps. It analyzes this data chronologically to identify potential intrusion events and their impact.

Datasets

The paper does not introduce new datasets but evaluates TraceVirt using real-world attack scenarios against common services:

  • Game Server (UT2004): Tested for buffer overflow vulnerabilities.
  • FTP Server (ProFTPD): Tested for buffer overflow vulnerabilities.
  • ERP Business Management Software (Dolibarr): Tested for vulnerabilities related to not checking input parameters (command injection).

The evaluation also uses standard benchmarks for performance testing:

  • Unixbench: For micro-benchmark performance analysis.
  • TPCC-uva: For macro-benchmark database performance.
  • live555 media server: For macro-benchmark network throughput.

Key Insights and Ideas

  • The Blind Spot of Integrity Measurement: The core insight is that traditional IMA, while effective against file tampering, is completely blind to attacks that exploit runtime vulnerabilities without altering disk contents.
  • Out-of-VM Detection is Crucial: By performing detection from the hypervisor level, TraceVirt achieves a critical isolation that prevents the detection mechanism itself from being a target for compromise.
  • Combining Event Logging and Memory Analysis: The framework's strength lies in its multi-faceted approach, combining system call and data manipulation logging with memory dumping to capture a broader spectrum of non-tampering attacks.
  • Performance Overhead is Acceptable: Despite the extensive logging, the experimental results indicate that the performance overhead is generally low, especially for data logging, making it practical for real-world deployment.

Key Results

  • Effectiveness: TraceVirt successfully detected all tested real-world non-tampering attacks, including binary code injection (buffer overflow) and command injection. In contrast, IMA failed to detect these attacks because they did not modify any files.
  • Performance Overhead:
    • Micro-benchmarks (Unixbench): System call logging introduced significant overhead (up to 61.10% for execl throughput, 62.25% for process creation), while data logging showed minimal impact.
  • Macro-benchmarks: * Database (TPCC-uva): System call logging introduced less than 2% overhead, and data logging less than 3%.
  • Network (live555): Logging scenarios performed comparably to, and sometimes better than, the no-logging baseline, indicating no significant negative impact on network throughput.

Limitations and Future Work

  • Limitations: The paper acknowledges that the system call logging can introduce noticeable overhead for certain operations that involve frequent process switching or system call invocation.
  • Future Work: The authors plan to focus on enhancing the data analysis component to more effectively identify intrusion behavior from the collected logs and memory dumps. They also aim to further optimize the logging mechanisms to reduce performance overhead.

Summary updated

BibTeX
@inproceedings{lin2014poster,
  author = {Jie Lin and Chuanyi Liu and Binxing Fang},
  title = {{POSTER: TraceVirt: A Framework for Detecting the Non-tampering Attacks in the Virtual Machine}},
  booktitle = {CCS},
  year = {2014},
  doi = {10.1145/2660267.2662377},
}
Figure