Based on WDM of Disk Immunity Systems

Hai-Yun Peng, Wengang ZhouInternational Journal of Security and Its Applications 2014 · DOI

Abstract

It is a tough problem to protect computer data in the public environment. In order to prevent hard disk data from virus infection, malicious destruction, and accidental deletion, this paper illustrates the design and implementation of a disk immunity system based on a WDM filter driver. This system can effectively protect hard disk data. Benchmark results show that this system has minimal effects on overall disk I/O performance, though some overhead exists in specific scenarios.

Introduction

Computers in public spaces—such as libraries, Internet cafes, and school laboratories—are high-risk environments. They are frequently targeted by malware, subjected to accidental file deletions, and prone to system instability caused by user experimentation. Traditionally, administrators relied on hardware "protection cards" functioning at the BIOS level (intercepting INT13 interrupts). However, these solutions are often rigid and difficult to manage.

This paper proposes a software-based approach operating within the Windows Driver Model (WDM). The goal is to create a "frozen" system state where the underlying disk remains untouched, regardless of user activity during a session.

System Architecture and Methods

The core of the system is a WDM Filter Driver that sits within the Windows I/O stack. When the operating system sends an I/O Request Packet (IRP) to the disk, the filter driver intercepts it to manage data protection.

Figure 1: The WDM filter driver positioned within the Windows I/O stack.

The system architecture is divided into four primary modules:

  1. Configuration Module: Defines protected partitions and sets boundaries for the "isolation area."
  2. Index Table Module: Uses a high-speed HASH table to map original disk sectors to new locations in the isolation area.
  3. Data Relocation Module: Redirects write operations on protected partitions to a temporary isolation zone.
  4. Data Merge Module: Merges data streams when a read request spans both modified (isolation zone) and original (physical disk) sectors.

To ensure thread safety without the performance cost of complex locking mechanisms, a dedicated Security Thread processes all intercepted IRPs sequentially. This prevents race conditions when accessing the index table or temporary files.

Performance Evaluation

The system was evaluated using Iometer on a testbed featuring a Pentium 4 2.80GHz processor and a 200GB Seagate HDD. The benchmark compared disk performance with and without the filter driver loaded.

Figure 2: Disk I/O performance comparison (MB/s) across various block sizes.

Key findings from the performance tests include:

  • Sequential Writes: The system showed negligible overhead for sequential write operations, confirming the efficiency of the redirection logic.
  • Read Performance: Significant performance degradation (up to 50%) was observed when dealing with small data blocks (less than 32K) as the index table grew. This is primarily due to the search overhead in the HASH table during every read operation.
  • Feasibility: Despite these drops in specific high-frequency I/O scenarios, the system remains feasible for public terminals where users typically perform light tasks.

Conclusion

The WDM-based disk immunity system provides a robust software solution for protecting public PCs. By utilizing a volatile index table stored in RAM, the system effectively "heals" itself upon reboot, discarding all session-based modifications. Future work will focus on optimizing small block I/O performance and adapting the architecture for modern 64-bit Windows environments, ensuring compatibility with current security features like Driver Signature Enforcement.

Summary updated

Abstract

It is a tough problem to pretect computer data in the public environment. In order to prevent hard disk data from virus infection, malice destory and deleting by mistake, this paper illustrates the design and implementation of a disk immunity system based WDM filtered driver. This system can effectively protect hard disk data. Benchmark results show that this system has a few effects for the disk I/O performance.
BibTeX
@article{peng2014based,
  author = {Hai-Yun Peng and Wengang Zhou},
  title = {{Based on WDM of Disk Immunity Systems}},
  journal = {International Journal of Security and Its Applications},
  year = {2014},
  doi = {10.14257/ijsia.2014.8.2.26},
}
Figure