Identifying the family a malware belongs to is one of cybersecurity's toughest puzzles. Many studies rely on random data splits, which inflate results: once deployed, malware behavior drifts and accuracy drops. To tackle this, researchers built a βleakageβawareβ pipeline that turns CAPEv2 sandbox JSON reports into visual heatmaps. Each row of the heatmap represents a behavioral key (e.g., file creation, network calls) and values are normalized to highlight the most frequent actions.
They tested several models β Random Forest, MLP, CNN64, HybridNet and ResNeXtβ50 β using both stratified (familyβbalanced) and chronological (timeβordered) splits. On the AvastβCTU dataset with ten malware families, Random Forest reached 97.2β―% accuracy and a 0.993 AUC, proving fast on CPUs. ResNeXtβ50 outperformed all with 98.4β―% accuracy and a 0.998 AUC, also providing GradβCAM maps that reveal which heatmap regions drove the decision.
Beyond performance, the study measured inference speed and GPU memory use, and examined how vocabulary size and key selection affect results. The findings confirm that while ensemble methods stay robust, heatmapβbased CNNs deliver higher accuracy, interpretability and resistance to temporal drift, making them a promising choice for realβtime triage systems.
