Next Article in Journal
Carbon Emission Reduction Capability Analysis of Electricity–Hydrogen Integrated Energy Storage Systems
Previous Article in Journal
Quantum-Driven Chaos-Informed Deep Learning Framework for Efficient Feature Selection and Intrusion Detection in IoT Networks
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

From Continuous Integer-Order to Fractional Discrete-Time: A New Computer Virus Model with Chaotic Dynamics

1
System Dynamics and Control Laboratory, Department of Mathematics and Informatics, University of Larbi Ben M’hidi, Oum El Bouaghi 04000, Algeria
2
Department of Mathematics, Al-Zaytoonah University of Jordan, Amman 11733, Jordan
3
Department of Mathematics and Computer Sciences, University of Larbi Ben M’hidi, Oum El Bouaghi 04000, Algeria
4
Dipartimento Ingegneria Innovazione, Universita del Salento, 73100 Lecce, Italy
*
Authors to whom correspondence should be addressed.
Technologies 2025, 13(10), 471; https://doi.org/10.3390/technologies13100471
Submission received: 30 August 2025 / Revised: 13 October 2025 / Accepted: 14 October 2025 / Published: 17 October 2025

Abstract

Computer viruses remain a persistent technological challenge in information security. They require mathematical frameworks that realistically capture their propagation in digital networks. Classical continuous-time, integer-order models often overlook two key aspects of cyber environments: their inherently discrete nature and the memory-dependent effects of networked interactions. In this work, we introduce a fractional-order discrete computer virus (FDCV) model, derived from a three-dimensional continuous integer-order formulation and reformulated into a two-dimensional fractional discrete framework. We analyze its rich dynamical behaviors under both commensurate and incommensurate fractional orders. Leveraging a comprehensive toolbox including bifurcation diagrams, Lyapunov spectra, phase portraits, the 0–1 test for chaos, spectral entropy, and C 0 complexity measures, we demonstrate that the FDCV system exhibits persistent chaos and high dynamical complexity across broad parameter regimes. Our findings reveal that fractional-order discrete models not only enhance the dynamical richness compared to integer-order counterparts but also provide a more realistic representation of malware propagation. These insights advance the theoretical study of fractional discrete systems, supporting the development of potential technologies for cybersecurity modeling, detection, and prevention strategies.

1. Introduction

The rapid spread of computer viruses remains a major challenge to cybersecurity, as infections can disrupt critical infrastructures and cause significant economic losses [1,2]. To better understand and predict such propagation, mathematical modeling has been widely employed, often drawing inspiration from epidemiological models [3,4]. While these approaches have provided useful insights, most classical computer virus models are formulated as continuous-time systems with integer-order derivatives. Such formulations may overlook two essential aspects of digital environments: their inherently discrete nature and the memory-dependent interactions within networks [5,6].
In recent years, fractional discrete-time systems have attracted significant attention due to their ability to describe complex processes with memory and hereditary effects while capturing the inherently discrete nature of many real-world phenomena [7,8]. Unlike classical integer-order difference equations, fractional difference equations extend the concept of differentiation and summation to non-integer orders, thereby offering a more flexible framework for modeling dynamical systems. This generalization has been shown to produce richer dynamics, including long-range memory effects, anomalous diffusion, and persistent chaotic behavior, which cannot be observed in the integer-order case [9].
Fractional discrete systems have been applied in various fields, including population dynamics, economic and financial modeling, epidemic spread, image processing, secure communications, and digital technologies [10]. Their ability to combine discrete-time evolution with fractional-order memory makes them particularly suitable for digital environments, where processes evolve in steps but are influenced by past states over long horizons. Moreover, recent studies have demonstrated that fractional discrete systems often exhibit complex and chaotic attractors, which are essential for understanding nonlinear behaviors and for practical applications such as encryption, network security, and emerging technologies [11,12].
Building on these advances, researchers have recently begun exploring the role of fractional discrete models in the study of cyber-epidemics [13,14]. Fractional calculus provides the ability to incorporate long-term memory into the infection process, while the discrete framework naturally reflects the stepwise nature of digital communications, malware propagation, and evolving technologies [15,16]. Despite their potential, however, the development and analysis of fractional discrete computer virus models remain relatively limited compared to their continuous counterparts.
Motivated by this gap, in this work, we propose and investigate a fractional discrete computer virus (FDCV) model. Starting from a three-dimensional continuous integer-order formulation, we reformulate the system into a two-dimensional discrete fractional framework. This reduction not only simplifies the analysis but also reveals new and richer dynamical behaviors arising from the fractional-order operators. To explore the complexity of the proposed model, we study both commensurate and incommensurate cases by varying key system parameters as well as fractional orders. A wide range of analytical and computational tools is employed, including bifurcation diagrams, largest Lyapunov exponents, phase portraits, the 0–1 test for chaos, and complexity measures such as spectral entropy (SE) and C 0 complexity. Together, these approaches allow us to systematically characterize the transition between regular and chaotic regimes and quantify the degree of complexity in the system’s evolution. The results show that the FDCV model exhibits persistent chaos and rich complexity across broad parameter ranges, with fractional orders playing a critical role in shaping the dynamical patterns. These findings underscore the significance of fractional discrete modeling in enhancing our understanding of computer virus propagation and suggest potential applications in cybersecurity, including the development of robust countermeasures, cryptographic schemes, and advanced technologies.
The remainder of this paper is organized as follows. In Section 2, we recall some fundamental concepts of discrete fractional calculus and present the numerical algorithms used for simulation. In Section 3, we formulate the proposed FDCV model, together with a discussion of its equilibrium points. In Section 4, we investigate the dynamical behaviors of the FDCV model under both commensurate and incommensurate fractional orders, focusing on bifurcation structures, chaotic regimes, and complexity measures. Finally, Section 5 summarizes the main results and outlines future research directions.

2. Preliminaries and Algorithms

This section introduces the essential mathematical concepts, numerical tools, and the structure of the proposed model. First, we outline key definitions in discrete fractional calculus used in modeling the long-memory behavior of computer virus propagation. Then, we describe the computational techniques adopted to evaluate the complexity and dynamical features of the system.

2.1. Preliminaries

In this work, we consider discrete-time systems involving the Caputo-like delta fractional difference operator. This operator generalizes the standard integer-order difference and is particularly suitable for capturing memory-dependent dynamics in systems such as virus propagation in computer networks.
Definition 1
([17]). Let 0 < ν < 1 , and let f be a function defined on the discrete domain N a : = { a , a + 1 , a + 2 , } , where a R . The Caputo-like delta fractional difference of order ν is defined as:
Δ a ν c f ( t ) = Δ a ( m ν ) Δ m f ( t ) , for t N a + 1 ν ,
where m = ν + 1, Δ m denotes the m-th forward difference operator, and Δ a ν is the fractional sum [18] defined by:
Δ a ν f ( t ) = 1 Γ ( ν ) s = ν t ν ( t s 1 ) ( ν 1 ) f ( s ) , for t N a + ν .
Theorem 1
([19]). Consider the discrete fractional initial value problem
Δ a ν c y ( t ) = f ( t + ν 1 , y ( t + ν 1 ) ) , Δ j y ( a ) = f j , m = ν + 1 , j = 0 , , m 1 ,
where a N and ν > 0 .
Assume that the function f ( t , y ) is continuous in t and satisfies a Lipschitz condition with respect to y; then the discrete fractional initial value problem admits a unique solution on N a + m ν , which is expressed as
y ( t ) = y 0 ( a ) + 1 Γ ( ν ) ς = a + m ν t ν ( t ς 1 ) ( ν 1 ) f ( ς + ν 1 , y ( ς + ν 1 ) ) , t N a + m ν ,
in which
y 0 ( a ) = j = 0 m 1 ( t a ) j Γ ( j + 1 ) Δ j y ( a ) .
When a = 0 , m = 1 , k = ς + ν 1 , and ( t 1 ς ) ( ν 1 ) = Γ ( t ς ) Γ ( t ς ν + 1 ) , for ν ( 0 , 1 ] , the above Equation (4) is numerically formulated as
y ( n ) = y ( 0 ) + 1 Γ ( ν ) j = 1 t Γ ( n j + ν ) Γ ( n j + 1 ) f ( j , y ( j ) ) , n N .

2.2. Algorithms

To study the chaotic and complex behavior of the proposed discrete fractional-order virus model, we use a combination of the following numerical and complexity analysis tools:
  • 0–1 Test for Chaos: [20] This binary diagnostic tool is used to distinguish between regular and chaotic dynamics. For a given time series x ( n ) { n = 0 , 1 , , N 1 } , the test constructs the following trajectories:
    p ( n ) = j = 1 n x ( j ) cos ( j c ) , q ( n ) = j = 1 n x ( j ) sin ( j c ) ,
    where c is a randomly chosen constant in ( 0 , π ) . If the trajectory ( p ( n ) , q ( n ) ) is bounded, the system is regular; if it behaves like Brownian motion, the system is chaotic.
  • Spectral Entropy (SE) [21] and C 0 Complexity [22]: To evaluate the complexity of time series data, we employ two robust measures: the spectral entropy (SE) and the C 0 complexity, both of which are effective in distinguishing between regular and chaotic behaviors.
Consider a discrete time series { x ( n ) , n = 0 , 1 , , N 1 } . First, we subtract the mean to obtain a centered series:
x ˜ ( n ) = x ( n ) x ¯ , where x ¯ = 1 N n = 0 N 1 x ( n ) .
The discrete Fourier transform (DFT) of the centered sequence is computed as:
X ( k ) = n = 0 N 1 x ( n ) e x p ( i 2 π N k n ) , k = 0 , 1 , , N 1 .
The normalized power spectrum is defined by:
P ( k ) = | X ( k ) | 2 k = 0 N 2 1 | X ( k ) | 2 .
The spectral entropy (SE) is then calculated as:
S E = 1 ln ( N 2 ) k = 0 N 2 1 | P ( k ) ln ( P ( k ) ) | .
To compute the C 0 complexity, we define the average amplitude of the Fourier spectrum:
G x = 1 N k = 0 N 1 | X ( k ) | 2 .
Using a threshold control parameter r, we define a filtered spectrum X ˜ ( k ) as:
X ˜ ( k ) = X ( k ) , if | X ( k ) | 2 > r G x , 0 if | X ( k ) | 2 r G x .
The inverse Fourier transform of X ˜ ( k ) gives the reconstructed signal:
x ˜ ( n ) = 1 N k = 0 N 1 X ˜ ( k ) exp ( i 2 π N k n ) , n = 0 , 1 , , N 1 .
Finally, the C 0 complexity is defined as:
C 0 ( r , N ) = n = 0 N 1 | x ( n ) x ˜ ( n ) | 2 n = 0 N 1 | x ( n ) | 2 .
These algorithms are implemented using (MATLAB R2015) and are applied to state trajectories ( L ( t ) , B ( t ) ) generated by the fractional-order discrete computer virus model.

3. Modeling

The foundational model for our study is based on a system that describes the dynamics of nodes within a network, categorizing them as internal or external, and further differentiating them by their infection status (infected or uninfected) and their breaking-out status (breaking-out or not breaking-out). This framework, as presented by L.-X. Yang and X. Yang [23] in their work on nonlinear systems, is adapted to analyze a continuous model.
The system considers that internal nodes are either virus-free or latent when connected to the internet. External nodes can also be uninfected or infected. The interactions between these nodes, including their connection to the internet, are governed by specific rates. For instance, internal nodes connected to the internet maintain a constant rate μ 1 > 0 , while L-nodes connected to the internet maintain a constant rate μ 2 > 0 . The disconnection of internal nodes from the internet occurs with a probability σ > 0 . The influence of infected removable storage media leads to S-nodes becoming infected with probability θ > 0 , and L-nodes becoming infected with probability β 1 L ( t ) . Furthermore, S-nodes become infected by B-nodes with probability β 2 B ( t ) , where β 1 and β 2 are positive constants. The model also accounts for L-node break-out with probability α > 0 . Finally, every L-node is cured with constant probability γ 1 > 0 , and every B-node is cured with constant probability γ 2 > 0 .
The mean-field rate equations based on these hypotheses are formulated as:
S ˙ = μ 1 ( β 1 L + β 2 B ) S + γ 1 L + γ 2 B ( σ + θ ) S , L ˙ = μ 2 + ( β 1 L + β 2 B ) S ( γ 1 + α + σ ) L + θ S , B ˙ = α L ( γ 2 + σ ) B ,
with initial conditions ( S ( 0 ) , L ( 0 ) , B ( 0 ) ) R + 3 .
The total number of internal computers, N ( t ) = S ( t ) + L ( t ) + B ( t ) , approaches a constant as time progresses, specifically N = μ σ . This allows for a reduction of the system. Thus, the system is equivalent to the two-dimensional system given by:
L ˙ = μ 2 + ( β 1 L + β 2 B ) ( μ σ L B ) ( γ 1 + α + σ ) L + θ ( μ σ L B ) , B ˙ = α L ( γ 2 + σ ) B ,
with initial conditions ( L ( 0 ) , B ( 0 ) ) R + 2 . This reduced system (17) is particularly relevant for studying the fractional discrete form. Starting from the continuous-time formulation, we first derive its discrete-time counterpart by applying the forward Euler scheme with a fixed step size ( h = 1 ). This results in the following representation of the system in discrete time:
L n + 1 = μ 2 + ( β 1 L n + β 2 B n ) ( μ σ L n B n ) ( γ 1 + α + σ 1 ) L n + θ ( μ σ L n B n ) , B n + 1 = α L n + ( 1 γ 2 σ ) B n .
We express the discrete system using first-order forward difference operators. This standard representation provides the foundation for extending the system to the fractional-order case. The update equations are then written as:
Δ L = μ 2 + ( β 1 L n + β 2 B n ) ( μ σ L n B n ) ( γ 1 + α + σ ) L n + θ ( μ σ L n B n ) , Δ B = α L n ( γ 2 + σ ) B n .
To incorporate memory effects and long-range dependencies into the system, we generalize the discrete model (19) using the Caputo-like fractional difference operator, thereby introducing memory effects and long-range dependencies into the model. We obtain the following fractional-order discrete-time model:
Δ a ν c L ( t ) = μ 2 + ( β 1 L ( s ) + β 2 B ( s ) ) ( μ σ L ( s ) B ( s ) ) ( γ 1 + α + σ ) L ( s ) + θ ( μ σ L ( s ) B ( s ) ) , Δ a ν c B ( t ) = α L ( s ) ( γ 2 + σ ) B ( s ) ,
where s = t + ν 1 . Based on Theorem 1 and setting a = 0 , the discrete fractional-order system given in (20) admits the following numerical solution:
L ( n ) = L ( 0 ) + 1 Γ ( ν ) i = 1 n Γ ( n i + ν ) Γ ( n i + 1 ) [ ( β 1 L ( i 1 ) + β 2 B ( i 1 ) ) ( μ σ L ( i 1 ) B ( i 1 ) ) ( γ 1 + α + σ ) L ( i 1 ) + θ ( μ σ L ( i 1 ) B ( i 1 ) ) ] , B ( n ) = B ( 0 ) + 1 Γ ( ν ) i = 1 n Γ ( n i + ν ) Γ ( n i + 1 ) [ α L ( i 1 ) ( γ 2 + σ ) B ( i 1 ) ] .
After deriving the discrete fractional-order version of the system, the next step is to determine its equilibrium points, which serve as the basis for studying stability and dynamic behavior.
Unlike in the integer-order case, the analysis of equilibria in fractional discrete systems is influenced by the memory effects and nonlocal nature introduced by the fractional operator.
The equilibrium points are obtained by setting the right-hand sides of the system (20) equal to zero. This leads to the following:
μ 2 + ( β 1 L e + β 2 B e ) μ σ L e B e ( γ 1 + α + σ ) L e + θ μ σ L e B e = 0 , α L e ( γ 2 + σ ) B e = 0 ,
which characterize the possible equilibrium states ( L e , B e ) of the system. From the second equation,
L e = λ B e , where λ = γ 2 + σ α .
Substituting Equation (23) into the first equation of system (22), we obtain:
μ 2 + ( β 1 λ B e + β 2 B e ) ( μ σ λ B e B e ) λ ( γ 1 + α + σ ) B e + θ ( μ σ λ B e B e ) = 0 ,
then
μ 2 + ( β 1 λ + β 2 ) μ σ ( λ + 1 ) B e B e λ ( γ 1 + α + σ ) B e + θ μ σ ( λ + 1 ) B e = 0 .
We define the nonlinear function:
F ( B e ) = μ 2 + ( β 1 λ + β 2 ) μ σ ( λ + 1 ) B e B e λ ( γ 1 + α + σ ) B e + θ μ σ ( λ + 1 ) B e ,
The fixed point is given by:
( L e , B e ) = λ B e , B e = γ 2 + σ α B e , B e ,
where B e satisfies:
F ( B e ) = 0 .
Herein, we set the parameters of the model as μ 1 = 0.05 , μ 2 = 0.005 , α = 1.9 , β 1 = 2.2 , β 2 = 2.2 , γ 1 = 0.05 , γ 2 = 1 , σ = 0.06 , θ = 0.1 , for the fractional order ν = 0.97 , the nonlinear equilibrium condition of the FDCV system (20) is described by the function F ( B e ) . Figure 1a shows the graph of F ( B e ) (blue curve) together with the equilibrium line F ( B e ) = 0 (red curve). The intersection confirms the existence of a feasible positive equilibrium ( L e , B e ) . Nevertheless, as shown in Figure 1b, the time evolution of the variables L ( n ) and B ( n ) does not converge to this equilibrium. Instead, both trajectories exhibit irregular and non-repeating oscillations, characteristic of chaotic behavior. This indicates that, despite the theoretical existence of equilibrium points, the actual system dynamics are dominated by sustained aperiodic fluctuations for this fractional order.
To further verify the well-posedness and robustness of the proposed model (20), we conducted additional simulations by varying the parameter μ 2 while keeping the remaining parameters fixed at μ 1 = 0.05 , α = 0.8 , β 1 = 0.01 , β 2 = 0.02 , γ 1 = 0.05 , γ 2 = 1 , σ = 0.06 , and θ = 0.1 , with ν = 0.97 . Three representative values of μ 2 were considered, and the corresponding trajectories are displayed in Figure 2. As observed, despite variations in μ 2 , all trajectories remain bounded and consistent, confirming that the model maintains well-posed behavior under small parameter perturbations.

4. Dynamics of the Fractional-Order Discrete System

In this section, we numerically investigate the dynamical behavior of the proposed fractional-order discrete computer virus (FDCV) model (20) under variations in key system parameters under commensurate and incommensurate orders. Our analysis is based on bifurcation diagrams, Maximum Lyapunov Exponents ( λ m a x ), 0–1 test, Spectral Entropy (SE), and C 0 complexity, and aims to reveal the emergence of complex dynamical patterns, including chaos.
We investigate the chaotic behavior in the model (20) by exploiting the maximum Lyapunov exponent. It should be noted that it can be approximated using the Jacobian matrix algorithm [24].
J ( n ) = k 1 ( n ) k 2 ( n ) l 1 ( n ) l 2 ( n ) ,
such that
k j ( n ) = k j ( 0 ) + 1 Γ ( ν ) i = 1 n Γ ( n i + ν ) Γ ( n i + 1 ) [ ( β 1 ( μ σ 2 L ( i 1 ) B ( i 1 ) ) β 2 B ( i 1 ) ( γ 1 + α + σ + θ ) ) k j ( i 1 ) + ( β 2 ( μ σ L ( i 1 ) 2 B ( i 1 ) ) θ β 1 L ( i 1 ) ) l j ( i 1 ) ] , l j ( n ) = l j ( 0 ) + 1 Γ ( ν ) i = 1 n Γ ( n i + ν ) Γ ( n i + 1 ) [ α k j ( i 1 ) ( γ 2 + σ ) l j ( i 1 ) ] .
Then, we can get the Lyapunov exponents as:
L E j = lim n 1 n l n | λ j ( n ) | , f o r j = 1 , 2 .
where λ j ( n ) are the Jacobian matrix’s eigenvalues.
The fractional memory is inherently included in the Lyapunov exponent calculation via the Caputo-like delta operator. The summation in Equation (30) accounts for the contribution of past states, ensuring that the computed Lyapunov exponents reflect the full memory-dependent dynamics of the system.

4.1. Commensurate Case

We focus on how changes in the recruitment rate μ 2 and the fractional order ν influence the long-term evolution of the system.

4.1.1. Dynamics of the FDCV Model with Variation in the Parameter μ 2

We first explore how the system’s dynamics are affected by the parameter μ 2 . The L-nodes representing latent infected computers are connected to the internet and are recruited into the system at a constant rate μ 2 > 0 . By simulating the model for different values of μ 2 , while keeping all other parameters fixed at μ 1 = 0.05 , α = 1.9 , β 1 = 2.2 , β 2 = 2.2 , γ 1 = 0.05 , γ 2 = 1 , σ = 0.06 , θ = 0.1 , and initial conditions ( L 0 , B 0 ) = ( 0.4 , 0.2 ) , we observe a range of behaviors. The analysis is conducted across three different fractional orders: ν = 0.97 , ν = 0.98 , and ν = 0.997 .
As depicted in Figure 3, the bifurcation diagrams Figure 3a,c,e illustrate the long-term behavior of the state variable B as μ 2 is varied for ν = 0.97 , 0.98 , 0.997 , respectively. Concurrently, Figure 3b,d,f present the corresponding Maximum Lyapunov Exponent ( λ m a x ) plot. For ν = 0.97 (Figure 3a,b), initially for small values of μ 2 , the system exhibits chaotic behavior, indicating sensitive dependence on initial conditions. This chaotic behavior is strongly corroborated by the positive values of λ m a x in Figure 3b. Interestingly, within the chaotic region, there are several periodic windows around μ 2 0.0033 , where the system temporarily goes to periodic behavior, identified by narrower bands in the bifurcation diagram and a dip in λ m a x to negative values. Beyond these windows, chaos re-emerges and persists for larger μ 2 values, with λ m a x remaining predominantly positive, signifying robust chaotic dynamics. A similar progression is observed for ν = 0.98 (Figure 3c,d) and ν = 0.997 (Figure 3e,f). While the specific onset points and widths of chaotic and periodic windows may vary slightly with ν , the overall qualitative behavior remains consistent: an initial periodic phase, followed by period-doubling leading to chaos, punctuated by periodic windows, and finally sustained chaos as μ 2 increases. The positive λ m a x values consistently confirm the presence of chaos in the regions of the bifurcation diagrams, while negative λ m a x values align with the periodic windows. Notably, the overall range of chaotic behavior appears to broaden as ν approaches 1, indicating that higher fractional orders might promote more sustained chaotic dynamics under these parameter settings. In some simulations, small negative values of B ( n ) occur. These should be regarded as numerical artifacts of the discretization rather than physically meaningful outcomes. It is worth noting that the coefficients of the fractional sum ( t ς 1 ) ( ν 1 ) Γ ( ν ) are positive for ν ( 0 , 1 ] . Hence, when all parameters and initial conditions are nonnegative, the analytical solution preserves nonnegativity in the absence of numerical errors. The small negative oscillations observed in B ( n ) are therefore attributed to round-off effects rather than to a violation of the model’s invariance properties. Developing positivity-preserving schemes for fractional discrete systems will be an important subject of future work.
Based on the phase portraits and 0–1 test plots in Figure 4, the FDCV model (20) at a fractional order of ν = 0.97 undergoes a transition from chaotic to periodic behavior and then back to chaos as the parameter μ 2 is varied. At μ 2 = 0.001 , the system is in a chaotic state, as evidenced by the complex chaotic attractor in the phase portrait (Figure 4a) and the unbounded random walk observed in the 0–1 test in Figure 4d. As μ 2 increases to 0.0035 , the system becomes regular, with its trajectory converging to a stable limit cycle in Figure 4b, and the 0–1 test plot showing a bounded orbit in Figure 4e. For a higher value of μ 2 = 0.005 , the system returns to a chaotic state, confirmed by the appearance of a new chaotic attractor in Figure 4c and the renewed unbounded random walk in the 0–1 test in Figure 4f.
Figure 5a presents the Spectral Entropy (SE) as a function of μ 2 . As μ 2 increases, the SE generally shows an increasing trend, particularly in regions where the bifurcation diagrams indicate chaos and MLEs are positive. The dips in the SE curve correlate well with the periodic windows observed in the bifurcation diagrams, where the system temporarily becomes more predictable. Similarly, Figure 5b illustrates the C 0 complexity. The trend in the C 0 complexity plot mirrors that of the SE; it generally increases with μ 2 , indicating growing complexity, and exhibits drops corresponding to the periodic windows where the system’s behavior becomes more regular.
The combined evidence from the bifurcation diagrams, λ m a x plots, phase portraits, 0–1 test, Spectral Entropy, and C 0 complexity consistently demonstrates that the FDCV model (20) exhibits a rich array of dynamical behaviors, transitioning from periodicity to chaos through period-doubling bifurcations as the rate μ 2 increases. The presence of periodic windows within the chaotic regime further adds to the system’s intricate dynamics, which are robustly confirmed across different fractional orders. The quantitative measures ( λ m a x , SE, C 0 ) and qualitative test (0–1 test) effectively corroborate the visual insights gained from the bifurcation diagrams.

4.1.2. Dynamics of the FDCV Model with Variation in the Fractional Order ν

Next, we study the influence of the fractional order ν , which captures the memory effect inherent in the system. We assess how the memory strength affects the system’s evolution. To illustrate this effect, we fix all other parameters at μ 1 = 0.05 , α = 1.9 , β 1 = 2.2 , β 2 = 2.2 , γ 1 = 0.05 , γ 2 = 1 , σ = 0.06 , and θ = 0.1 , and consider different values of μ 2 while varying ν in the interval [ 0.93 , 1 ] . The bifurcation diagrams and maximal Lyapunov exponent ( λ max ) plots reveal how the system’s behavior changes with the fractional order. For μ 2 = 0.001 , the system exhibits both chaotic and ordered behaviors as ν is varied. The bifurcation diagram in Figure 6a shows that the system starts in a chaotic state for ν 0.93 and undergoes several transitions, with a distinct periodic window emerging around ν 0.98 . The corresponding λ max plot in Figure 6b confirms this, with positive values in the chaotic regions and a clear drop to negative values in the periodic window, indicating a stable, ordered state. When the parameter is increased to μ 2 = 0.004 , the system’s dynamics become robustly chaotic. As seen in the bifurcation diagram in Figure 6c, the system remains chaotic across the entire range of ν from 0.93 to 1, with no clear periodic windows. This is supported by the λ max plot in Figure 6d, which shows consistently positive values throughout the interval, confirming the persistent chaotic nature of the dynamics. For this value of μ 2 = 0.005 , the system also appears to be entirely chaotic. The bifurcation diagram in Figure 6e shows a dense distribution of points with no visible periodic windows. The corresponding λ max plot in Figure 6f is consistently positive, reinforcing the conclusion that the system remains chaotic across the entire range of ν from 0.935 to 1. The analysis of Figure 6 demonstrates that the fractional order ν can act as a bifurcation parameter for the FDCV model (20), inducing transitions between chaos and order, particularly for smaller values of μ 2 . However, as μ 2 increases, its influence on the system’s dynamics appears to dominate, leading to a consistently chaotic state that is robust against variations in the fractional order.
To further characterize these behaviors, Figure 7 displays phase portraits and the 0–1 test for chaos for μ 2 = 0.001 at representative fractional orders ν = 0.943 , ν = 0.96 , and ν = 0.982 . For ν = 0.943 and ν = 0.96 , the phase portraits reveal irregular chaotic attractors and the 0–1 test trajectories spread diffusively, indicating chaos. In contrast, for ν = 0.982 , the trajectory settles on a regular closed curve and the 0–1 test shows bounded motion, confirming periodic dynamics.
Figure 8 reports the spectral entropy (SE) and C 0 complexity measures for μ 2 = 0.001 as functions of ν . Both indicators capture the complexity variation: higher values correspond to more irregular, chaotic dynamics, while lower values indicate more ordered regimes. These measures further validate the transitions observed in the bifurcation and Lyapunov exponent analysis.
Overall, the results demonstrate that the fractional order ν plays a critical role in determining the qualitative dynamics of the FDCV model (20). Adjusting ν can effectively control the onset of chaos and complexity in computer virus propagation, offering potential for targeted mitigation strategies.

4.2. Incommensurate Case

Fractional-order systems with incommensurate orders form a generalized class of dynamical systems in which the fractional orders associated with each state variable are distinct and not rational multiples of one another. This configuration allows each state to exhibit different memory effects, providing a more flexible and realistic representation of the underlying processes. In this subsection, we investigate how incommensurate fractional orders influence the dynamic behavior of the FDCV model.
Δ a ν 1 c L ( t ) = μ 2 + ( β 1 L ( t + ν 1 1 ) + β 2 B ( t + ν 1 1 ) ) ( μ σ L ( t + ν 1 1 ) B ( t + ν 1 1 ) ) ( γ 1 + α + σ ) L ( t + ν 1 1 ) + θ ( μ σ L ( t + ν 1 1 ) B ( t + ν 1 1 ) ) , Δ a ν 2 c B ( t ) = α L ( t + ν 2 1 ) ( γ 2 + σ ) B ( t + ν 2 1 ) ,
In the incommensurate case, each state is evaluated at a shifted time according to its fractional order.

4.2.1. Dynamics of the FDCV Model with Variation in ν 1

To explore the system’s behavior in the incommensurate setting (31), we begin by varying the fractional order ν 1 , while keeping ν 2 = 0.98 , and all other parameters fixed at μ 1 = 0.05 , α = 1.9 , β 1 = 2.2 , β 2 = 2.2 , γ 1 = 0.05 , γ 2 = 1 , σ = 0.06 , θ = 0.1 . This approach enables us to isolate and analyze the specific impact of ν 1 on the system’s stability, periodicity, and potential transition to chaotic dynamics. Figure 9a shows the bifurcation diagram, which indicates pronounced chaotic dynamics, with no discernible periodic windows and sustained irregularity. Figure 9b displays the corresponding largest Lyapunov exponent λ max as a function of ν 1 , which remains strictly positive for all tested values. This persistent positivity confirms the system’s sensitive dependence on initial conditions and the continuous presence of chaos throughout the examined interval.
For ν 2 = 0.98 , the incommensurate FDCV model (31) exhibits clear signatures of strong chaotic behavior. The phase portraits in Figure 10a,b reveal complex, irregular attractors that densely occupy portions of the phase space, indicating the absence of periodic orbits. The results of the 0–1 test for chaos, shown in Figure 10c,d, display unbounded, diffusive trajectories in the ( p , q ) -plane resembling a random walk, thereby providing compelling evidence of chaos. Collectively, these observations confirm that the model sustains robust chaotic dynamics for the specified fractional orders. The obtained trajectories remain bounded for all tested initial conditions and fractional orders, confirming that the system is numerically well-posed even when certain variables are unmeasured.
As ν 1 varies with ν 2 = 0.98 , the complexity measures reveal notable trends in the system’s dynamics. In Figure 11a, the Spectral Entropy (SE) remains relatively high (approximately 0.7 0.9 ) throughout the range, with a slight upward tendency, indicating that unpredictability and irregularity intensify as ν 1 increases. Figure 11b shows the C 0 complexity, which, despite some fluctuations, follows an overall increasing trajectory, suggesting that the richness and structural intricacy of the system’s behavior grow with larger fractional orders.

4.2.2. Dynamics of the FDCV Model with Variation in ν 2

To further investigate the influence of the fractional-order parameter ν 2 on the incommensurate FDCV model (31), we fix ν 1 = 0.96 and vary ν 2 [ 0.94 , 1 ] . The bifurcation diagram in Figure 12a reveals that the system exhibits dense chaotic oscillations throughout the considered range, while the largest Lyapunov exponent in Figure 12b remains strictly positive, confirming the persistence of chaos. This indicates that fractional-order variation has a significant impact on the system’s chaotic dynamics. In the simulations, the Caputo-like delta operator was implemented using the full history without memory truncation. This ensures that the observed chaotic dynamics are intrinsic to the proposed FDCV model and not artifacts of the approximation.
Figure 13 illustrates phase portraits (a, b) and the 0–1 chaos test (c, d) of the incommensurate FDCV model (31) for two representative values of ν 2 with ν 1 = 0.96 . The phase portraits reveal irregular and non-periodic attractors, with ν 2 = 0.955 in Figure 13a producing a denser structure compared to ν 2 = 1 in Figure 13b, reflecting stronger chaotic mixing in the fractional-order case. The 0–1 test outputs (c, d) further validate chaotic dynamics: the trajectories in the (p,q)-plane spread out randomly for both values, with no bounded repetitive pattern. This provides numerical confirmation that the FDCV system (31) maintains chaotic behavior in both cases, though the structure is visibly richer at fractional orders.
The complexity analysis presented in Figure 14 compares two complexity measures, Spectral Entropy (SE) and C 0 complexity for the incommensurate FDCV model (31) as ν 2 varies within [0.94,1] while fixing ν 1 = 0.96 . The SE values remain relatively high across the interval, showing a slight downward trend as ν 2 increases, which suggests a gradual reduction in irregularity. Similarly, the C 0 complexity measure fluctuates irregularly but also decreases near ν 2 = 1 . Together, these results indicate that the system retains significant complexity and unpredictability across the fractional range, with a tendency toward reduced complexity in ν 2 = 1 . These results highlight the significant role of ν 2 in shaping the chaotic and complex dynamics of the incommensurate FDCV model (31). In particular, fractional-order variations enhance the irregularity and richness of the attractors.

5. Conclusions and Future Directions

In this paper, we developed and analyzed a fractional discrete-time computer virus (FDCV) model obtained by reformulating a three-dimensional continuous integer-order system into a two-dimensional discrete fractional framework. The model’s dynamical behaviors were investigated in both commensurate and incommensurate cases. Using bifurcation diagrams, the maximum Lyapunov exponent, phase portraits, the 0–1 test for chaos, and complexity indicators such as spectral entropy (SE) and C 0 complexity, we demonstrated that the proposed FDCV model exhibits rich chaotic dynamics and high complexity across wide parameter ranges. The results confirm that fractional-order discrete modeling provides deeper insights into the nonlinear and memory-dependent nature of computer virus propagation compared to classical integer-order approaches.
The study highlights the crucial role of fractional orders in shaping the dynamics of virus spread and shows that both commensurate and incommensurate systems preserve strong chaotic and complex behaviors. These findings contribute to the growing body of work on fractional discrete dynamical systems and underscore their relevance for understanding and modeling cybersecurity threats in modern technologies.
Future research may be pursued along several directions. One promising avenue is the introduction of control strategies into the FDCV model to suppress chaos or stabilize desirable behaviors. Another is the extension of the discrete fractional framework to other epidemiological-type computer virus models, such as SIS, SIR, and SEIR, which may provide further insights into different propagation mechanisms. Additionally, investigating synchronization phenomena in fractional discrete systems could open new perspectives for secure communication technologies. Finally, exploring numerical optimization techniques for parameter estimation may help align the theoretical model more closely with real-world network technologies and data. In addition, integrating the FDCV model with realistic network topologies (e.g., scale-free, small-world, and IoT infrastructures) constitutes another promising direction that will further enhance its applicability to real malware propagation scenarios.

Author Contributions

Conceptualization, A.A. and G.G.; Methodology, I.Z.; Software, I.Z.; Validation, A.M.; Formal analysis, I.Z. and G.C.; Investigation, I.Z. and A.O.; Resources, A.A. and A.O.; Data curation, A.M. and A.O.; Writing—original draft, I.Z.; Writing—review and editing, I.Z.; Visualization, I.Z.; Supervision, A.O. and G.C.; Project administration, A.O. and G.G.; Funding acquisition, A.M. and G.C. and G.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable, as this study did not involve human or animal subjects.

Informed Consent Statement

Not applicable, as this study did not involve human participants.

Data Availability Statement

The original contributions presented in this study are included in the article; further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Szor, P. The Art of Computer Virus Research and Defense; Addison-Wesley Education Publishers Inc.: New York, NY, USA, 2005. [Google Scholar]
  2. Cohen, F. Computer viruses: Theory and experiments. Comput. Secur. 1987, 6, 22–35. [Google Scholar] [CrossRef]
  3. Piqueira, J.R.C.; Araujo, V.O. A modified epidemiological model for computer viruses. Appl. Math. Comput. 2009, 213, 355–360. [Google Scholar] [CrossRef]
  4. Yang, X.; Yang, L.X. Towards the epidemiological modeling of computer viruses. Discret. Dyn. Nat. Soc. 2012, 2012, 259671. [Google Scholar] [CrossRef]
  5. Yang, L.X.; Yang, X.; Zhu, Q.; Wen, L. A computer virus model with graded cure rates. Nonlinear Anal. Real World Appl. 2013, 14, 414–422. [Google Scholar] [CrossRef]
  6. Yuan, H.; Chen, G. Network virus-epidemic model with the point-to-group information propagation. Appl. Math. Comput. 2008, 206, 357–367. [Google Scholar] [CrossRef]
  7. Wu, G.C.; Baleanu, D. Discrete fractional logistic map and its chaos. Nonlinear Dyn. 2014, 75, 283–287. [Google Scholar] [CrossRef]
  8. Edelman, M.; Macau, E.E.; Sanjuan, M.A. Chaotic, Fractional and Complex Dynamics: New Insights and Perspectives; Springer: Berlin/Heidelberg, Germany, 2018. [Google Scholar]
  9. Zeng, J.; Chen, X.; Wei, L.; Li, D. Bifurcation analysis of a fractional-order eco-epidemiological system with two delays. Nonlinear Dyn. 2024, 112, 22505–22527. [Google Scholar] [CrossRef]
  10. El-Shahed, M.; Moustafa, M. Dynamics of a fractional-order eco-epidemiological model with two disease strains in a predator population incorporating harvesting. Axioms 2025, 14, 53. [Google Scholar] [CrossRef]
  11. Karaoğlu, E. On the Stability Analysis of a Fractional-Order Epidemic Model Including General Forms of Nonlinear Incidence and Treatment Functions. Commun. Fac. Sci. Univ. Ankara Ser. A1 Math. Stat. 2024, 73, 285–305. [Google Scholar] [CrossRef]
  12. Narwal, Y.; Rathee, S. Fractional order mathematical modeling of lumpy skin disease. Commun. Fac. Sci. Univ. Ankara Ser. A1 Math. Stat. 2024, 73, 192–210. [Google Scholar] [CrossRef]
  13. Kahouli, O.; Zouak, I.; Abu Hammad, M.; Ouannas, A.; Ayari, M. On an incommensurate chaotic fractional discrete model of a computer virus: Stabilization and synchronization. AIMS Math. 2025, 10, 19940–19957. [Google Scholar] [CrossRef]
  14. Abu Hammad, M.; Zouak, I.; Ouannas, A.; Grassi, G. Fractional Discrete Computer Virus System: Chaos and Complexity Algorithms. Algorithms 2025, 18, 444. [Google Scholar] [CrossRef]
  15. Kahouli, O.; Zouak, I.; Ouannas, A.; Abidi, I.; Bahou, Y.; Elgharbi, S.; Chaabane, M. Control and synchronization of chaos in some fractional computer virus models. Asian J. Control 2025, 27, 1–9. [Google Scholar]
  16. Kahouli, O.; Zouak, I.; Hammad, M.A.; Ouannas, A. Chaos, control, and synchronization in discrete-time computer virus system with fractional orders. AIMS Math. 2025, 10, 13594–13621. [Google Scholar]
  17. Abdeljawad, T. On Riemann and Caputo fractional differences. Comput. Math. Appl. 2011, 62, 1602–1611. [Google Scholar] [CrossRef]
  18. Atici, F.M.; Eloe, P. Discrete fractional calculus with the nabla operator. Electron. J. Qual. Theory Differ. Equ. 2009, 2009, 62. [Google Scholar] [CrossRef]
  19. Anastassiou, G.A. Principles of Delta Fractional Calculus on Time Scales and Inequalities. Math. Comput. Model. 2010, 52, 556–566. [Google Scholar] [CrossRef]
  20. Gottwald, G.A.; Melbourne, I. The 0–1 test for chaos: A review. Chaos Detect. Predict. 2016, 915, 221–247. [Google Scholar]
  21. He, S.; Sun, K.; Wang, H. Complexity Analysis and DSP Implementation of the Fractional-Order Lorenz Hyperchaotic System. Entropy 2015, 17, 8299–8311. [Google Scholar] [CrossRef]
  22. Shen, E.; Cai, Z.; Gu, F. Mathematical foundation of a new complexity measure. Appl. Math. Mech. 2005, 26, 1188–1196. [Google Scholar] [CrossRef]
  23. Yang, L.X.; Yang, X. A new epidemic model of computer viruses. Commun. Nonlinear Sci. Numer. Simul. 2014, 19, 1935–1944. [Google Scholar] [CrossRef]
  24. Wu, G.C.; Baleanu, D. Jacobian matrix algorithm for Lyapunov exponents of the discrete fractional maps. Commun. Nonlinear Sci. Numer. Simul. 2015, 22, 95–100. [Google Scholar] [CrossRef]
Figure 1. Dynamics of the FDCV model (20) for ν = 0.97 ; (a) Equilibrium condition given by the nonlinear function F ( B e ) ; (b) time series of L ( n ) and B ( n ) emerged from the initial condition ( L 0 , B 0 ) = ( 0.4 , 0.2 ) .
Figure 1. Dynamics of the FDCV model (20) for ν = 0.97 ; (a) Equilibrium condition given by the nonlinear function F ( B e ) ; (b) time series of L ( n ) and B ( n ) emerged from the initial condition ( L 0 , B 0 ) = ( 0.4 , 0.2 ) .
Technologies 13 00471 g001
Figure 2. Verification of well-posedness under variations of the parameter μ 2 : (a) μ 2 = 0.005 , (b) μ 2 = 0.05 , (c) μ 2 = 0.08 . All trajectories remain bounded and consistent.
Figure 2. Verification of well-posedness under variations of the parameter μ 2 : (a) μ 2 = 0.005 , (b) μ 2 = 0.05 , (c) μ 2 = 0.08 . All trajectories remain bounded and consistent.
Technologies 13 00471 g002
Figure 3. Bifurcation diagrams and corresponding λ m a x plots of the FDCV model (20) as a function of μ 2 for different fractional orders: (a,b) ν = 0.97 , (c,d) ν = 0.98 , and (e,f) ν = 0.997 .
Figure 3. Bifurcation diagrams and corresponding λ m a x plots of the FDCV model (20) as a function of μ 2 for different fractional orders: (a,b) ν = 0.97 , (c,d) ν = 0.98 , and (e,f) ν = 0.997 .
Technologies 13 00471 g003
Figure 4. Phase portraits and 0–1 test of the FDCV model (20) for ν = 0.97 with (a,d) μ 2 = 0.001 , (b,e) μ 2 = 0.0035 , and (c,f) μ 2 = 0.005 .
Figure 4. Phase portraits and 0–1 test of the FDCV model (20) for ν = 0.97 with (a,d) μ 2 = 0.001 , (b,e) μ 2 = 0.0035 , and (c,f) μ 2 = 0.005 .
Technologies 13 00471 g004
Figure 5. SE and C 0 complexity of the FDCV model (20) for ν = 0.97 . (a) Spectral Entropy (SE), (b) C 0 complexity.
Figure 5. SE and C 0 complexity of the FDCV model (20) for ν = 0.97 . (a) Spectral Entropy (SE), (b) C 0 complexity.
Technologies 13 00471 g005
Figure 6. Bifurcationand λ m a x of the FDCV model (20) with (a,b) μ 2 = 0.001 , (c,d) μ 2 = 0.004 , and (e,f) μ 2 = 0.005 .
Figure 6. Bifurcationand λ m a x of the FDCV model (20) with (a,b) μ 2 = 0.001 , (c,d) μ 2 = 0.004 , and (e,f) μ 2 = 0.005 .
Technologies 13 00471 g006
Figure 7. Phase portraits and 0–1 test of the FDCV model (20) for μ 2 = 0.001 with (a,d) ν = 0.943 , (b,e) ν = 0.96 , and (c,f) ν = 0.982 .
Figure 7. Phase portraits and 0–1 test of the FDCV model (20) for μ 2 = 0.001 with (a,d) ν = 0.943 , (b,e) ν = 0.96 , and (c,f) ν = 0.982 .
Technologies 13 00471 g007
Figure 8. SE and C 0 complexity of the FDCV model (20) for μ 2 = 0.001 . (a) Spectral Entropy (SE), (b) C 0 complexity.
Figure 8. SE and C 0 complexity of the FDCV model (20) for μ 2 = 0.001 . (a) Spectral Entropy (SE), (b) C 0 complexity.
Technologies 13 00471 g008
Figure 9. Bifurcation and λ m a x of the incommensurate FDCV model (31) versus ν 1 for ν 2 = 0.98 . (a) Bifurcation diagram, (b) λ max .
Figure 9. Bifurcation and λ m a x of the incommensurate FDCV model (31) versus ν 1 for ν 2 = 0.98 . (a) Bifurcation diagram, (b) λ max .
Technologies 13 00471 g009
Figure 10. Phase portraits and 0–1 test of the incommensurate FDCV model (31) for ν 2 = 0.98 . (a,b) Phase portraits, (c,d) 0–1 test.
Figure 10. Phase portraits and 0–1 test of the incommensurate FDCV model (31) for ν 2 = 0.98 . (a,b) Phase portraits, (c,d) 0–1 test.
Technologies 13 00471 g010
Figure 11. SE and C 0 complexity of the incommensurate FDCV model (31) for ν 2 = 0.98 . (a) Spectral Entropy (SE), (b) C 0 complexity.
Figure 11. SE and C 0 complexity of the incommensurate FDCV model (31) for ν 2 = 0.98 . (a) Spectral Entropy (SE), (b) C 0 complexity.
Technologies 13 00471 g011
Figure 12. Bifurcation and λ m a x of the incommensurate FDCV model (31) versus ν 2 for ν 1 = 0.96 . (a) Bifurcation diagram, (b) λ max .
Figure 12. Bifurcation and λ m a x of the incommensurate FDCV model (31) versus ν 2 for ν 1 = 0.96 . (a) Bifurcation diagram, (b) λ max .
Technologies 13 00471 g012
Figure 13. Phase portraits and 0–1 test of the incommensurate FDCV model (31) for ν 1 = 0.96 . (a,b) Phase portraits, (c,d) 0–1 test.
Figure 13. Phase portraits and 0–1 test of the incommensurate FDCV model (31) for ν 1 = 0.96 . (a,b) Phase portraits, (c,d) 0–1 test.
Technologies 13 00471 g013
Figure 14. SE and C 0 complexity of the incommensurate FDCV model (31) for ν 1 = 0.96 . (a) Spectral Entropy (SE), (b) C 0 complexity.
Figure 14. SE and C 0 complexity of the incommensurate FDCV model (31) for ν 1 = 0.96 . (a) Spectral Entropy (SE), (b) C 0 complexity.
Technologies 13 00471 g014
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Zouak, I.; Alshanty, A.; Ouannas, A.; Mongelli, A.; Ciccarese, G.; Grassi, G. From Continuous Integer-Order to Fractional Discrete-Time: A New Computer Virus Model with Chaotic Dynamics. Technologies 2025, 13, 471. https://doi.org/10.3390/technologies13100471

AMA Style

Zouak I, Alshanty A, Ouannas A, Mongelli A, Ciccarese G, Grassi G. From Continuous Integer-Order to Fractional Discrete-Time: A New Computer Virus Model with Chaotic Dynamics. Technologies. 2025; 13(10):471. https://doi.org/10.3390/technologies13100471

Chicago/Turabian Style

Zouak, Imane, Ahmad Alshanty, Adel Ouannas, Antonio Mongelli, Giovanni Ciccarese, and Giuseppe Grassi. 2025. "From Continuous Integer-Order to Fractional Discrete-Time: A New Computer Virus Model with Chaotic Dynamics" Technologies 13, no. 10: 471. https://doi.org/10.3390/technologies13100471

APA Style

Zouak, I., Alshanty, A., Ouannas, A., Mongelli, A., Ciccarese, G., & Grassi, G. (2025). From Continuous Integer-Order to Fractional Discrete-Time: A New Computer Virus Model with Chaotic Dynamics. Technologies, 13(10), 471. https://doi.org/10.3390/technologies13100471

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop