SHIELD: A Host-Independent Framework for Ransomware Detection using Deep Filesystem Features

Md Raz, P. V. Sai Charan, P. Krishnamurthy, Farshad Khorrami, Ramesh Karri · DOI

Abstract

Ransomware's escalating sophistication necessitates tamper-resistant, off-host detection solutions that capture deep disk activity beyond the reach of a compromised operating system. Existing detection systems use host/kernel signals or rely on coarse block-I/O statistics, which are easy to evade and miss filesystem semantics. The filesystem layer itself remains underexplored as a source of robust indicators for storage-controller-level defense. To address this, we present SHIELD: a Secure Host-Independent Extensible Metric Logging Framework for Tamper-Proof Detection and Real-Time Mitigation of Ransomware Threats. SHIELD parses and logs filesystem-level features that cannot be evaded or obfuscated to expose deep disk activity for real-time ML-based detection and mitigation. We evaluate the efficacy of these metrics through experiments with both binary (benign vs. malicious behavior) and multiclass (ransomware strain identification) classifiers. In evaluations across diverse ransomware families, the best binary classifier achieves 97.29% accuracy in identifying malicious disk behavior. A hardware-only feature set that excludes all transport-layer metrics retains 95.97% accuracy, confirming feasibility for FPGA/ASIC deployment within the storage controller datapath. In a proof-of-concept closed-loop deployment, SHIELD halts disk operations within tens of disk actions, limiting targeted files affected to <0.4% for zero-shot strains at small action-windows, while maintaining low false-positive rates (<3.6%) on unseen benign applications. Results demonstrate that filesystem-aware, off-host telemetry enables accurate, resilient ransomware detection, including intermittent/partial encryption, and is practical for embedded integration in storage controllers or alongside other defense mechanisms.

Introduction: The Vulnerability of On-Host Defense

Most current ransomware defenses operate "on-host," running as software within the Operating System (OS). This positioning creates a critical vulnerability: if an attacker gains root or kernel-level access, they can disable the defense process or manipulate the data it receives. While "off-host" solutions exist, they typically rely on coarse block-level I/O statistics—monitoring disk address patterns and throughput. These signals are easily obfuscated by attackers who "shape" their traffic to mimic benign applications.

SHIELD addresses this gap by introducing filesystem-awareness to the storage controller level. By parsing actual filesystem structures (such as ext4 or NTFS) directly from the storage datapath, SHIELD gains a "deep" view of disk activity that is nearly impossible for an attacker to hide, even with kernel-level control.

The SHIELD Framework

SHIELD is designed as a metric-acquisition and mitigation pipeline suitable for integration into FPGA or ASIC storage controllers. It moves the security "trust anchor" from the untrusted host to the trusted storage-side hardware.

Conceptual overview of SHIELD's deep filesystem parsing and ML-driven halt mechanism.

Key components of the framework include:

  • Deep Filesystem Parsing: SHIELD parses on-disk structures like the Superblock, Group Descriptors, and Inode Tables to track real-time mutations (allocations, modifications, and deletions).
  • Content-Sensitive Entropy: The system calculates Shannon entropy on data blocks during write operations. Sudden spikes in entropy across multiple files serve as a primary signature for encryption.
  • Action-Based Windows: To counter "slow-and-low" attacks that game time-based monitors, SHIELD groups telemetry into windows of a fixed number of disk actions (e.g., every 20 or 100 reads/writes).
  • Closed-Loop Mitigation: Upon detecting a threat via its Machine Learning (ML) classifiers, SHIELD triggers a "Halt Mechanism" that blocks subsequent writes, freezing the attack before widespread damage occurs.

Comparative Advantages and Key Insights

SHIELD's primary innovation is its vantage point. By operating at the hardware level, it remains effective regardless of host-side compromise.

Comparison of SHIELD against existing security architectures, highlighting its unique support for FS-specific features and hardware-level tamper resistance.

Research insights from the SHIELD evaluation include:

  • Filesystem Invariance: Ransomware must interact with the filesystem to achieve its goal. Whether it renames files, overwrites them, or creates encrypted copies, these actions leave a structural footprint in the inode tables that SHIELD can detect.
  • Hardware-Only Feasibility: SHIELD maintains 95.97% accuracy even when ignoring all transport-layer information (like OS timestamps) and relying solely on what a hardware controller observes on the wire.
  • Resilience to Throttling: Because detection is based on disk actions rather than wall-clock time, SHIELD remains effective even if an attacker attempts to throttle their encryption speed to blend in.

Experimental Results

The framework was evaluated against 20 ransomware families (including LockBit, Conti, and Akira) and high-I/O benign applications like Veracrypt and 7Zip.

  • Detection Accuracy: The best binary classifier (LightGBM) achieved 97.29% accuracy.
  • Rapid Mitigation: In real-time tests, SHIELD halted operations within tens of actions. For "zero-shot" strains (threats never seen during training), it limited file damage to ≤ 0.4% of total disk files.
  • Low False Positives: Despite the presence of "stressful" benign apps that mimic ransomware behavior (e.g., encryption and compression tools), SHIELD maintained a false-positive rate of ≤ 3.6%.

Conclusion

SHIELD demonstrates that filesystem-aware, off-host telemetry provides a robust and resilient defense against modern ransomware. While the current prototype is a software-based test harness, the results confirm the feasibility of a dedicated FPGA/ASIC implementation. Future work includes expanding support for complex filesystems like APFS and implementing "rolling buffers" to allow for the automatic restoration of the minimal blocks encrypted before a halt is triggered.

Summary updated

BibTeX
@misc{raz2025shield,
  author = {Md Raz and P. V. Sai Charan and P. Krishnamurthy and Farshad Khorrami and Ramesh Karri},
  title = {{SHIELD: A Host-Independent Framework for Ransomware Detection using Deep Filesystem Features}},
  year = {2025},
  eprint = {2501.16619},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.16619},
}
Figure