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.
The system architecture is divided into four primary modules:
- Configuration Module: Defines protected partitions and sets boundaries for the "isolation area."
- Index Table Module: Uses a high-speed HASH table to map original disk sectors to new locations in the isolation area.
- Data Relocation Module: Redirects write operations on protected partitions to a temporary isolation zone.
- 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.
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