arXiv:2611.00971cs.CROct 2026

Manuscript Offprint

arXiv:2611.00971

E-UDE: A Scientific Machine Learning Model for Malware Propagation Dynamics

Vineet Kumar, Samiran Ghosh, V Anil Kumar

Abstract

Understanding the malware propagation dynamics over the Internet is crucial for effectively controlling its spread. Existing mechanistic and data-driven models in the context of malware propagation dynamics, have some issues with either interpretability or predictive accuracy. The Universal Differential Equation framework (UDE) is a hybrid framework that combines both the mechanistic and data-driven approaches. This study presents an Enhanced Universal Differential Equation (E-UDE) framework that explicitly incorporates more detailed key factors that influence malware propagation, including transmission dynamics, network topology, congestion effects, external attacks, defensive responses, and security degradation. The neural residual part of this framework also allows the model to capture nonlinear effects that are not adequately represented by the underlying differential equations. Evaluation on real-world malware propagation data shows that the E-UDE achieves the best overall performance, attaining an overall RMSE of 783.70, an MAE of 421.65, and a MAPE of 13.36%. Compared with the Classical ODE and the UDE models, the proposed approach reduces RMSE by approximately 66% and 39%, respectively. Its robustness to predictive capability is further evaluated using a 25-75 chronological train-test split. In this experiment, the E-UDE achieves a Test RMSE of 634.6, a Test MAE of 419.3, and a Test Correlation of 0.964. The E-UDE maintains relatively stable prediction performance as the noise level increases, showing limited degradation compared with the baseline models. Furthermore, this E-UDE model enables us to perform several scenario analyses under different cybersecurity scenarios, providing a useful framework for better understanding the effective control factors. To study the wide applicability of the E-UDE framework, the model performance is assessed by two different datasets, namely, Code Red dataset and Witty Worm dataset.

Keywords: Malware propagation, Scientific Machine Learning, Classical ODE, Neural ODE, Universal Differential Equation Models, E-UDE, Cyber Epidemiology

1 Introduction

Modern society has become increasingly dependent on the digital world through multiple devices connected to the Internet, which has indeed improved services in many sectors such as healthcare, finance, transportation, and critical infrastructure. On the other hand, threats to the cyber world have also evolved over the years. Over the past few decades, several malware attacks have been witnessed that have disrupted digital infrastructure and eventually impacted human society. The Code Red worm outbreak in 2001 rapidly compromised hundreds of thousands of internet hosts very rapidly [1, 2]. The financial loss associated with the Code Red epidemic and its subsequent strains was estimated to be approximately $2.6 billion [2]. The SQL Slammer worm in 2003 [3], the Conficker worm in 2008 [4, 5], the WannaCry ransomware outbreak in 2017 [6], among others, have significantly impacted Internet traffic.

To better understand and control the self-propagation mechanism of malware spread in computer networks, several attempts have been made in the existing literature using SIR-type epidemic models [7, 8, 9]. More detailed models incorporating several phenomena, including different stages of infectiousness and various intervention strategies, have also been studied [10, 11, 12, 13]. In recent years, researchers have increasingly integrated machine learning techniques with compartmental epidemic models to improve the understanding and prediction of malware propagation [14]. Deep learning and time-series forecasting techniques have been extensively applied to model and predict cyber attack rates. Commonly used approaches include ARIMA, GARCH, hybrid ARIMA-GARCH models, Recurrent Neural Networks (RNNs), Long Short-Term Memory (LSTM) networks, and Bidirectional RNN-LSTM (BRNN-LSTM) architectures [15, 16, 17]. Recent advances in physics-informed machine learning have demonstrated that integrating mechanistic knowledge with deep neural networks can substantially improve predictive performance while maintaining a degree of model interpretability [18, 19].

Hybrid modeling is well suited to complex dynamical systems in which some governing mechanisms are understood, whereas other processes remain uncertain or difficult to formulate explicitly. Universal Differential Equation (UDE) is a mathematical framework connecting the physical laws with the machine learning approaches [20]. In this context, [21] developed a Universal Differential Equation (UDE) framework for malware propagation that integrates mechanistic differential equations with neural-network-based components. The authors have shown that the UDE model gives better performance compared to the ODE model and the Neural ODE model [21]. However, the UDE model in that study takes into account the generic mechanisms of malware propagation process, including logistic growth, external forcing, and suppression etc. This generic representation may not capture the detailed multi-state specific infection progression. The important states such as susceptibility, infection, response, and congestion, remain implicit in the model, rather than being modeled as separate dynamic compartments. This generic representation restricts the model's ability to investigate stage-specific interventions, quantify the influence of individual parameters, and analysis of several cybersecurity scenarios. To overcome these limitations, we introduce an Enhanced Universal Differential Equation (E-UDE) framework that incorporates multiple infection related compartments along with the neural network as a residual component. This compartmental structure gives a more detailed representation of malware propagation. The main contributions of this study are summarized as follows:

  • We develop an Enhanced Universal Differential Equation (E-UDE) model that extends the existing UDE by explicitly considering four malware propagation states: susceptible, infected, response, and congestion.

  • We demonstrate that the proposed E-UDE model provides improved and robust predictive performance compared with existing ODE, Neural ODE, and UDE models.

  • We show that the compartmental structure of the E-UDE enables detailed parameter-driven scenario analysis under different cybersecurity scenarios, allowing the effectiveness and cost-efficiency of different cyber defense strategies to be systematically evaluated.

  • Furthermore, we establish that our proposed E-UDE model is effective across different types of propagation datasets.

Overall, the novelty of the proposed E-UDE framework lies in combining the detailed compartmental malware propagation model with the neural residual learning within a unified modeling framework. By explicitly representing distinct propagation and defense-related states, the proposed approach provides greater mechanistic interpretability and enables state-specific cybersecurity scenario analysis that is not readily possible with existing UDE formulation for malware propagation. This makes the framework relevant for evaluating targeted cybersecurity interventions under diverse operational scenarios.

The rest of the paper is organized as follows. In Section 2, we describe the data used in this work. In Section 3, we describe some of the existing models for malware propagation dynamics relevant to this research. We then introduce the proposed E-UDE methodology in Section 4. In Section 5, we present the results of the proposed model using real malware propagation data, followed by a robustness analysis of the proposed model in Section 6. The E-UDE-based scenario analysis is performed in Section 7. The general applicability of the E-UDE is then investigated using different datasets in Section 8. Finally, the discussion and conclusion of the work are presented in Section 9.

References (25)