Robustness and Probability Calibration of Multi-class Memory Malware Classification under Distribution Shift and Class Imbalance: A Cross-Dataset Empirical Study
Abstract
Memory malware classification faces distribution shift and class imbalance in real-world deployment, yet most studies assume identical training and test distributions and overlook probabilistic reliability. This study builds an empirical evaluation framework based on the BCCC-MalNetMemLog-2026 dataset (five time points) and the cross-domain BCCC-mal-netmem-2025 dataset. Four imbalance strategies, two classifiers, three calibration methods, and a conformal rejection mechanism are compared. Results show that class weighting is more stable than SMOTE under shift; calibration improves the Brier score and ECE but reduces Macro-F1 in cross-domain four-class classification; conformal rejection based on maximum softmax probability fails cross-domain, with accepted-set Macro-F1 decreasing from 0.205 to 0.157 as the significance level rises from 0.01 to 0.5; and labeled target-domain samples are the most critical factor, with Macro-F1 rising from 0.191 to 0.358 after random 30% sampling, outperforming active sampling.
References
- Cevallos-Salas, D., Grijalva, F., Estrada-Jimenez, J., Benitez, D., & Andrade, R. (2024). Obfuscated privacy malware classifiers based on memory dumping analysis.IEEE Access, 12, 17481–17498.
- Pendlebury, F., Pierazzi, F., Jordaney, R., Kinder, J., & Cavallaro, L. (2019). TESSERACT: Eliminating experimental bias in malware classification across space and time. InProceedings of the 28th USENIX Security Symposium (USENIX Security 19), Santa Clara, CA, USA, pp. 729–746.
- Barbero, F., Pendlebury, F., Pierazzi, F., & Cavallaro, L. (2022). Transcending TRANSCEND: Revisiting malware classification in the presence of concept drift. InProceedings of the IEEE Symposium on Security and Privacy (SP), San Francisco, CA, USA, pp. 805–822.
- Platt, J. (1999). Probabilistic outputs for support vector machines and comparisons to regularized likelihood methods. InAdvances in Large Margin Classifiers, MIT Press, Cambridge, MA, USA. pp. 61–74.
- Zadrozny, B., & Elkan, C. (2002). Transforming classifier scores into accurate multiclass probability estimates. InProceedings of the 8th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD), Edmonton, AB, Canada, pp. 694–699.
- Sun, B., Feng, J., & Saenko, K. (2017). CORAL: Correlation alignment for unsupervised domain adaptation. InDomain Adaptation in Computer Vision Applications, Cham, Switzerland: Springer, pp. 153–171.