Static Feature Engineering Enhanced CNN for Malware Classification
Abstract
The rapid growth of sophisticated malware variants has rendered traditional signature-based detection methods increasingly ineffective, necessitating advanced data-driven approaches for accurate classification. This study aims to improve malware classification performance by integrating static feature engineering with Convolutional Neural Networks (CNN). The research focuses on enhancing the discriminative capability of static analysis by transforming raw executable data into structured and meaningful representations. Engineered features, including opcode n-gram entropy, Application Programming Interface (API)-call density, section-size ratios, and control-flow regularity scores, are extracted and normalized using Z-score standardization before being converted into feature maps suitable for CNN processing. A deep learning model consisting of three convolutional layers with ReLU activation and max-pooling is employed to capture both structural and statistical patterns of malware behavior. Experimental evaluation conducted on benchmark malware datasets demonstrates that the proposed approach significantly outperforms the baseline CNN model trained on raw features. The enhanced model achieves an accuracy of 97.2%, precision of 0.973, recall of 0.972, F1-score of 0.972, Matthews Correlation Coefficient (MCC) of 0.945, and an Area Under the Curve (AUC) of 0.997, indicating high predictive accuracy and robustness. These results confirm that the integration of domain-informed static feature engineering with CNN architectures substantially improves classification effectiveness and model stability. The proposed method provides a reliable and scalable solution for malware detection, with potential applications in real-world cybersecurity systems and automated threat analysis frameworks.