Understanding Malware Propagation Dynamics through Scientific Machine Learning

Karthik Pappu, Prathamesh Dinesh Joshi, Raj Abhijit Dandekar, Rajat Dandekar, Sreedath Panat · 2025

Read Understanding Malware Propagation Dynamics through Scientific Machine Learning by Karthik Pappu, Prathamesh Dinesh Joshi, Raj Abhijit Dandekar, Rajat Dandekar, Sreedath Panat (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2507-07143.txt.

Introduction

Karthik Pappu and co-authors model how computer worms spread using scientific machine learning in this 2025 paper. Classic epidemic-style equations miss the feedback loops of real networks, while pure neural models hide their reasoning. The team compared three approaches on data from the famous Code Red worm outbreak.

A hybrid method, which embeds a small neural network inside the classic equations, cut prediction error by nearly half against both rivals. The team then translated the learned feedback into plain formulas. Those formulas revealed brakes on spread, such as network saturation, security response, and worm mutation. The authors say hybrid models can sharpen early warning and response planning.

Catalog record

CREATORKarthik Pappu, Prathamesh Dinesh Joshi, Raj Abhijit Dandekar, Rajat Dandekar, Sreedath Panat
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE50 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2507-07143

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Understanding Malware Propagation Dynamics through Scientific Machine Learning Karthik Pappu, Prathamesh Dinesh Joshi, Raj Abhijit Dandekar, Rajat Dandekar, Sreedath Panat Abstract Accurately modeling malware propagation is essential for designing effective cybersecurity defenses, particularly against adaptive threats that evolve in real time. While traditional epidemiological models and recent neural approaches offer useful foundations, they often fail to fully capture the nonlinear feedback mechanisms present in real-world networks. In this work, we apply scientific machine learning to malware modeling by evaluating three approaches: classical Ordinary Differential Equations (ODEs), Universal Differential Equations (UDEs), and Neural ODEs. Using data from the Code Red worm outbreak, we show that the UDE approach substantially reduces prediction error compared to both traditional and neural baselines by 44%, while preserving interpretability. We introduce a symbolic recovery method that transforms the learned neural feedback into explicit mathematical expressions, revealing suppression mechanisms such as network saturation, security response, and malware variant evolution. Our results demonstrate that hybrid physics-informed models can outperform both purely analytical and purely neural approaches, offering improved predictive accuracy and deeper insight into the dynamics of malware spread. These findings support the development of early warning systems, efficient outbreak response strategies, and targeted cyber defense interventions. Keywords Malware Propagation \cdot Malware Dynamics \cdot Scientific Machine Learning \cdot Universal Differential Equations \cdot Neural ODEs \cdot Cybersecurity 1 Introduction The rapid evolution of malware poses unprecedented threats to global cybersecurity infrastructure, with economic damages exceeding hundreds of billions of dollars annually [ 1 ] . Contemporary malware exhibits increasingly sophisticated behaviors, including real-time adaptation, evasion techniques, and coordinated propagation strategies that challenge traditional modeling frameworks [ 2 , 3 ] . Advanced persistent threats (APTs) and zero-day malware now represent particularly challenging scenarios, employing intelligence-driven targeting and stealthy propagation mechanisms that can remain undetected for extended periods while continuing to spread [ 4 ] . These sophisticated attacks utilize decision-based targeting, where malware determines whether to actively exploit a compromised device or use it merely as a carrier for further propagation, fundamentally altering traditional infection dynamics. Understanding and predicting these complex dynamics is crucial for developing effective defense mechanisms, early warning systems, and response strategies that can adapt to emerging threats. Traditional mathematical models of malware propagation draw inspiration from epidemiological frameworks, adapting SIR-type models originally developed for biological disease spread [ 5 , 6 ] to cyber environments [ 7 , 8 , 9 ] . While these approaches provide valuable baseline insights, they rely on simplified assumptions of uniform network behavior and fixed system parameters that frequently fail to capture the complex, non-linear behaviors present in real-world network environments [ 10 , 11 ] . Critical phenomena such as network topology effects, traffic congestion, dynamic security countermeasures [ 12 ] , and adaptive malware techniques remain challenging to model with conventional mathematical approaches, resulting in suboptimal predictions during early outbreak phases when accurate forecasting is most essential [ 13 , 14 ] . The core challenge lies in the limitations of both traditional and modern approaches. Conventional epidemic models lack the flexibility to capture the complex, non-linear dynamics of modern malware spread. Meanwhile, data-driven machine learning approaches often require large amounts of labeled data (typically unavailable during emerging outbreaks) and tend to prioritize prediction accuracy at the expense of interpretability [ 15 ] . Moreover, cybersecurity data is frequently characterized by irregular sampling intervals, measurement noise, and incomplete observations, creating additional challenges for both traditional mathematical models and neural network approaches [ 16 ] . Zero-day malware detection further compounds these difficulties by providing minimal training samples for emerging threat variants, while the spatial-temporal nature of network-based propagation introduces reaction-diffusion dynamics that require sophisticated mathematical frameworks to capture effectively [ 17 ] . Although recent efforts have advanced from early theoretical models [ 7 ] to sophisticated network-based frameworks [ 18 , 19 ] , these still rely on fixed mathematical structures that struggle to adapt to rapidly evolving threats. Scientific Machine Learning (SciML) offers a promising solution by integrating physics-based modeling with data-driven techniques [ 20 ] . This approach combines the interpretability of mechanistic models with the flexibility of neural networks, enabling systems to capture both fundamental dynamics and emergent behaviors that purely analytical models cannot represent [ 21 , 22 ] . Recent advances in physics-informed neural networks have demonstrated success in handling irregular and noisy data across diverse domains, from vehicle platoon security [ 23 ] to automated risk assessment systems [ 24 ] , suggesting their potential applicability to cybersecurity challenges. Despite these advances, current malware models continue to face difficulties in adapting to evolving network dynamics while preserving interpretability. Critical gaps remain in handling the stochastic, spatially distributed nature of modern malware propagation, managing uncertainty in real-time operational environments, and processing irregular, noisy observational data commonly encountered in cybersecurity applications. Contemporary approaches to malware detection increasingly rely on sophisticated techniques, such as graph neural networks [ 25 ] , multi-loss architectures for feature learning [ 26 ] , and federated learning for distributed scenarios [ 27 ] . However, these methods often sacrifice the mechanistic insights essential for understanding propagation dynamics. It represents a critical gap in cybersecurity, where both accurate forecasting and mechanistic insight are essential. In this paper, we make the following contributions: 1. We develop and evaluate three complementary modeling approaches (Ordinary Differential Equations (ODEs), Universal Differential Equations (UDEs), and Neural ODEs for modeling malware propagation dynamics using real-world Code Red worm data. 2. We demonstrate that the UDE approach consistently outperforms both traditional ODEs and Neural ODEs across multiple dimensions, achieving a 44% reduction in prediction error while maintaining interpretability. 3. We apply symbolic recovery to interpret the neural network component, revealing its role as a suppression mechanism that corresponds to observable cybersecurity phenomena. 4. We map recovered mathematical terms to specific cybersecurity phenomena, revealing how network saturation, security response mechanisms, and variant evolution create suppression and amplification effects that govern real-world malware propagation. 5. We provide a comprehensive analysis of each model’s performance under varying conditions, including limited training data, measurement noise, and different forecasting horizons, offering practical guidance for model selection. Our findings reveal that malware propagation in digital networks exhibits fundamentally different dynamics than traditional epidemic models suggest, with network infrastructure limitations and dynamic security responses creating natural limiting factors that conventional frameworks fail to capture [ 13 , 28 ] . These insights have immediate applications for cybersecurity practitioners seeking more accurate forecasting tools and for policymakers developing evidence-based cyber defense strategies. 2 Related Work Mathematical modeling of malware propagation has evolved from classical epidemiological frameworks to modern hybrid approaches. Foundational work by Cohen [ 7 ] , and Kephart and White [ 8 ] adapted SIR models from epidemiology to digital threats. Zou et al. [ 9 ] validated these methods using empirical Code Red worm data, while later studies introduced compartmental extensions for more nuanced infection states. Network-aware models addressed the impact of topology on outbreak dynamics. Pastor-Satorras and Vespignani [ 10 ] established that scale-free networks fundamentally alter epidemic thresholds, and Chernikova et al. [ 29 ] demonstrated these principles with real-world analysis of self-propagating malware like WannaCry using enhanced epidemiological models. Infrastructure constraints also act as natural suppressors. Staniford

Read the complete text