← Lab /Security & privacy

Hooking xfs_file_open yields up to 100% backup ratio and reduces ransomware damage on XFS

The choice of file-open hook point in ROFBS significantly affects backup ratio, with xfs_file_open achieving the highest ratios for Conti and IceFire and minimizing encrypted files.

Security & privacy arXiv 17 Mar 2026 Measurement Prototype evidence

Published as “Impact of File-Open Hook Points on Backup Ratio in ROFBS on XFS”

Why it matters

Choosing a filesystem-specific hook like xfs_file_open can reduce ransomware damage on XFS deployments, guiding designers of real-time backup defenses.

Summary

Hooking the filesystem-specific xfs_file_open callback yields the highest Backup Ratio for Conti (100.0%) and IceFire (63.2%) and also minimizes the total number of encrypted files, while security_file_open gives the best ratio for AvosLocker (82.5%). The study kept the ROFBS backup mechanism fixed and varied only the kernel hook point, testing five points on an XFS filesystem with three ransomware families in a virtualized AlmaLinux environment. Results show that hook-point choice substantially changes recoverability and damage scale, but the metric must be interpreted alongside absolute encrypted-file counts. The evidence is based on 4,385 victim files from the NapierOne dataset and real ransomware samples; no performance or broader filesystem evaluation is provided.

What they found 2

  1. security_file_open achieved the highest Backup Ratio for AvosLocker

    “For AvosLocker, security_file_open achieved the highest Backup Ratio (82.5%).”

  2. xfs_file_open achieved a 100.0% Backup Ratio for Conti

    “For Conti, xfs_file_open reached 100.0%, substantially outperforming the other hook points.”

Caveats 5

  • In particular, for AvosLocker, security_file_open achieved the highest Backup Ratio, while xfs_file_open minimized the total number of encrypted files.
  • First, the filesystem-specific hook evaluated here is xfs_file_open in XFS, and the findings cannot be directly generalized to other filesystems.
  • Second, this study focuses primarily on effectiveness as evaluated through Backup Ratio and file counts, and does not provide a detailed evaluation of performance, CPU utilization, event volume, or queue behavior in user space.
  • Third, the evaluation in this study is based on XFS, the three ransomware families examined here, and a single workload.
  • Fourth, for hook points such as inode_permission, where path information and struct file cannot be obtained directly, paths are reconstructed using representative dentries. This reconstruction method itself may therefore affect the results, and should be kept in mind when interpreting comparisons across hook points.

What’s new here 4

  • Isolates the effect of kernel hook point on ROFBS effectiveness without altering the backup mechanism.
  • Evaluates five distinct hook points spanning VFS, LSM, and filesystem layers on XFS.
  • Provides quantitative Backup Ratio comparison across three ransomware families.
  • Highlights a trade-off between recoverability (Backup Ratio) and total encrypted files per hook point.