Intermittent File Encryption in Ransomware: Measurement, Modeling, and Detection
Ynes Ineza, Gerald Jackson, Prince Niyonkuru, Jaden Kevil, Abdul Serwadda
TL;DR
Ransomware increasingly uses intermittent encryption to defeat content‑based detection, prompting a measurement, modelling, and detection study of byte‑level file signatures. The authors characterize how byte histograms evolve across 11 file types as encryption coverage $\alpha$ grows, and derive a file‑type specific KL‑based bound with a simple ceiling $\tau_F(\alpha)$ governing detectability via a convex mixture with a uniform ciphertext reference. They operationalize these insights into a detection pipeline that emphasizes locality: encoding 10 KB byte histograms as 16×16 images and running a chunk‑level ConvNeXt classifier, with per‑file type thresholds; this approach achieves about $97\%$ accuracy across modes and file types, outperforming whole‑file baselines. GAN augmentation yields limited gains, underscoring that the critical signal lies in localized evidence rather than synthetic diversity. The work provides a principled, file‑type aware baseline that supports practical ransomware defense, incident response triage, and retrospective scans of endpoints and backups, while guiding future improvements in multi‑scale chunking and ensemble strategies.
Abstract
File encrypting ransomware increasingly employs intermittent encryption techniques, encrypting only parts of files to evade classical detection methods. These strategies, exemplified by ransomware families like BlackCat, complicate file structure based detection techniques due to diverse file formats exhibiting varying traits under partial encryption. This paper provides a systematic empirical characterization of byte level statistics under intermittent encryption across common file types, establishing a comprehensive baseline of how partial encryption impacts data structure. We specialize a classical KL divergence upper bound on a tailored mixture model of intermittent encryption, yielding filetype specific detectability ceilings for histogram-based detectors. Leveraging insights from this analysis, we empirically evaluate convolutional neural network (CNN) based detection methods using realistic intermittent encryption configurations derived from leading ransomware variants. Our findings demonstrate that localized analysis via chunk level CNNs consistently outperforms global analysis methods, highlighting their practical effectiveness and establishing a robust baseline for future detection systems.
