Internet of things device security test system and method based on software definition

Through the software-defined IoT device security testing system, SDN technology is used to achieve continuous security testing and automated policy execution for IoT devices, solving the problem of lack of continuous testing and automatic policy execution after deployment, and improving the security of IoT devices and System security and availability.

WO2024216671A1PCT designated stage expired Publication Date: 2024-10-24TSINGHUA UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/091700
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-21
Filing Date
2023-04-28
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

Existing IoT device security testing lacks the ability to continuously test and automatically execute security policies after deployment. It is difficult to deal with the security risks of frequently updated and large-scale IoT devices, especially in terms of timeliness, convenience, and scalability.

Method used

Adopt a software-defined IoT device security testing system, including IoT device security testing modules, SDN switches and SDN controllers. By defining security test items and scripts, we automate testing and execute security policies based on test results, and use SDN technology to automatically collect data. Device IP address to enable continuous testing and policy enforcement.

Benefits of technology

It achieves continuous security testing and automated policy execution for IoT devices, improves the security and availability of IoT devices and systems, and meets the needs for automated testing of large-scale IoT devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023091700_24102024_PF_FP_ABST
    Figure CN2023091700_24102024_PF_FP_ABST
Patent Text Reader

Abstract

The present disclosure belongs to the field of Internet of Things information security. Provided are an Internet of Things device security test system and method based on a software definition. The system comprises: an Internet of Things device security test module, an SDN switch, an SDN controller and a plurality of Internet of Things devices, wherein the Internet of Things device security test module is used for defining and storing security test items and corresponding test scripts thereof, and initiating a test request to the Internet of Things devices by means of the SDN switch; the SDN controller is used for controlling a data forwarding behavior of the SDN switch; the SDN switch is used for controlling a network flow of the Internet of Things devices passing through the SDN switch, and acquiring IP address information of the Internet of Things devices; and the Internet of Things devices are used for responding to the test request and feeding test results back.
Need to check novelty before this filing date? Find Prior Art

Description

Software-defined IoT device security testing system and method

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on the Chinese patent application with application number 202310432669.7 and application date April 21, 2023, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field

[0003] The present disclosure relates to the field of Internet of Things information security, and specifically to a software-defined Internet of Things device security testing system and method. Background Art

[0004] With the rapid development of modern information technologies such as the Internet of Things (IoT), big data, cloud computing, and artificial intelligence, IoT devices are increasingly becoming part of people's lives. Therefore, the security of IoT devices is crucial to ensuring a normal, convenient, and safe life. However, because the IP-based interconnection technology used by the IoT was not initially designed with security in mind, IoT devices connected via IP face significant potential network security threats, becoming a weak link in their use.

[0005] Once deployed, IoT devices typically last for years or even decades, and their software often requires continuous updates based on functional or security requirements. These updates can introduce new security vulnerabilities or risks to IoT devices. Furthermore, given the large number and variety of IoT devices, manual security testing is time-consuming and labor-intensive, making it difficult to meet the testing needs of large-scale IoT systems. Therefore, a scalable automated testing system and method is needed to meet the needs of daily testing of IoT devices at all stages, especially after deployment in production environments, and to promptly enforce security policies based on test results.

[0006] Existing IoT device security testing typically relies on manual methods, using testing tools to perform security inspections or certifications on IoT devices during R&D, factory release, or deployment. These methods lack the ability to continuously conduct security testing in production environments after IoT devices are deployed. Even when automated testing is performed on one or more devices, there is a lack of continuity from security testing to analysis of test results and automatic enforcement of security policies based on test results, making it difficult to promptly identify and eliminate security risks in IoT devices. Therefore, existing methods struggle to address the frequent updates and large numbers of IoT devices. They struggle to meet the timeliness, convenience, and scalability requirements of the growing number of IoT device deployments. In particular, there is a lack of technical solutions that can continuously test IoT devices and automatically enforce security policies in production environments after they are deployed.

[0007] Summary of the Invention

[0008] The present disclosure aims to solve at least one of the above technical problems to a certain extent.

[0009] The present disclosure provides a software-defined IoT device security testing system, comprising: an IoT device security testing module, an SDN switch, an SDN controller, and multiple IoT devices; the IoT device security testing module, the SDN switch, and the SDN controller are interconnected via a network, and the SDN switch is further connected to the multiple IoT devices via the network.

[0010] The IoT device security testing module is used to define and save security test items and corresponding test scripts, initiate test requests to selected IoT devices through the SDN switch according to user requirements, and receive response results from the IoT devices returned by the SDN switch. The IoT device security testing module is also used to interact with the SDN controller and the SDN switch, and obtain IP address information of IoT devices connected to the SDN switch directly through the SDN switch or by controlling the SDN switch through the SDN controller. The IoT device security testing module also controls data forwarding behavior of the SDN switch through the SDN controller.

[0011] The SDN controller is used to program the SDN switch to control the data forwarding behavior of the SDN switch; the SDN controller is also used to obtain IP address information of the IoT device connected to the SDN switch from the SDN switch and send it to the IoT device security testing module;

[0012] The SDN switch is used to receive and execute interaction messages and control commands sent by the SDN controller to control the network flow of the IoT device passing through; the SDN switch is also used to obtain IP address information of the IoT device;

[0013] The IoT device is used to receive the test request sent by the IoT device security test module through the SDN switch, respond according to the current working status of the device, and then feed back the response result to the IoT device security test module through the SDN switch.

[0014] In one embodiment of the present disclosure, the SDN switch and the SDN controller support a southbound interface protocol.

[0015] In one embodiment of the present disclosure, the IoT device supports IP interconnection, and the IoT device is connected to the IoT device security testing module via the network formed by the SDN switch using the IP protocol.

[0016] In one embodiment of the present disclosure, the IoT device security testing module includes: a security test item definition and editor, a security test item and script storage, a security test scheduler, a security test executor, a test result display and analyzer, and a security policy executor; the security test item and script storage are respectively connected to the security test item definition and editor and the security test scheduler; the security test scheduler is also connected to the security test executor; the security test executor is connected to the test result display and analyzer; the test result display and analyzer is connected to the security policy executor;

[0017] The security test item definition and editor is used to define the classification of security test items to form a security test item tree classification structure; the security test item definition and editor is also used to define and edit security test items and their security test scripts, and store the security test items and their security test scripts in corresponding categories of the security test item tree classification structure;

[0018] The security test item and script memory is used to store the security test item tree classification structure, the security test items and their security test scripts;

[0019] The security test scheduler is used to select the security test items required for the current test from the security test items and script memory to form a list of security test items to be tested; the security test scheduler is also used to obtain the IP addresses of the IoT devices involved in the current test to form a list of IP addresses to be tested; the security test scheduler sends the list of security test items to be tested and the list of IP addresses to be tested to the security test executor;

[0020] The security test executor is used to call the test script stored in the security test item and script memory for each security test item in the security test item list and the IP address list, and perform security tests on the IoT devices corresponding to the IP addresses in the IP address list in turn, and send the test results obtained from each test to the test result display and analyzer;

[0021] The test result display and analyzer is used to display the security test results according to the tree classification structure of security test items or according to IP addresses according to user needs; the test result display and analyzer is also used to send all test items that fail the security test and the corresponding IP addresses to the security policy executor;

[0022] The security policy executor is used to define IoT device security policies and rules in accordance with the security requirements of the IoT system; the security policy executor is also used to check whether the test results of the security test items of the IP addresses that failed the security test need to be enforced according to the IoT device security policies and rules and the content sent by the test result display and analyzer. If enforcement is required, the security policy executor will send the security rules that need to be enforced and related information to the SDN controller.

[0023] In one embodiment of the present disclosure, the security test item tree classification structure is classified according to network architecture levels or network attack categories.

[0024] In one embodiment of the present disclosure, the number of layers of the tree-like classification structure of the safety test items is less than or equal to 3 layers.

[0025] In one embodiment of the present disclosure, the list of IP addresses to be tested is obtained by any one of the following methods:

[0026] The user specifies the IoT IP address or IP address segment to form the IP address list to be tested; or

[0027] The user logs in to the SDN switch through the security test scheduler to obtain the IP addresses of all IoT devices connected to the SDN switch to form a list of IP addresses to be tested; or

[0028] Obtain the IP addresses of IoT devices through IP scanning software or use the SDN controller to form a list of IP addresses to be tested.

[0029] The present disclosure also provides a software-defined IoT device security testing method based on the above system, including the following steps:

[0030] 1) Define and edit security test items and test scripts;

[0031] 2) Select safety test items and test scope;

[0032] 3) Scheduling and executing safety tests;

[0033] 4) Test result feedback and analysis;

[0034] 5) Formulation and implementation of IoT device security policies.

[0035] In one embodiment of the present disclosure,

[0036] Define and edit security test items and test scripts, including:

[0037] 1-1) The user uses the security test item definition and editor to define the classification of security test items and form a security test item tree classification structure;

[0038] 1-2) The user defines any security test item using the security test item definition and editor;

[0039] 1-3) The user uses the security test item definition and editor to define and edit the security test script corresponding to the security test item;

[0040] 1-4) The user classifies the security test item and its security test script into the corresponding category in the security test item tree classification structure according to the test content in the security test item definition and editor;

[0041] 1-5) The security test item definition and editor sends the security test item tree classification structure, the security test items and their security test scripts to the security test item and script storage for storage;

[0042] Select security test items and test scope, and initiate security testing, including:

[0043] 2-1) The user uses the security test scheduler to select the security test items stored in the security test item and script memory required for this test, forming a list of security test items to be tested;

[0044] 2-2) The user obtains the IP addresses of the IoT devices involved in this test through the security test scheduler to form a list of IP addresses to be tested;

[0045] 2-3) The security test scheduler sends the list of security items to be tested and the list of IP addresses to be tested to the security test executor in the set order;

[0046] Scheduling and executing security tests, including:

[0047] 3-1) After receiving the list of security test items to be tested and the list of IP addresses to be tested, the security test executor calls the test script corresponding to each security test item in the list of security test items to be tested, which is stored in the security test item and script storage, and sequentially performs security tests on the IoT devices corresponding to the IP addresses in the list of IP addresses to be tested;

[0048] 3-2) The security test executor sends the test results obtained from each security test to the test result display and analyzer;

[0049] Test result feedback and analysis, including:

[0050] 4-1) The test result display and analyzer receives the test results sent by the security test executor;

[0051] 4-2) Test result display and analyzer: Based on user needs, the test results are displayed according to the tree classification structure of security test items or by IP address;

[0052] 4-3) The test result display and analyzer analyzes all test results and sends all failed security test items and corresponding IP addresses to the security policy executor;

[0053] IoT device security policy development and implementation, including:

[0054] 5-1) Users use the security policy enforcer to define IoT device security policies and rules according to the security requirements of the IoT system;

[0055] 5-2) The security policy executor checks whether the test results of the security test item for the IP address that failed the security test need to be enforced according to the IoT device security policy and rules, based on the test result display and the content sent by the analyzer: if so, proceed to step 5-3; if not, complete the execution of the security policy;

[0056] 5-3) The security policy executor converts the security rules that need to be enforced into commands that can be executed by the SDN controller, and sends the commands and related information to the SDN controller;

[0057] 5-4) The SDN controller generates one or more flow table entries according to the command of the security policy executor;

[0058] 5-5) The SDN controller sends the flow table entry in step 5-4) to the SDN switch;

[0059] 5-6) After receiving the flow table entry, the SDN switch executes the corresponding action table or instruction set to complete the execution of the security policy.

[0060] In one embodiment of the present disclosure, the method further includes:

[0061] Repeat steps 1-1) to 1-5) to define more categories of security test items, security test items and their corresponding security test scripts and store them in the security test item and script storage.

[0062] In one embodiment of the present disclosure, the list of IP addresses to be tested is obtained by any one of the following methods:

[0063] The user specifies the IoT IP address or IP address segment to form the IP address list to be tested; or

[0064] The user logs in to the SDN switch through the security test scheduler to obtain the IP addresses of all IoT devices connected to the SDN switch to form a list of IP addresses to be tested; or

[0065] Use IP scanning software or an SDN controller to obtain the IP addresses of IoT devices and form a list of IP addresses to be tested.

[0066] An embodiment of the present disclosure also proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the above-mentioned software-defined IoT device security testing method.

[0067] The embodiments of the present disclosure also provide a computer-readable storage medium, wherein, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the above-mentioned software-defined IoT device security testing method.

[0068] An embodiment of the present disclosure also proposes a computer program product, characterized in that the computer program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of a computer device reads and executes the computer program from the readable storage medium, so that the computer device performs the above-mentioned software-defined IoT device security testing method.

[0069] The present disclosure uses software-defined security test items and corresponding test scripts, which can not only facilitate users to add, modify or select security test items at any time according to the needs of security testing, but also timely carry out security testing work that meets the needs of different scenarios to avoid the occurrence of potential security risks. The present disclosure uses classification rules to organize security test items in a tree-like classification form, which is convenient for subsequent browsing, searching, modification and selection. The present disclosure uses SDN switches and SDN controllers to automatically collect IP address information of IoT devices, avoiding omissions caused by manual input, and thus can easily meet the needs of automated testing of large-scale IoT. In addition, the present disclosure can use SDN controllers to control SDN switches based on the problems found in the security test results after obtaining the test results, according to the severity of the security problems and user needs, enforce security policies and rules, and promptly eliminate the potential security risks of IoT devices, thereby improving the security of IoT devices and even the entire IoT system. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] FIG1 is a schematic structural diagram of a software-defined IoT device security testing system according to an embodiment of the present disclosure;

[0071] FIG2 is a schematic diagram of the structure of an IoT device security testing module in a specific embodiment of the present disclosure;

[0072] FIG3 is an overall flow chart of a software-defined IoT device security testing method according to a specific embodiment of the present disclosure;

[0073] FIG4 is a schematic diagram of a tree-like classification structure of security test items in a specific embodiment of the present disclosure. DETAILED DESCRIPTION

[0074] This disclosure proposes a software-defined IoT device security testing system and method. This system allows users to define their own security test items and scripts and use them at any time. Leveraging SDN (Software-Defined Networking) technology, it automatically searches for IoT devices that require testing and promptly executes security policies. This addresses the shortcomings of existing IoT device security testing in terms of timeliness, convenience, and scalability, particularly by enabling continuous testing and automatic execution of security policies even after IoT devices are deployed in production environments. This improves the security and availability of IoT devices and the entire IoT system. This is further described below with reference to the accompanying drawings and specific embodiments.

[0075] The present disclosure provides a software-defined IoT device security testing system, as shown in Figure 1. The system includes an IoT device security testing module, an SDN (Software-Defined Networking) switch, an SDN controller, and multiple IoT devices. The IoT device security testing module, the SDN switch, and the SDN controller are interconnected via a network constructed by the SDN switch. The SDN switch is also connected to the multiple IoT devices via the network.

[0076] Furthermore, the IoT device security testing module is used to define and save security test items and corresponding test scripts, initiate test requests to selected IoT devices through the SDN switch according to user requirements, and receive response results from the IoT devices returned by the SDN switch. The IoT device security testing module can also interact with the SDN controller and the SDN switch, obtaining IP address information of IoT devices connected to the SDN switch directly through the SDN switch or by controlling the SDN switch through the SDN controller. The IoT device security testing module can also control the data forwarding behavior of the SDN switch through the SDN controller.

[0077] The SDN controller is used to program the SDN switch to control the data forwarding behavior of the SDN switch; the SDN controller is also used to obtain IP address information of the Internet of Things device connected to the SDN switch from the SDN switch and send it to the Internet of Things device security testing module.

[0078] The SDN switch is used to receive and execute interaction messages and control commands sent by the SDN controller to control the network flow of IoT devices passing through. The SDN switch is also used to obtain IP address information of IoT devices.

[0079] The IoT device is used to receive the test request sent by the IoT device security test module through the SDN switch, respond according to the current working status of the device, and then feed back the response result to the IoT device security test module through the SDN switch.

[0080] Furthermore, in the embodiment of the present disclosure, the SDN switch and the SDN controller support a southbound interface protocol.

[0081] In the embodiment of the present disclosure, the IoT device supports IP interconnection, and the IoT device can be connected to the IoT device security testing module using the IP protocol through a network formed by an SDN switch.

[0082] Furthermore, the IoT device security testing module in the disclosed embodiment, as shown in FIG2 , includes: a security test item definition and editor, a security test item and script storage, a security test scheduler, a security test executor, a test result display and analyzer, and a security policy executor. The security test item and script storage are respectively connected to the security test item definition and editor and the security test scheduler; the security test scheduler is also connected to the security test executor; the security test executor is connected to the test result display and analyzer; and the test result display and analyzer is connected to the security policy executor.

[0083] Furthermore, the security test item definition and editor are used to define the classification of security test items to form a tree-like classification structure of security test items, which is convenient for classified browsing, editing and selection of security test items; the security test item tree-like classification structure can be classified according to the network architecture level or network attack category, usually not more than 3 layers; the security test item definition and editor are also used to define and edit security test items and their security test scripts, and store the security test items and their security test scripts in the corresponding categories of the security test item tree-like classification structure.

[0084] The security test item and script memory is used to store the security test item tree classification structure, the security test items and their security test scripts;

[0085] The security test scheduler is used to select the security test items required for the current test from the security test items and script memory to form a list of security test items to be tested; the security test scheduler is also used to obtain the IP addresses of the IoT devices involved in the current test to form a list of IP addresses to be tested; the security test scheduler sends the list of security test items to be tested and the list of IP addresses to be tested to the security test executor;

[0086] The security test executor is used to call the test script stored in the security test item and script memory for each security test item in the security test item list and the IP address list, and perform security tests on the IoT devices corresponding to the IP addresses in the IP address list in turn, and send the test results obtained from each test to the test result display and analyzer;

[0087] The test result display and analyzer is used to display the security test results according to the tree classification structure of security test items or according to IP addresses according to user needs; the test result display and analyzer is also used to send all test items that fail the security test and the corresponding IP addresses to the security policy executor.

[0088] The security policy executor is used to define IoT device security policies and rules in accordance with the security requirements of the IoT system; the security policy executor is also used to check whether the test results of the security test items of the IP addresses that failed the security test need to be enforced according to the IoT device security policies and rules and the content sent by the test result display and analyzer. If enforcement is required, the security policy executor will send the security rules that need to be enforced and related information to the SDN controller.

[0089] Furthermore, this embodiment also proposes a software-defined IoT device security testing method based on the above system. The overall process is shown in Figure 3, including the following steps 1 to 5.

[0090] Step 1: Define and edit security test items and test scripts, including steps 1.1 to 1.6.

[0091] Step 1.1: The user uses the security test item definition and editor to define the classification of security test items and form a security test item tree classification structure.

[0092] Step 1.2: Use the Security Test Item Definition and Editor to define any security test item. A security test item represents a test of a specific security feature in an IoT device. Depending on the characteristics of the IoT device, a security test item can target security features common to all IoT devices or specific to IoT devices from different vendors.

[0093] Step 1.3: The user uses the security test item definition and editor to define and edit the security test script corresponding to the security test item.

[0094] Step 1.4: In the security test item definition and editor, the user assigns the security test item and its security test script to the corresponding category in the security test item tree classification structure according to the test content.

[0095] Step 1.5: The security test item definition and editor sends the security test item tree classification structure, the security test items and their security test scripts to the security test item and script storage for storage.

[0096] Step 1.6: As needed, repeat steps 1.1 to 1.5 to define more categories of security test items, security test items and their corresponding security test scripts and store them in the security test item and script storage.

[0097] Step 2: Select the security test items and test scope, and initiate the security test, including steps 2.1 to 2.3.

[0098] Step 2.1: The user uses the security test scheduler to select the security test items stored in the security test item and script memory required for this test to form a list of security test items to be tested.

[0099] Step 2.2: The user obtains the IP addresses of the IoT devices involved in this test through the security test scheduler to form a list of IP addresses to be tested.

[0100] Step 2.3: The security test scheduler sends the list of security items to be tested and the list of IP addresses to be tested to the security test executor in the set order.

[0101] Step 3: Schedule and execute security testing, including steps 3.1 to 3.2 below:

[0102] Step 3.1: After the security test executor receives the list of security test items to be tested and the list of IP addresses to be tested, for each security test item in the list of security test items to be tested, it calls the test script corresponding to the security test item stored in the security test item and script memory, and performs security tests on the IoT devices corresponding to the IP addresses in the list of IP addresses to be tested in turn.

[0103] Step 3.2: The security test executor sends the test results obtained from each security test to the test result display and analyzer.

[0104] Step 4: Test result feedback and analysis, including steps 4.1 to 4.3.

[0105] Step 4.1: The test result display and analyzer receives the test results sent by the security test executor.

[0106] Step 4.2: The test result display and analyzer displays the test results according to the security test item tree classification structure or according to the IP address according to user needs.

[0107] Step 4.3: The test result display and analyzer analyzes all test results and sends all failed security test items and corresponding IP addresses to the security policy executor.

[0108] Step 5: Develop and implement IoT device security policies, including steps 5.1 to 5.6.

[0109] Step 5.1: The user uses the security policy enforcer to define IoT device security policies and rules according to the security requirements of the IoT system.

[0110] Step 5.2: The security policy executor checks whether the test results of the security test items of the IP addresses that failed the security test need to be enforced according to the IoT device security policies and rules and the content sent by the test result display and analyzer: If so, proceed to step 5.3; if not, complete the execution of the security policy.

[0111] Step 5.3: The security policy executor converts the security rules that need to be enforced into commands that can be executed by the SDN controller, and sends the command and related information to the SDN controller.

[0112] Step 5.4: The SDN controller forms one or more flow table entries according to the command of the security policy executor.

[0113] Step 5.5: The SDN controller sends the flow entry in step 5.4 to the SDN switch through the southbound interface protocol.

[0114] Step 5.6: After receiving the flow table entry, the SDN switch executes the corresponding action table or instruction set to complete the execution of the security policy.

[0115] The system and method disclosed herein are further described in detail below with reference to an embodiment.

[0116] In one embodiment of the present disclosure, the software-defined IoT device security testing system includes: an IoT device security testing module, an OpenFlow switch serving as an SDN switch, an OpenFlow controller serving as an SDN controller, and multiple IoT devices. The IoT device security testing module, the OpenFlow switch, and the OpenFlow controller are interconnected via a network constructed by the OpenFlow switch, and the OpenFlow switch is also connected to the multiple IoT devices via the network. Furthermore, the IoT device security testing module is configured to define and save security test items and corresponding test scripts, initiate test requests to selected IoT devices via the OpenFlow switch according to user requirements, and receive responses from the IoT devices returned by the OpenFlow switch. The IoT device security testing module can also interact with the OpenFlow controller and the OpenFlow switch, obtaining IP address information of IoT devices connected to the OpenFlow switch directly through the OpenFlow switch or by controlling the OpenFlow switch through the OpenFlow controller. The IoT device security testing module can also control the data forwarding behavior of the OpenFlow switch via the OpenFlow controller.

[0117] The OpenFlow controller is used to program the OpenFlow switch to control the data forwarding behavior of the OpenFlow switch; the OpenFlow controller is also used to obtain IP address information of the Internet of Things device connected to the OpenFlow switch from the OpenFlow switch and send it to the Internet of Things device security testing module.

[0118] The OpenFlow switch is used to receive and execute interaction messages and control commands sent by the OpenFlow controller to control the network flow of IoT devices passing through. The OpenFlow switch is also used to obtain IP address information of IoT devices.

[0119] The IoT device is used to receive the test request sent by the IoT device security testing module through the OpenFlow switch, respond according to the current working status of the device, and then feed back the response result to the IoT device security testing module through the OpenFlow switch.

[0120] In the embodiment of the present disclosure, the OpenFlow switch and the OpenFlow controller refer to an SDN switch and an SDN controller that support the OpenFlow protocol; they use the OpenFlow protocol to exchange messages. In the embodiment of the present disclosure, the supported OpenFlow protocol version is 1.3.

[0121] In the disclosed embodiment, 11 IP-enabled IoT devices are connected to the OpenFlow switch, and their IP addresses are 192.168.0.100-192.168.0.110 respectively.

[0122] Furthermore, in the disclosed embodiments, the IoT device security testing module includes: a security test item definition and editor, a security test item and script storage, a security test scheduler, a security test executor, a test result display and analyzer, and a security policy executor. The security test item and script storage are connected to the security test item definition and editor and the security test scheduler, respectively; the security test scheduler is also connected to the security test executor; the security test executor is connected to the test result display and analyzer; and the test result display and analyzer is connected to the security policy executor.

[0123] The IoT device security testing module can be implemented as computer software, with the security test item definitions and editor implemented as software units and running on the user's test computer. In the disclosed embodiments, the OpenFlow controller can run on another independent computer. It should be noted that the OpenFlow controller can also run on the user's test computer.

[0124] The embodiment of the present disclosure also proposes a software-defined IoT device security testing method based on the above system, including the following steps 1 to 5.

[0125] Step 1: Define and edit security test items and test scripts, including steps 1.1 to 1.6.

[0126] Step 1.1: The user uses the security test item definition and editor to define the categories of security test items and organize them into a tree-like classification structure of security test items. The classification and organization of security test items is mainly for the convenience of browsing and editing.

[0127] Figure 4 is a schematic diagram of the tree-like classification structure of security test items in a specific embodiment of the present disclosure. In Figure 4, the classification tree includes five categories: underlying networking, network services, vulnerabilities, access control, and device management; wherein the underlying networking includes two subcategories: port detection and buffer overflow, the network service includes two subcategories: DHCP (Dynamic Host Configuration Protocol) and DNS (Domain Name System), the vulnerability includes two subcategories: weak passwords and plain text protocols, the access control includes two subcategories: weak verification (weak identity authentication) and weak control (weak access control), and the device management includes two subcategories: automatic upgrade (automatic firmware or software upgrade) and remote monitoring (remote device monitoring or management). It should be noted that in a specific implementation, other classification categories can also be defined according to the attributes of the security test items.

[0128] Step 1.2: The user defines a security test item using the security test item definition and editor.

[0129] This embodiment defines a security test item as follows:

[0130] Security test item 1: Telnet port test.

[0131] Step 1.3: The user uses the security test item definition and editor to define and edit the security test script corresponding to the security test item.

[0132] The security test script in the embodiment of the present disclosure is written in Python. The exemplary test script corresponding to the security test item 1 in step 1.2 is as follows:

[0133] {#Security Test Item 1: Telnet Port Security Test Script

[0134] console = sys.stdin

[0135] ipfile=open(".\testdata\iplists.txt",'r',encoding='utf-8')

[0136] sys.stdin=ipfile

[0137] iplist=sys.stdin.readlines()

[0138] ipfile.close()

[0139] sys.stdin = console

[0140] cmd / run-s telnet iplist

[0141] cat result.log|tee-a$T_RESULTS}

[0142] Step 1.4: In the security test item definition and editor, the user assigns the security test item and its security test script to the security test item tree classification structure.

[0143] In a specific embodiment of the present disclosure, the security test item script 1 in step 1.3 can be classified into the “bottom layer networking: port detection” category in FIG. 4 .

[0144] Step 1.5: The security test item definition and editor sends the security test item tree classification structure, security test items, and security test scripts to the security test item and script storage for storage.

[0145] In the embodiment of the present disclosure, the tree-like classification structure of the security test items involved in step 1.4, the security test item 1 and the corresponding Python script are stored in the security test item and script storage.

[0146] Step 1.6: As needed, repeat steps 1.1 to 1.5 to define more categories of security test items, security test items and their corresponding security test scripts and store them in the security test item and script storage.

[0147] No security test items are defined in the embodiments of the present disclosure.

[0148] Step 2: Select the security test items and test scope, and initiate the security test, including steps 2.1 to 2.3.

[0149] Step 2.1: The user uses the security test scheduler to select the security test items required for this test and stored in the security test item and script memory to form a list of security test items to be tested.

[0150] In the embodiment of the present disclosure, the user selects security test item 1.

[0151] Step 2.2: The user obtains the IP addresses of the IoT devices involved in this test through the security test scheduler to form a list of IP addresses to be tested.

[0152] In the embodiments of the present disclosure, the following three methods are provided for obtaining the IP addresses of the IoT devices involved in this test.

[0153] Method 1 is a method where the user specifies the IoT IP address or IP address range, such as 192.168.0.100, 192.168.0.105, or 192.168.0.100-192.158.0.200.

[0154] Method 2 is to log in to the OpenFlow switch through the security test scheduler to obtain the IP addresses of all IoT devices connected to the OpenFlow switch. That is, after the security test scheduler logs in to the OpenFlow switch through the Telnet command, it executes the "display arp" command or other commands that can display the IP addresses of IoT devices connected to the OpenFlow switch to obtain a list of IoT device IP addresses.

[0155] Method 3 is to obtain the IP address of the IoT device through other IP scanning software or by using the OpenFLow controller.

[0156] In a specific embodiment of the present disclosure, the user specifies to test IoT devices whose IP addresses are in the range of 192.168.0.100-192.168.0.110.

[0157] Step 2.3: The security test scheduler sends the list of security items to be tested and the list of IP addresses to be tested to the security test executor in the set order.

[0158] In this embodiment, security test item 1 and the IP address range 192.168.0.100-192.168.0.110 are sent to the security test executor. The security test scheduler can also specify the order of security tests. In this embodiment, each security test item is tested in ascending order of IP address.

[0159] Step 3: Schedule and execute security testing, including steps 3.1 to 3.2 below.

[0160] Step 3.1: After the security test executor receives the list of security test items to be tested and the list of IP addresses to be tested, for each security test item in the list of security test items to be tested, it calls the test script corresponding to the security test item stored in the security test item and script memory, and performs security tests on the IoT devices corresponding to the IP addresses in the list of IP addresses to be tested in turn.

[0161] In the embodiment of the present disclosure, the security test executor calls the Python test script corresponding to security test item 1, and performs security tests on the IoT devices corresponding to IP addresses 192.168.0.100 to 192.168.0.110 in sequence.

[0162] Step 3.2: The security test executor feeds back the test results obtained from each security test to the test result display and analyzer;

[0163] In the embodiment of the present disclosure, the test results of the IoT devices corresponding to the IP addresses from 192.168.0.100 to 192.168.0.110 are fed back to the test result display and analyzer.

[0164] Step 4: Test result feedback and analysis, including steps 4.1 to 4.3.

[0165] Step 4.1: The test result display and analyzer receives the test results sent by the security test executor.

[0166] In the embodiment of the present disclosure, the test results are transferred from the security test executor to the test result display and analyzer in the form of a file, which contains all the test results of the IoT devices corresponding to the IP addresses from 192.168.0.100 to 192.168.0.110.

[0167] Step 4.2: The test result display and analyzer displays the test results according to the security test item tree classification structure or according to the IP address according to user needs.

[0168] In this disclosed embodiment, test results are displayed by IP address. For IP address 192.168.0.100, the test result for Security Test Item 1 is shown as Failed, indicating that the Telnet port of the IoT device corresponding to IP address 192.168.0.100 is open. This is clearly a serious security risk. For other IP addresses (192.168.0.100-192.168.0.110), the test results are Passed.

[0169] Step 4.3: The test result display and analyzer analyzes all test results and sends all failed security test items and corresponding IP addresses to the security policy executor.

[0170] In the embodiment of the present disclosure, the security test item 1 and the IP address 192.168.0.100 are sent to the user security policy executor.

[0171] Step 5: Develop and implement IoT device security policies, including steps 5.1 to 5.6.

[0172] Step 5.1: The user uses the security policy enforcer to define IoT device security policies and rules according to the security requirements of the IoT system.

[0173] In the embodiment of the present disclosure, a Telnet port closing policy is defined, and its security rule is to enforce closing.

[0174] Step 5.2: The security policy executor checks whether the test result of a certain security test item of the IP address needs to enforce security rules based on the IoT device security policy and rules: if it does, proceed to step 5.3; if not, complete the execution of the security policy.

[0175] In the disclosed embodiment, it is necessary to enforce security rules on IoT devices, and proceed to step 5.3.

[0176] Step 5.3: The security policy executor converts the security rules that need to be enforced into commands that can be executed by the SDN controller, and sends the command and related information to the SDN controller.

[0177] In the embodiment of the present disclosure, the security policy executor sends a port closing command to the SDN controller, and sends the closed IP address: 192.168.0.100 and the closed port number: 23 to the SDN controller.

[0178] Step 5.4: The SDN controller forms one or more flow table entries according to the command of the security policy executor.

[0179] In the embodiment of the present disclosure, the OpenFLow controller forms a flow table entry to close port 23 of 192.168.0.100: {*,*,*,*,192.168.0.100,192.168.0.100,IPV4,*,TCP:23,TCP:23}{Drop}{*}{*}.

[0180] Step 5.5: The SDN controller sends the flow entry in step 5.4 to the SDN switch through the southbound interface protocol.

[0181] In the embodiment of the present disclosure, the OpenFlow controller sends the flow entry in step 5.4 to the OpenFlow switch via the OpenFlow protocol;

[0182] Step 5.6: After receiving the flow table entry, the SDN switch executes the corresponding action table or instruction set to complete the execution of the security policy.

[0183] In the embodiment of the present disclosure, the OpenFlow switch adds the received flow table entry to its port flow table, completing the closure of port 23 of the IoT device corresponding to the IP address 192.168.0.100.

[0184] An embodiment of the present disclosure also proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the above-mentioned software-defined IoT device security testing method.

[0185] The embodiments of the present disclosure also provide a computer-readable storage medium, wherein, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the above-mentioned software-defined IoT device security testing method.

[0186] An embodiment of the present disclosure also proposes a computer program product, characterized in that the computer program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of a computer device reads and executes the computer program from the readable storage medium, so that the computer device performs the above-mentioned software-defined IoT device security testing method.

[0187] All embodiments of the present disclosure may be implemented individually or in combination with other embodiments, and are all considered to be within the scope of protection claimed by the present disclosure.

Claims

1. A software-defined IoT device security testing system, comprising: An IoT device security testing module, an SDN switch, an SDN controller, and multiple IoT devices; The IoT device security test module, the SDN switch and the SDN controller are connected to each other via a network, and the SDN switch is also connected to the multiple IoT devices respectively via the network; The IoT device security test module is used to define security test items and corresponding test scripts and save them, initiate a test request to the selected IoT device through the SDN switch according to user requirements, and receive the response result of the IoT device returned by the SDN switch; the IoT device security test module is also used to interact with the SDN controller and the SDN switch, directly through the SDN switch or through the SDN controller to control the SDN switch to obtain the IP address information of the IoT device connected to the SDN switch, and the IoT device security test module also controls the data forwarding behavior of the SDN switch through the SDN controller; The SDN controller is used to program the SDN switch so as to control the data forwarding behavior of the SDN switch; The SDN controller is also used to obtain IP address information of the Internet of Things device connected to the SDN switch from the SDN switch and send it to the Internet of Things device security testing module; The SDN switch is used to receive and execute the interaction messages and control commands sent by the SDN controller to control the network flow of the IoT device passing through; the SDN switch is also used to obtain the IP address information of the IoT device; The IoT device is used to receive the test request sent by the IoT device security test module through the SDN switch, respond according to the current working status of the device, and then feed back the response result to the IoT device security test module through the SDN switch.

2. The system according to claim 1, wherein: The SDN switch and the SDN controller support a southbound interface protocol.

3. The system according to claim 1, wherein: The IoT device supports IP interconnection, and the IoT device is connected to the IoT device security test module via the network formed by the SDN switch using the IP protocol.

4. The system according to claim 1, wherein: The IoT device security test module includes: a security test item definition and editor, a security test item and script memory, a security test scheduler, a security test executor, a test result display and analyzer, and a security policy executor; the security test item and script memory are respectively connected to the security test item definition and editor and the security test scheduler; the security test scheduler is also connected to the security test executor; the security test executor is connected to the test result display and analyzer; the test result display and analyzer is connected to the security policy executor; The safety test item definition and editor are used to define the classification of the safety test items to form a tree-like classification structure of the safety test items; the safety test item definition and editor are also used to define and edit the safety test items and their safety test scripts, and store the safety test items and their safety test scripts in the corresponding classification of the safety test item tree-like classification structure; The safety test item and script storage is used to store the tree classification structure of the safety test items, the safety Test items and their security test scripts; The security test scheduler is used to select the security test items required for the current test from the security test items and script memory to form a list of security test items to be tested; the security test scheduler is also used to obtain the IP addresses of the IoT devices involved in the current test to form a list of IP addresses to be tested; the security test scheduler sends the list of security test items to be tested and the list of IP addresses to be tested to the security test executor; The security test executor is used to call the test script stored in the security test item and script storage memory corresponding to each security test item in the security test item list and the IP address list to be tested, and sequentially perform security tests on the Internet of Things devices corresponding to the IP addresses in the IP address list to be tested, and send the test results obtained from each test to the test result display and analyzer; The test result display and analyzer is used to display the security test results according to the tree classification structure of security test items or according to IP addresses according to user needs; the test result display and analyzer is also used to send all test items that have not passed the security test and the corresponding IP addresses to the security policy executor; The security policy executor is used to define security policies and rules for IoT devices according to the security requirements of the IoT system; the security policy executor is also used to check whether the test results of the security test items of the IP addresses that failed the security test need to be enforced according to the security policies and rules of the IoT devices and the content sent by the test result display and analyzer. If enforcement is required, the security policy executor sends the security rules that need to be enforced and related information to the SDN controller.

5. The system according to claim 4, wherein: The security test item tree classification structure is classified according to the network architecture level or network attack category.

6. The system according to claim 4, wherein: The number of layers of the tree classification structure of the safety test items is less than or equal to 3 layers.

7. The system according to claim 4, wherein: The IP address list to be tested is obtained by any of the following methods: The user specifies the IoT IP address or IP address segment to form the IP address list to be tested; or The user logs in to the SDN switch through the security test scheduler to obtain the IP addresses of all IoT devices connected to the SDN switch to form a list of IP addresses to be tested; or Obtain the IP addresses of IoT devices through IP scanning software or use the SDN controller to form a list of IP addresses to be tested.

8. A software-defined IoT device security testing method based on the system as claimed in claim 4, characterized in that: The following steps are involved: 1) Define and edit security test items and test scripts; 2) Select safety test items and test scope; 3) Scheduling and executing safety tests; 4) Test result feedback and analysis; 5) Formulation and implementation of IoT device security policies.

9. The method according to claim 8, wherein Define and edit security test items and test scripts, including: 1-1) The user uses the security test item definition and editor to define the classification of the security test items and form a tree-like classification structure of the security test items; 1-2) The user uses the security test item definition and editor to define any security test item; 1-3) The user uses the security test item definition and editor to define and edit the security test script corresponding to the security test item; 1-4) The user classifies the security test item and its security test script into the corresponding category in the security test item tree classification structure according to the test content in the security test item definition and editor; 1-5) The safety test item definition and editor sends the safety test item tree classification structure, the safety test items and their safety test scripts to the safety test item and script storage for storage; Select security test items and test scope, and initiate security tests, including: 2-1) The user uses the security test scheduler to select the security test items stored in the security test item and script storage required for this test, and forms a list of security test items to be tested; 2-2) The user obtains the IP addresses of the IoT devices involved in this test through the security test scheduler to form a list of IP addresses to be tested; 2-3) The security test scheduler sends the list of security items to be tested and the list of IP addresses to be tested to the security test executor in the set order; Scheduling and executing safety tests, including: 3-1) After receiving the list of security test items to be tested and the list of IP addresses to be tested, the security test executor calls the test script stored in the security test item and script storage memory corresponding to each security test item in the list of security test items to be tested, and performs security tests on the IoT devices corresponding to the IP addresses in the list of IP addresses to be tested in turn; 3-2) The safety test executor sends the test results obtained from each safety test to the test result display and analyzer; Test result feedback and analysis, including: 4-1) The test result display and analyzer receives the test results sent by the security test executor; 4-2) Test result display and analyzer displays test results according to the tree classification structure of security test items or according to IP addresses according to user needs; 4-3) The test result display and analyzer analyzes all test results and sends all failed security test items and corresponding IP addresses to the security policy executor; IoT device security policy formulation and execution, including: 5-1) Users use the security policy executor to define IoT device security policies and rules according to the security requirements of the IoT system; 5-2) The security policy executor checks whether the test results of the security test items of the IP addresses that failed the security test need to be enforced according to the security policies and rules of the IoT devices and the content sent by the test result display and analyzer: if necessary, proceed to step 5-3; if not, complete the security policy execution. OK; 5-3) The security policy executor converts the security rules that need to be enforced into commands that can be executed by the SDN controller, and sends the command and related information to the SDN controller; 5-4) The SDN controller forms one or more flow table entries according to the command of the security policy executor; 5-5) The SDN controller sends the flow table entry of step 5-4) to the SDN switch; 5-6) After receiving the flow table entry, the SDN switch executes the corresponding action table or instruction set to complete the execution of the security policy.

10. The method according to claim 9, further comprising: Repeat steps 1-1) to 1-5) to define more categories of security test items, security test items and their corresponding security test scripts and store them in the security test item and script storage.

11. The method according to claim 9, wherein: The IP address list to be tested is obtained by any of the following methods: The user specifies the IoT IP address or IP address segment to form the IP address list to be tested; or The user logs in to the SDN switch through the security test scheduler to obtain the IP addresses of all IoT devices connected to the SDN switch to form a list of IP addresses to be tested; or Obtain the IP addresses of IoT devices through IP scanning software or use the SDN controller to form a list of IP addresses to be tested.

12. An electronic device comprising: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the software-defined IoT device security testing method as described in any one of claims 8 to 11.

13. A computer-readable storage medium, wherein: When the instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the software-defined IoT device security testing method as described in any one of claims 8 to 11.

14. A computer program product, wherein: The computer program product includes a computer program, which is stored in a readable storage medium. At least one processor of a computer device reads and executes the computer program from the readable storage medium, so that the computer device executes the software-defined IoT device security testing method as described in any one of claims 8 to 11.

Citation Information

Patent Citations

  • SDN-based network quality optimization method, system and electronic device

    CN108092856A

  • SDN control plane performance testing

    US20190173764A1