Security detection method and device of Internet of Things equipment and electronic equipment

By dynamically determining the sampling period and detection objects of IoT devices, security detection is performed on high-risk devices, which solves the problems of resource waste and low detection efficiency, and achieves efficient security policy updates and defense capability improvements.

CN118802293AActive Publication Date: 2024-10-18CHINA MOBILE GROUP ZHEJIANG +1

Patent Information

Application Number
CN202410388762.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-01
Publication Date
2024-10-18
Estimated Expiration
2044-04-01

AI Technical Summary

Technical Problem

In the case of a huge number of IoT devices, the existing technology collects data information centrally for security detection, resulting in a waste of resources and low detection efficiency. It cannot effectively target the attack risks of different devices, leading to waste of resources and missing data.

Method used

By obtaining the device type of the IoT device, the sampling period and detection objects are dynamically determined, and only high-risk devices are safely detected, reducing resource waste and improving detection efficiency.

Benefits of technology

It effectively reduces the waste of resources, improves the efficiency of security detection, conducts key detection for high-risk devices, and improves the security policy update and overall defense capabilities of IoT devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802293A_ABST
    Figure CN118802293A_ABST
Patent Text Reader

Abstract

The invention discloses a security detection method and device for Internet of Things equipment and electronic equipment, and particularly relates to the field of computers, and the method comprises the steps: obtaining the equipment types of P pieces of Internet of Things equipment; based on the device type, determining M sampling periods of the P Internet of Things devices; m is a positive integer; the same equipment type corresponds to the same sampling period, and different equipment types correspond to different sampling periods; determining at least one sampling period from the M sampling periods as a security detection period of the Internet of Things equipment; obtaining target data of the P Internet of Things devices in the security detection period; based on the obtained target data, determining Q detection objects in the P Internet of Things devices; q is smaller than P; and performing security detection on the Q detection objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computers, and specifically relates to a security detection method, device and electronic equipment for Internet of Things devices. Background Art

[0002] Generally speaking, in order to ensure the safe operation of the Internet of Things, it is necessary to perform security testing on each device in the Internet of Things.

[0003] The security detection scheme for the Internet of Things in related technologies is to install antivirus software or firewalls on each device in the Internet of Things. When running the antivirus software or firewall to perform security detection on each device in the Internet of Things, data information of each device with different configuration and operation status in the Internet of Things is collected centrally for security detection. However, when the number of Internet of Things devices is huge, this method needs to occupy a lot of resources to collect data information and perform security detection, which causes serious waste of resources. Summary of the invention

[0004] The embodiments of the present application provide a security detection method, device and electronic device for an Internet of Things device, which can solve the problem that related technologies cause serious waste of resources by centrally collecting data information for security detection of various devices in the Internet of Things.

[0005] In a first aspect, an embodiment of the present application provides a security detection method for an Internet of Things device, the method comprising:

[0006] Get the device types of P IoT devices;

[0007] Based on the device type, determine M sampling periods of the P IoT devices; M is a positive integer; the same device type corresponds to the same sampling period, and different device types correspond to different sampling periods;

[0008] Determine at least one sampling period from the M sampling periods as a security detection period of the Internet of Things device;

[0009] Obtain target data of the P IoT devices within the security detection cycle;

[0010] Based on the acquired target data, Q detection objects among the P IoT devices are determined; Q is less than P;

[0011] Perform security detection on the Q detection objects.

[0012] In a second aspect, an embodiment of the present application provides an IoT security detection device, the device comprising:

[0013] An acquisition module, used to acquire device types of P IoT devices;

[0014] A determination module, configured to determine M sampling periods of the P IoT devices based on the device type; M is a positive integer; the same device type corresponds to the same sampling period, and different device types correspond to different sampling periods;

[0015] The determination module is further used to determine at least one sampling period from the M sampling periods as a security detection period of the Internet of Things device;

[0016] The acquisition module is further used to acquire target data of the P IoT devices within the security detection period;

[0017] The determination module is further used to determine Q detection objects among the P IoT devices based on the acquired target data; Q is less than P;

[0018] A detection module is used to perform safety detection on the Q detection objects.

[0019] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.

[0020] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed, the steps of the method described in the first aspect are implemented.

[0021] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the steps of the method described in the first aspect.

[0022] At least one of the above technical solutions provided in the embodiments of the present application can achieve the following technical effects:

[0023] In an embodiment of the present application, the device types of P IoT devices are obtained; based on the device types, M sampling periods of the P IoT devices are determined; M is a positive integer; the same device type corresponds to the same sampling period, and different device types correspond to different sampling periods; at least one sampling period is determined from the M sampling periods as the security detection period of the IoT device; the target data of the P IoT devices within the security detection period is obtained; based on the obtained target data, Q detection objects in the P IoT devices are determined; Q is less than P; and security detection is performed on the Q detection objects. In this way, at least one sampling period is determined from the M sampling periods dynamically generated based on the device types of the P IoT devices as the security detection period of the IoT device, and based on the target data of the P IoT devices within the security detection period, Q detection objects less than P are determined in the P IoT devices and security detection is performed on the Q detection objects, so as to reduce the waste of resources caused by collecting data information and performing security detection by reducing the number of devices that need to be security detected. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a flow chart of a security detection method for an Internet of Things device provided in an embodiment of the present application.

[0025] Figure 2 It is a flow chart of a security detection method for an Internet of Things device provided in an embodiment of the present application.

[0026] Figure 3 It is a flow chart of a security detection method for an Internet of Things device provided in an embodiment of the present application.

[0027] Figure 4 It is a flow chart of a security detection method for an Internet of Things device provided in an embodiment of the present application.

[0028] Figure 5 It is a structural diagram of a security detection device for an Internet of Things device provided in an embodiment of the present application.

[0029] Figure 6 It is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0031] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0032] As discussed in the background technology section, when the relevant technology performs security checks on each device in the Internet of Things, the data information (target data) of each device with different configuration and operating conditions in the Internet of Things is centrally collected for security checks. However, when the number of Internet of Things devices is large, the centralized collection of data information (target data) according to the same collection cycle will cause the collection times of some Internet of Things devices to be too intensive, and the similarity of two consecutive data collections will be large, resulting in a waste of resources. Or, the collection times of some types of devices will be too sparse, and the period interval between two data information collections will be too long, resulting in missed data information.

[0033] In one embodiment of the present application, a security detection method for an Internet of Things device is provided. The method first obtains device types of P Internet of Things devices, determines M sampling periods of the P Internet of Things devices based on the device types (M is a positive integer, wherein the same device type corresponds to the same sampling period, and different device types correspond to different sampling periods), determines at least one sampling period from the M sampling periods as a security detection period for the Internet of Things device, obtains target data of the P Internet of Things devices within the security detection period, determines Q detection objects (Q is less than P) from the P Internet of Things devices based on the obtained target data, and performs security detection on the Q detection objects, thereby dynamically determining the security detection period of the Internet of Things device through the collection period determined based on the Internet of Things device type, and obtaining the target data of the P Internet of Things devices within the security detection period according to the dynamically determined security detection period of the Internet of Things device, thereby avoiding the problem of resource waste caused by the period of collecting target data for the Internet of Things devices being too intensive, or the problem of missing target data caused by the period of collecting target data being too sparse.

[0034] In addition, the relevant technology takes all devices in the Internet of Things as detection objects, but in reality, the possibility of different IoT devices being attacked is different. The possibility of IoT devices being attacked is related to the data collected by the IoT devices themselves. IoT devices that collect key data are more vulnerable to attacks; the possibility of IoT devices being attacked is also related to the degree of protection of IoT devices. IoT devices without any security measures are also more vulnerable to attacks. For IoT devices that are not vulnerable to attacks, the relevant technology will still detect them, which wastes detection resources and reduces detection efficiency.

[0035] In one embodiment of the present application, a security detection method for an Internet of Things device is provided. The method determines at least one sampling period as a security detection period for the Internet of Things device from M sampling periods dynamically generated based on device types of P Internet of Things devices, calculates a target risk value for each of the P Internet of Things devices based on target data of the P Internet of Things devices within the security detection period, obtains P target risk values, determines Q Internet of Things devices corresponding to Q target risk values ​​greater than a preset value among the P target risk values ​​as Q detection objects, performs security detection on the Q detection objects that are vulnerable to attack and have higher target risk values, and achieves the purpose of reducing the waste of resources caused by collecting data information and performing security detection by reducing the number of devices that need to be security detected.

[0036] The security detection method of the Internet of Things device provided in the embodiment of the present application can be applied to the 5G autonomous driving demonstration vehicle network security situation awareness platform. As a special type of network of the Internet of Things, the safe operation of the Internet of Vehicles is very important. The 5G autonomous driving demonstration vehicle network security situation awareness platform collects autonomous driving car attack events, assists decision makers in making decision responses through statistical analysis and situation awareness, realizes the update of security policies, and improves the overall defense capability of the vehicle. The security detection method of the Internet of Things device provided in the embodiment of the present application can be used to collect autonomous driving car attack events for situation awareness, and determines the security detection cycle based on the type of each Internet of Vehicles device in the Internet of Vehicles (the Internet of Vehicles is a specific Internet of Things, and the security detection method of the Internet of Things device provided in the embodiment of the present application can be used for the vehicle network, and can also be used for other Internet of Things). Determine whether to perform a security detection on it according to the plaque information of each Internet of Vehicles device in the current security detection cycle. Finally, the security of the Internet of Vehicles is detected on the detection object to form situation awareness, thereby assisting decision makers in making decision responses, realizing the update of security policies, and improving the overall defense capability of the vehicle.

[0037] It should be understood that the security detection methods for all IoT devices provided in the embodiments of the present application can be executed by an electronic device. The electronic device may include a server. The server may be a single server or a server cluster. In the case where the server is a server cluster, in the security detection method for IoT devices provided in the present application, obtaining the device type of the IoT device, determining the sampling period of the IoT device, determining the security detection period of the IoT device, obtaining the target data of the IoT device within the security detection period, determining the detection object, and performing security detection on the detection object can be performed by the same server or by different servers. The embodiments of the present application do not limit the specific hardware deployment environment.

[0038] The following is a detailed description of the security detection method for all IoT devices provided in the embodiments of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0039] See also Figure 1 , Figure 1 A flowchart of a security detection method for an Internet of Things device provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method comprises the following steps:

[0040] Step 110: Obtain device types of P IoT devices, where P is a positive integer.

[0041] In the embodiment of the present application, the device types of the P IoT devices can be obtained by obtaining the device information of the P IoT devices. The device information of the IoT devices may include at least one of the device configuration information, location, data information type, device signal, etc. of the IoT devices.

[0042] Step 120: Based on the device type, determine M sampling periods for P IoT devices. Where M is a positive integer. In the embodiment of the present application, the same device type corresponds to the same sampling period, and different device types correspond to different sampling periods. For example, there are 5 IoT devices in the IoT, where the device types of device 1 and device 2 are both type a, then the sampling periods of device 1 and device 2 are determined to be the first sampling period, and the device type of device 3 is device type b, then the sampling period of device 3 is determined to be the second sampling period.

[0043] In the embodiment of the present application, the number of device types of P IoT devices is M, and the M device types correspond one-to-one to the M sampling periods.

[0044] Step 130: Determine at least one sampling period from the M sampling periods as the security detection period of the IoT device. Specifically, a maximum sampling period may be selected from the M sampling periods; and the maximum sampling period may be determined as the security detection period of the IoT device.

[0045] Step 140: Obtain target data of P IoT devices within the security detection cycle. In the embodiment of the present application, after determining the security detection cycle of the IoT device, obtain target data of each of the P IoT devices within the security detection cycle, such as average CPU utilization, storage space occupancy, vulnerability impact value, number of vulnerabilities, and other information.

[0046] Step 150: Based on the acquired target data, determine Q detection objects among P IoT devices, where Q is less than P.

[0047] In an embodiment of the present application, the target risk value of each of P IoT devices can be calculated based on the acquired target data to obtain P target risk values; Q target risk values ​​greater than a preset value are determined from the P target risk values; and the Q IoT devices corresponding to the Q target risk values ​​are determined as Q detection objects.

[0048] Step 160: Perform security detection on the Q detection objects.

[0049] In an embodiment of the present application, after Q detection objects are determined from P IoT devices, the flow data of each of the Q detection objects is obtained, and the flow data of each of the Q detection objects is detected to determine whether the flow data is abnormal. If it is abnormal, it means that the detection object has a security risk, and an early warning is issued.

[0050] In an embodiment of the present application, after Q detection objects are determined from P IoT devices, the flow information of the Q detection objects can be obtained. The flow information is all the downlink and uplink data of the detection object, such as data packet information and network information, wherein the data packet information describes the relevant information of each data packet, such as data packet identification, data direction (uplink), ports involved, IP addresses, etc.; network information describes the overall situation during data transmission, such as packet loss rate, maximum number of connections at the same time, and flow situation. All data packets of a detection object are used as the flow information of the detection object, and the information of each data packet is used as a piece of data in the collected data. For example, for a data packet A, the collected information is: the identification of data packet A, source IP, destination IP, source port, destination port, packet size, transmission start time, transmission end time, packet loss rate, maximum number of connections at the same time, flow situation, etc. Perform security detection on the flow data of the detection object. If the flow data of the detection object is abnormal, it means that the detection object has a security risk and an early warning is issued.

[0051] In an embodiment of the present application, the device types of P IoT devices are obtained; based on the device types, M sampling periods of the P IoT devices are determined; M is a positive integer; the same device type corresponds to the same sampling period, and different device types correspond to different sampling periods; at least one sampling period is determined from the M sampling periods as the security detection period of the IoT device; the target data of the P IoT devices within the security detection period is obtained; based on the obtained target data, Q detection objects in the P IoT devices are determined; Q is less than P; and security detection is performed on the Q detection objects. In this way, at least one sampling period is determined from the M sampling periods dynamically generated based on the device types of the P IoT devices as the security detection period of the IoT device, and based on the target data of the P IoT devices within the security detection period, Q detection objects less than P are determined in the P IoT devices and security detection is performed on the Q detection objects, so as to reduce the waste of resources caused by collecting data information and performing security detection by reducing the number of devices that need to be security detected.

[0052] In one embodiment of the present application, the number of device types of P IoT devices is M, and the M device types correspond to the M sampling periods one by one. For example, there are 5 IoT devices in the IoT, and the number of device types of the 5 IoT devices is 4, where the device types of device 1 and device 2 are both type a, the device type of device 3 is device type b, the device type of device 4 is device type c, and the device type of device 5 is device type d. Determine 4 sampling periods of the 5 IoT devices, where device type a of device 1 and device 2 corresponds to the first sampling period, device type b of device 3 corresponds to the second sampling period, device type c of device 4 corresponds to the third sampling period, and device type d of device 5 corresponds to the fourth sampling period.

[0053] See also Figure 2 , Figure 2 A flowchart of a security detection method for an Internet of Things device provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the method comprises the following steps:

[0054] Step 210: Obtain device types of P IoT devices, where P is a positive integer.

[0055] In the embodiment of the present application, the device types of the P IoT devices can be obtained by obtaining the device information of the P IoT devices. The device information of the IoT devices may include at least one of the device configuration information, location, data information type, device signal, etc. of the IoT devices.

[0056] Step 220: Based on the device type, determine M sampling periods for P IoT devices. Where M is a positive integer. In the embodiment of the present application, the same device type corresponds to the same sampling period, and different device types correspond to different sampling periods. For example, there are 5 IoT devices in the IoT, where the device types of device 1 and device 2 are both type a, then the sampling periods of device 1 and device 2 are determined to be the first sampling period, and the device type of device 3 is device type b, then the sampling period of device 3 is determined to be the second sampling period.

[0057] In the embodiment of the present application, the number of device types of P IoT devices is M, and the M device types correspond one-to-one to the M sampling periods.

[0058] Step 230: Select a maximum sampling period from the M sampling periods.

[0059] Step 240: Determine the maximum sampling period as the security detection period of the IoT device.

[0060] In the embodiment of the present application, the security detection period of the IoT device can be determined by the following formula:

[0061] ΔT=max{ΔT 1 ,ΔT 2 ,ΔT 3 ...ΔT M}

[0062] Among them, ΔT is the security detection cycle of IoT devices, ΔT 1 is the collection period corresponding to the first device type among P IoT devices, ΔT 2 is the collection period corresponding to the second device type among P IoT devices, ΔT 3 is the collection period corresponding to the third device type among P IoT devices, ΔT M It is the collection period corresponding to the Mth device type among P IoT devices.

[0063] Step 250: Obtain target data of P IoT devices within the security detection cycle. In the embodiment of the present application, after determining the security detection cycle of the IoT device, obtain target data of each of the P IoT devices within the security detection cycle, such as average CPU utilization, storage space occupancy, vulnerability impact value, number of vulnerabilities, and other information.

[0064] Step 260: Based on the acquired target data, determine Q detection objects among P IoT devices, where Q is less than P.

[0065] In an embodiment of the present application, the target risk value of each of P IoT devices can be calculated based on the acquired target data to obtain P target risk values; Q target risk values ​​greater than a preset value are determined from the P target risk values; and the Q IoT devices corresponding to the Q target risk values ​​are determined as Q detection objects.

[0066] Step 270: Perform security checks on the Q detection objects.

[0067] In an embodiment of the present application, after Q detection objects are determined from P IoT devices, the flow data of each of the Q detection objects is obtained, and the flow data of each of the Q detection objects is detected to determine whether the flow data is abnormal. If it is abnormal, it means that the detection object has a security risk, and an early warning is issued.

[0068] In an embodiment of the present application, the security detection cycle of the Internet of Things devices is dynamically determined by comprehensively determining M collection cycles determined by M types of Internet of Things devices among P Internet of Things devices, and the target data of the P Internet of Things devices within the security detection cycle are obtained according to the dynamically determined security detection cycle of the Internet of Things devices, thereby avoiding the problem of waste of resources caused by the cycle of collecting target data for the Internet of Things devices being too intensive, or the problem of missing target data caused by the cycle of collecting target data being too sparse.

[0069] In one embodiment of the present application, the M types of devices include sensing devices; the M sampling periods include a first sampling period. In the embodiment of the present application, the sampling period corresponding to the sensing devices in the P IoT devices is the first sampling period, and the first sampling period of the sensing devices can be calculated according to the following formula:

[0070]

[0071] Where, ΔT 1 is the first sampling period, T0 is a predefined standard period, i represents the i-th sensing device among the P IoT devices, I is the total number of sensing devices among the P IoT devices, represents the security vulnerability impact value of the i-th sensing device among the P IoT devices, represents the number of security vulnerabilities of the i-th sensing device among the P IoT devices, The function is used to solve the number of types of data collected by the sensing devices in the P IoT devices. represents the single upload data volume of the i-th sensing device among the P IoT devices, represents the data transmission period of the i-th sensing device among the P IoT devices; i and P are both positive integers; i is less than or equal to P.

[0072] In the embodiment of the present application, the perception type of the perception device can be determined Such as temperature, humidity, image, etc. This type is consistent with the type of IoT device. For example, if the perception device is a microphone, then the data type it collects is sound. Regardless of the type of microphone, whether it collects human voice or environmental sound, it will be classified as sound. The type of IoT device is the attribute of the IoT device itself. Therefore, by reading the attributes of the perception IoT device, the perception type of the perception device can be obtained. For sensing IoT devices, their main work is to collect data and transmit it to the server. This can be achieved by real-time transmission or periodic transmission. The data transmission period of the sensing device can be obtained. If it is real-time transmission, the data transmission period is a preset minimum value. The data transmission period is set when the sensing device is configured. Therefore, the configuration data of the sensing device can be read to obtain the data transmission period. Can determine the impact value of security vulnerabilities of perception devices and the number of security vulnerabilities Among them, security vulnerabilities are security vulnerabilities configured by the perception device itself, such as software vulnerabilities, etc. This number can be obtained through the factory parameters of the perception device and the vulnerability information released later. If a certain software configured at the factory is later announced to have a certain security vulnerability, then the security vulnerability data of the perception device is considered to be increased by 1. In addition, when the security vulnerabilities of perception devices are announced, the security vulnerabilities will be described, and the impact of the security vulnerabilities will be described. The impact of the security vulnerabilities can be read and the security vulnerability impact value of the perception device can be calculated. In addition, security vulnerabilities affect and the number of security vulnerabilities It can also be obtained through existing security vulnerability detection programs. For example, the vulnerability detection program accesses the sensing device through the IoT network or other networks, performs vulnerability detection on the system and program on the IoT device, and obtains the security vulnerability impact value. and the number of security vulnerabilities It can also determine the amount of data uploaded by each sensing device at a time Because the amount of data uploaded each time varies, the data volume of this application is a theoretical average. The unit data volume of the collected data can be obtained, multiplied by the collection period, and finally a theoretical single upload data volume can be obtained based on the preset compression rate. Based on the determined perception type of the perception device Data transmission cycle The first sampling period ΔT1 is calculated based on the security vulnerability impact value affect1 i, the number of security vulnerabilities vulnerability1 i, and the single upload data volume1 i.

[0073] In one embodiment of the present application, the M types of devices include application devices; the M sampling periods include a second sampling period. In the embodiment of the present application, the sampling period corresponding to the application devices in the P IoT devices is the second sampling period, and the second sampling period of the application devices can be calculated according to the following formula:

[0074]

[0075] Where, ΔT 2 is the second sampling period, T0 is a predefined standard period, j represents the jth application class device among the P IoT devices, and J is the total number of application class devices among the P IoT devices. represents the security vulnerability impact value of the jth application device among the P IoT devices; represents the number of security vulnerabilities of j application devices among the P IoT devices; j and P are both positive integers; j is less than or equal to P.

[0076] In the embodiment of the present application, the security vulnerability impact value of the application device can be determined and the number of security vulnerabilities Among them, security vulnerabilities are security vulnerabilities configured by the application class device itself, such as software vulnerabilities, etc. The number can be obtained through the factory parameters of the application class device and the vulnerability information released later. If a certain software configured at the factory is later announced to have a certain security vulnerability, then the security vulnerability data of the application class device is considered to be increased by 1. In addition, when the security vulnerabilities of the application class device are announced, the security vulnerabilities will be described, and the impact of the security vulnerabilities will be described. The impact of the security vulnerabilities can be read and the security vulnerability impact value of the application class device can be calculated. In addition, security vulnerabilities affect and the number of security vulnerabilities It can also be obtained through existing security vulnerability detection programs. For example, the vulnerability detection program accesses the application device through the IoT network or other networks, performs vulnerability detection on the system, program, etc. on the IoT device, and obtains the security vulnerability impact value. and the number of security vulnerabilities

[0077] In one embodiment of the present application, the M types of devices include network devices; the M sampling periods include a third sampling period. In the embodiment of the present application, the sampling period corresponding to the network devices in the P IoT devices is the third sampling period, and the third sampling period of the application devices can be calculated according to the following formula:

[0078]

[0079] Where, ΔT 3 is the third sampling period, T0 is a predefined standard period, k represents the kth network device in the P IoT devices, represents the security vulnerability impact value of the kth network device among the P IoT devices, represents the probability of the kth network device among the P IoT devices being attacked, It represents the total number of IoT devices among the P IoT devices that have established a connection relationship with the kth network device; j and P are both positive integers; j is less than or equal to P.

[0080] In the embodiment of the present application, the security vulnerability impact value of the network device can be determined Among them, security vulnerabilities are security vulnerabilities configured by the network device itself, such as software vulnerabilities, etc. This number can be obtained through the factory parameters of the network device and the vulnerability information released later. If a certain software configured at the factory is later announced to have a certain security vulnerability, then the security vulnerability data of the network device is considered to be increased by 1. In addition, when the security vulnerabilities of network devices are announced, the security vulnerabilities will be described, and the impact of the security vulnerabilities will be described. The impact of the security vulnerabilities can be read and the security vulnerability impact value of the network device can be calculated. In addition, security vulnerabilities affect It can also be obtained through existing security vulnerability detection programs. For example, the vulnerability detection program accesses the network device through the IoT network or other networks, performs vulnerability detection on the system and program on the IoT device, and obtains the security vulnerability impact value. Security vulnerability impact value of network equipment It can also be calculated by the Common Vulnerability Scoring System (CVSS) value of the security vulnerabilities of network devices. The Common Vulnerability Scoring System value includes vulnerability information of network operating systems or other software, which can be obtained by crawling with a crawler or by an existing vulnerability detection program. CVSS is an industry open standard designed to assess the severity of security vulnerabilities and help determine the urgency and importance of the required response. Its main purpose is to help people establish standards for measuring the severity of vulnerabilities so that people can compare the severity of vulnerabilities and determine the priority of handling them. CVSS values ​​are based on measurement results on a series of dimensions, which are called metrics. The maximum CVSS value is 10 and the minimum is 0. Security vulnerabilities of 7 to 10 are generally considered to be more serious, those between 4 and 6.9 are medium-level security vulnerabilities, and those between 0 and 3.9 are low-level security vulnerabilities. In specific implementation, the CVSS value can also be obtained based on a vulnerability detection program. For example, the vulnerability detection program accesses the network device through an IoT network or other network, performs vulnerability detection on the system, program, etc. on the network device, and after obtaining the vulnerability information, accesses a security vulnerability database (such as the U.S. National Vulnerability Database (NVD)) to obtain the CVSS value of each vulnerability. The embodiment of the present application can obtain the attack log of the network of each network device, and determine the attack probability according to the attack log. For example, for the kth network device, the characteristics of each attack and the attack time are determined according to the attack log of the kth network device, and the total number of attacks with the same characteristics is determined. For each attack, the probability of the attack occurring again is calculated. Specifically, for attack x, the probability of its occurrence again is P x It can be calculated by the following formula:

[0081]

[0082] Among them, n x is the total number of attacks with attack feature x, N is the total number of attacks, t x (1) is the time of the most recent attack of attack x, is the average time difference between two consecutive attacks on x, which can be obtained by the formula Determine the attack probability of the kth network device. In the embodiment of the present application, the total number of IoT devices that have established a connection relationship with the kth network device among the P IoT devices can also be determined. For the kth network device, the IoT devices that will establish communication connections with it may include network devices, perception devices, and application devices.

[0083] In one embodiment of the present application, the device types of P IoT devices are obtained, wherein the P IoT devices only include one type of devices among network devices, perception devices, and application devices. For example, all the P IoT devices are network devices. In this case, when the P IoT devices only include one device type, the sampling period corresponding to the device type to which the P IoT devices currently belong is determined, and the sampling period corresponding to the device type to which the P IoT devices currently belong is directly used as the security detection period of the P IoT devices. For example, when all the P IoT devices are network devices, the third sampling period corresponding to the network devices is calculated, and the third sampling period is directly used as the security detection period of the P IoT devices.

[0084] In one embodiment of the present application, the device types of P IoT devices are obtained, wherein the P IoT devices include any two types of devices among network devices, perception devices, and application devices. For example, there are perception devices and network devices among the P IoT devices. At this time, when the P IoT devices include any two types of devices among network devices, perception devices, and application devices, the sampling periods corresponding to all device types in the P IoT devices are determined, and a sampling period is determined from the sampling periods corresponding to all device types in the P IoT devices as the security detection period of the IoT devices. For example, when there are perception devices and network devices among the P IoT devices, the first sampling period corresponding to the perception devices and the third sampling period corresponding to the network devices are calculated, and a sampling period is determined from the first sampling period and the third sampling period as the security detection period of the IoT devices, such as taking the sampling period with the largest value between the first sampling period and the third sampling period as the security detection period of the IoT devices.

[0085] In one embodiment of the present application, the security detection period of the IoT device changes dynamically with the change of the device type of the device included in the IoT. For example, if all the devices in IoT A are network devices, then the third sampling period corresponding to the network devices is calculated and the third sampling period is used as the security detection period a of the devices in IoT A, because the security detection period a is determined by the third sampling period corresponding to the device type of the device in IoT A, so the security detection period a is a security detection period that is more in line with the actual situation of IoT A; but in another IoT B, there are perception devices and network devices, then the first sampling period corresponding to the perception devices and the third sampling period corresponding to the network devices are calculated, and a sampling period is determined in the first sampling period and the third sampling period as the security detection period of the IoT device, for example, the sampling period with the largest value in the first sampling period and the third sampling period is used as the security detection period b of the IoT device, at this time, the security detection period b is determined based on the first sampling period corresponding to the perception devices and the third sampling period corresponding to the network devices in IoT B, so the security detection period b is a security detection period that is more in line with the actual situation of IoT B.

[0086] See also Figure 3 , Figure 3 A flowchart of a security detection method for an Internet of Things device provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the method comprises the following steps:

[0087] Step 310: Obtain device types of P IoT devices, where P is a positive integer.

[0088] In the embodiment of the present application, the device types of the P IoT devices can be obtained by obtaining the device information of the P IoT devices. The device information of the IoT devices may include at least one of the device configuration information, location, data information type, device signal, etc. of the IoT devices.

[0089] Step 320: Based on the device type, determine M sampling periods for P IoT devices. Where M is a positive integer. In the embodiment of the present application, the same device type corresponds to the same sampling period, and different device types correspond to different sampling periods. For example, there are 5 IoT devices in the IoT, where the device types of device 1 and device 2 are both type a, then the sampling periods of device 1 and device 2 are determined to be the first sampling period, and the device type of device 3 is device type b, then the sampling period of device 3 is determined to be the second sampling period.

[0090] In the embodiment of the present application, the number of device types of P IoT devices is M, and the M device types correspond one-to-one to the M sampling periods.

[0091] Step 330: Determine at least one sampling period from the M sampling periods as the security detection period of the IoT device. Specifically, a maximum sampling period may be selected from the M sampling periods; and the maximum sampling period may be determined as the security detection period of the IoT device.

[0092] Step 340: Obtain target data of P IoT devices in the security detection cycle. In the embodiment of the present application, after determining the security detection cycle of the IoT device, obtain target data of each of the P IoT devices in the security detection cycle, such as average CPU utilization, storage space occupancy, vulnerability impact value, number of vulnerabilities, and other information.

[0093] Step 350: Based on the acquired target data, a target risk value of each of the P IoT devices is calculated to obtain P target risk values.

[0094] In the embodiment of the present application, the target risk value is calculated by the following formula:

[0095]

[0096] Among them, S u is the target risk value of the u-th IoT device among the P IoT devices, is the vulnerability impact of the u-th IoT device among the P IoT devices, is the average processing capacity of the u-th IoT device among the P IoT devices in the current security detection cycle, is the average processing capacity of the u-th IoT device among the P IoT devices in the historical security detection cycle, is the vulnerability impact value of the vth IoT device that establishes a connection relationship with the uth IoT device among the P IoT devices, V is the total number of IoT devices that establish a connection relationship with the uth IoT device; u, v, and V are all positive integers; u and v are both less than or equal to P, and u≠v; and the vulnerability impact value of the vth IoT device that establishes a connection relationship with the uth IoT device among the P IoT devices is calculated by the following formula in, is the vulnerability impact of the vth IoT device that establishes a connection relationship with the uth IoT device among the P IoT devices, δ is a flag value, if the vth IoT device that establishes a connection relationship with the uth IoT device is of the same device type as the uth IoT device, then δ=1, if they are different, δ=V.

[0097] Step 360: Determine Q target risk values ​​greater than a preset value from the P target risk values;

[0098] Step 370: Determine Q IoT devices corresponding to the Q target risk values ​​as Q detection objects;

[0099] Step 380: Perform security checks on the Q detection objects.

[0100] In an embodiment of the present application, after Q detection objects are determined from P IoT devices, the flow data of each of the Q detection objects is obtained, and the flow data of each of the Q detection objects is detected to determine whether the flow data is abnormal. If it is abnormal, it means that the detection object has a security risk, and an early warning is issued.

[0101] In an embodiment of the present application, at least one sampling period is determined as a security detection period for an IoT device from M sampling periods dynamically generated based on the device types of P IoT devices, and a target risk value for each of the P IoT devices is calculated based on target data of the P IoT devices within the security detection period to obtain P target risk values. Q IoT devices corresponding to Q target risk values ​​among the P target risk values ​​that are greater than a preset value are determined as Q detection objects, and security detection is performed on the Q detection objects that are vulnerable to attack and have higher target risk values, thereby reducing the waste of resources caused by collecting data information and performing security detection by reducing the number of devices that need to perform security detection.

[0102] See also Figure 4 , Figure 4 A flowchart of a security detection method for an Internet of Things device provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the method comprises the following steps:

[0103] Step 410: Obtain device types of P IoT devices, where P is a positive integer.

[0104] In the embodiment of the present application, the device types of the P IoT devices can be obtained by obtaining the device information of the P IoT devices. The device information of the IoT devices may include at least one of the device configuration information, location, data information type, device signal, etc. of the IoT devices.

[0105] Step 413: When the device type includes a sensing device, calculate a first sampling period of the sensing device.

[0106] In the embodiment of the present application, the sampling period corresponding to the sensing device among the P IoT devices is the first sampling period. The first sampling period of the sensing device can be calculated according to the following formula:

[0107]

[0108] Where, ΔT 1is the first sampling period, T0 is a predefined standard period, i represents the i-th sensing device among the P IoT devices, I is the total number of sensing devices among the P IoT devices, represents the security vulnerability impact value of the i-th sensing device among the P IoT devices, represents the number of security vulnerabilities of the i-th sensing device among the P IoT devices, The function is used to solve the number of types of data collected by the sensing devices in the P IoT devices. represents the single upload data volume of the i-th sensing device among the P IoT devices, represents the data transmission period of the i-th sensing device among the P IoT devices; i and P are both positive integers; i is less than or equal to P.

[0109] In the embodiment of the present application, the perception type of the perception device can be determined Such as temperature, humidity, image, etc. This type is consistent with the type of IoT device. For example, if the perception device is a microphone, then the data type it collects is sound. Regardless of the type of microphone, whether it collects human voice or environmental sound, it will be classified as sound. The type of IoT device is the attribute of the IoT device itself. Therefore, by reading the attributes of the perception IoT device, the perception type of the perception device can be obtained. For sensing IoT devices, their main work is to collect data and transmit it to the server. This can be achieved by real-time transmission or periodic transmission. The data transmission period of the sensing device can be obtained. If it is real-time transmission, the data transmission period is a preset minimum value. The data transmission period is set when the sensing device is configured. Therefore, the configuration data of the sensing device can be read to obtain the data transmission period. Can determine the impact value of security vulnerabilities of perception devices and the number of security vulnerabilities Among them, security vulnerabilities are security vulnerabilities configured by the perception device itself, such as software vulnerabilities, etc. This number can be obtained through the factory parameters of the perception device and the vulnerability information released later. If a certain software configured at the factory is later announced to have a certain security vulnerability, then the security vulnerability data of the perception device is considered to be increased by 1. In addition, when the security vulnerabilities of perception devices are announced, the security vulnerabilities will be described, and the impact of the security vulnerabilities will be described. The impact of the security vulnerabilities can be read and the security vulnerability impact value of the perception device can be calculated. In addition, security vulnerabilities affect and the number of security vulnerabilities It can also be obtained through existing security vulnerability detection programs. For example, the vulnerability detection program accesses the sensing device through the IoT network or other networks, performs vulnerability detection on the system and program on the IoT device, and obtains the security vulnerability impact value. and the number of security vulnerabilities It can also determine the amount of data uploaded by each sensing device at a time Because the amount of data uploaded each time varies, the data volume of this application is a theoretical average. The unit data volume of the collected data can be obtained, multiplied by the collection period, and finally a theoretical single upload data volume can be obtained based on the preset compression rate. Based on the determined perception type of the perception device Data transmission cycle Security Vulnerability Impact Value Number of security vulnerabilities and single upload data volume Calculate the first sampling period ΔT 1 .

[0110] Step 416: When the device type includes an application-type device, calculate a second sampling period of the application-type device.

[0111] In the embodiment of the present application, the sampling period corresponding to the application device in the P IoT devices is the second sampling period, and the second sampling period of the application device can be calculated according to the following formula:

[0112]

[0113] Where, ΔT 2 is the second sampling period, T0 is a predefined standard period, j represents the jth application class device among the P IoT devices, and J is the total number of application class devices among the P IoT devices. represents the security vulnerability impact value of the jth application device among the P IoT devices; represents the number of security vulnerabilities of j application devices among the P IoT devices; j and P are both positive integers; j is less than or equal to P.

[0114] In the embodiment of the present application, the security vulnerability impact value of the application device can be determined and the number of security vulnerabilities Among them, security vulnerabilities are security vulnerabilities configured by the application class device itself, such as software vulnerabilities, etc. The number can be obtained through the factory parameters of the application class device and the vulnerability information released later. If a certain software configured at the factory is later announced to have a certain security vulnerability, then the security vulnerability data of the application class device is considered to be increased by 1. In addition, when the security vulnerabilities of the application class device are announced, the security vulnerabilities will be described, and the impact of the security vulnerabilities will be described. The impact of the security vulnerabilities can be read and the security vulnerability impact value of the application class device can be calculated. In addition, security vulnerabilities affect and the number of security vulnerabilities It can also be obtained through existing security vulnerability detection programs. For example, the vulnerability detection program accesses the application device through the IoT network or other networks, performs vulnerability detection on the system, program, etc. on the IoT device, and obtains the security vulnerability impact value. and the number of security vulnerabilities

[0115] Step 419: When the device type includes a network device, calculate a third sampling period of the network device.

[0116] In the embodiment of the present application, the sampling period corresponding to the network device among the P IoT devices is the third sampling period, and the third sampling period of the application device can be calculated according to the following formula:

[0117]

[0118] Where, ΔT 3 is the third sampling period, T0 is a predefined standard period, k represents the kth network device in the P IoT devices, represents the security vulnerability impact value of the kth network device among the P IoT devices, represents the probability of the kth network device among the P IoT devices being attacked, It represents the total number of IoT devices among the P IoT devices that have established a connection relationship with the kth network device; j and P are both positive integers; j is less than or equal to P.

[0119] In the embodiment of the present application, the security vulnerability impact value of the network device can be determined Among them, security vulnerabilities are security vulnerabilities configured by the network device itself, such as software vulnerabilities, etc. This number can be obtained through the factory parameters of the network device and the vulnerability information released later. If a certain software configured at the factory is later announced to have a certain security vulnerability, then the security vulnerability data of the network device is considered to be increased by 1. In addition, when the security vulnerabilities of network devices are announced, the security vulnerabilities will be described, and the impact of the security vulnerabilities will be described. The impact of the security vulnerabilities can be read and the security vulnerability impact value of the network device can be calculated. In addition, security vulnerabilities affect It can also be obtained through existing security vulnerability detection programs. For example, the vulnerability detection program accesses the network device through the IoT network or other networks, performs vulnerability detection on the system and program on the IoT device, and obtains the security vulnerability impact value. Security vulnerability impact value of network equipment It can also be calculated by the Common Vulnerability Scoring System (CVSS) value of the security vulnerabilities of network devices. The Common Vulnerability Scoring System value includes vulnerability information of network operating systems or other software, which can be obtained by crawling with a crawler or by an existing vulnerability detection program. CVSS is an industry open standard designed to assess the severity of security vulnerabilities and help determine the urgency and importance of the required response. Its main purpose is to help people establish standards for measuring the severity of vulnerabilities so that people can compare the severity of vulnerabilities and determine the priority of handling them. CVSS values ​​are based on measurement results on a series of dimensions, which are called metrics. The maximum CVSS value is 10 and the minimum is 0. Security vulnerabilities of 7 to 10 are generally considered to be more serious, those between 4 and 6.9 are medium-level security vulnerabilities, and those between 0 and 3.9 are low-level security vulnerabilities. In specific implementation, the CVSS value can also be obtained based on a vulnerability detection program. For example, the vulnerability detection program accesses the network device through an IoT network or other network, performs vulnerability detection on the system, program, etc. on the network device, and after obtaining the vulnerability information, accesses a security vulnerability database (such as the U.S. National Vulnerability Database (NVD)) to obtain the CVSS value of each vulnerability. The embodiment of the present application can obtain the attack log of the network of each network device, and determine the attack probability according to the attack log. For example, for the kth network device, the characteristics of each attack and the attack time are determined according to the attack log of the kth network device, and the total number of attacks with the same characteristics is determined. For each attack, the probability of the attack occurring again is calculated. Specifically, for attack x, the probability of its occurrence again is P x It can be calculated by the following formula:

[0120]

[0121] Among them, n x is the total number of attacks with attack feature x, N is the total number of attacks, t x (1) is the time of the most recent attack of attack x, is the average time difference between two consecutive attacks on x, which can be obtained by the formula Determine the attack probability of the kth network device. In the embodiment of the present application, the total number of IoT devices that have established a connection relationship with the kth network device among the P IoT devices can also be determined. For the kth network device, the IoT devices that will establish communication connections with it may include network devices, perception devices, and application devices.

[0122] Step 422: Select a maximum sampling period from the first sampling period, the second sampling period, and the third sampling period.

[0123] Step 425: Determine the maximum sampling period as the security detection period of the IoT device.

[0124] In the embodiment of the present application, the security detection period of the IoT device can be determined by the following formula:

[0125] ΔT=max{ΔT 1 ,ΔT 2 ,ΔT 3}

[0126] Among them, ΔT is the security detection cycle of IoT devices, ΔT 1 is the first sampling period of P IoT devices, ΔT 2 is the second sampling period of P IoT devices, ΔT 3 It is the third sampling period among P IoT devices.

[0127] Step 428: Obtain target data of P IoT devices in the security detection cycle. In the embodiment of the present application, after determining the security detection cycle of the IoT device, obtain target data of each of the P IoT devices in the security detection cycle, such as average CPU utilization, storage space occupancy, vulnerability impact value, number of vulnerabilities, and other information.

[0128] Step 431: Based on the acquired target data, a target risk value of each of the P IoT devices is calculated to obtain P target risk values.

[0129] In the embodiment of the present application, the target risk value is calculated by the following formula:

[0130]

[0131] Among them, S u is the target risk value of the u-th IoT device among the P IoT devices, is the vulnerability impact of the u-th IoT device among the P IoT devices, is the average processing capacity of the u-th IoT device among the P IoT devices in the current security detection cycle, is the average processing capacity of the u-th IoT device among the P IoT devices in the historical security detection cycle, is the vulnerability impact value of the vth IoT device that establishes a connection relationship with the uth IoT device among the P IoT devices, V is the total number of IoT devices that establish a connection relationship with the uth IoT device; u, v, and V are all positive integers; u and v are both less than or equal to P, and u≠v; and the vulnerability impact value of the vth IoT device that establishes a connection relationship with the uth IoT device among the P IoT devices is calculated by the following formula in, is the vulnerability impact of the vth IoT device that establishes a connection relationship with the uth IoT device among the P IoT devices, δ is a flag value, if the vth IoT device that establishes a connection relationship with the uth IoT device is of the same device type as the uth IoT device, then δ=1, if they are different, δ=V.

[0132] Step 434: Determine Q target risk values ​​greater than a preset value from the P target risk values. For example, as described in step 431, the target risk values ​​of the three IoT devices are calculated, where the target risk value of device A is 20, the target risk value of device B is 60, and the target risk value of device C is 80. The preset value is 75, and the target risk value of device C whose target risk value is greater than the preset value 75 is screened out.

[0133] Step 437: Q IoT devices corresponding to the Q target risk values ​​are determined as Q detection objects. For example, as described in the example below step 434, after the target risk value of device C with a target risk value greater than the preset value 75 is screened out, device C with a target risk value greater than the preset value 75 is determined as the detection object.

[0134] Step 440: Perform security checks on the Q detection objects.

[0135] In an embodiment of the present application, after Q detection objects are determined from P IoT devices, the flow data of each of the Q detection objects is obtained, and the flow data of each of the Q detection objects is detected to determine whether the flow data is abnormal. If it is abnormal, it means that the detection object has a security risk, and an early warning is issued.

[0136] In an embodiment of the present application, after Q detection objects are determined from P IoT devices, the flow information of the Q detection objects can be obtained. The flow information is all the downlink and uplink data of the detection object, such as data packet information and network information, wherein the data packet information describes the relevant information of each data packet, such as data packet identification, data direction (uplink), ports involved, IP addresses, etc.; network information describes the overall situation during data transmission, such as packet loss rate, maximum number of connections at the same time, and flow situation. All data packets of a detection object are used as the flow information of the detection object, and the information of each data packet is used as a piece of data in the collected data. For example, for a data packet A, the collected information is: the identification of data packet A, source IP, destination IP, source port, destination port, packet size, transmission start time, transmission end time, packet loss rate, maximum number of connections at the same time, flow situation, etc. Perform security detection on the flow data of the detection object. If the flow data of the detection object is abnormal, it means that the detection object has a security risk and an early warning is issued.

[0137] In an embodiment of the present application, the device types of P IoT devices are obtained; based on the device types, M sampling periods of the P IoT devices are determined; M is a positive integer; the same device type corresponds to the same sampling period, and different device types correspond to different sampling periods; at least one sampling period is determined from the M sampling periods as the security detection period of the IoT device; the target data of the P IoT devices within the security detection period is obtained; based on the obtained target data, Q detection objects in the P IoT devices are determined; Q is less than P; and security detection is performed on the Q detection objects. In this way, at least one sampling period is determined from the M sampling periods dynamically generated based on the device types of the P IoT devices as the security detection period of the IoT device, and based on the target data of the P IoT devices within the security detection period, Q detection objects less than P are determined in the P IoT devices and security detection is performed on the Q detection objects, so as to reduce the waste of resources caused by collecting data information and performing security detection by reducing the number of devices that need to be security detected.

[0138] Figure 5 is a structural block diagram of a security detection device 500 for an Internet of Things device provided in an embodiment of the present application. Figure 5 The security detection device 500 of the Internet of Things device provided in the embodiment of the present application includes:

[0139] An acquisition module 510 is used to acquire device types of P IoT devices;

[0140] A determination module 520 is used to determine M sampling periods of the P IoT devices based on the device type; M is a positive integer; the same device type corresponds to the same sampling period, and different device types correspond to different sampling periods;

[0141] The determination module 520 is further configured to determine at least one sampling period from the M sampling periods as a security detection period of the IoT device;

[0142] The acquisition module 510 is further used to acquire target data of the P IoT devices within the security detection period;

[0143] The determination module 520 is further configured to determine Q detection objects among the P IoT devices based on the acquired target data; Q is less than P;

[0144] The detection module 530 is used to perform safety detection on the Q detection objects.

[0145] In an embodiment of the present application, the device types of P IoT devices are obtained; based on the device types, M sampling periods of the P IoT devices are determined; M is a positive integer; the same device type corresponds to the same sampling period, and different device types correspond to different sampling periods; at least one sampling period is determined from the M sampling periods as the security detection period of the IoT device; the target data of the P IoT devices within the security detection period is obtained; based on the obtained target data, Q detection objects in the P IoT devices are determined; Q is less than P; and security detection is performed on the Q detection objects. In this way, at least one sampling period is determined from the M sampling periods dynamically generated based on the device types of the P IoT devices as the security detection period of the IoT device, and based on the target data of the P IoT devices within the security detection period, Q detection objects less than P are determined in the P IoT devices and security detection is performed on the Q detection objects, so as to reduce the waste of resources caused by collecting data information and performing security detection by reducing the number of devices that need to be security detected.

[0146] In one embodiment of the present application, the number of device types of the P IoT devices is M, and the M device types correspond one-to-one to the M sampling periods.

[0147] In one embodiment of the present application, in the process of determining at least one sampling period from the M sampling periods as the security detection period of the Internet of Things device, the determination module 520 is specifically used to: select the maximum sampling period from the M sampling periods; and determine the maximum sampling period as the security detection period of the Internet of Things device.

[0148] In one embodiment of the present application, the M types of devices include sensing devices; the M sampling periods include a first sampling period; in the process of determining the M sampling periods of the P IoT devices based on the device type, the determination module 520 is specifically used to calculate the first sampling period of the sensing device according to the following formula:

[0149]

[0150] Where, ΔT 1 is the first sampling period, T0 is a predefined standard period, i represents the i-th sensing device in the P IoT devices, I is the total number of sensing devices in the P IoT devices, and affect 1 i represents the security vulnerability impact value of the i-th sensing device among the P IoT devices, vulnerability 1 i represents the number of security vulnerabilities of the i-th sensing device among the P IoT devices, The function is used to solve the number of types of data collected by the sensing devices in the P IoT devices, volume 1 i Indicates the single upload data volume of the i-th sensing device among the P IoT devices, period 1 i represents the data transmission period of the i-th sensing device among the P IoT devices; i and P are both positive integers; i is less than or equal to P.

[0151] In one embodiment of the present application, the M types of devices include application devices; the M sampling periods include a second sampling period; in the process of determining the M sampling periods of the P IoT devices based on the device type, the determination module 520 is specifically used to calculate the second sampling period according to the following formula:

[0152]

[0153] Where, ΔT 2 is the second sampling period, T0 is a predefined standard period, j represents the jth application class device among the P IoT devices, and J is the total number of application class devices among the P IoT devices. Represents the security vulnerability impact value of the jth application device among the P IoT devices; j and P are both positive integers; j is less than or equal to P.

[0154] In one embodiment of the present application, the M types of devices include network devices; the M sampling periods include a third sampling period; in the process of determining the M sampling periods of the P IoT devices based on the device type, the determination module 520 is specifically used to calculate the third sampling period according to the following formula:

[0155]

[0156] Where, ΔT 3 is the third sampling period, T0 is a predefined standard period, k represents the kth network device in the P IoT devices, and affect 3 k represents the security vulnerability impact value of the kth network device among the P IoT devices, P 3 k represents the probability of the kth network device among the P IoT devices being attacked, It represents the total number of IoT devices among the P IoT devices that have established a connection relationship with the kth network device; j and P are both positive integers; j is less than or equal to P.

[0157] In one embodiment of the present application, in the process of determining the Q detection objects among the P IoT devices based on the acquired target data, the determination module 520 is specifically used to:

[0158] Calculate the target risk value of each of the P IoT devices based on the acquired target data to obtain P target risk values;

[0159] Determine Q target risk values ​​greater than a preset value from the P target risk values;

[0160] Determine Q IoT devices corresponding to the Q target risk values ​​as Q detection objects;

[0161] The target risk value is calculated by the following formula:

[0162]

[0163] Among them, S u is the target risk value of the u-th IoT device among the P IoT devices, is the vulnerability impact of the u-th IoT device among the P IoT devices, is the average processing capacity of the u-th IoT device among the P IoT devices in the current security detection cycle, is the average processing capacity of the u-th IoT device among the P IoT devices in the historical security detection cycle, is the vulnerability impact value of the vth IoT device that establishes a connection relationship with the uth IoT device among the P IoT devices, V is the total number of IoT devices that establish a connection relationship with the uth IoT device; u, v, and V are all positive integers; u and v are both less than or equal to P, and u≠v.

[0164] like Figure 6 As shown, the embodiment of the present application also provides an electronic device 600, which can be various types of computers, etc. The electronic device 600 includes: a processor 610 and a memory 620, and the memory 620 stores a program or instruction, and the program or instruction is executed by the processor 610 to implement the steps of any of the methods described above. For example, when the program is executed by the processor 610, the following process is implemented: obtaining the device type of P IoT devices; based on the device type, determining M sampling periods of the P IoT devices; M is a positive integer; the same device type corresponds to the same sampling period, and different device types correspond to different sampling periods; determining at least one sampling period from the M sampling periods as the security detection period of the IoT device; obtaining the target data of the P IoT devices within the security detection period; based on the obtained target data, determining Q detection objects among the P IoT devices; Q is less than P; and performing security detection on the Q detection objects. In this way, at least one sampling period is determined as the security detection period of the IoT device from M sampling periods dynamically generated based on the device types of P IoT devices, and based on the target data of the P IoT devices within the security detection period, Q detection objects, which are less than P in number, are determined from the P IoT devices and security detection is performed on the Q detection objects. By reducing the number of devices that need to be security-tested, the purpose of reducing the waste of resources caused by collecting data information and performing security detection is achieved.

[0165] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the security detection method for an Internet of Things device provided in any of the above embodiments are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0166] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0167] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0168] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0169] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0170] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0171] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A security detection method for an Internet of Things device, characterized in that: include: Get the device types of P IoT devices; Based on the device type, determine M sampling periods of the P IoT devices; M is a positive integer; the same device type corresponds to the same sampling period, and different device types correspond to different sampling periods; Determine at least one sampling period from the M sampling periods as a security detection period of the Internet of Things device; Obtain target data of the P IoT devices within the security detection cycle; Based on the acquired target data, Q detection objects among the P IoT devices are determined; Q is less than P; Q and P are both positive integers; Perform security detection on the Q detection objects.

2. The method according to claim 1, characterized in that The number of device types of the P IoT devices is M, and the M device types correspond one-to-one to the M sampling periods.

3. The method according to claim 1 or 2, characterized in that: Determining at least one sampling period from the M sampling periods as a security detection period of the IoT device includes: Selecting a maximum sampling period from the M sampling periods; The maximum sampling period is determined as the security detection period of the Internet of Things device.

4. The method according to claim 2, characterized in that: The M types of devices include sensing devices; the M sampling periods include a first sampling period; and determining the M sampling periods of the P IoT devices based on the device types includes: The first sampling period of the sensing device is calculated according to the following formula: Where, ΔT 1 is the first sampling period, T0 is a predefined standard period, i represents the i-th sensing device among the P IoT devices, I is the total number of sensing devices among the P IoT devices, represents the security vulnerability impact value of the i-th sensing device among the P IoT devices, represents the number of security vulnerabilities of the i-th sensing device among the P IoT devices, The function is used to solve the number of types of data collected by the sensing devices in the P IoT devices. represents the single upload data volume of the i-th sensing device among the P IoT devices, represents the data transmission period of the i-th sensing device among the P IoT devices; i and P are both positive integers; i is less than or equal to P.

5. The method according to claim 2, characterized in that: The M types of devices include application devices; the M sampling periods include a second sampling period; and determining the M sampling periods of the P IoT devices based on the device types includes: The second sampling period is calculated according to the following formula: Where, ΔT 2 is the second sampling period, T0 is a predefined standard period, j represents the jth application class device among the P IoT devices, and J is the total number of application class devices among the P IoT devices. represents the security vulnerability impact value of the jth application device among the P IoT devices; represents the number of security vulnerabilities of j application devices among the P IoT devices; j and P are both positive integers; j is less than or equal to P.

6. The method according to claim 2, characterized in that The M types of devices include network devices; the M sampling periods include a third sampling period; and determining the M sampling periods of the P IoT devices based on the device types includes: The third sampling period is calculated according to the following formula: Where, ΔT 3 is the third sampling period, T0 is a predefined standard period, k represents the kth network device in the P IoT devices, represents the security vulnerability impact value of the kth network device among the P IoT devices, represents the probability of the kth network device among the P IoT devices being attacked, It represents the total number of IoT devices among the P IoT devices that have established a connection relationship with the kth network device; j and P are both positive integers; j is less than or equal to P.

7. The method according to any one of claims 1 to 6, characterized in that: The step of determining Q detection objects among the P IoT devices based on the acquired target data includes: Calculate the target risk value of each of the P IoT devices based on the acquired target data to obtain P target risk values; Determine Q target risk values ​​greater than a preset value from the P target risk values; Determine Q IoT devices corresponding to the Q target risk values ​​as Q detection objects; The target risk value is calculated by the following formula: Among them, S u is the target risk value of the u-th IoT device among the P IoT devices, is the vulnerability impact of the u-th IoT device among the P IoT devices, is the average processing capacity of the u-th IoT device among the P IoT devices in the current security detection cycle, is the average processing capacity of the u-th IoT device among the P IoT devices in the historical security detection cycle, is the vulnerability impact value of the vth IoT device that establishes a connection relationship with the uth IoT device among the P IoT devices, V is the total number of IoT devices that establish a connection relationship with the uth IoT device; u, v, and V are all positive integers; u and v are both less than or equal to P, and u≠v.

8. A security detection device for an Internet of Things device, characterized in that: include: An acquisition module, used to acquire device types of P IoT devices; A determination module, configured to determine M sampling periods of the P IoT devices based on the device type; M is a positive integer; the same device type corresponds to the same sampling period, and different device types correspond to different sampling periods; The determination module is further used to determine at least one sampling period from the M sampling periods as a security detection period of the Internet of Things device; The acquisition module is further used to acquire target data of the P IoT devices within the security detection period; The determination module is further used to determine Q detection objects among the P IoT devices based on the acquired target data; Q is less than P; A detection module is used to perform safety detection on the Q detection objects.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction running on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The medium stores a program or an instruction, and when the program or the instruction is executed, the steps of the method according to any one of claims 1 to 7 are implemented.

11. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Parallel detection method and device of Internet of Things terminal

    CN115988547A

  • Equipment management method and device, storage medium and electronic equipment

    CN116600153A

  • Data acquisition method and system and battery compartment

    CN117199572A

  • Information processing method, apparatus, and system

    US20220408215A1

Cited By

  • Intelligent gas pipeline sampling monitoring method, Internet of Things system and storage medium

    CN119714436A

  • A smart gas pipeline sampling monitoring method, Internet of Things system and storage medium

    CN119714436B

  • Methods, internet of things systems, and storage media for sampling and monitoring smart gas pipelines

    US12510211B2