Agent-based modeling and simulation for malware spreading in D2D networks

Ziyad Benomar, Chaima Ghribi, Elie Cali, Alexander Hinsen, Benedikt Jahnel

Introduction

As 5G and 6G networks evolve, Device-to-Device (D2D) communication is becoming essential for extending coverage. However, this decentralized architecture introduces significant security risks, as a single infected device can trigger a network-wide epidemic. Traditional mathematical models, such as differential equations or stochastic geometry, often fail to capture the complexities of real-world urban environments, including street layouts and individual mobility patterns. This paper presents an Agent-Based Model (ABM) to simulate malware propagation in these dynamic systems.

Methodology

The researchers developed an ABM where devices are autonomous agents moving within a simulated urban environment.

  • Environment: City streets are modeled using Poisson-Voronoi Tessellation (PVT), creating a realistic random grid.
  • Agents: Devices are distributed via a Cox point process and follow a street-adapted random-waypoint model.
  • Infection Model: A Susceptible-Infected (SI) model is used. Infection occurs if two agents are on the same street, within a radius $r$, and remain in range for a duration $\rho$ (transmission time).
  • Validation: The discrete-time simulation was validated against a simplified Mean-Field mathematical model to ensure accuracy.

Key Insights and Results

The study identifies a "Goldilocks" zone for mobility. Contrary to intuition, higher speeds do not always lead to faster spreading. If agents move too quickly, they fail to maintain the required contact time ($\rho$) for infection.

A critical emergent threshold was identified based on the relationship between street density ($\lambda$), agent speed ($v$), and transmission time ($\rho$):

  • Epidemic Threshold: When $\sqrt{\lambda}\rho v > 3/2$, malware propagation is significantly hindered because contact times are too brief.
  • Optimal Spreading: The maximum infection rate $\mathcal{R}$ occurs near $\sqrt{\lambda}\rho v = 2/3$, where street length and travel distance during transmission are balanced.
Figure 1 & 2: Infection rate R and propagation speed V as functions of street density λ and agent speed v. The white and blue lines represent theoretical threshold curves.

The simulation also revealed sharp phase transitions, particularly in propagation speed, suggesting that minor changes in user behavior (e.g., average walking speed) can lead to dramatic shifts in network security.

Figure 3 & 4: Infection rate R and propagation speed V relative to the transmission parameter θ and speed v.

Limitations and Future Work

The current model uses a simplified SI logic where agents never recover. Future research will incorporate SIR (Recovered) or SIS models to account for security patching. Additionally, the authors plan to explore heterogeneous agent speeds and the impact of static "hubs" (e.g., users inside buildings) on propagation dynamics. Investigating the deployment of "digital vaccines" to counter epidemics is a primary goal for future work.

Summary updated

BibTeX
@inproceedings{benomar2022agent,
  author = {Ziyad Benomar and Chaima Ghribi and Elie Cali and Alexander Hinsen and Benedikt Jahnel},
  title = {{Agent-based modeling and simulation for malware spreading in D2D networks}},
  booktitle = {AAMAS},
  year = {2022},
  url = {https://openreview.net/forum?id=cdMCriwynS},
}
Figure