Abstract

Wireless Internet of Things (IoT) devices densely populate our daily life, but also attract many attackers to attack them. In this paper, we propose a new Heterogeneous Susceptible-Exposed-Infected-Recovered (HSEIR) epidemic model to characterize the effect of heterogeneity of infected wireless IoT devices on malware spreading. Based on the proposed model, we obtain the basic reproduction number, which represents the threshold value of diffusion and governs that the malware is diffusion or not. Also, we derive the malware propagation scale under different cases. These analyses provide theoretical guidance for the application of defense techniques. Numerical simulations validated the correctness and effectiveness of theoretical results. Then, by using Pontryagin’s Minimum Principle, optimal control strategy is proposed to seek time-varying cost-effective solutions against malware outbreaks. More numerical results also showed that some control strategies, such as quarantine and vaccination, should be taken at the beginning of the malware outbreak immediately and become less necessary after a certain period. However, the repairing and fixing strategy, for example applying antivirus patches, would be keep on going constantly.

1. Introduction

The smart Internet of Things (IoT), such as intelligent transportation, smart homes, smart grid, and the next industrial revolution (i.e., Industry 4.0), are embedded in billions of wireless devices. Often, wireless devices rely heavily on the wireless connectivity such as WiFi, Bluetooth, and Zigbee [1, 2]. Wireless networks (WNs), as a kind of new information and communication network, connect the physical systems to cyber worlds. In addition, WNs have gained widespread application in IoT including healthcare, public safety, agriculture, and retail due to their low power consumption, flexible networking, unlimited potential, and relevant other features [35].

However, the development of IoT brings a seris of new challenges to cyber security. On the one hand, the low cost and short time-to-market nature of wireless IoT devices make them, such as sensors, actuators and smart appliances, expose to a high risk of malware infiltration. In addition, most IoT devices are left to operate on consumer premises without regular maintenance. On the other hand, the majority of wireless IoT devices are installed and controlled by consumers with limited security background. Even consumers may be willing to accept to install certain processes or applications on their devices in exchange for incentives without realizing the fact that this may cause attack [6]. In reality, there are hundreds of malware attacks against IoT that occur every year around the world, and each incident affects production and economy greatly.

Malware (Trojan, virus, and worms) is an intrusive software. It is designed for a variety of criminal and hostile activities such as spying, threatening for monetary benefit, or controlling a large population of devices [7]. The academic research focuses on the spread of malware from the following perspectives: detection technology and mathematical modeling [812]. Based on multidimensional hybrid features extraction and analysis, Li and Xu [8] proposed a novel method to detect Android malware. In [9], Du and Liu proposed a packet-based malicious payload detection and identification algorithm using the deep learning method. However, the above method to detect the malware cannot predict malware spread scale and explore the key factors affecting the spread of malware. In the wireless IoT network, malware hostile activities naturally extend to physical threats and can be launched by one wireless device and spread to another device [13]. Propagation vectors such as services or functions may be used to propagate malware due to different vulnerabilities that emerge across different technologies such as IoT or IPv6 and the lack of experience in technical implementation. As a result, the propagation process is difficult to detect and observe. Based on our understanding of the technology and experience with historic attacks, modeling approaches are used to predict propagation dynamics and to explore influential factors [1419]. Recently, Chen and Cheng [20] proposed a novel traffic-aware patching scheme to select important intermediate nodes to patch and apply this to the IoT system with limited patching resources and response time constraint. On the basis of the difference of intelligent device’s dissemination capacity and discriminant ability, Li and Cui [21] discussed a dynamic malware propagation model to study the malware propagation in industrial Internet of Things. Considering both the heterogeneity and mobility of sensor nodes, Shen and Zhou [22] proposed a heterogeneous and mobile vulnerable-compromised-quarantined-patched-scrapped (VCQPS) model. In [7], Elsawy et al. defined spatial firewalls to control malware spreading in Wireless Network. Gao and Zhuang [23] studied worm propagation with saturated incidence and strategies of both vaccination and quarantine. In [6], Farooq and Zhu proposed an analytical model to study the D2D propagation of malware in wireless IoT networks.

Motivated by the abovementioned research, we propose a Heterogeneous Susceptible-Exposed-Infected-Recovered (HSEIR) model, which characterizes the influence of infected wireless devices’ heterogeneity in malware spreading. In our model, a node is a wireless IoT device. And the ability of wireless devices to spread the malware is different due to the factors of its topology links and processing capacity. As far as we know, little work has been done on the heterogeneity of wireless devices. In this work, we make contributions as follows:(1)We propose a HSEIR model. To the best of our knowledge, this is the first work for disclosing dynamics of malware propagation in the wireless IoT network.(2)We derive differential equations of the HSEIR model, which can reflect the number of wireless devices belonging to different states varying with time.(3)We discuss the malware propagation threshold by the proposed model. We also proof the stability of equilibrium, upon which we can judge the malware spread scale.(4)We study control strategy in two aspects. One is optimal control to minimize the number of infected devices (including exposed and infected nodes) and the corresponding cost of the strategies during the process of spreading. And, the other one is to control the malware illness upon the malware propagation threshold.

The remainder of this paper is organized as follows. In Section 2, we establish the HSEIR model in IoT wireless networks. In Section 3, we analyze the dynamics of the proposed model. In Section 4, control strategies by Pontraygin’s Minimum Principle and malware propagation threshold are discussed. Section 5 gives the details of numerical simulation of the model. Conclusions and discussion are given in Section 6.

2. The HSEIR Model

In this section, we describe the novel HSEIR model, which considers the heterogeneity of infected wireless devices in malware spreading.

2.1. The States and State Transitions in HSEIR Model

In our model, we assume that the proportion of wireless devices infected by the nodes with weak spreading capabilities is and the proportion of wireless devices infected by the nodes with strong spreading capabilities is . The total device population is divided into four different compartments (susceptible (S), exposed (E), infected (I), and recovered (R)). Every device may be in one of such compartments at time tick .(i)S: the wireless devices in this compartment have not been infected by malware, but they are vulnerable to malware M(ii)E: the wireless devices in this compartment are exposed to the attacks but do not exhibit due to the latent time requirement(iii)I: the wireless devices in this compartment are infected and may infect other devices(iv)R: the wireless devices in this compartment are vaccinated and are immune to

We make the following assumptions:(1)Once the wireless devices are vaccinated, they will be permanently immune and cannot be infected by any more(2)The nature death rate is extremely small. In reality, the service life of the wireless device is far more than the time from malware appearance to the end of the attack

At time , all nodes are in the susceptible compartment. Once the malware intrudes into the system, a node may move from one state to another, as shown in Figure 1, which illustrates the state transition diagram of a node. Table 1 shows the parameters involved in this paper. The nodes changing their states upon the following rules:(i)Due to the partial efficiency of the vaccine, there is only fraction of the vaccinated susceptible nodes that move to R state per unit time(ii)The remaining susceptible devices move to the exposed state, and the new exposed devices at time are given by the expression , where and stand for the transmission coefficient of devices with weak spreading capability and strong capability and and represent the fraction of susceptible devices targeted by devices with weak spreading capability and strong capability, respectively(iii)The exposed devices transit into I with when the malware begins actively, where is the mean latent period(iv)Using some sufficient defense mechanisms, a portion of the exposed, infectious devices can recover at rates and , respectively:

3. Model Analysis

In this section, we firstly calculate the malware-free, malware-existence equilibria and the basic reproduction number of the HSEIR model. Then, we proof the local and global stability of each equilibria.

3.1. Equilibria and Basic Reproduction Number

Summing the right hand of (1), we haveand after a simple computation, we have

Then, we have

One can verify that the positive cone

Denote that the region is the positively invariant of system (1).

Next, we calculate the basic reproduction number by the method of van den Driessche and Watmough [24]. is a threshold value of the epidemiological model, which indicates the number of wireless IoT devices infected by an infectious device during its average period of illness at the beginning of the disease, when all are susceptible. It is easy to obtain that system (1) always has a malware-free equilibrium , and the associated next generation matrices are given by :

Then, the basic reproduction number R0 of the system is as:

It can be seen that system (1) has a malware-existence equilibrium in if , which satisfies that

3.2. Stability of Equilibrium

Lemma 1. The malware-free equilibrium of system (1) is locally asymptotically stable if , and unstable if .

Proof. The Jacobian matrix of system (1) at isand its characteristic equation isIt is clear that (10) has two negative roots and , and other roots of (10) are determined by the following equation:If , all roots of (11) have negative real parts, so all roots of (10) have negative real parts. Therefore, the malware-free equilibrium is locally asymptotically stable by the Hurwitz criterion. If , the root of (11) has both positive and negative real parts, so the malware-free equilibrium is unstable.

Theorem 1. The malware-free equilibrium of (1) is globally asymptotically stable if , and unstable if .

Proof. Consider the Lyapunov function asThen,Thus, when . The equality is holding if and only if , , and or and , or and . If , , and , then the only compact invariant subset in the set is the singleton ; if and , the only compact invariant subset in the set is also the singleton ; if and , the only compact invariant subset in the set is also the singleton ; therefore, the largest invariant subset in the set also is the singleton . If , we have . Finally, taking into account and LaSalle invariance principle [25], the result follows. This means that the malware will disappear with time varying if the basic reproduction number is less than one.

Theorem 2. The malware-existence equilibrium of (1) is globally asymptotically stable if , and unstable if .

Proof. For system (1), we consider the following Lyapunov function:Then, the derivative of along solutions of system (1) isBy direct calculations, we have thatthenFor the function , we know that if , , and leads to . Therefore, we can obtain , and the equality is holding if and only if , , , and . It means that the largest invariant subset, where , is . By LaSalle’s Invariance Principle [25], is globally asymptotically stable when . This means that the malware will be outbreak if the basic reproduction number is more than one.

4. Control Strategy

In this section, we investigate the control strategy from two aspects. Firstly, an optimal control model has been proposed by Pontraygin’s Minimum Principle. Secondly, we give some control strategies to prevent the malware outbreak from the explicit expression of the malware spreading threshold value.

4.1. Optimal Control Strategy Formulation

We aim to minimize the number of infected devices (including exposed and infected nodes) and the corresponding cost of the strategies during the process of spreading. Four control functions , , , and , where . In particular, means no control strategy and means the maximal use of control strategy. The meanings of are shown as follows:(1) is used to represent the quarantine strategy that aims to reduce the contact between wireless devices with weak spreading capabilities and susceptible devices at time (2) is used to represent the quarantine strategy that aims to reduce the contact between wireless devices with strong spreading capabilities and susceptible devices at time (3) is used to represent the vaccination strategy that can improve the immunocompetence of susceptible devices at time (4) is used to represent the repairing and fixing strategy that can increase the recovery rate of infected wireless devices at time

The transmission dynamics of the optimal control model is formulated as

The main purpose is to minimize the number of infected devices at a minimum cost. And, as a consequence, we consider the objective functional:where the parameters , , , and are the weight constants for the control strategies. , , , and describe the cost associated with quarantine strategy, quarantine strategy, vaccination, and repairing and fixing strategies, respectively. Our aim is to seek the optimal control functions , such thatwhere is the control function set defined as .

Next, we discuss the existence of an optimal control functions by Fleming and Rishel [26].(1)The set of controls and the corresponding state variables are nonempty(2)The admissible control set is convex and closed(3)The right hand side of the optimal control system is bounded by a linear function in the state and control variables(4)The integrand of the objective function, , is convex(5)There exist constants , , and such that the integrand of the objective cost functional is convex and satisfied

Theorem 3. An optimal control pair (, , , and ) subject to system (18) exists if the following conditions hold:

Proof. By the results of [27], it is easy to check that the set of controls and corresponding state variables exist. By the definition, the control set is bounded and convex. Since optimal control system (18) is bilinear in , the right hand side of it satisfies condition 3 by using the boundedness of the solutions. Additionally, the integrand of objective function (19) is convex on the control set . because the state variables are bounded, considering and and are smaller enough.

In order to find the optimal control solution, we should describe the Lagrangian and Hamiltonian function of control system (18). Let , and the Lagrangian of the control system is

Then, we define the Hamiltonian function as

Next, we show the following theorem.

Theorem 4. Given an optimal control pair (, , , and ) and a solution (, , , and ) of corresponding control system (18), there exists an adjoint variable , , satisfyingwith the transversality conditionFurthermore, by the necessary condition, we havewhere

Proof. Calculating the partial derivatives of the five states of Hamiltonian function (22), respectively, we haveAccording to Pontryagin’s Maximum Principle [28], we obtainwhere . Hence, the adjoint variable , , satisfies (23).
Consider control system (18) with . By using the optimal necessary condition, we haveOn the interior of the control set space, we can obtain optimal control pair solution (25).

4.2. Control Strategy Based on the Basic Reproductive Number

There is an important epidemiological threshold in the epidemic model. As we discussed in Section 3, the threshold value plays a critical role to control the malware outbreak. Moreover, we obtain the local and global stability of the worm-free equilibrium when . Consequently, it is crucial to reduce the value of below 1, as a result of that to design the efficient security countermeasures to prevent malware outbreak.

From equation (19), we obtain , , , , , , , , , and , which mean that increases as the parameters , , , and increase or the parameters , , , , , and decrease. Figure 2 further describes the trend of over time with different parameters and . However, the value of and is usually constant because of the properties of wireless devices. Consequently, we control the following coefficients to make :(i)To decrease the transmission rate of infectious devices with weak and strong spreading capabilities by increasing the security background of the consumer(ii)To ensure configuration integrity and wipe out potential malicious software by taking into account an efficient defense mechanism

5. Experimental Validation for the HSEIR Model

In this section, we simulate the HSEIR model via MATLAB R2018a. We illustrate the theoretical results for system (1) by numerical simulations. Besides, by Forward-Backward Sweep Method, we obtain the optimal control strategies and show their effectiveness via comparing the trajectories of infected devices with optimal control and without optimal control.

5.1. Stability of Worm-Free and Worm-Existence Equilibrium

In the real world, there are not much data about malware attacks against the IoT wireless network. Following [15, 23], we attempt to choose appropriate parameter values from the Slammer worm. Assume model parameters , , , , , , , , , and . The initial numbers of susceptible, exposed, infected, and recovered devices are , , , and . By simple computing, we obtain that , the worm-free equilibrium . Thus, by Theorem 1, the malware-free equilibrium is globally asymptotically stable, which means that when the time goes to infinity, the exposed and infected nodes will approach to 0, while the susceptible and recovered nodes will be 468.75 and 282.15. Figure 3 shows that the stable behavior of malware-free equilibrium when . From Figure 3, we can see that there only exist susceptible nodes and recovered nodes, in accordance with the conclusion in Theorem 1.

Secondly, we set the infected rate and , and the other parameters are the same as above. By equations (7) and (8), we obtain that , and the malware-existence equilibrium . Besides, by Theorem 2, the malware-existence equilibrium is globally asymptotically stable, which means that when the time goes to infinity, the number of , , , and is 47.83, 84.18, 30.61, and 434.31, respectively. Figure 4 shows that the stable behavior of malware-existence equilibrium when . From Figure 4, we can see that infected nodes (including exposed and infectious), as well as susceptible and recovered nodes, persist at the endemic level.

5.2. Sensitivity Analysis of Infected Rate of Heterogeneity Devices

In this section, we do some sensitivity analysis of parameters , , and to observe the malware spreading scale. Firstly, we set , 0.4, 0.6, and 0.8, while keeping other parameters the same as those in 5.1. In Figure 5, we can see that when the proportion of wireless devices infected by weak spreading capabilities nodes decreases, that is, the proportion of wireless devices infected by strong spreading capabilities nodes increases, and the speed of malware spreading goes fast, which also causes an increase in the malware spreading scale.

Secondly, we assume 0.0001 as the interval for the infection rate of devices with weak spreading capabilities to compare the malware spreading scale, as shown in Figures 6 and 7. We can see that when , parameter has little effect on the scale and speed of malware transmission, but when , the larger the parameter , the faster the malware spreading and the larger of the number of infected nodes simultaneously. In Figures 8 and 9, let 0.01 be the interval for the infection rate of devices with strong spreading capabilities. The malware spreading speed as well as the spreading scale are increasing with increasing when and . Figure 5 shows that when the proportion of wireless devices that infected by strong spreading capability nodes increases, the number of infected wireless devices also increases. When the proportion of wireless devices infected by strong spreading capabilities nodes remains unchanged, the infected rate is the main factor in malware spreading. Thus, we must control the proportion of wireless devices with strong spreading capabilities and spread the patch to them as soon as possible.

5.3. Simulation of Optimal Control Strategies

In [29], Lenhart and Workman combined the Runge–Kutta fourth-order schemes and Forward-Backward Sweep Method to get the optimal solution. Based on their method, we conduct some numerical simulations to illustrate the effectiveness of the optimal control theoretic approach by using a MATLAB code. Considering the limitation of technology and cost, we set , , , , , , , and , and the initial numbers and the other parameters are taken as the same as those in V.A. As shown in Figure 10, we give the optimal control strategies. We observe that and , namely, quarantine strategies to infected wireless devices with weak spreading capabilities and strong spreading capabilities, could be reduced 3 seconds later from the beginning of the malware outbreak, which saves much of quarantine costs. This conclusion is consistent with the use of wireless IoT devices that disconnected from the wireless network for a long time are not allowed. Equally, after 8 seconds, , vaccination strategy, could be canceled gradually. Different from the abovementioned control strategies, , repairing and fixing strategy, for example, applying antivirus patches, would be keep going. In Figures 11 and 12, we illustrate the trend of the number of exposed devices and infected devices over time with control and without control, respectively. It is clear that the exposed devices, as well as the infected devices, with control are much smaller than those without control, and we suggest that early control strategies play a significant role on reducing the number of infected devices remarkably, which are also cost-effective optimal strategies.

6. Conclusions and Discussion

In this paper, we have proposed a new HSEIR model to investigate the malware propagation in wireless IoT networks, while considering the heterogeneity of infected wireless IoT devices. According to the ability of wireless devices on malware spreading, devices are divided into two different level groups in a fuzzy way. Based on the proposed model, we obtained the basic reproduction number , which represents the malware spreading threshold. Moreover, we analyzed the final size of malware propagation under special cases. Numerical simulations vividly illustrate the main results of stability analysis for system (1). Our simulations also show that when the proportion of wireless devices infected by strong spreading capabilities nodes increases, the malware spreading scale will also increase. In addition, the proportion of susceptible wireless devices infected by weak spreading capabilities or strong spreading capabilities devices also affects the malware propagation size. These results will provide some useful insights on preventing the global spread of malware.

Furthermore, aiming to minimize the costs of control strategy as well as minimize the infected mobile devices, we obtained the optimal control solution by the Forward-Backward Sweep Method. At the beginning of the malware outbreak, the strategies of quarantine and vaccination can effectively control the malware propagation. As for repairing and fixing strategy, it is the essential method to control malware spreading and reduce the death rate due to the malware attack. More numerical results show the effectiveness of the optimal control strategy. Also, the analysis of allows us to give the efficient malware-epidemic control strategies to prevent the malware propagation through IoT wireless networks, including decreasing the transmission rate of infectious devices with weak and strong spreading capabilities by increasing the security background of the consumer and to ensure configuration integrity and wipe out potential malicious software by taking into account an efficient defense mechanism.

Although we have investigated the issue of the heterogeneity of wireless IoT devices in malware spreading, there are still some problems in this paper to be further solved.(i)How to determine the transmission capability of the infected wireless devices more accurately is still a question. In this paper, we only divided them into two different level groups in a fuzzy way.(ii)It is significant to study the case where there is a limited supply of control strategies at each instant of time.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Authors’ Contributions

All authors contributed equally to this work.

Acknowledgments

This work was supported by the National Natural Science Foundation of China under Grant 61772478.