A software-defined IoT device security testing system and method

Through the software-defined IoT device security testing system, SDN technology is used to automate testing and policy execution, which solves the deficiencies in security testing and policy execution after the deployment of IoT devices, and improves the security and availability of IoT devices and systems.

CN116488894BActive Publication Date: 2024-09-24TSINGHUA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310432669.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-21
Publication Date
2024-09-24
Estimated Expiration
2043-04-21

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 cope with frequent updates and large-scale problems, making it difficult to detect and eliminate security risks in a timely manner.

Method used

Adopt a software-defined IoT device security testing system, use SDN technology to automatically search for devices and execute security policies, implement automated testing and policy execution through user-defined security test items and scripts, and combine SDN switches and controllers for data forwarding and policies programming.

Benefits of technology

It improves the security and availability of IoT devices and systems, enables large-scale automated testing and timely elimination of security risks, and meets the needs for continuous testing and automatic policy execution after deployment of IoT devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116488894B
    Figure CN116488894B
Patent Text Reader

Abstract

The present invention proposes a software-defined IoT device security testing system and method, which belongs to the field of IoT information security. The system includes: an IoT device security testing module, an SDN switch, an SDN controller, and multiple IoT devices; the IoT device security testing module is used to define and save security test items and their corresponding test scripts, and initiate test requests to IoT devices through the SDN switch; the SDN controller is used to control the data forwarding behavior of the SDN switch; the SDN switch is used to control the network flow of the IoT device passing through and obtain the IP address information of the IoT device; the IoT device is used to respond to the test request and feedback the test results. The present invention can realize user-defined security test items and their scripts, use SDN technology to automatically search for IoT devices that need to be tested, and execute security policies in a timely manner, thereby improving the security of the IoT system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the rapid development of modern information technologies such as the Internet of Things, big data, cloud computing, and artificial intelligence, more and more IoT devices are appearing in people's lives. Therefore, the security of IoT devices is of great significance to ensure people's normal, convenient, and safe life needs. However, since the IP-based interconnection technology used by the Internet of Things did not take security into consideration at the beginning of its design, IoT devices that use IP for networking also face huge potential threats in terms of network security, becoming a weak link in the use of IoT devices.

[0003] Once an IoT device is deployed, it is usually used for several years or even decades, and its software often needs to be continuously updated according to functional or security requirements. Such updates may introduce new security vulnerabilities or hidden dangers to IoT devices. Secondly, there are many types of IoT devices and a large number of them. If security testing is done manually, it will be time-consuming and laborious, and it will be difficult to meet the testing needs of large-scale IoT systems. Therefore, an automated testing system and method with good scalability is needed to meet the needs of IoT devices in various links, especially after being deployed in a production environment, to conduct daily testing and to implement security policies in a timely manner based on the test results.

[0004] Existing IoT device security testing generally adopts manual methods, using test tools to perform security testing or certification on IoT devices during R&D, factory delivery or deployment, and lacks the ability to continue security testing in the production environment after IoT devices are deployed. Even if automated testing is performed on one or more devices, there is a lack of continuity from security testing to security test result analysis and then to automatic execution of security policies based on test results, and it is impossible to timely discover and eliminate security risks of IoT devices. Therefore, existing methods are difficult to cope with the current characteristics of frequent updates and large numbers of IoT devices. It is difficult to meet the actual needs of the increasing number of IoT device deployments in terms of timeliness, convenience and scalability. In particular, there is a lack of technical solutions that can continuously test IoT devices and automatically execute security policies in the production environment after they are deployed. Summary of the invention

[0005] The purpose of the present invention is to overcome the shortcomings of the prior art and propose a software-defined IoT device security testing system and method. The present invention enables users to define security test items and scripts and use them at any time. At the same time, it uses SDN (Software-Defined Networking) technology to automatically search for IoT devices that need to be tested and execute security policies in a timely manner, thereby solving the shortcomings of existing IoT device security testing in terms of timeliness, convenience and scalability, especially solving the problem of being able to continue testing and automatically execute security policies after IoT devices are deployed in a production environment, thereby improving the security and availability of IoT devices and the entire IoT system.

[0006] The embodiment of the present invention provides a software-defined IoT device security testing system, comprising: an IoT device security testing module, an SDN switch, an SDN controller, and a plurality of IoT devices; the IoT device security testing module, the SDN switch, and the SDN controller are interconnected through a network, and the SDN switch is also connected to the plurality of IoT devices through the network;

[0007] 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;

[0008] 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 the 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;

[0009] 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;

[0010] 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.

[0011] In a specific embodiment of the present invention, the SDN switch and the SDN controller support a southbound interface protocol.

[0012] In a specific embodiment of the present invention, 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.

[0013] In a specific embodiment of the present invention, 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;

[0014] 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;

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

[0016] 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;

[0017] 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;

[0018] 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;

[0019] 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.

[0020] In a specific embodiment of the present invention, the tree-like classification structure of security test items is classified according to network architecture levels or network attack categories.

[0021] In a specific embodiment of the present invention, the number of layers of the tree classification structure of the safety test items is less than or equal to 3 layers.

[0022] In a specific embodiment of the present invention, the list of IP addresses to be tested is obtained by any one of the following three methods:

[0023] Method 1: The user specifies the IoT IP address or IP address segment to form the IP address list to be tested;

[0024] Method 2: 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;

[0025] Method 3: 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.

[0026] The embodiment of the present invention further proposes a software-defined IoT device security testing method based on the above system, comprising the following steps:

[0027] 1) Define and edit security test items and test scripts. The specific steps are as follows:

[0028] 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;

[0029] 1-2) The user uses the security test item definition and editor to define any security test item;

[0030] 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;

[0031] 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;

[0032] 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;

[0033] 2) Select the security test items and test scope, and initiate the security test. The specific steps are as follows:

[0034] 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;

[0035] 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;

[0036] 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;

[0037] 3) Schedule and execute safety tests. The specific steps are as follows:

[0038] 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;

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

[0040] 4) Test result feedback and analysis, the specific steps are as follows:

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

[0042] 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;

[0043] 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;

[0044] 5) IoT device security strategy formulation and implementation. The specific steps are as follows:

[0045] 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;

[0046] 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 execution of the security policy;

[0047] 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;

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

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

[0050] 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.

[0051] In a specific embodiment of the present invention, the method further comprises:

[0052] 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.

[0053] In a specific embodiment of the present invention, the list of IP addresses to be tested is obtained by any one of the following three methods:

[0054] Method 1: The user specifies the IoT IP address or IP address segment to form the IP address list to be tested;

[0055] Method 2: 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;

[0056] Method 3: 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.

[0057] The characteristics and beneficial effects of the present invention are

[0058] The present invention can not only facilitate users to add, modify or select security test items according to the needs of security testing at any time through software-defined security test items and corresponding test scripts, but also timely carry out security testing work that meets the needs of different scenarios, avoiding the occurrence of potential safety hazards. The present invention 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 invention uses SDN switches and SDN controllers to automatically collect IP address information of IoT devices, avoiding omissions caused by manual input, and thus can conveniently cope with the needs of automated testing of large-scale IoT. In addition, the present invention can use SDN controllers to control SDN switches according to 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 safety hazards of IoT devices, thereby improving the security of IoT devices and even the entire IoT system. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 It is a structural diagram of a software-defined IoT device security testing system in an embodiment of the present invention;

[0060] Figure 2 It is a structural diagram of an Internet of Things device security testing module in a specific embodiment of the present invention;

[0061] Figure 3 It is an overall flow chart of a software-defined IoT device security testing method in a specific embodiment of the present invention;

[0062] Figure 4 It is a schematic diagram of the tree classification structure of safety test items in a specific embodiment of the present invention. DETAILED DESCRIPTION

[0063] The present invention proposes a software-defined IoT device security testing system and method, which are further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0064] The embodiment of the present invention proposes a software-defined IoT device security testing system, the structure of which is as follows: Figure 1 As shown, it includes: an IoT device security test module, an SDN (Software-Defined Networking) switch, an SDN controller and multiple IoT devices. The IoT device security test module, the SDN switch and the SDN controller are interconnected through a network constructed by the SDN switch, and the SDN switch is also connected to the multiple IoT devices through the network.

[0065] Furthermore, 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 can also 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 can also control the data forwarding behavior of the SDN switch through the SDN controller.

[0066] 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 the 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.

[0067] The SDN switch is used to receive and execute the interaction messages and control commands sent by the SDN controller, and 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.

[0068] 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.

[0069] Furthermore, in this embodiment, the SDN switch and the SDN controller support a southbound interface protocol.

[0070] In this embodiment, the IoT device supports IP interconnection, and the IoT device can be connected to the IoT device security test module through the network formed by the SDN switch using the IP protocol.

[0071] Furthermore, the IoT device security testing module in this embodiment has a structure as follows: Figure 2 As shown, it includes: security test item definition and editor, security test item and script storage, security test scheduler, security test executor, test result display and analyzer, and 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.

[0072] 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 network architecture levels or network attack categories, 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.

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

[0074] 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;

[0075] 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;

[0076] 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.

[0077] The security policy executor is used to define the security policies and rules of the 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.

[0078] Furthermore, this embodiment also proposes a software-defined IoT device security testing method based on the above system. The overall process is as follows: Figure 3 As shown, the following steps are included:

[0079] Step 1: Define and edit security test items and test scripts. The specific steps are as follows:

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

[0081] Step 1.2: The user uses the security test item definition and editor to define any security test item;

[0082] The security test item refers to a test of a security feature in an IoT device. Depending on the characteristics of the IoT device, the security test item can be a security feature common to all IoT devices or a specific security feature of IoT devices from different manufacturers.

[0083] 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;

[0084] 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;

[0085] 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;

[0086] 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.

[0087] Step 2: Select the security test items and test scope, and initiate the security test. The specific steps are as follows:

[0088] Step 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 to form a list of security test items to be tested;

[0089] 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;

[0090] 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;

[0091] Step 3: Schedule and execute security tests. The specific steps are as follows:

[0092] Step 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;

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

[0094] Step 4: Test result feedback and analysis. The specific steps are as follows:

[0095] Step 4.1: The test result display and analyzer receives the test result sent by the security test executor;

[0096] Step 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;

[0097] 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.

[0098] Step 5: IoT device security policy formulation and implementation. The specific steps are as follows:

[0099] Step 5.1: The user uses the security policy executor to define IoT device security policies and rules according to the security requirements of the IoT system;

[0100] 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 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 execution of the security policy;

[0101] 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;

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

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

[0104] 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.

[0105] The system and method of the present invention are further described in detail below in conjunction with a specific embodiment.

[0106] In a specific embodiment of the present invention, the software-defined IoT device security testing system includes: an IoT device security testing module, an OpenFlow switch as an SDN switch, an OpenFlow controller as an SDN controller and multiple IoT devices. The IoT device security testing module, the OpenFlow switch and the OpenFlow controller are interconnected through a network constructed by the OpenFlow switch, and the OpenFlow switch is also connected to the multiple IoT devices through the network. Further, the IoT device security testing 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 OpenFlow switch according to user requirements, and receive the response result of the IoT device returned by the OpenFlow switch. The IoT device security testing module can also interact with the OpenFlow controller and the OpenFlow switch, directly through the OpenFlow switch or through the OpenFlow controller to control the OpenFlow switch to obtain the IP address information of the IoT device connected to the OpenFlow switch, and the IoT device security testing module can also control the data forwarding behavior of the OpenFlow switch through the OpenFlow controller.

[0107] 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 the 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.

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

[0109] The IoT device is used to receive the test request sent by the IoT device security test 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 test module through the OpenFlow switch.

[0110] In this embodiment, 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 this embodiment, the supported OpenFlow protocol version is 1.3.

[0111] In this 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.

[0112] Furthermore, in this embodiment, the IoT device security test module includes: security test item definition and editor, security test item and script storage, security test scheduler, security test executor, test result display and analyzer, and 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.

[0113] The IoT device security test module can be specifically implemented as a computer software, wherein the security test item definition and editor can be implemented as a software unit and run on the user test computer. In this embodiment, the OpenFlow controller can run on another independent computer. It should be noted that the OpenFlow controller can also run on the user test computer.

[0114] This embodiment also proposes a software-defined IoT device security testing method based on the above system, including the following steps:

[0115] Step 1: Define and edit security test items and test scripts. The specific steps are as follows:

[0116] Step 1.1: The user uses the security test item definition and editor to define the classification 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.

[0117] Figure 4 It is a schematic diagram of the tree classification structure of safety test items in a specific embodiment of the present invention. Figure 4In the classification tree, there are five categories: underlying networking, network services, vulnerabilities, access control, and device management; among them, underlying networking includes two subcategories: port detection and buffer overflow, network services include two subcategories: DHCP (Dynamic Host Configuration Protocol) and DNS (Domain Name System), vulnerabilities include two subcategories: weak passwords and plain text protocols, access control includes two subcategories: weak verification (weak identity authentication) and weak control (weak access control), and 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 the specific implementation, other classification categories can also be defined according to the attributes of the security test items.

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

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

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

[0121] 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.

[0122] The security test script in this embodiment is written in Python. The exemplary test script corresponding to the security test item 1 in step 1.2 is as follows:

[0123] {#Security test item 1: Telnet port security test script

[0124] console = sys.stdin

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

[0126] sys.stdin = ipfile

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

[0128] ipfile.close()

[0129] sys.stdin = console

[0130] cmd / run-stelnetiplist

[0131] catresult.log|tee-a$T_RESULTS}

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

[0133] In a specific embodiment of the present invention, the safety test item script 1 in step 1.3 can be classified into Figure 4 In the "Low-Level Networking: Port Detection" category.

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

[0135] In this embodiment, the tree classification structure of the safety test items involved in step 1.4, the safety test item 1 and the corresponding Python script are stored in the safety test item and script storage.

[0136] 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.

[0137] In this embodiment, no safety test items are defined.

[0138] Step 2: Select the security test items and test scope, and initiate the security test. The specific steps are as follows:

[0139] 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.

[0140] In this embodiment, the user selects security test item 1.

[0141] 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.

[0142] In this embodiment, three methods are provided to obtain the IP addresses of the IoT devices involved in this test:

[0143] Method 1 is a method in which the user specifies the IoT IP address or IP address segment, such as 192.168.0.100, 192.168.0.105, or 192.168.0.100-192.158.0.200.

[0144] Method 2 is that the user logs 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 "displayarp" or other commands that can display the IP addresses of IoT devices connected to the OpenFlow switch to obtain the IP address list of IoT devices.

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

[0146] In a specific embodiment of the present invention, the user specifies to test an Internet of Things device with an IP address in the range of 192.168.0.100-192.168.0.110.

[0147] 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.

[0148] In this embodiment, security test item 1 and IP address segment 192.168.0.100-192.168.0.110 are sent to the security test executor. The security test scheduler can also specify the security test sequence. In this embodiment, for each security test item, the IP address is tested in order from small to large.

[0149] Step 3: Schedule and execute security tests. The specific steps are as follows:

[0150] 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 and stored in the security test item and script storage 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.

[0151] In this embodiment, 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.

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

[0153] In this embodiment, 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.

[0154] Step 4: Test result feedback and analysis. The specific steps are as follows:

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

[0156] In this embodiment, 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.

[0157] Step 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.

[0158] In this embodiment, the test results are displayed according to the IP address; for IP address 192.168.0.100, the test result for security test item 1 is displayed as failed, that is, the Telnet port of the IoT device corresponding to IP address 192.168.0.100 is open. Obviously, this is a serious security risk. For other IP addresses: 192.168.0.100-192.168.0.110, the test results are passed.

[0159] 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.

[0160] In this embodiment, the security test item 1 and the IP address 192.168.0.100 are sent to the user security policy executor.

[0161] Step 5: IoT device security policy formulation and implementation. The specific steps are as follows:

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

[0163] In this embodiment, a Telnet port closing policy is defined, and its security rule is to enforce closing.

[0164] 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 necessary, proceed to step 5.3; if not, complete the execution of the security policy.

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

[0166] 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.

[0167] In this embodiment, 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.

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

[0169] In this embodiment, 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}{*}{*}.

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

[0171] In this embodiment, the OpenFlow controller sends the flow table entry in step 5.4 to the OpenFlow switch through the OpenFlow protocol;

[0172] 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.

[0173] In this embodiment, the OpenFlow switch adds the received flow table entry to its port flow table, and closes port 23 of the IoT device corresponding to the IP address 192.168.0.100.

Claims

1. A software-defined IoT device security testing system, characterized in that: include: 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; Among them, the Internet of Things 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; 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 security test item and script storage is used to store the security test item tree classification structure, the security 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.

2. The system according to claim 1, characterized in that The SDN switch and the SDN controller support a southbound interface protocol.

3. The system according to claim 1, characterized in that 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, characterized in that The security test item tree classification structure is classified according to the network architecture level or network attack category.

5. The system according to claim 1, characterized in that The number of layers of the tree classification structure of the safety test items is less than or equal to 3 layers.

6. The system according to claim 1, characterized in that The IP address list to be tested is obtained by any of the following three methods: Method 1: The user specifies the IoT IP address or IP address segment to form the IP address list to be tested; Method 2: 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; Method 3: 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.

7. A software-defined IoT device security testing method based on the system as claimed in claim 1, characterized in that: The following steps are involved: 1) Define and edit security test items and test scripts. The specific steps are as follows: 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; 2) Select the security test items and test scope, and initiate the security test. The specific steps are as follows: 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 to form 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; 3) Schedule and execute safety tests. The specific steps are as follows: 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; 4) Test result feedback and analysis, the specific steps are as follows: 4-1) The test result display and analyzer receives the test results sent by the safety 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; 5) IoT device security strategy formulation and implementation. The specific steps are as follows: 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 execution of the security policy; 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.

8. The method according to claim 7, characterized in that The method further comprises: 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.

9. The method according to claim 7, characterized in that: The IP address list to be tested is obtained by any of the following three methods: Method 1: The user specifies the IoT IP address or IP address segment to form the IP address list to be tested; Method 2: 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; Method 3: 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.