Abstract
As malware such as ransomware becomes sophisticated, the ability to find and neutralize it requires more robust and tamper-resistant solutions. Current methods rely on data from compromised hosts, lack hardware isolation, and cannot detect emerging threats. To address these limitations, we introduce SHIELD—a detection architecture leveraging FPGA-based open-source SATA and Network Block Device (NBD) technology to provide off-host, tamper-proof measurements for continuous observation of disk activity. SHIELD develops a framework to analyze multi-level hardware metrics, broadens the functionality of open-source FPGA-driven SATA Host Bus Adapters, and provides a foundation for automated machine learning-assisted detection. Experimental evidence shows SHIELD's capacity for real-time monitoring, achieving high accuracy in distinguishing between ransomware and benign software with minimal data loss.
Introduction: The Vulnerability of Host-Based Defense
Modern ransomware has evolved beyond simple file encryption, employing hardware acceleration and intermittent encryption to evade traditional security tools. A fundamental weakness of current defenses, such as antivirus or Endpoint Detection and Response (EDR) systems, is their reliance on the host operating system. If an attacker gains administrative privileges, they can disable or blind these tools. Furthermore, existing hardware-level defenses often monitor coarse "logical block addresses" (LBA), which lack the context to distinguish between legitimate database updates and malicious encryption sweeps.
SHIELD addresses this by moving the "eyes" of the security system from the vulnerable host to the storage layer itself. By monitoring low-level filesystem activity from an off-host vantage point, SHIELD provides a tamper-proof defense capable of halting ransomware in real-time.
Methodology: A Two-Pronged Architecture
SHIELD utilizes a dual-architecture approach to bridge the gap between offline training and real-time mitigation.
- Off-Host Metric Acquisition: The system sits between the host and the disk, intercepting every read/write command. In the prototype, this is achieved using Network Block Device (NBD) technology.
- Deep Filesystem Parsing: Unlike simple block monitors, SHIELD is filesystem-aware (specifically for
ext4). It tracks 25 specific features, including superblock accesses, Group Descriptor Table (GDT) modifications, and inode table updates. - Action-Based Windows: To prevent evasion by "slow-burn" ransomware, SHIELD aggregates data based on disk actions (e.g., every 20 or 100 writes) rather than time intervals.
- Entropy Tracking: Real-time calculation of Shannon entropy identifies the sudden shifts toward high entropy characteristic of encryption.
- Machine Learning Classifiers: The framework employs LightGBM to handle non-linear relationships in disk behavior, enabling high-speed inference.
Key Insights and Results
SHIELD was validated against a comprehensive dataset of 10 ransomware families and 10 high-I/O benign applications (e.g., 7-zip, VeraCrypt). To test generalization, 10 additional "zero-shot" ransomware strains (e.g., Akira, Phobos) were used.
- Detection Accuracy: The best binary model achieved 97.29% accuracy. Even when relying solely on hardware-level filesystem indicators (stripping away network metrics), accuracy remained high at ~96%, proving the feasibility of ASIC/FPGA integration.
- Zero-Shot Generalization: SHIELD maintained an average accuracy of 94.59% on completely new ransomware strains.
- Real-Time Mitigation: In live tests, SHIELD halted malicious operations after an average of only 83 disk actions. This limited file corruption to less than 0.4% of total files. In many cases, the actual hardware-level data loss was less than 0.01% of total disk bytes.
- Metadata Significance: Metadata changes proved highly predictive; ransomware frequently accesses inodes at high rates without deallocating them, a distinct signature compared to benign software.
Conclusion and Future Work
SHIELD demonstrates that host-independent, filesystem-aware monitoring is a robust defense against modern ransomware. While the current prototype is tuned for ext4, the logic is extensible to other filesystems like NTFS or APFS. Future work includes moving the software-based prototype to dedicated FPGA/ASIC hardware to eliminate performance overhead and implementing a "Recovery Mechanism" using a rolling buffer to achieve near-perfect data rollback for the minimal blocks lost during the detection window.
Summary updated