Skip to main content

Theory and Modern Applications

A dynamic model of viruses with the effect of removable media on a computer network with heterogeneous immunity

Abstract

In this paper, we build a mathematical model to study the impact of external removable devices on a network with weakly- and strongly-protected computers. The model describes the dynamics between weak, strong, infected computers and susceptible, infected removable media. Analytical investigations of the model produce two equilibrium points: virus-free and endemic. Moreover, we investigate the local and global stability of both equilibria. The existence and stability conditions of the equilibrium points depend primarily on the basic reproduction number (\(R_{0}\)) of the model. Furthermore, we perform numerical simulations to substantiate the analytical results. Also, a sensitivity analysis is carried out to examine the critical parameters that lead to strategies to control the dissipation of viruses.

1 Introduction

The development of communication networks has made computers increasingly present in our daily lives. The human dependence on many electronic devices, such as mobile phones and laptops, is increasing every day since almost everything can be accessed online. For these reasons, a computer virus has become a major problem for individuals, institutions and even governments. A virus is a malicious program developed to harm the operating systems of computers and mobile phones. It plays the same role as a biological virus in the human body. Computer viruses slow down or crash the operating system, erase data, steal information, disrupt normal operations, spy on users with webcams, microphones, and other damages. According to the Ponemon Institute, 7 out of 10 organizations say that security risks increased dramatically in 2017 [1]. In 2017, the Wannacry virus infected more than 400,000 devices from 100,000 groups in at least 150 countries, at a total damage cost of about 4 billion [2].

The propagation of computer viruses is similar to the spread of infectious diseases in which viruses are transmitted through communication. Computer viruses are usually transmitted in networks via e-mail messages and when downloading an infected file. In addition, connecting a computer to removable devices such as USB, mobile phones and hard drives is another way to spread viruses. Anti-virus software always strives to protect computers from viruses. However, due to the emergence of new viruses, this keeps the anti-virus programs lagging behind the new ones. As a result, this requires the user to update their anti-virus software regularly.

Mathematical experiments are necessary to understand the dynamics of computer virus spread in order to improve the safety and reliability of a computer network. Cohen [3] and Murray [4] were among the first to pave the way for the use of mathematical models of infectious diseases to explore the dynamics of the spread of computer viruses due to their similarity. Consequently, the computer’s population is divided into compartments according to their status such as susceptible (S), latent (L), infectious (I), recovered (R), antidotal (A), and breaking out (B). By considering the dynamics between these compartments, different types of models have been studied [5–15]. In particular, Kephart and White [5] presented an SIS model of the biological epidemic to explore the way computer viruses spread on the Internet. L. Yang et al. [9] proposed an SLB model assuming that both latent and broken computers posses infectivity; however, the cure rate of latent computers is lower than the broken out computers. Zhu et al. [16] investigated theoretically, a computer virus model SIRS with an anti-virus strategy known as the countermeasure competing that was proposed in [17]. Their work provided a theoretical approach to assess the efficiency of different deployment strategies for anti-virus software. In [7], Gan et al. incorporated the probability of immunization into the classic SIRS model to examine the impact of vaccination (i.e. the measure that an uninfected computer has the latest version of anti-virus software installed) on the spread of computer viruses. Further, in [8], they studied the same model; however, expressing the infection rate as a generic nonlinear incidence rate. Khanh and Huy [11] investigated an SLIR model of computer network where some nodes have antidote rates to represent a vulnerability to viruses in the system. Meanwhile, in [12, 13], antidotal computers are expressed as a separate compartment generating an SAIR model. Recently, Upadhyay and Singh [18] proposed a model with two different classes of computer nodes, the attacking and targeting nodes. They studied the virus propagation from an attack node into the targeted system.

Furthermore, Liu et al. [6] proposed a different mathematical model that examines the impact of user security awareness on the spread of infectious malware. To understand how user security awareness affects the spread of malware, they have divided computers that are vulnerable to viruses into two compartments in terms of protection. They suggested two levels of protection: weakly-protected and strongly-protected, where they assumed that the latter has a lower infection rate than the former.

Other mathematical models studied the dynamics between computers and external removable devices because these devices could be affected by viruses [19], which result in computer infection. For example, Zhu et al. [20] expressed explicitly in their SIR model compartments that represents removable devices. A similar model is given in [21] but with an added compartment expressing latent computers. However, in [22, 23], the effect of removable media is analyzed without expressing it as a separate compartment. Also, in [24], Gan and Yang incorporated the effects of removable storage devices as well as anti-virus software in their SLIR model but not as separate compartments. Recently, in [25], Gan et al. studied the impact of network topology and removable devices on the transmission of viruses. They compared the theoretical results of the model with numerical experiments based on the Oregon routing network in order to verify their model.

In this paper, we build a mathematical model to study the effect of external removable devices on a network with weakly- and strongly-protected computers (i.e. heterogeneous immunity). Our model is an extended model to the compartment model given in [6]. We added to the model in [6] two compartments representing susceptible and infected removable media. We believe that a lack of user awareness regarding the correct use of removable devices plays a fundamental role in the spread of viruses. Connecting infected removable media to the computer causes the virus to spread. In particular, computers with weak protection will be more vulnerable to infection with the virus than those with strong protection. Therefore, to explore the effect of removable devices on the spread of viruses, we need to include removable devices in the dynamics of the model as explicit compartments. Moreover, we assume that strongly-protected computers are unlikely to possess an infection without being first weakly-protected. Therefore, we modify the model in [6] by removing the terms that demonstrate infection of strongly-protected computers due to the connection with infected computers. The study aims to investigate the impact of user awareness on the computer network during a virus outbreak.

The rest of this work is organized as follows. Section 2 deals with formulating the mathematical model with its notations and assumptions. In Sect. 3, the equilibrium points and their stabilities are investigated. Moreover, Sect. 4 illustrates numerical experiments of the model and demonstrates the analysis of the sensitivity of its parameters. Finally, a brief conclusion is given in Sect. 5.

2 Mathematical model

We consider the impact of removable devices in a network with weakly- and strongly-protected computers. We introduce two compartments: susceptible and infected removable devices to the model in [6]. Accordingly, the proposed model is divided into five compartments denoted as follows: \(S(t)\), strongly-protected computers (S-node); \(W(t)\), weakly-protected computers (W-node); \(I(t)\), infected computers (I-node); \(R_{S}(t)\), susceptible removable devices (\(R_{S}\)-node), and \(R_{I}(t)\), infected removable devices (\(R_{I}\)-node). We assume that the total number of computers and removable devices in the network are \(N(t)\) and \(R_{N}(t)\), respectively.

Strongly-protected computers are installed with anti-virus software that is updated continuously. Weakly-protected computers are either installed with outdated anti-virus software or without security products. An S-node is infected only when its anti-virus software is outdated; thus, it becomes a W-node. On the contrary, when the anti-virus software of a W-node is updated or installed, it then becomes an S-node. Virus infection is caused due to the connection between the I and W nodes. Also, viruses are transmitted to W-node when an infected removable device is connected to it. When W-node is infected, it becomes I-node. Meanwhile, if I-node is cleaned from all viruses and its anti-virus software is updated, it then becomes an S-node. An infected removable device, \(R_{I}\)-node, is cleaned when it is scanned by anti-virus software that is installed on a strongly-protected computer, S-node; therefore, it becomes an \(R_{S}\)-node. On the other hand, once the susceptible removable device is connected to an infected computer, it is infected again (see Fig. 1).

Figure 1
figure 1

The dynamics of the model

User security awareness plays a vital role in the dynamics of the model. High security awareness is regarded when users continuously update their anti-virus software and scan all removable devices when connected to their computers, and vice versa is considered as acts of low security awareness.

The state variables S, W, I, \(R_{S}\) and \(R_{I}\) are non-negative and the parameters α, β, ϵ, δ, γ, \(\sigma _{1}\), \(\sigma _{2}\) are positive and lie in the interval \((0,1]\). A summary of the model’s notations is given in Table 1.

Table 1 Characterization of notations

The model is based on the following reasonable assumptions:

  1. (H1)

    The network in this model is static which means that the total number of nodes over the network is invariant.

  2. (H2)

    An up-to-data anti-virus software is powerful enough to keep S-node computers immune from viruses.

  3. (H3)

    Every W-node gets infected with probability β per day due to possible connection with I-node.

  4. (H4)

    Due to the contact with an infected removable device, W-node computers become infected with constant probability δ per day.

  5. (H5)

    When anti-virus software is expired or not updated, the computers in S-node go to W-node with rate α.

  6. (H6)

    W-node computers go to S-node with rate ϵ, when installed by an updated anti-virus software.

  7. (H7)

    Each infected computer is successfully cured by the effect of anti-virus software with rate γ.

  8. (H8)

    An infected removable device can become susceptible if it is connected to a strongly-protected computer with rate \(\sigma _{2}\) and a susceptible one can become infected if it is connected to an infected computer with rate \(\sigma _{1}\).

According to the above assumptions, one can immediately describe the dynamics of the model by the following system of nonlinear ordinary differential equations:

$$ \begin{gathered} \dot{W} = -\beta W\frac{I}{N}- \delta \frac{R_{I}}{R_{N}}W-\epsilon W+\alpha S, \\ \dot{S} = \epsilon W+\gamma I-\alpha S, \\ \dot{I} = \beta W\frac{I}{N}+\delta \frac{R_{I}}{R_{N}}W-\gamma I, \\ \dot{R_{S}} = \sigma _{2} \frac{S}{N}R_{I}- \sigma _{1} \frac{I}{N}R_{S}, \\ \dot{R_{I}} = \sigma _{1} \frac{I}{N} R_{S} -\sigma _{2} \frac{S}{N}R_{I}, \end{gathered} $$
(1)

where S, W, I, N, \(R_{S}\), \(R_{I}\) and \(R_{N}\) are abbreviations of \(S(t)\), \(W(t)\), \(I(t)\), \(N(t)\), \(R_{S}(t)\), \(R_{I}(t)\) and \(R_{N}(t)\), respectively.

From the assumption (H1), the network is static, thus, the total number of computers connected to the network is constant, i.e., \(N(t)=W(t)+S(t)+I(t)=N_{0}=\mathit{constant}\) for all \(t\geq 0\). This is also the case for the total number of removable devices in the network, i.e., \(R_{N}(t)=R_{S}(t)+R_{I}(t)=R_{N0}=\mathit{constant}\). Therefore, model (1) can be normalized by setting the state variables as follows: \(w=W/N\), \(s=S/N \), \(i=I/N\), \(R_{s}=R_{S}/R_{N}\) and \(R_{i}=R_{I}/R_{N}\). Consequently, model (1) has the equivalent form

$$ \begin{gathered} \dot{w} = -\beta w i-\delta R_{i} w-\epsilon w+\alpha s, \\ \dot{s} = \epsilon w+\gamma i-\alpha s, \\ \dot{i} = \beta w i+\delta R_{i} w-\gamma i, \\ \dot{R_{s}} = \sigma _{2} s R_{i}-\sigma _{1} i R_{s}, \\ \dot{R_{i}} = \sigma _{1} i R_{s} -\sigma _{2} s R_{i}. \end{gathered} $$
(2)

By using the identities \(w+s+i=1\) and \(R_{s}+R_{i}=1\) in (2), we can facilitate the study of the model by examining a reduced subsystem which is mainly the compartments where the virus appears. Thus, the model can be expressed by the following limiting system:

$$ \begin{gathered} \dot{w} = -\beta w i-\delta R_{i} w-\epsilon w+\alpha (1-w-i), \\ \dot{i} = \beta w i+\delta R_{i} w-\gamma i, \\ \dot{R_{i}} = \sigma _{1} i(1-R_{i} )-\sigma _{2} R_{i} (1-w-i). \end{gathered} $$
(3)

Let the feasible region for system (3) be

$$ \varOmega =\bigl\{ (w,i,R_{i}): w\geq 0, i\geq 0, R_{i} \geq 0, w+i \leq 1, R_{i}\leq 1\bigr\} . $$

It follows, from system (3), that

$$ \dot{w}| _{(w=0)}=\alpha (1-i)\geq 0,\qquad \dot{i}| _{(i=0)}= \delta R_{i}w \geq 0,\qquad \dot{R_{i}}| _{(R_{i}=0)}= \sigma _{1} i\geq 0 . $$

This implies that, for \(t\geq 0\), all solutions that are non-negative remain non-negative.

Now, from system (3), we have

$$ \begin{aligned}[b] (w+i+R_{i})^{\prime } &=-\epsilon w+\alpha (1-w-i)-\gamma i+ \sigma _{1} (1-R_{i})-\sigma _{2} R_{i}(1-w-i), \\ &\leq -\epsilon w -\gamma i. \end{aligned} $$
(4)

On the boundary of Ω, i.e., when \(w+i= 1\) and \(R_{i}= 1\), we find that the vector field in (4) points into the interior of Ω. Hence, Ω is positively invariant, that is, every solution of model (3), with initial conditions in Ω, remains there for all \(t\geq 0\).

3 Mathematical analysis of the model

In this section, we find the equilibria of model (3). Also, we use the next generation method [26] to calculate the basic reproductive number. Moreover, we examine the local stability of the equilibrium points using the linearization method [27] and Routh–Hurwitz’ criterion [28]. The global stability is investigated using Castillo-Chavez et al.’s theorem [29] and Lyapunov’s theorem [28].

3.1 Equilibrium points and basic reproductive number

In general, the equilibrium points are obtained by equating the rates in system (3) to zero, that is,

$$ \begin{gathered} 0 = -\beta w i-\delta R_{i} w-\epsilon w+\alpha (1-w-i), \\ 0 = \beta w i+\delta R_{i} w-\gamma i, \\ 0 = \sigma _{1} i(1-R_{i} )-\sigma _{2} R_{i} (1-w-i). \end{gathered} $$
(5)

By letting \(i=0\) in system (5), we obtain the virus-free equilibrium point \(E_{0}=(\frac{\alpha }{\epsilon +\alpha },0,0 )\), which exists always. Next, we apply the next generation method on system (3) in order to compute the basic reproductive number \(R_{0}\). Let \(x=(i, R_{i})^{T}\), then system (3) can be written as

$$ x'=F(x)-V(x), $$

where

$$\begin{aligned}& F(x)= \begin{pmatrix} \beta w i+\delta R_{i} w \\ 0 \end{pmatrix} , \\& V(x)= \begin{pmatrix} \gamma i \\ -\sigma _{1} (1-R_{i} )+\sigma _{2} R_{i} (1-w-i) \end{pmatrix} . \end{aligned}$$

The Jacobian matrices of \(F(x)\) and \(V(x)\) at the virus-free equilibrium point \(E_{0}\) are, respectively,

$$ f= \begin{pmatrix} \beta \frac{\alpha }{\epsilon +\alpha } &\delta \frac{\alpha }{\epsilon +\alpha } \\ 0&0 \end{pmatrix} ,\qquad v= \begin{pmatrix} \gamma &0 \\ -\sigma _{1} &\sigma _{2} (1-\frac{\alpha }{\epsilon +\alpha }) \end{pmatrix} . $$

Consequently, the next generation matrix is \(G=f.v^{-1}\), i.e.,

$$ G= \begin{pmatrix} \frac{\beta \alpha \sigma _{2}\epsilon +\sigma _{1}\delta \alpha (\epsilon +\alpha )}{\gamma \sigma _{2} \epsilon (\epsilon +\alpha )} &\frac{\delta \alpha }{\sigma _{2} \epsilon } \\ 0&0 \end{pmatrix} . $$

It follows that the spectral radius of G is the basic reproductive number, thus,

$$ R_{0}= \frac{\beta \alpha \sigma _{2}\epsilon +\sigma _{1}\delta \alpha (\epsilon +\alpha )}{\gamma \sigma _{2} \epsilon (\epsilon +\alpha )}. $$

Now, when \(i\neq 0\), the solution to system (5) gives the unique endemic equilibrium point of model (3), \(E^{*}=(w^{*},i^{*},R_{i}^{*})\), where

$$ \begin{gathered} w^{*} = \frac{\alpha (1- i^{*})d}{d(\beta i^{*}+(\epsilon +\alpha ))+\delta \sigma _{1} i^{*}}, \\ i^{*} = \frac{\sqrt{b^{2}-4ac}-b}{2a}, \\ R_{i}^{*} = \frac{\sigma _{1} i^{*}}{d}. \end{gathered} $$

Here,

$$\begin{aligned}& a =\beta (\alpha +\gamma )\bigl[\epsilon (\sigma _{1}- \sigma _{2})+\alpha \sigma _{1}+\sigma _{2}\gamma \bigr], \\& \begin{aligned} b = {}&\beta \sigma _{2} \epsilon (\alpha +\gamma )- \beta \alpha \bigl[ \sigma _{1}(\epsilon +\alpha )+\sigma _{2}(\gamma -\epsilon )\bigr]+ \delta \sigma _{1}(\epsilon + \alpha ) (\alpha +\gamma ) \\ & {} +\gamma (\epsilon +\alpha )\bigl[\sigma _{1}(\epsilon +\alpha )+ \sigma _{2}( \gamma -\epsilon )\bigr], \end{aligned} \\& c =- \delta \sigma _{1}(\epsilon +\alpha )\alpha +\gamma (\epsilon + \alpha )\sigma _{2}\epsilon -\beta \alpha \sigma _{2}\epsilon , \\& d = \sigma _{2}\epsilon \bigl(1-i^{*}\bigr)+\bigl[\sigma _{1}(\epsilon +\alpha )+ \sigma _{2}\gamma \bigr]i^{*}. \end{aligned}$$

If \(R_{0}>1\), then \(c<0\) and if \(\sigma _{1}>\sigma _{2}\), then \(a>0\). This means that \(\sqrt{b^{2}-4ac}>b\), which leads to \(i^{*}>0\). As a result, \(w^{*}\), \(R^{*}_{i}\) and d are positive since \(0< i^{*}<1\). Consequently, \(E^{*}\) exists when \(R_{0} > 1\) and \(\sigma _{1}>\sigma _{2}\).

3.2 Local stability of the equilibrium points

Theorem 1

If\(R_{0} < 1\), the virus-free equilibrium point\(E_{0}\)is locally asymptotically stable. If\(R_{0} =1\), \(E_{0}\)is locally stable. If\(R_{0} > 1\), \(E_{0}\)is unstable.

Proof

By linearizing system (3), we obtain the following Jacobian matrix evaluated at the equilibrium \(E_{0}=(\frac{\alpha }{\epsilon +\alpha },0,0 )\):

$$ J= \begin{pmatrix} -\epsilon -\alpha & -\beta w_{0}-\alpha &-\delta w_{0} \\ 0 & \beta w_{0}-\gamma &\delta w_{0} \\ 0 & \sigma _{1} &-\sigma _{2} (1-w_{0}) \end{pmatrix} . $$

One eigenvalue of the Jacobian matrix can be found easily, namely, \(\lambda _{1}=-(\epsilon +\alpha )\). The rest of the eigenvalues, \(\lambda _{2,3}\), satisfy the equation:

$$ \lambda ^{2} +A_{1}\lambda +A_{2}=0, $$
(6)

where

$$\begin{aligned}& A_{1}=-\beta w_{0} +\gamma +\sigma _{2} (1-w_{0}), \\& A_{2}=\frac{1}{\epsilon +\alpha }\biggl(- \frac{\beta \alpha \sigma _{2} \epsilon }{\epsilon +\alpha }+ \gamma \sigma _{2} \epsilon - \sigma _{1} \delta \alpha \biggr). \end{aligned}$$

Solving (6) yields \(\lambda _{2,3}=(-A_{1}\pm \sqrt{A_{1}^{2}-4A_{2}})/2\). If \(\beta \alpha <\gamma (\epsilon +\alpha )\), then \(A_{1}>0\) and if \(\beta \alpha \sigma _{2} \epsilon +\sigma _{1} \delta \alpha ( \epsilon +\alpha )< \gamma \sigma _{2} \epsilon (\epsilon +\alpha )\), i.e., \(R_{0}<1\), then \(A_{2}>0\). Consequently, \(A_{1} > \sqrt{A_{1}^{2}-4A_{2}}\) which means that \(\lambda _{2,3}<0\). Notice that the condition \(R_{0}<1\) leads to \(\beta \alpha <\gamma (\epsilon +\alpha )\) since

$$\begin{aligned}& \beta \alpha \sigma _{2} \epsilon +\sigma _{1} \delta \alpha ( \epsilon +\alpha )< \gamma \sigma _{2} \epsilon (\epsilon + \alpha ), \\& \beta \alpha + \frac{\sigma _{1} \delta \alpha (\epsilon +\alpha )}{\sigma _{2} \epsilon }< \gamma (\epsilon +\alpha ), \\& \beta \alpha < \gamma (\epsilon +\alpha ). \end{aligned}$$

Therefore, under the condition \(R_{0} < 1\), all the eigenvalues have negative real parts, this proves that \(E_{0}\) is locally asymptotically stable when \(R_{0} < 1\). On the other hand, when \(R_{0} > 1\), then \(A_{2}<0\), thus, Eq. (6) has at least one root with positive real part and. Hence, \(E_{0}\) is unstable provided \(R_{0} > 1\). If \(R_{0} =1\), then the eigenvalues are \(\lambda _{1,2}<0\) and \(\lambda _{3}=0\), thus, \(E_{0}\) is locally stable. □

Theorem 2

\(E^{*}\)is locally asymptotically stable with respect toΩif\(\gamma <(\alpha +\epsilon )\).

Proof

The characteristic equation of the Jacobian matrix of the linearized system of (3) at \(E^{*}\) is given by

$$ \det \begin{pmatrix} \lambda +\beta i^{*}+\delta R_{i}^{*} +(\epsilon +\alpha ) &\beta w^{*}+ \alpha & \delta w^{*} \\ -\beta i^{*}-\delta R_{i}^{*}&\lambda -\beta w^{*}+\gamma &-\delta w^{*} \\ -\sigma _{2} R_{i}^{*}&-\sigma _{1} (1-R_{i}^{*} )-\sigma _{2} R_{i}^{*}& \lambda +\sigma _{1} i^{*}+\sigma _{2} (1-w^{*}-i^{*}) \end{pmatrix} =0, $$
(7)

which is equivalent to

$$ \det \begin{pmatrix} \lambda +a_{11} &a_{12}&a_{13} \\ -a_{21}&\lambda +a_{22}&-a_{23} \\ -a_{31}&-a_{32}&\lambda +a_{33} \end{pmatrix} =0, $$

where \(a_{11}=\beta i^{*}+\delta R_{i}^{*} +(\epsilon +\alpha )\), \(a_{12}= \beta w^{*}+\alpha \), \(a_{13}=\delta w^{*}\), \(a_{21}=\beta i^{*}+ \delta R_{i}^{*}\), \(a_{22}=-\beta w^{*}+\gamma \), \(a_{23}=\delta w^{*}\), \(a_{31}=\sigma _{2} R_{i}^{*}\), \(a_{32}=(\sigma _{2}-\sigma _{1})R_{i}^{*}+ \sigma _{1}\), \(a_{33}=(\sigma _{1}-\sigma _{2}) i^{*}+\sigma _{2} (1-w^{*})\).

Substituting \(w^{*}=\frac{\gamma i^{*}}{\beta i^{*}+\delta R^{*}_{i}}\) in \(a_{22}\), we get

$$ a_{22}= \frac{\gamma \delta R^{*}_{i}}{\beta i^{*}+\delta R^{*}_{i}}>0. $$

Moreover, since \(\sigma _{1}>\sigma _{2}\) is the existence condition of \(E^{*}\), then \(a_{32}\) and \(a_{33}\) are positive. Clearly, the rest of the a are positive also.

By expanding the determinant we get the following cubic equation in λ:

$$ \lambda ^{3}+C_{1}\lambda ^{2}+C_{2}\lambda +C_{3}=0, $$
(8)

where

$$ \begin{gathered} C_{1}=a_{11}+a_{22}+a_{33}, \\ C_{2}=a_{11}a_{22}+a_{11}a_{33}+a_{22}a_{33}+a_{13}a_{31}-a_{23}a_{32}+a_{12}a_{21}, \\ C_{3}=a_{13}a_{21}a_{32}+a_{13}a_{22}a_{31}-a_{11}a_{23}a_{32}+a_{12}a_{23}a_{31}+a_{11}a_{22}a_{33}+a_{12}a_{21}a_{33}. \end{gathered} $$

According to the Hurwitz criteria,

$$\begin{aligned}& H_{1}=C_{1}=(a_{11}+a_{22}+a_{33})>0, \\& \begin{aligned} H_{2}&=C_{1}C_{2}-C_{3} \\ &=(a_{11}+a_{33})a_{13}a_{31}-(a_{22}+a_{33})a_{23}a_{32}+(a_{11}+a_{22})a_{11}a_{22}+(a_{11}+a_{33})a_{11}a_{33} \\ &\quad{} +(a_{22}+a_{33})a_{23}a_{32} +2a_{11}a_{22}a_{33}-a_{13}a_{21}a_{32}-a_{12}a_{23}a_{31}+(a_{11}+a_{22})a_{12}a_{21}. \end{aligned} \end{aligned}$$

Taking the term \((a_{22}+a_{33})\) as a common factor and evaluating the term \(a_{22}a_{33}-a_{23}a_{32}\), we have

$$\begin{aligned} a_{22}a_{33}-a_{23}a_{32}&=\bigl(-\beta w^{*}+\gamma \bigr) \biggl( \frac{\sigma _{1} i^{*}}{R^{*}_{i}}\biggr)-\bigl(\delta w^{*}\bigr) \bigl(-(\sigma _{1} - \sigma _{2})R_{i}^{*}+\sigma _{1} \bigr) \\ &> \bigl(\delta \sigma _{1} w^{*}-\delta \sigma _{1} w^{*}\bigr) \\ &= 0. \end{aligned}$$

Here, we used \((\sigma _{1}-\sigma _{2}) i^{*}+\sigma _{2} (1-w^{*})= \frac{\sigma _{1} i^{*}}{R^{*}_{i}}\) and \(i^{*}=\frac{\delta w^{*}R^{*}_{i}}{\gamma -\beta w^{*}}\). Therefore, \((a_{22}+a_{33})(a_{22}a_{33}-a_{23}a_{32})\geq 0\).

Next, we evaluate the terms

$$\begin{aligned}& a_{11}a_{22}a_{33}+a_{11}a_{13}a_{31}-a_{12}a_{23}a_{31} \\& \quad = \bigl( \beta i^{*}+\delta R_{i}^{*} +(\epsilon + \alpha )\bigr) \bigl(-\beta w^{*}+ \gamma \bigr) \bigl(\sigma _{1} i^{*}+\sigma _{2} \bigl(1-i^{*}-w^{*} \bigr)\bigr) \\& \quad \quad {}+\bigl(\delta w^{*}\bigr) \bigl(\beta i^{*}+\delta R_{i}^{*} +(\epsilon + \alpha )\bigr) \bigl(\sigma _{2} R^{*}_{i}\bigr)-\bigl(\delta w^{*} \bigr) \bigl(\beta w^{*}+\alpha \bigr) \bigl( \sigma _{2} R^{*}_{i}\bigr) \\& \quad =\bigl(\beta i^{*}+(\epsilon +\alpha )\bigr) \bigl(-\beta w^{*}+\gamma \bigr) \bigl(\sigma _{1} i^{*}+ \sigma _{2} \bigl(1-i^{*}-w^{*}\bigr)\bigr) \\& \quad\quad {} +\bigl(\delta R_{i}^{*}\bigr) \bigl(-\beta w^{*}+\gamma \bigr) \bigl(\sigma _{1} i^{*}+ \sigma _{2} \bigl(1-i^{*}\bigr)\bigr)+\delta \beta \sigma _{2} R^{*}_{i} w^{*2}- \gamma \delta \sigma _{2}R^{*}_{i} w^{*} \\& \quad \quad{} +\bigl(\delta w^{*}\bigr) \bigl(\beta i^{*}+\delta R_{i}^{*} +\epsilon \bigr) \bigl( \sigma _{2} R^{*}_{i}\bigr) -\delta \beta \sigma _{2} R^{*}_{i} w^{*2}. \end{aligned}$$

By substituting \(i^{*}=\frac{\delta w^{*}R^{*}_{i}}{\gamma -\beta w^{*}}\) in the above equation and since \(\sigma _{1}>\sigma _{2}\) leads to \(-\sigma _{2}>-\sigma _{1}\), we get

$$\begin{aligned}& a_{11}a_{22}a_{33}+a_{11}a_{13}a_{31}-a_{12}a_{23}a_{31} \\& \quad \geq \beta i^{*}\bigl(-\beta w^{*}+\gamma \bigr) \bigl(\sigma _{1} i^{*}+\sigma _{2} \bigl(1-i^{*}-w^{*} \bigr)\bigr)+( \epsilon +\alpha ) \bigl(-\beta w^{*}+\gamma \bigr) \\& \quad \quad{}\times \biggl(\sigma _{1} \biggl( \frac{\delta w^{*}R^{*}_{i}}{\gamma -\beta w^{*}}\biggr) \biggr) +(\epsilon + \alpha ) \bigl(-\beta w^{*}+\gamma \bigr) \bigl( \sigma _{2} \bigl(1-i^{*}-w^{*}\bigr)\bigr)+\bigl( \delta R_{i}^{*}\bigr) \\& \quad \quad {}\times \bigl(-\beta w^{*}+\gamma \bigr) \bigl(\sigma _{1} i^{*}+\sigma _{2} \bigl(1-i^{*} \bigr)\bigr) +\bigl(\delta w^{*}\bigr) \bigl(\beta i^{*}+ \delta R_{i}^{*} +\epsilon \bigr) \bigl(\sigma _{2} R^{*}_{i}\bigr) \\& \quad \quad {}-\gamma \delta \sigma _{1}R^{*}_{i} w^{*} \\& \quad = \beta i^{*}\bigl(-\beta w^{*}+\gamma \bigr) \bigl(\sigma _{1} i^{*}+\sigma _{2} \bigl(1-i^{*}-w^{*} \bigr)\bigr)+( \epsilon +\alpha -\gamma ) \bigl(\sigma _{1} \delta w^{*}R^{*}_{i}\bigr) \\& \quad \quad{} +(\epsilon +\alpha ) \bigl(-\beta w^{*}+\gamma \bigr) \bigl( \sigma _{2} \bigl(1-i^{*}-w^{*}\bigr)\bigr)+\bigl( \delta R_{i}^{*}\bigr) \bigl(-\beta w^{*}+\gamma \bigr) \\& \quad \quad{}\times \bigl(\sigma _{1} i^{*}+\sigma _{2} \bigl(1-i^{*}\bigr)\bigr)+\bigl(\delta w^{*} \bigr) \bigl( \beta i^{*}+\delta R_{i}^{*} + \epsilon \bigr) \bigl(\sigma _{2} R^{*}_{i}\bigr). \end{aligned}$$

Thus, \(a_{11}a_{22}a_{33}+a_{11}a_{13}a_{31}-a_{12}a_{23}a_{31}\geq 0\) if \(\gamma <\epsilon +\alpha \). Lastly, we evaluate the terms

$$\begin{aligned}& a_{11}a_{22}a_{33}-a_{13}a_{21}a_{32} \\& \quad = \biggl( \frac{\gamma i^{*}}{w^{*}}+(\epsilon +\alpha )\biggr) \bigl(\gamma -\beta w^{*}\bigr) \biggl( \frac{\sigma _{1} i^{*}}{R^{*}_{i}}\biggr)-\delta w^{*} \biggl( \frac{\gamma i^{*}}{w^{*}}\biggr) \bigl((\sigma _{2}-\sigma _{1})R^{*}_{i}+ \sigma _{1}\bigr) \\& \quad \geq \biggl(\frac{\gamma i^{*}}{w^{*}}+(\epsilon +\alpha )\biggr) \bigl(\gamma -\beta w^{*}\bigr) \biggl( \frac{\sigma _{1} (\frac{\delta w^{*}R^{*}_{i}}{\gamma -\beta w^{*}})}{R^{*}_{i}}\biggr)- \delta w^{*} \biggl(\frac{\gamma i^{*}}{w^{*}}\biggr) (\sigma _{1}) \\& \quad = \gamma \sigma _{1}\delta i^{*}+(\epsilon +\alpha )\sigma _{1} \delta w^{*}-\gamma \sigma _{1}\delta i^{*} \\& \quad =(\epsilon +\alpha )\sigma _{1}\delta w^{*} \\& \quad >0. \end{aligned}$$

Hence, \(H_{2}>0\) if \(\gamma <\epsilon +\alpha \). Calculating \(H_{3}\), we get

$$ H_{3}=C_{3}H_{2}=(a_{13}a_{21}a_{32}+a_{13}a_{22}a_{31}+a_{11}a_{22}a_{33}-a_{11}a_{23}a_{32}+a_{12}a_{23}a_{31}+a_{12}a_{21}a_{33})H_{2}. $$

We take the terms

$$\begin{aligned}& a_{13}a_{21}a_{32}+a_{11}a_{22}a_{33}-a_{11}a_{23}a_{32} \\& \quad = \delta w^{*}\biggl(\frac{\gamma i^{*}}{w^{*}}\biggr) \bigl((\sigma _{2}-\sigma _{1})R^{*}_{i}+ \sigma _{1}\bigr)+\bigl(\beta i^{*}+\delta R_{i}^{*} +(\epsilon +\alpha )\bigr) \bigl(- \beta w^{*}+\gamma \bigr) \\& \quad \quad{}\times \biggl(\frac{\sigma _{1} i^{*}}{R^{*}_{i}}\biggr)-\delta w^{*}\biggl( \frac{\gamma i^{*}}{w^{*}}+(\epsilon +\alpha )\biggr) \bigl((\sigma _{2}-\sigma _{1})R^{*}_{i}+ \sigma _{1}\bigr) \\& \quad =\bigl(\beta i^{*}+\delta R_{i}^{*} +(\epsilon + \alpha )\bigr) \bigl(-\beta w^{*}+ \gamma \bigr) \biggl( \frac{\sigma _{1} i^{*}}{R^{*}_{i}}\biggr) -\delta w^{*}(\epsilon + \alpha ) \\& \quad \quad {}\times \bigl((\sigma _{2}-\sigma _{1})R^{*}_{i}+ \sigma _{1}\bigr) \\& \quad \geq \bigl(\beta i^{*}+\delta R_{i}^{*} +( \epsilon +\alpha )\bigr) \bigl(-\beta w^{*}+ \gamma \bigr) \biggl( \frac{\sigma _{1} (\frac{\delta w^{*}R^{*}_{i}}{\gamma -\beta w^{*}})}{R^{*}_{i}}\biggr) -\delta w^{*}(\epsilon +\alpha ) (\sigma _{1}) \\& \quad =\bigl(\beta i^{*}+\delta R_{i}^{*} +(\epsilon + \alpha )\bigr) \bigl(\sigma _{1} \delta w^{*}\bigr) -\delta w^{*}(\epsilon +\alpha ) (\sigma _{1}) \\& \quad =\bigl(\beta i^{*}+\delta R_{i}^{*} \bigr) \bigl(\sigma _{1} \delta w^{*}\bigr) \\& \quad > 0. \end{aligned}$$

Hence, \(C_{3}>0\) and therefore \(H_{3}\) is positive. Since \(H_{1}>0\), \(H_{2}>0\) and \(H_{3}>0\), all the eigenvalues of Eq. (8) have negative real parts. Thus, if \(\gamma <\epsilon +\alpha \), then the endemic equilibrium point \(E^{*}\) is locally asymptotically stable. □

3.3 Global stability of the equilibrium points

First, we present some theories that we will use to investigate the stability of the virus-free equilibrium point of system (3).

Lemma 1

([29])

Consider a disease model system written in the form:

$$ \begin{gathered} \frac{dX}{dt} = F(X,Y), \\ \frac{dY}{dt} = G(X,Y),\quad G(X,0)=0, \end{gathered} $$
(9)

where\(X\in R^{m}\)denotes (its components) the number of uninfected individuals and\(Y\in R^{n}\)denotes (its components) the number of infected individuals including latent, infectious, etc. \(U_{0} = (x_{0},0)\)denotes the disease-free equilibrium of system (9). Assume the conditions (C1) and (C2) below:

  1. (C1)

    For\(\frac{dX}{dt}= F(X,0)\), \(x_{0}\)is globally asymptotically stable,

  2. (C2)

    \(G(X, Y) = AY - \hat{G}(X,Y)\), with\(\hat{G}(X,Y)\geq 0\)for\((X,Y)\in \varOmega \),

where\(A = \frac{\partial G}{\partial Y}(x_{0},0)\)has all non-negative off-diagonal elements andΩis the region where the model makes biological sense.

If system (9) satisfies the above two conditions then the following theorems hold.

Theorem 3

([29])

The fixed point\(U_{0} = (x_{0},0)\)is a globally asymptotic stable equilibrium of (9) provided that\(R_{0} < 1\)and that assumptions (Cl) and (C2) are satisfied.

Theorem 4

The virus-free equilibrium\(E_{0}\)of system (3) is globally asymptotically stable with respect toΩif\(\sigma _{2} <\sigma _{1}\), \(R_{0}<1\)and the assumptions in Lemma 1are satisfied.

Proof

Apply Lemma 1 to system (3). Consider \(X=w\) and Y=[iRi].

When \(i=R_{i}=0\), the uninfected subsystem becomes

$$ \frac{dw}{dt}=\alpha -(\epsilon +\alpha )w, $$
(10)

which has the solution

$$ w(t)=\frac{\alpha }{\epsilon +\alpha }+e^{-(\epsilon + \alpha )t}\biggl(w(0)- \frac{\alpha }{\epsilon +\alpha }\biggr). $$

Clearly, \(w(t)\rightarrow \frac{\alpha }{\epsilon +\alpha }=w_{0}\) as \(t\rightarrow \infty \) regardless of the initial condition value \(w(0)\). Thus, condition (C1) from Lemma 1 is satisfied.

Next, we can write the right hand side of the infectious subsystem as

$$\begin{aligned} \frac{dY}{dt}&=G(X,Y)= \begin{bmatrix} \beta w i+\delta w R_{i}-\gamma i \\ \sigma _{1} i-\sigma _{1} iR_{i}-\sigma _{2} R_{i} (1-w-i) \end{bmatrix} \\ &= \begin{bmatrix} \beta w_{0}-\gamma & \delta w_{0} \\ \sigma _{1} &-\sigma _{2} w_{0} \end{bmatrix} \begin{bmatrix} i \\ R_{i} \end{bmatrix}- \begin{bmatrix} 0 \\ \sigma _{1} iR_{i}-\sigma _{2} iR_{i} \end{bmatrix} \\ &=AY-\hat{G}(X,Y), \end{aligned}$$

where

$$ A= \begin{bmatrix} \beta w_{0}-\gamma & \delta w_{0} \\ \sigma _{1} &-\sigma _{2} w_{0}\end{bmatrix} , \quad\quad \hat{G}= \begin{bmatrix} 0 \\ \sigma _{1} iR_{i}-\sigma _{2} iR_{i}\end{bmatrix} . $$

Clearly, A has all non-negative off-diagonal elements, and \(\hat{G}(X,Y)\geq 0\) for \((X,Y)\in \varOmega \) if \(\sigma _{1}>\sigma _{2}\). Thus, the condition (C2) in Lemma 1 hold for system (3) when \(\sigma _{1}>\sigma _{2}\). Hence \(E_{0}\) is globally asymptotically stable if \(\sigma _{2} <\sigma _{1}\) and \(R_{0}<1\). □

Next, we use Lyapunov’s theorem to examine the global stability of the endemic equilibrium point of system (3).

Theorem 5

The endemic equilibrium\(E^{*}\)of system (3) is globally stable with respect toΩif\(\beta >\alpha \).

Proof

Define the Lyapunov function as

$$ \begin{aligned} L(w,i,R_{i})={}&\frac{\sigma _{1}(1+R^{*}_{i})}{\alpha }\biggl(w-w^{*}-w^{*} \ln {\frac{w}{w^{*}}}\biggr)+\frac{\sigma _{1}(1+R^{*}_{i})}{\alpha }\biggl(i-i^{*}-i^{*} \ln {\frac{i}{i^{*}}}\biggr) \\ &{}+\biggl(R_{i}-R_{i}^{*}-R_{i}^{*} \ln { \frac{R_{i}}{R_{i}^{*}}}\biggr). \end{aligned} $$

Clearly, L is a positive definite function. Computing the derivative of L along the solutions of system (3), we obtain

$$\begin{aligned} L' =&\frac{\sigma _{1}(1+R^{*}_{i})}{\alpha }\biggl(1-\frac{w^{*}}{w} \biggr)w'+ \frac{\sigma _{1}(1+R^{*}_{i})}{\alpha }\biggl(1-\frac{i^{*}}{i} \biggr)i'+\biggl(1- \frac{R_{i}^{*}}{R_{i}}\biggr)R_{i}' \\ =&\frac{\sigma _{1}(1+R^{*}_{i})}{\alpha }\biggl(1-\frac{w^{*}}{w}\biggr) \bigl(- \beta wi-\delta R_{i}w-\epsilon w+\alpha (1-w-i)\bigr) \\ & {} +\frac{\sigma _{1}(1+R^{*}_{i})}{\alpha }\biggl(1-\frac{i^{*}}{i}\biggr) (\beta wi+ \delta R_{i}w-\gamma i) \\ & {} +\biggl(1-\frac{R_{i}^{*}}{R_{i}}\biggr) \bigl(\sigma _{1} i(1-R_{i} )-\sigma _{2} R_{i} (1-w-i)\bigr). \end{aligned}$$
(11)

Since \(E^{*}\) is an equilibrium point to system (3),

$$\begin{aligned} \alpha =&\beta w^{*}i^{*}+\delta R_{i}^{*} w^{*}+(\epsilon +\alpha )w^{*}+ \alpha i^{*}, \end{aligned}$$
(12)
$$\begin{aligned} \gamma =&\frac{1}{i^{*}}\bigl(\beta w^{*}i^{*}+ \delta R_{i}^{*} w^{*}\bigr), \end{aligned}$$
(13)
$$\begin{aligned} \sigma _{2} =&\frac{\sigma _{1} i^{*}}{R_{i}^{*}}-\sigma _{1} i^{*}+ \sigma _{2} w^{*}+\sigma _{2} i^{*}. \end{aligned}$$
(14)

Thus, using (12)–(14) in (11), we have

$$\begin{aligned} L' =&\frac{\sigma _{1}(1+R^{*}_{i})}{\alpha }\biggl(1-\frac{w^{*}}{w}\biggr) \bigl(- \beta wi-\delta R_{i}w-(\epsilon +\alpha )w-\alpha i+\beta w^{*}i^{*}+ \delta R_{i}^{*}w^{*}+( \epsilon +\alpha )w^{*} \\ & {} +\alpha i^{*}\bigr)+\frac{\sigma _{1}(1+R^{*}_{i})}{\alpha }\biggl(1- \frac{i^{*}}{i}\biggr) \biggl(\beta wi+\delta R_{i}w- \frac{i}{i^{*}}\bigl(\beta w^{*}i^{*}+ \delta R_{i}^{*}w^{*}\bigr)\biggr) \\ & {} +\biggl(1-\frac{R_{i}^{*}}{R_{i}}\biggr) (\sigma _{1} i(1-R_{i} )+\sigma _{2}R_{i}(w+i)-R_{i} \biggl( \frac{\sigma _{1} i^{*}}{R_{i}^{*}}-\sigma _{1}i^{*}+\sigma _{2}\bigl(w^{*}+i^{*}\bigr)\biggr) \\ =&\frac{\sigma _{1}(1+R^{*}_{i})}{\alpha }\biggl(1-\frac{w^{*}}{w}\biggr)\biggl[\beta w^{*}i^{*}\biggl(1- \frac{wi}{w^{*}i^{*}}\biggr)+\delta R_{i}^{*}w^{*}\biggl(1- \frac{R_{i}w}{R_{1}^{*}w^{*}} \biggr) \\ &{}+(\epsilon +\alpha )w^{*}\biggl(1- \frac{w}{w^{*}}\biggr) +\alpha i^{*}\biggl(1-\frac{i}{i^{*}}\biggr)\biggr] \\ &{}+ \frac{\sigma _{1}(1+R^{*}_{i})}{\alpha }\biggl(1-\frac{i^{*}}{i}\biggr)\biggl[\beta w^{*}i^{*}\biggl( \frac{wi}{w^{*}i^{*}}-\frac{i}{i^{*}} \biggr)+\delta R_{i}^{*}w^{*}\biggl( \frac{R_{i}w}{R_{i}^{*}w^{*}}-\frac{i}{i^{*}}\biggr)\biggr] \\ & {} +\biggl(1-\frac{R_{i}^{*}}{R_{i}}\biggr)\biggl[\sigma _{1} i^{*}\biggl(\frac{i}{i^{*}}- \frac{R_{i}}{R_{i}^{*}}\biggr)+\sigma _{1}R_{i}^{*}i^{*}\biggl( \frac{R_{i}}{R_{i}^{*}}-\frac{iR_{i}}{i^{*}R_{i}^{*}}\biggr)+\sigma _{2}R_{i}^{*}w^{*} \biggl( \frac{R_{i}w}{R_{i}^{*}w^{*}}-\frac{R_{i}}{R_{i}^{*}}\biggr) \\ & {} +\sigma _{2}R_{i}^{*}i^{*}\biggl( \frac{iR_{i}}{i^{*}R_{i}^{*}}- \frac{R_{i}}{R_{i}^{*}}\biggr)\biggr]. \end{aligned}$$
(15)

Collecting and simplifying terms yield

$$\begin{aligned} L' =&\frac{\sigma _{1}(1+R^{*}_{i})}{\alpha }\biggl[\beta w^{*}i^{*} \biggl(2- \frac{w^{*}}{w}-\frac{w}{w^{*}}\biggr) \\ &{}+\delta R_{i}^{*}w^{*} \biggl(4- \frac{w^{*}}{w}-\frac{i}{i^{*}}-\frac{R_{i}^{*}}{R_{i}}- \frac{R_{i}wi^{*}}{R_{i}^{*}w^{*}i}+\frac{R_{i}^{*}}{R_{i}}+ \frac{R_{i}}{R_{i}^{*}}-2\biggr) \\ & {} +(\epsilon +\alpha )w^{*}\biggl(2-\frac{w^{*}}{w}- \frac{w}{w^{*}}\biggr)+ \alpha i^{*}\biggl(1-\frac{i}{i^{*}}- \frac{w^{*}}{w}+\frac{w^{*}i}{wi^{*}}\biggr)\biggr] \\ &{}+ \sigma _{1}i^{*} \biggl(1-\frac{R_{i}}{R_{i}^{*}}+\frac{i}{i^{*}}- \frac{R_{i}^{*}i}{R_{i}i^{*}}\biggr) +\sigma _{1}R^{*}_{i}i^{*} \biggl(-1+\frac{R_{i}}{R_{i}^{*}}+ \frac{i}{i^{*}}-\frac{R_{i}i}{R_{i}^{*}i^{*}}\biggr) \\ & {}+\sigma _{2}R^{*}_{i}w^{*}\biggl(1+ \frac{R_{i}w}{R_{i}^{*}w^{*}}-\frac{w}{w^{*}}-\frac{R_{i}}{R_{i}^{*}}\biggr) +\sigma _{2}R^{*}_{i}i^{*} \biggl(1-\frac{R_{i}}{R_{i}^{*}}- \frac{i}{i^{*}}+\frac{R_{i}i}{R_{i}^{*}i^{*}}\biggr). \end{aligned}$$
(16)

From the inequality of arithmetic and geometric means, we have

$$\begin{aligned}& 2-\frac{w^{*}}{w}-\frac{w}{w^{*}}\leq 0, \\& 4-\frac{w^{*}}{w}-\frac{i}{i^{*}}-\frac{R_{i}^{*}}{R_{i}}- \frac{R_{i}wi^{*}}{R_{i}^{*}w^{*}i} \leq 0. \end{aligned}$$

Employing the above inequalities and recollecting terms give

$$\begin{aligned} L' \leq &C+\frac{R^{*}_{i}}{R_{i}}\biggl( \frac{\sigma _{1}\delta R^{*}_{i}w^{*}(1+R^{*}_{i})}{\alpha }\biggr) \\ &{}+ \frac{R_{i}}{R^{*}_{i}}\biggl( \frac{\sigma _{1}\delta R^{*}_{i}w^{*}(1+R^{*}_{i})}{\alpha }+\sigma _{1}i^{*} \bigl(R^{*}_{i}-1\bigr)- \sigma _{2}R^{*}_{i} \bigl(w^{*}+i^{*}\bigr)\biggr) \\ & {} +\frac{i}{i^{*}}\bigl(-\sigma _{1}i^{*} \bigl(1+R^{*}_{i}\bigr)+\sigma _{1}i^{*} \bigl(1+R^{*}_{i}\bigr)- \sigma _{2}R^{*}_{i}i^{*} \bigr)-\frac{w^{*}}{w}\sigma _{1}i^{*} \bigl(1+R^{*}_{i}\bigr)- \frac{w}{w^{*}}\sigma _{2}R^{*}_{i}w^{*} \\ & {} +\frac{w^{*}i}{wi^{*}}\bigl(\sigma _{1}i^{*} \bigl(1+R^{*}_{i}\bigr)\bigr)-\sigma _{1}i^{*} \frac{R^{*}_{i}i}{R_{i}i^{*}}+\frac{R_{i}i}{R^{*}_{i}i^{*}}(\sigma _{2}- \sigma _{1})R^{*}_{i}i^{*}+\sigma _{2}R^{*}_{i}w^{*} \frac{R_{i}w}{R^{*}_{i}w^{*}}, \end{aligned}$$
(17)

where

$$ C=-\frac{2\sigma _{1}\delta R^{*}_{i}w^{*}(1+R^{*}_{i})}{\alpha }+ \sigma _{1}i^{*} \bigl(1+R^{*}_{i}\bigr)+\sigma _{1}i^{*} \bigl(1-R^{*}_{i}\bigr)+\sigma _{2}R^{*}_{i} \bigl(w^{*}+i^{*}\bigr). $$

Again using the fact that \(E^{*}\) is an equilibrium point, we have

$$\begin{aligned} C \leq & \sigma _{1}i^{*}\bigl(1+R^{*}_{i} \bigr)+\sigma _{2}R^{*}_{i} \\ =&\frac{\sigma _{1}}{\alpha }\bigl(1+R^{*}_{i}\bigr) \bigl(-\beta w^{*}i^{*}-\delta R^{*}_{i}i^{*}- \epsilon w^{*}+\alpha -\alpha w^{*}\bigr) \\ &{}+\frac{\sigma _{2}}{\delta w^{*}} \bigl(- \beta w^{*}i^{*}-\epsilon w^{*}+\alpha - \alpha \bigl(w^{*}+i^{*}\bigr)\bigr). \end{aligned}$$

Since \(\beta >\beta w^{*}i^{*}\), we have \(C\leq 0\) if \(\beta >\alpha \). Accordingly,

$$\begin{aligned} L' \leq &\frac{R^{*}_{i}}{R_{i}} \frac{\sigma _{1}(1+R^{*}_{i})}{\alpha }\bigl(-\beta w^{*}i^{*}-\epsilon w^{*}+ \alpha -\alpha \bigl(w^{*}+i^{*}\bigr)\bigr)+\frac{R_{i}}{R^{*}_{i}}\biggl( \frac{\sigma _{1}(1+R^{*}_{i})}{\alpha }\bigl[-\beta w^{*}i^{*} \\ & {} -\epsilon w^{*}+\alpha -\alpha \bigl(w^{*}+i^{*} \bigr)\bigr]-\sigma _{2} R^{*}_{i}\biggr)- \frac{i}{i^{*}}\sigma _{2}R^{*}_{i}i^{*}+ \frac{w}{w^{*}}\bigl(-\sigma _{1}i^{*} \bigl(1+R^{*}_{i}\bigr)- \sigma _{2}R^{*}_{i}w^{*} \bigr) \\ & {} +\frac{w^{*}i}{wi^{*}}\frac{\sigma _{1}(1+R^{*}_{i})}{\alpha }\bigl(- \beta w^{*}i^{*}- \delta R^{*}_{i}i^{*}-\epsilon w^{*}+ \alpha -\alpha w^{*}\bigr)- \sigma _{1}i^{*} \frac{R^{*}_{i}i}{R_{i}i^{*}} \\ & {} +\frac{R_{i}i}{R^{*}_{i}i^{*}}(\sigma _{2}-\sigma _{1})R^{*}_{i}i^{*}+ \frac{R_{i}w}{R^{*}_{i}w^{*}}\frac{\sigma _{2}}{\delta }\bigl(-\beta w^{*}i^{*}- \epsilon w^{*}+\alpha -\alpha \bigl(w^{*}+i^{*} \bigr)\bigr). \end{aligned}$$
(18)

Since \(E^{*}\) exists when \(\sigma _{1}>\sigma _{2}\), it follows that \(L'\leq 0\) if \(\beta >\alpha \). Hence, \(E^{*}\) is globally stable in Ω. □

4 Numerical experiments

In this section, some numerical examples are conducted with the aid of MATLAB. In particular, we consider two different specifications for the parameters to substantiate the analytical results in the previous section. All the simulations are based on a network size of \(N= 100\) computers and \(R_{N}=100\) removable devices. Consequently, the results are expressed in terms of percentage of the total network size.

Example 1

(Virus-free equilibrium point)

Let the parameters in model (3) be as follows: \(\epsilon =0.2\), \(\alpha =0.04\), \(\gamma =0.1\), \(\sigma _{1}=0.05\), \(\sigma _{2}=0.03\), \(\delta =0.03\), \(\beta =0.02\). Here, the threshold is \(R_{0}=0.1333\), which is less than unity. Therefore, the system in (3) will approach the virus-free equilibrium point \(E_{0}\) according to Theorem 1.

Figure 2 shows the time evolution of the compartments in model (3) for different initial conditions with parameters set as in Example 1. It can be seen that both the infected computers and the infected removable devices eventually tend to extinction. However, weak computers tend to an equilibrium level with time. Thus, the solution curves converge to the virus-free equilibrium \(E_{0}=(0.1667,0,0)\). Hence, the numerical solution agrees with the analytical result in Theorem 1.

Figure 2
figure 2

Time variation of compartments in model (3) with different initial conditions for \(R_{0}<1\)

Example 2

(Endemic equilibrium point)

In this example, we set the parameters to different values as follows: \(\epsilon =0.25\), \(\alpha =0.3\), \(\gamma =0.1\), \(\sigma _{1}=0.4\), \(\sigma _{2}=0.3\), \(\delta =0.5\), \(\beta =0.7\). Calculating the threshold, we obtain \(R_{0}=11.818>1\). Also, the condition \(\sigma _{1}>\sigma _{2}\) is satisfied, thus, the endemic equilibrium \(E^{*}\) exists. Moreover, the parameters fulfill the conditions: \(\gamma <\epsilon +\alpha \) (Theorem 2) and \(\beta >\alpha \) (Theorem 5), as a result, the system in (3) approximates the endemic equilibrium \(E^{*}\).

The time variation of the compartments in model (3) with parameters specified as in Example 2 is displayed in Fig. 3. We see that, for different initial conditions, the infected computers and removable devices eventually reach an equilibrium level that is higher than the equilibrium level reached by weak computers. Consequently, the solution curves converge to the endemic equilibrium \(E^{*}=(0.0777,0.6431,0.7544)\). Hence, the simulations are consistent with the qualitative analysis in Theorem 2.

Figure 3
figure 3

Time variation of compartments in model (3) with different initial conditions for \(R_{0}>1\)

4.1 Sensitivity analysis

The basic reproductive number \(R_{0}\) plays a very important role in the design of efficient control strategies. Specifically, if \(R_{0}\) is less than unity, the virus outbreak dies out. Consequently, a reduction in the numeric value of \(R_{0}\) will be the main goal of all control strategies. Therefore, it is crucial to take various actions to control the system parameters so that \(R_{0}\) is remarkably below one. To examine the sensitivity of \(R_{0}\) to the model’s parameters, we vary \(R_{0}\) with respect to one parameter each time. Accordingly, we have the following variations of \(R_{0}\), taking into account that \(0 <\alpha,\epsilon ,\gamma ,\delta ,\beta ,\sigma _{1} ,\sigma _{2} \leq 1\):

$$\begin{aligned}& \frac{\partial R_{0}}{\partial \beta } = \frac{\alpha }{\gamma (\epsilon +\alpha )}>0, \\& \frac{\partial R_{0}}{\partial \delta } = \frac{\sigma _{1}\alpha }{\gamma \sigma _{2}\epsilon }>0, \\& \frac{\partial R_{0}}{\partial \sigma _{1}} = \frac{\delta \alpha }{\gamma \sigma _{2}\epsilon }>0, \\& \frac{\partial R_{0}}{\partial \alpha } = \frac{\epsilon ^{2}\beta \sigma _{2}+\sigma _{1}\delta (\epsilon +\alpha )^{2}}{\gamma \sigma _{2}\epsilon (\epsilon +\alpha )^{2}}>0, \\& \frac{\partial R_{0}}{\partial \gamma } = \frac{-[\beta \alpha \sigma _{2}\epsilon +\sigma _{1}\delta \alpha (\epsilon +\alpha )]}{\gamma ^{2}\sigma _{2}\epsilon (\epsilon +\alpha )}< 0, \\& \frac{\partial R_{0}}{\partial \sigma _{2}} = \frac{-\sigma _{1}\delta \alpha }{\epsilon \gamma \sigma _{2}^{2}}< 0, \\& \frac{\partial R_{0}}{\partial \epsilon } = \frac{-[\sigma _{1}\delta \alpha (\epsilon +\alpha )(\alpha +1)+\sigma _{2}\alpha \beta \epsilon ^{2}]}{\gamma \sigma _{2}\epsilon ^{2}(\epsilon +\alpha ) ^{2}}< 0. \end{aligned}$$

In the above calculations, we considered that all the variables of \(R_{0}\) are constant except for one. We can see that \(R_{0}\) decreases with increasing γ, ϵ and \(\sigma _{2}\). On the other hand, \(R_{0}\) has a proportional increase relationship with the parameters: β, α, \(\sigma _{1}\) and δ. Figure 4 demonstrates these results. Hence, from the sensitivity analysis, we conclude that the basic parameters to control the outbreak of viruses are: ϵ, the rate of weak computers becoming strong; γ, the recovery rate of infected computers; and \(\sigma _{2}\), the recovery rate of infected removable devices. These parameters are primarily concerned with user awareness toward immunizing computers and removable devices against viruses. Therefore, it is essential to protect all computers with regularly updated anti-virus software that is scheduled to be scanned every day. Also, we are to check each removable device against viruses before use.

Figure 4
figure 4

The basic reproduction number \(R_{0}\) of model (3) versus the model’s parameters

Furthermore, Fig. 5 illustrates the impact of high user awareness on network security through the key parameters: γ, ϵ and \(\sigma _{2}\). We see that the increase in these parameters leads to a decrease in both i-node and \(R_{i}\)-node. Moreover, a further increase in the parameters yields the virus-free equilibrium. On the contrary, Fig. 6 demonstrates the effect of low user awareness on network security. Actions such as plugging a removable device into an infected computer and neglecting anti-virus updates are represented in the parameters: \(\sigma _{1}\) and α, that is, the infection rate of a removable device and the rate of strong computers becoming weak. The figure shows that the increase in these parameters rises the proportion of infected computers and removable devices. Higher values of \(\sigma _{1}\) and α lead to the endemic equilibrium. Finally, Fig. 7 depicts the effect of γ on the size of infected removable devices. We see that when the recovery rate of infected computers increases, a decrease in the percentage of infected removable devices results.

Figure 5
figure 5

Evolution of i and \(R_{i}\) for: (a) different values of ϵ with \(\alpha =0.56\), \(\gamma =0.3\), \(\sigma _{1}=0.1\), \(\sigma _{2}=0.3\), \(\delta =0.2\), \(\beta =0.4\), (b) different values of \(\sigma _{2}\) with \(\epsilon =0.28\), \(\alpha =0.56\), \(\gamma =0.3\), \(\sigma _{1}=0.1\), \(\delta =0.33\), \(\beta =0.4\), (c) different values of γ with \(\epsilon =0.28\), \(\alpha =0.56\), \(\sigma _{1}=0.1\), \(\sigma _{2}=0.3\), \(\delta =0.2\), \(\beta =0.4\)

Figure 6
figure 6

Evolution of i and \(R_{i}\) for: (a) different values of α with \(\epsilon =0.28 \), \(\gamma =0.3\), \(\sigma _{1}=0.1\), \(\sigma _{2}=0.3\), \(\delta =0.2\), \(\beta =0.4\), (b) different values of \(\sigma _{1}\) with \(\epsilon =0.28\), \(\alpha =0.56\), \(\gamma =0.7\), \(\sigma _{2}=0.3\), \(\delta =0.2\), \(\beta =0.4\)

Figure 7
figure 7

Time variation of the removable device compartment, \(R_{i}(t)\), with different values of γ (recovery rate)

Based on the sensitivity analysis and simulation results, the following suggestions are proposed to control the virus outbreak:

  • Installing effective anti-virus software and updating it regularly. This reduces the infectious rate β and the W-node conversion rate α. At the same time, it increases the rate ϵ and the recovery rate γ.

  • Filtering removable devices with anti-virus software and disconnecting them from the computer whenever unused. This minimizes the infectious rates \(\sigma _{1}\) and δ, while maximizing the recovery rate \(\sigma _{2}\).

5 Conclusion

In this paper, we extended the model of computer virus propagation in [6] by introducing two new compartments representing removable devices, because these devices play a crucial role in transmitting viruses. The model consists of two populations: computers and removable media. We aimed to investigate the influence of diverse levels of protection on the spread of viruses. We assumed that infected computers and infected removable devices posses infectivity. Up-to-date anti-virus software is powerful enough to keep computers immune from viruses. The model was analyzed qualitatively using the stability theory of nonlinear ordinary differential equations. As a result, two equilibrium points were produced: virus-free and endemic equilibrium points. The stability of both equilibrium points was examined. We found that when \(R_{0}<1\), the virus-free equilibrium was locally asymptotically stable, and when \(\sigma _{2}<\sigma _{1}\), it was globally asymptotically stable. On the other hand, when \(R_{0}>1\), \(\sigma _{2}<\sigma _{1}\), and \(\gamma <(\alpha +\epsilon )\), then the endemic equilibrium was locally asymptotically stable, and it is globally stable when \(\beta >\alpha \). Furthermore, we showed that numerical simulations were consistent with the analytical results. In addition, a sensitivity analysis was performed to understand the role of each parameter in dissipating viruses. We found that an increase in the parameters γ, ϵ and \(\sigma _{2}\) leads to a virus-free equilibrium, a state of high user awareness. However, the rise in the parameters \(\sigma _{1}\) and α leads to an endemic equilibrium that represents a decrease in user awareness.

In conclusion, user awareness plays an essential role in limiting the spread of viruses. Ongoing educational campaigns are recommended regarding the correct use of removable devices and the protection of computers with updated antivirus software.

References

  1. Crowe, J.: 10 must-know cybersecurity statistics for 2018 (2018). https://blog.barkly.com/2018-cybersecurity-statistics/

  2. Sobers, R.: 60 must-know cybersecurity statistics for 2018 (2018). https://www.varonis.com/blog/cybersecurity-statistics/

  3. Cohen, F.: Computer viruses. Theory and experiments. Comput. Secur. 6, 22–35 (1987)

    Article  Google Scholar 

  4. Murray, W.H.: The application of epidemiology to computer viruses. Comput. Secur. 7, 139–145 (1988)

    Article  Google Scholar 

  5. Kephart, J.O., White, S.R.: Directed-graph epidemiological models of computer viruses. In: IEEE Symposium on Security and Privacy, pp. 343–358 (1991)

    Google Scholar 

  6. Liu, W., Liu, C., Liu, X., Cui, S., Huang, X.: Modeling the spread of malware with the influence of heterogeneous immunization. Appl. Math. Model. 40, 3141–3152 (2016)

    Article  MathSciNet  Google Scholar 

  7. Gan, C., Yang, X., Zhu, Q., Liu, W.: A propagation model of computer virus with nonlinear vaccination probability. Commun. Nonlinear Sci. Numer. Simul. 19, 92–100 (2014)

    Article  MathSciNet  Google Scholar 

  8. Gan, C., Yang, X., Zhu, Q.: Global stability of a computer virus propagation model with two kinds of generic nonlinear probabilities. Discrete Dyn. Nat. Soc. 2014, 735327 (2014)

    Article  MathSciNet  Google Scholar 

  9. Yang, L., Yang, X., Zhu, Q., Wen, L.: A computer virus model with graded cure rates. Nonlinear Anal., Real World Appl. 14, 414–422 (2013)

    Article  MathSciNet  Google Scholar 

  10. Parsaei, M.R., Javidan, R., Kargar, N.S., Nik, H.S.: On the global stability of an epidemic model of computer viruses. Theory Biosci. 136, 169–178 (2017)

    Article  Google Scholar 

  11. Khanh, N.H., Huy, N.B.: Stability analysis of a computer virus propagation model with antidote in vulnerable system. Acta Math. Sci. 1, 49–61 (2016)

    Article  MathSciNet  Google Scholar 

  12. Qin, P.: Analysis of a model for computer virus transmission. Math. Probl. Eng. 2015, 720696 (2015)

    MathSciNet  MATH  Google Scholar 

  13. Khanh, N.H.: Dynamical analysis and approximate iterative solutions of an antidotal computer virus model. Int. J. Appl. Comput. Math. 3, S829–S841 (2017)

    Article  MathSciNet  Google Scholar 

  14. Khanh, N.H.: The spread of computer virus under the effect of external computers. Nonlinear Dyn. 73, 1615–1620 (2013)

    Article  MathSciNet  Google Scholar 

  15. Gan, C., Yang, M., Zhang, Z., Liu, W.: Global dynamics and optimal control of a viral infection model with generic nonlinear infection rate. Discrete Dyn. Nat. Soc. 2017, 7571017 (2017)

    Article  MathSciNet  Google Scholar 

  16. Zhu, Q., Yang, X., Yang, L.X., Zhang, X.: A mixing propagation model of computer viruses and countermeasure. Nonlinear Dyn. 3, 1433–1441 (2013)

    Article  MathSciNet  Google Scholar 

  17. Chen, L., Carley, K.: The impact of countermeasure propagation on the prevalence of computer viruses. IEEE Trans. Cybern. 34, 823–833 (2004)

    Article  Google Scholar 

  18. Upadhyay, R.K., Singh, P.: Modeling and control of computer virus attack on a targeted network. Phys. A, Stat. Mech. Appl. 538, 122617 (2020)

    Article  MathSciNet  Google Scholar 

  19. Schwarz, R.: Malware protection. White paper (2010)

  20. Zhu, Q., Yang, X., Ren, J.: Modeling and analysis of the spread of computer virus. Commun. Nonlinear Sci. Numer. Simul. 17, 5117–5124 (2012)

    Article  MathSciNet  Google Scholar 

  21. Hu, Z., Wang, H., Liao, F., Ma, W.: Stability analysis of a computer virus model in latent period. Chaos Solitons Fractals 75, 20–28 (2015)

    Article  MathSciNet  Google Scholar 

  22. Yang, L.X., Yang, X.: A new epidemic model of computer viruses. Commun. Nonlinear Sci. Numer. Simul. 19, 1935–1944 (2014)

    Article  MathSciNet  Google Scholar 

  23. Erdogan, M.E., Uslu, K.: Stability analysis on effect of system restore on epidemic model for computer viruses. In: IFSCOM 2016, vol. 1, pp. 91–104 (2016)

    Google Scholar 

  24. Gan, C., Yang, X.: Theoretical and experimental analysis of the impacts of removable storage media and antivirus software on viral spread. Commun. Nonlinear Sci. Numer. Simul. 22, 167–174 (2015)

    Article  Google Scholar 

  25. Gan, C., Feng, Q., Zhu, Q., Zhang, Z., Zhang, Y., Xiang, Y.: Analysis of computer virus propagation behaviors over complex networks: a case study of Oregon routing network. Nonlinear Dyn. 100, 1725–1740 (2020)

    Article  Google Scholar 

  26. Watmough, J., van den Driessche, P.: Reproduction numbers and sub-threshold endemic equilibria for compartmental models of disease transmission. Math. Biosci. 180, 29–48 (2002)

    Article  MathSciNet  Google Scholar 

  27. Perko, L.: Differential Equations and Dynamic Systems. Springer, Berlin (1991)

    Book  Google Scholar 

  28. Martcheva, M.: An Introduction to Mathematical Epidemiology. Springer, Berlin (2015)

    Book  Google Scholar 

  29. Chavez, C.C., Feng, Z., Huang, W.: On the computation of R0 and its role in global stability. In: Math Approaches Emerg Reemerg Infect Dis Intro. IMA, vol. 125, pp. 229–250 (2002)

    Chapter  Google Scholar 

Download references

Acknowledgements

Not applicable.

Availability of data and materials

Not applicable.

Funding

Not applicable.

Author information

Authors and Affiliations

Authors

Contributions

SA and WB contributed to the design and implementation of the research, to the analysis of the results and to the writing of the manuscript. All authors read and approved the final manuscript.

Corresponding author

Correspondence to Salma M. Al-Tuwairqi.

Ethics declarations

Ethics approval and consent to participate

Not applicable.

Competing interests

The authors declare that they have no competing interests.

Consent for publication

Not applicable.

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Al-Tuwairqi, S.M., Bahashwan, W. A dynamic model of viruses with the effect of removable media on a computer network with heterogeneous immunity. Adv Differ Equ 2020, 260 (2020). https://doi.org/10.1186/s13662-020-02710-0

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s13662-020-02710-0

Keywords