Modeling self-propagating malware with epidemiological models

Alesia Chernikova, Nicolò Gozzi, Nicola Perra, Simona Boboila, Tina Eliassi-Rad, Alina Oprea

Abstract

Self-propagating malware (SPM), such as WannaCry, poses a significant threat to global digital infrastructure. While researchers often use epidemiological models like SIR to study malware spread, these models frequently fail to capture the nuanced behaviors of real-world cyberattacks. This paper introduces the SIIDR (Susceptible-Infected-Infected Dormant-Recovered) model, which incorporates a "dormant" state to account for the intermittent scanning and sleeping patterns of modern malware. Validated against real-world WannaCry execution traces, the SIIDR model demonstrates a superior fit compared to classical models, providing a more accurate framework for predicting and defending against large-scale malware outbreaks.

Introduction

The rise of self-propagating malware (SPM) has led to some of the most disruptive cyber incidents in recent history, including the WannaCry ransomware outbreak and the Colonial Pipeline breach. To model the spread of such threats, cybersecurity experts have long turned to compartmental models from epidemiology. However, a persistent gap exists between theoretical models and real-world network data. Standard models often assume a constant, continuous infection rate, whereas actual malware frequently exhibits "bursty" behavior—pausing, scanning, and waiting. This paper addresses this discrepancy by proposing and validating a new model tailored to the specific operational characteristics of computer viruses.

The SIIDR Model

To better represent the lifecycle of SPM, the authors developed the SIIDR model. This framework extends the classic Susceptible-Infected-Recovered (SIR) structure by introducing an intermediate "Dormant" state.

The SIIDR model diagram illustrating the transitions between Susceptible (S), Infected (I), Infected Dormant (ID), and Recovered (R) states.

The model defines four primary states:

  1. Susceptible (S): Vulnerable machines on the network.
  2. Infected (I): Machines actively scanning and attempting to infect others.
  3. Infected Dormant ($I_D$): Infected machines that have temporarily paused malicious activity.
  4. Recovered (R): Machines that have been patched or disconnected, rendering them immune to reinfection.

The transition between the active Infected state and the Dormant state (represented by $\gamma_1$ and $\gamma_2$) allows the model to capture the non-continuous scanning behavior observed in real-world malware traces.

Experimental Methodology

The researchers validated the SIIDR model using 15 real-world attack traces generated by detonating WannaCry in a controlled, 51-Virtual Machine sandbox. By varying parameters such as scanning threads (1, 4, or 8) and sleep intervals (500ms to 20s), they created a diverse dataset of malware behaviors. Network traffic was captured using Zeek for detailed analysis.

To ensure a rigorous comparison, the SIIDR model was tested against classic models (SI, SIS, SIR, SEIR) using the Akaike Information Criterion (AIC). This statistical metric penalizes model complexity, ensuring that SIIDR's superior performance was due to its descriptive power rather than simply having more parameters.

Key Insights and Results

A critical finding of the study was the inadequacy of the "exponential distribution" assumption used in standard models. In biological models, the time between events is often assumed to follow an exponential distribution, but network logs showed that malware attack intervals are far more variable.

Comparison of the Quality of Coefficient of Determination (QCoD) between actual malware data and the standard exponential distribution assumption across various attack variants.

The SIIDR model achieved the lowest AIC score in 14 out of the 15 tested WannaCry variants, significantly outperforming traditional models. Furthermore, the researchers found that while the dormant state changes the timeline and shape of the infection curve, it does not alter the basic reproduction number ($R_0$) formula ($R_0 = \beta/\mu$). This means the conditions for an outbreak remain consistent with SIR models, but the SIIDR model provides a much more accurate prediction of how that outbreak progresses over time.

Conclusion

By incorporating a dormant state, the SIIDR model bridges the gap between theoretical epidemiology and practical cybersecurity. The ability to extract real-world transition rates from malware traces allows defenders to simulate highly realistic attacks, improving the testing of network defenses and anomaly detection systems. Future work will look toward modeling global, inter-network propagation and refining parameter estimation techniques to further enhance the model's predictive capabilities.

Summary updated

BibTeX
@article{chernikova2023modeling,
  author = {Alesia Chernikova and Nicolò Gozzi and Nicola Perra and Simona Boboila and Tina Eliassi-Rad and Alina Oprea},
  title = {{Modeling self-propagating malware with epidemiological models}},
  journal = {Appl. Netw. Sci.},
  year = {2023},
  doi = {10.1007/s41109-023-00578-z},
}
Figure