IOT equipment security test method and system, terminal and storage medium

By conducting simulated attacks, network architecture analysis, communication protocol analysis, sensitive function verification and source code detection on IOT devices, integrating the detection results to generate security evaluation scores, solving the problem of incomplete security testing of IOT devices and improving the security performance and risks of the devices Accuracy of the analysis.

CN119094154APending Publication Date: 2024-12-06深圳开鸿数字产业发展有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411029215.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The lack of a complete and comprehensive security testing design in IOT equipment leads to inaccurate risk analysis and low security performance.

Method used

Provide an IOT device security testing method, including obtaining test instructions (simulated attacks, network architecture analysis, communication protocol analysis, sensitive function verification, source code detection), conducting multi-faceted detection of target devices, and integrating detection results to generate security assessment scores.

Benefits of technology

Through all-round detection methods, the security of IoT devices is improved, ensuring that they meet security standards at the simulated attack, network architecture, communication protocol and source code levels, and providing more accurate risk analysis and evaluation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094154A_ABST
    Figure CN119094154A_ABST
Patent Text Reader

Abstract

The invention discloses an IOT equipment safety test method and system, a terminal and a storage medium, the method comprises the following steps: obtaining a to-be-tested target IOT equipment and a test instruction, the test instruction comprising a simulation attack instruction, a network architecture analysis instruction, a communication protocol analysis instruction, a sensitive function verification instruction and a source code detection instruction; and according to the test instruction, performing simulation attack, network architecture analysis, communication protocol analysis, sensitive function verification and source code detection on the target IOT device to obtain five detection results, and integrating the five detection results to obtain a target detection result of the target IOT device. According to the method, simulation attack is carried out on the IOT equipment, the network architecture and the communication protocol of the IOT equipment are analyzed, identity verification is carried out on important services, security detection is carried out on the source code of the IOT equipment, and the security of the IOT equipment is comprehensively guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of device security testing, and in particular to an IOT device security testing method, system, terminal and computer-readable storage medium. Background Art

[0002] IOT (Internet of Things) devices are devices that are connected to the Internet and equipped with various sensors and actuators, capable of collecting, exchanging, processing and executing operations. These devices use their built-in sensors and actuators to interact with users, other devices and the environment, providing users with a more convenient and intelligent lifestyle.

[0003] As key devices of the Internet, IOT devices play an increasingly important role, covering all aspects of life, including household appliances, transportation, education, medical care, etc. IOT devices transmit information to control terminals and execute controller operations. Secure IOT devices can ensure that information can be transmitted and operations can be executed correctly. On the contrary, if the security of IOT devices cannot be guaranteed, it will lead to information leakage and execution of malicious instructions.

[0004] However, currently IOT devices are vulnerable to attacks from other devices or people, the security performance of IOT devices is not high, and there is a lack of complete and comprehensive security testing design.

[0005] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0006] The main purpose of the present invention is to provide an IOT device security testing method, system, terminal and computer-readable storage medium, aiming to solve the problem that IOT devices in the prior art lack a complete and comprehensive security testing design, resulting in inaccurate risk analysis and low security performance of IOT devices.

[0007] To achieve the above object, the present invention provides an IOT device security testing method, which comprises the following steps:

[0008] Obtain the target IoT device to be tested and test instructions, wherein the test instructions include simulated attack instructions, network architecture analysis instructions, communication protocol analysis instructions, sensitive function verification instructions, and source code detection instructions;

[0009] Perform a simulated attack on the target IOT device according to the simulated attack instruction to obtain a first detection result;

[0010] Performing a network architecture analysis on the target IOT device according to the network architecture analysis instruction to obtain a second detection result;

[0011] Performing communication protocol analysis on the target IOT device according to the communication protocol analysis instruction to obtain a third detection result;

[0012] Perform sensitive function verification on the target IOT device according to the sensitive function verification instruction to obtain a fourth detection result;

[0013] Perform source code detection on the target IOT device according to the source code detection instruction to obtain a fifth detection result;

[0014] The first detection result, the second detection result, the third detection result, the fourth detection result and the fifth detection result are integrated to obtain a target detection result of the target IOT device.

[0015] Optionally, the IoT device security testing method, wherein the simulating attack on the target IoT device to obtain a first detection result, specifically includes:

[0016] Mining the system vulnerabilities of the target IOT device to determine whether there are system vulnerabilities;

[0017] If there is a system vulnerability, the target IOT device is tested for remote access, identity authentication, data transmission and storage defects to obtain a system test result;

[0018] Utilize existing system vulnerabilities to simulate attacks on the target IoT device and obtain simulated attack results;

[0019] A first detection result is obtained according to the system test result and the simulated attack result.

[0020] Optionally, the IOT device security testing method, wherein the performing of network architecture analysis on the target IOT device to obtain a second detection result, specifically includes:

[0021] Obtain the network architecture location of the target IOT device, wherein the network architecture location includes an intranet and an extranet;

[0022] The target IOT device is deployed on the network according to the network architecture position, and an attacker is simulated to attack the target IOT device that is undergoing network deployment to obtain a second detection result.

[0023] Optionally, the IOT device security testing method, wherein the communication protocol analysis of the target IOT device is performed to obtain a third detection result, specifically includes:

[0024] Obtain the communication protocol of the target IOT device and obtain industry-recognized network security communication protocol standards from a third party;

[0025] Based on the industry-recognized network security communication protocol standard, it is determined whether the communication protocol has defects, a defect determination result is obtained, and a third detection result is obtained based on the defect determination result.

[0026] Optionally, the IoT device security testing method, wherein the step of performing sensitive function verification on the target IoT device to obtain a fourth detection result, specifically includes:

[0027] Acquire sensitive functions of the target IOT device, wherein the sensitive functions include: modifying system configuration, deleting system configuration, adding system configuration, and viewing sensitive information of the system;

[0028] The sensitive functions are sequentially executed on the target IOT device, and during the execution of the sensitive functions, it is detected whether the target IOT device performs identity authentication to obtain an identity judgment result, and a fourth detection result is obtained according to the identity judgment result.

[0029] Optionally, the IOT device security testing method, wherein the performing source code detection on the target IOT device to obtain a fifth detection result, specifically includes:

[0030] Use a dedicated static scanning tool to perform security testing on the source code of the target IOT device to obtain security testing results;

[0031] A fifth detection result is obtained according to the security test result, wherein the security test includes: a null pointer test, an array out-of-bounds test, and a buffer overflow test.

[0032] Optionally, in the IOT device security testing method, the target detection result includes: device security detection details and device security assessment score;

[0033] The integrating the first detection result, the second detection result, the third detection result, the fourth detection result and the fifth detection result to obtain the target detection result of the target IOT device specifically includes:

[0034] Arrange and summarize the first test result, the second test result, the third test result, the fourth test result, and the fifth test result to obtain equipment safety test details;

[0035] Evaluate the first test result, the second test result, the third test result, the fourth test result, and the fifth test result according to a preset evaluation standard to obtain a score corresponding to each test result;

[0036] Add the scores corresponding to each test result according to the preset weight to obtain the equipment safety assessment score.

[0037] In addition, to achieve the above-mentioned purpose, the present invention also provides an IOT device security testing system, wherein the IOT device security testing system comprises:

[0038] A test instruction acquisition module is used to acquire the target IoT device to be tested and the test instructions, wherein the test instructions include simulated attack instructions, network architecture analysis instructions, communication protocol analysis instructions, sensitive function verification instructions, and source code detection instructions;

[0039] A first device detection module, used to perform a simulated attack on the target IOT device according to the simulated attack instruction to obtain a first detection result;

[0040] A second device detection module, used to perform network architecture analysis on the target IOT device according to the network architecture analysis instruction to obtain a second detection result;

[0041] A third device detection module, used to perform communication protocol analysis on the target IOT device according to the communication protocol analysis instruction to obtain a third detection result;

[0042] A fourth device detection module, used to perform sensitive function verification on the target IOT device according to the sensitive function verification instruction to obtain a fourth detection result;

[0043] A fifth device detection module, used to perform source code detection on the target IOT device according to the source code detection instruction to obtain a fifth detection result;

[0044] The target detection result generation module is used to aggregate the first detection result, the second detection result, the third detection result, the fourth detection result and the fifth detection result to obtain the target detection result of the target IOT device.

[0045] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and an IOT device security testing program stored in the memory and executable on the processor, and when the IOT device security testing program is executed by the processor, the steps of the IOT device security testing method as described above are implemented.

[0046] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an IOT device security testing program, and when the IOT device security testing program is executed by a processor, the steps of the IOT device security testing method as described above are implemented.

[0047] In the present invention, a target IOT device to be tested and a test instruction are obtained, and the test instruction includes a simulated attack instruction, a network architecture analysis instruction, a communication protocol analysis instruction, a sensitive function verification instruction, and a source code detection instruction; according to the test instruction, the target IOT device is subjected to a simulated attack, a network architecture analysis, a communication protocol analysis, a sensitive function verification, and a source code detection, to obtain five detection results, and the five detection results are integrated to obtain a target detection result of the target IOT device. The present invention simulates attacks on IOT devices, analyzes the network architecture and communication protocols of IOT devices, performs identity authentication on important services, and performs security detection on the source code of IOT devices, thereby comprehensively ensuring the security of IOT devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is a flow chart of a preferred embodiment of the IOT device security testing method of the present invention;

[0049] Figure 2 It is a schematic diagram of the principle of a preferred embodiment of the IOT device safety testing system of the present invention;

[0050] Figure 3 Schematic diagram of the operating environment of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION

[0051] The present application provides an IOT device security testing method and related equipment. In order to make the purpose, technical solution and effect of the present application clearer and more specific, the present application is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described here are only used to explain the present application and are not used to limit the present application.

[0052] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with those in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as here.

[0053] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0054] The IOT device security testing method described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the IOT device security testing method includes the following steps:

[0055] Step S10, obtaining the target IOT device to be tested and test instructions, wherein the test instructions include simulated attack instructions, network architecture analysis instructions, communication protocol analysis instructions, sensitive function verification instructions and source code detection instructions.

[0056] Specifically, the target IOT device waiting for security testing is obtained, and at the same time, the test instructions sent by the user are accepted. The test instructions can be the instructions sent by the user when clicking the "Start Test" button on the UI (User Interface, which refers to the overall design of the software's human-computer interaction, operating logic, and interface aesthetics). The test instructions include simulated attack instructions, network architecture analysis instructions, communication protocol analysis instructions, sensitive function verification instructions, and source code detection instructions. The above instructions are executed in sequence according to the preset order.

[0057] Step S20: Perform a simulated attack on the target IOT device according to the simulated attack instruction to obtain a first detection result.

[0058] Vulnerabilities refer to weaknesses or defects in a system, the sensitivity of the system to specific threats or dangerous events, or the possibility of threats of attack. Vulnerabilities may come from design defects or coding errors in application software or operating systems, or from design defects or irrationalities in the logic flow of business interaction. These defects, errors or irrationalities may be exploited intentionally or unintentionally, thereby adversely affecting the assets or operations of an organization, such as information systems being attacked or controlled, important information being stolen, user data being tampered with, and the system being used as a springboard to invade other host systems.

[0059] Specifically, the system vulnerabilities of the target IOT device are mined to determine whether there are system vulnerabilities. It is understandable that system vulnerabilities are one of the common entry points for hackers to invade, so it is crucial to detect vulnerabilities in the system. In this embodiment, the method of mining system vulnerabilities can use vulnerability scanning (vulnerability scanning is an active detection method that scans the target system using special software or tools to identify possible vulnerabilities. These tools automatically perform tests, including trying various attack techniques and utilization methods to reveal weaknesses in the system), source code analysis (source code analysis is a static detection method that identifies potential vulnerabilities by checking the source code of the application. This method can discover some common types of vulnerabilities, such as buffer overflows, SQL injections, and cross-site scripting attacks) and vulnerability exploitation (vulnerability exploitation is a passive detection method that exploits known vulnerabilities to gain unauthorized access to the system or perform unauthorized operations. This method is often used by attackers, but it is also very important for system administrators and security experts to understand potential vulnerability exploitation methods so that corresponding protective measures can be taken) and security auditing (security auditing is a comprehensive method that discovers potential vulnerabilities in the system by conducting a comprehensive review and evaluation of all aspects of the system. This includes network architecture, operating system configuration, application settings, etc. Security auditing can help organizations discover vulnerabilities and formulate corresponding security policies).

[0060] At the same time, you can also use system vulnerability detection tools to conduct a comprehensive test of the site. For example, AppScan is a popular system vulnerability detection tool developed by HCL. It is a comprehensive application security testing tool that can scan and analyze web applications to identify vulnerabilities and security risks, and provide automated scanning, vulnerability reporting and prioritization, security recommendations, and repair recommendations.

[0061] Furthermore, if there is a system vulnerability, the target IOT device is tested for remote access, identity authentication, data transmission and storage defects to obtain a system test result.

[0062] In this embodiment, if the system vulnerability is detected by the above method, the target IOT device performs remote access, identity authentication, data transmission and storage defect tests, wherein the remote access test refers to a test method for remotely accessing the tested software or device through a network connection. It is mainly used to test the working status and performance of the software under various network environments. Specifically, the steps of the remote access test are: determine the test environment: before starting the test, it is necessary to clarify the remote access method of the tester to the tested software, such as SSH, Telnet, etc., and determine the network environment used for the test; set the test goal: the tester needs to clarify the test goal, such as verifying the availability of the remote login function, testing the accuracy of remote command execution, etc.; create test cases: according to the test goals, the tester writes test cases, including information such as input data and expected results. Various situations should be considered when writing the case, such as network delay, disconnection, etc.; execute the test case: the tester executes the test according to the test case and records the test results. When executing the test case, it is necessary to simulate various situations, such as different network speeds, different operating systems, etc.; analyze the test results: according to the test results, the tester can evaluate whether the remote access function of the software is working properly and determine possible problems.

[0063] Authentication is a critical process for verifying user identity information to determine whether they have the authority to access the system, perform operations, or obtain data. In this embodiment, authentication testing can be performed through simulation, using a test framework, asserting expected behaviors, handling security issues, etc. In particular, the role of the simulated login process is crucial because it can be used to verify the authentication logic without actually interacting with the real user store or external system.

[0064] The test methods for data transmission can be: comparing data, verifying the data on the system that sends the data, and then verifying it again on the system that receives the data to ensure that the data is not lost or changed during the transmission process; or logging, recording logs during the data transmission process to view the status and process of data transmission to help diagnose problems; or traffic monitoring, using traffic monitoring tools to monitor network traffic during data transmission to ensure that data is transmitted normally in the network. The storage defect test mainly tests the encryption method, access method, deletion method and other functions of the storage to determine whether there are defects that lead to unauthorized access.

[0065] Furthermore, an existing system vulnerability is used to simulate an attack on the target IOT device to obtain a simulated attack result; and a first detection result is obtained according to the system test result and the simulated attack result.

[0066] In this embodiment, if it is determined that there is a vulnerability in the system, the target IOT device will be simulated attacked by using the existing system vulnerability. If the system of the target IOT device shows obvious service quality degradation or interruption under the simulated attack, it indicates that there is a certain vulnerability, thereby obtaining a simulated attack result. Finally, the system test result and the simulated attack result are combined to obtain the first detection result. If there is an abnormality in the system test result or the simulated attack result, the first detection result is unqualified, otherwise, the first detection result is qualified.

[0067] Step S30: Perform a network architecture analysis on the target IOT device according to the network architecture analysis instruction to obtain a second detection result.

[0068] Specifically, obtaining the network architecture location of the target IOT device, wherein the network architecture location includes an intranet and an extranet;

[0069] The target IOT device is deployed on the network according to the network architecture position, and an attacker is simulated to attack the target IOT device that is undergoing network deployment to obtain a second detection result.

[0070] It is understandable that the network architecture does not distinguish between the intranet and the extranet, but for the sake of device security, the network architecture generally tends to be extranet, and it is necessary to ensure that the product runs under a secure network architecture (that is, runs under the extranet). Therefore, the network architecture position of the target IOT device is obtained, the target IOT device is deployed on the network according to the network architecture position, and while the network is being deployed, the attacker is simulated to attack the target IOT device that is undergoing network deployment, so as to analyze the security performance of the network architecture and obtain a second test result. If the attack launched by the simulated attacker on the target IOT device that is undergoing network deployment causes problems with the device, it means that there is a risk in the network architecture, and the second test result is unqualified. Otherwise, the second test result is qualified.

[0071] Step S40: Perform communication protocol analysis on the target IOT device according to the communication protocol analysis instruction to obtain a third detection result.

[0072] Specifically, the communication protocol of the target IOT device is obtained, and the industry-recognized network security communication protocol standard is obtained from a third party. The communication protocol refers to the rules and agreements that must be followed by two entities to complete communication or service. In order for multiple data communication systems in different geographical locations to be able to work together to achieve information exchange and resource sharing, they must all follow certain mutually acceptable rules.

[0073] Network security protocols are the foundation for creating a network security environment and are the key technology for building a secure network. Designing and ensuring the security and correctness of network security protocols can fundamentally ensure network security and avoid information leakage problems such as network data loss or file damage due to insufficient network security level. In current computer network applications, people have conducted a lot of research on computer communication security protocols, and there are already industry-recognized network security communication protocol standards.

[0074] Furthermore, based on the industry-recognized network security communication protocol standard, it is determined whether the communication protocol has defects, a defect judgment result is obtained, and a third detection result is obtained based on the defect judgment result.

[0075] The communication protocol is tested through the industry-recognized network security communication protocol standard to determine whether the communication protocol has defects and obtain a defect judgment result. If the defect judgment result is that the communication protocol has defects, the third test result is unqualified; if the defect judgment result is that the communication protocol does not have defects, the third test result is qualified. This can avoid the use of network protocols that have been exposed vulnerabilities, thereby improving the security performance of IOT devices in terms of network protocols.

[0076] Step S50: Perform sensitive function verification on the target IOT device according to the sensitive function verification instruction to obtain a fourth detection result.

[0077] Specifically, the sensitive functions of the target IOT device are obtained, and the sensitive functions include: modifying system configuration, deleting system configuration, adding system configuration, and viewing sensitive information of the system;

[0078] The sensitive functions are sequentially executed on the target IOT device, and during the execution of the sensitive functions, it is detected whether the target IOT device performs identity authentication to obtain an identity judgment result, and a fourth detection result is obtained according to the identity judgment result.

[0079] In this embodiment, for sensitive operations involving important business, such as modifying the system configuration, deleting the system configuration, adding the system configuration, and viewing sensitive information of the system, identity authentication is required before performing these operations. Only after the identity authentication is passed can the above operations be performed.

[0080] Therefore, the present invention first obtains all the sensitive functions that can be executed by the target IOT device, and then executes the sensitive functions on the target IOT device in sequence, and detects whether the target IOT device performs identity authentication during the execution of the sensitive functions to obtain an identity judgment result. If the identity judgment result is that no identity judgment is performed before executing the sensitive function, or an identity judgment occurs during the identity judgment, then the fourth detection result obtained is unqualified. Conversely, if the identity judgment result is that an identity judgment is performed before executing the sensitive function, and no misjudgment occurs during the identity judgment, then the fourth detection result obtained is qualified.

[0081] Step S60: Perform source code detection on the target IOT device according to the source code detection instruction to obtain a fifth detection result.

[0082] Specifically, a dedicated static scanning tool is used to perform security testing on the source code of the target IOT device to obtain a security testing result;

[0083] A fifth detection result is obtained according to the security test result, wherein the security test includes: a null pointer test, an array out-of-bounds test, and a buffer overflow test.

[0084] It is understandable that the static scanning tool is a static source code security scanning tool. By scanning the source code with the static scanning tool, some semantic defects and security vulnerabilities in the code can be found, and many defects that are difficult to find by dynamic testing can be found. Commonly used static scanning tools include Coverity, PVS-Studio and FindBugs.

[0085] The static scanning tool is used to perform security testing on the source code of the target IOT device, and the security testing includes: null pointer test, array out-of-bounds test and buffer overflow test. Among them, null pointer is a problem that programmers often encounter when programming. When the program tries to access the memory address pointed to by a pointer, but the pointer is null, a null pointer exception will be generated, causing the program to crash or an unknown error.

[0086] Array out of bounds means that the index value used by the program to access an array element exceeds the range defined by the array. In most programming languages, an array has a fixed length, and its elements can only be accessed using integer indexes starting from 0 to the length minus 1. If the program uses an index value less than 0 or greater than or equal to the array length to access an array, an array out of bounds error will occur.

[0087] Buffer overflow is a very common and dangerous vulnerability that occurs when more data than the maximum amount of data that can be stored is written to the program input buffer. Buffer overflow occurs when the program does not effectively detect the length of the input data and allows the input of data that exceeds the buffer length. The overflowed data will overwrite the memory space outside the allocated space, which may cause program failure, system downtime, restart, etc., and may even be exploited to execute unauthorized instructions, obtain system privileges, and perform illegal operations.

[0088] Static analysis tools (such as Coverity, PVS-Studio, and FindBugs) can automatically detect potential null pointer problems, array out-of-bounds problems, and buffer overflow problems in the code and fix them in a timely manner, thereby improving code quality and reliability.

[0089] It can be seen that the present invention can detect potential problems in the code through the above-mentioned static scanning tool and obtain security test results. If the security test result is that there is no problem in the code, then the fifth test result obtained is qualified. Conversely, if the security test result is that there is a problem in the code, then the fifth test result obtained is unqualified.

[0090] Step S70: Integrate the first detection result, the second detection result, the third detection result, the fourth detection result and the fifth detection result to obtain a target detection result of the target IOT device.

[0091] Specifically, the target detection result includes: device security detection details and device security assessment score. The first detection result, the second detection result, the third detection result, the fourth detection result and the fifth detection result are sorted and summarized to obtain device security detection details;

[0092] Evaluate the first test result, the second test result, the third test result, the fourth test result, and the fifth test result according to a preset evaluation standard to obtain a score corresponding to each test result;

[0093] Add the scores corresponding to each test result according to the preset weight to obtain the equipment safety assessment score.

[0094] It can be understood that the contents of the first test result, the second test result, the third test result, the fourth test result and the fifth test result are first summarized to generate device safety test details containing each test result, and the device safety test details can be in a tabular form.

[0095] Furthermore, a corresponding evaluation standard is set for each test item in advance. For example, if the first test result is qualified, it is recorded as +5, if the second test result is qualified, it is recorded as +10, and if the third test result is qualified, it is recorded as +8. The evaluation standards for the remaining test results are the same as the above types, which will not be repeated here and can be set according to actual conditions and requirements. According to the above evaluation standards, the score of each test result is obtained, and then the score is weighted according to the preset weight to obtain the overall equipment safety evaluation score.

[0096] It can be seen that the present invention obtains the target IOT device to be tested and the test instructions, and the test instructions include simulated attack instructions, network architecture analysis instructions, communication protocol analysis instructions, sensitive function verification instructions and source code detection instructions; according to the test instructions, the target IOT device is subjected to simulated attack, network architecture analysis, communication protocol analysis, sensitive function verification and source code detection respectively to obtain five detection results, and the five detection results are integrated to obtain the target detection result of the target IOT device. By simulating attacks on IOT devices, analyzing the network architecture and communication protocols of IOT devices, and authenticating important services, and performing security detection on the source code of IOT devices, the security of IOT devices is guaranteed from all aspects.

[0097] Furthermore, if Figure 2 As shown, based on the above-mentioned IOT device security testing method, the present invention also provides an IOT device security testing system accordingly, wherein the IOT device security testing system includes:

[0098] A test instruction acquisition module 41 is used to acquire a target IoT device to be tested and a test instruction, wherein the test instruction includes a simulated attack instruction, a network architecture analysis instruction, a communication protocol analysis instruction, a sensitive function verification instruction, and a source code detection instruction;

[0099] A first device detection module 42, configured to perform a simulated attack on the target IOT device according to the simulated attack instruction to obtain a first detection result;

[0100] A second device detection module 43, configured to perform a network architecture analysis on the target IOT device according to the network architecture analysis instruction to obtain a second detection result;

[0101] A third device detection module 44, configured to perform communication protocol analysis on the target IOT device according to the communication protocol analysis instruction to obtain a third detection result;

[0102] A fourth device detection module 45, configured to perform sensitive function verification on the target IOT device according to the sensitive function verification instruction to obtain a fourth detection result;

[0103] A fifth device detection module 46, configured to perform source code detection on the target IOT device according to the source code detection instruction to obtain a fifth detection result;

[0104] The target detection result generating module 47 is used to aggregate the first detection result, the second detection result, the third detection result, the fourth detection result and the fifth detection result to obtain the target detection result of the target IOT device.

[0105] Furthermore, if Figure 3 As shown, based on the above-mentioned IOT device security testing method and system, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Figure 3 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0106] The memory 20 may be an internal storage unit of the terminal in some embodiments, such as a hard disk or memory of the terminal. The memory 20 may also be an external storage device of the terminal in other embodiments, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Further, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed in the terminal, such as the program code of the installation terminal, etc. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, an IOT device security test program 40 is stored on the memory 20, and the IOT device security test program 40 can be executed by the processor 10, thereby realizing the IOT device security test method in this application.

[0107] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the IOT device security testing method.

[0108] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.

[0109] In one embodiment, when the processor 10 executes the IOT device security test program 40 in the memory 20, the following steps are implemented:

[0110] Obtain the target IoT device to be tested and test instructions, wherein the test instructions include simulated attack instructions, network architecture analysis instructions, communication protocol analysis instructions, sensitive function verification instructions, and source code detection instructions;

[0111] Perform a simulated attack on the target IOT device according to the simulated attack instruction to obtain a first detection result;

[0112] Performing a network architecture analysis on the target IOT device according to the network architecture analysis instruction to obtain a second detection result;

[0113] Performing communication protocol analysis on the target IOT device according to the communication protocol analysis instruction to obtain a third detection result;

[0114] Perform sensitive function verification on the target IOT device according to the sensitive function verification instruction to obtain a fourth detection result;

[0115] Perform source code detection on the target IOT device according to the source code detection instruction to obtain a fifth detection result;

[0116] The first detection result, the second detection result, the third detection result, the fourth detection result and the fifth detection result are integrated to obtain a target detection result of the target IOT device.

[0117] The step of simulating an attack on the target IOT device to obtain a first detection result specifically includes:

[0118] Mining the system vulnerabilities of the target IOT device to determine whether there are system vulnerabilities;

[0119] If there is a system vulnerability, the target IOT device is tested for remote access, identity authentication, data transmission and storage defects to obtain a system test result;

[0120] Utilize existing system vulnerabilities to simulate attacks on the target IoT device and obtain simulated attack results;

[0121] A first detection result is obtained according to the system test result and the simulated attack result.

[0122] The performing of network architecture analysis on the target IOT device to obtain a second detection result specifically includes:

[0123] Obtain the network architecture location of the target IOT device, wherein the network architecture location includes an intranet and an extranet;

[0124] The target IOT device is deployed on the network according to the network architecture position, and an attacker is simulated to attack the target IOT device that is undergoing network deployment to obtain a second detection result.

[0125] The performing of communication protocol analysis on the target IOT device to obtain a third detection result specifically includes:

[0126] Obtain the communication protocol of the target IOT device and obtain industry-recognized network security communication protocol standards from a third party;

[0127] Based on the industry-recognized network security communication protocol standard, it is determined whether the communication protocol has defects, a defect determination result is obtained, and a third detection result is obtained based on the defect determination result.

[0128] The step of performing sensitive function verification on the target IOT device to obtain a fourth detection result specifically includes:

[0129] Acquire sensitive functions of the target IOT device, wherein the sensitive functions include: modifying system configuration, deleting system configuration, adding system configuration, and viewing sensitive information of the system;

[0130] The sensitive functions are sequentially executed on the target IOT device, and during the execution of the sensitive functions, it is detected whether the target IOT device performs identity authentication to obtain an identity judgment result, and a fourth detection result is obtained according to the identity judgment result.

[0131] The performing of source code detection on the target IOT device to obtain a fifth detection result specifically includes:

[0132] Use a dedicated static scanning tool to perform security testing on the source code of the target IOT device to obtain security testing results;

[0133] A fifth detection result is obtained according to the security test result, wherein the security test includes: a null pointer test, an array out-of-bounds test, and a buffer overflow test.

[0134] The target detection results include: equipment security detection details and equipment security assessment scores;

[0135] The integrating the first detection result, the second detection result, the third detection result, the fourth detection result and the fifth detection result to obtain the target detection result of the target IOT device specifically includes:

[0136] Arrange and summarize the first test result, the second test result, the third test result, the fourth test result, and the fifth test result to obtain equipment safety test details;

[0137] Evaluate the first test result, the second test result, the third test result, the fourth test result, and the fifth test result according to a preset evaluation standard to obtain a score corresponding to each test result;

[0138] Add the scores corresponding to each test result according to the preset weight to obtain the equipment safety assessment score.

[0139] In summary, the present invention provides a method, system, terminal and storage medium for security testing of IOT devices, the method comprising: obtaining a target IOT device to be tested and a test instruction, the test instruction comprising a simulated attack instruction, a network architecture analysis instruction, a communication protocol analysis instruction, a sensitive function verification instruction and a source code detection instruction; according to the test instruction, the target IOT device is subjected to simulated attack, network architecture analysis, communication protocol analysis, sensitive function verification and source code detection respectively to obtain five detection results, and the five detection results are integrated to obtain the target detection result of the target IOT device. The present invention simulates attacks on IOT devices, analyzes the network architecture and communication protocols of IOT devices, performs identity authentication on important services, and performs security detection on the source code of IOT devices, thereby comprehensively ensuring the security of IOT devices.

[0140] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or terminal including the element.

[0141] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0142] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A method for security testing of IoT devices, characterized in that: The IOT device security testing method includes: Obtain the target IoT device to be tested and test instructions, wherein the test instructions include simulated attack instructions, network architecture analysis instructions, communication protocol analysis instructions, sensitive function verification instructions, and source code detection instructions; Perform a simulated attack on the target IOT device according to the simulated attack instruction to obtain a first detection result; Performing a network architecture analysis on the target IOT device according to the network architecture analysis instruction to obtain a second detection result; Performing communication protocol analysis on the target IOT device according to the communication protocol analysis instruction to obtain a third detection result; Perform sensitive function verification on the target IOT device according to the sensitive function verification instruction to obtain a fourth detection result; Perform source code detection on the target IOT device according to the source code detection instruction to obtain a fifth detection result; The first detection result, the second detection result, the third detection result, the fourth detection result and the fifth detection result are integrated to obtain a target detection result of the target IOT device.

2. The IOT device security testing method according to claim 1, characterized in that: The simulating attack on the target IOT device to obtain a first detection result specifically includes: Mining the system vulnerabilities of the target IOT device to determine whether there are system vulnerabilities; If there is a system vulnerability, the target IOT device is tested for remote access, identity authentication, data transmission and storage defects to obtain a system test result; Utilize existing system vulnerabilities to simulate attacks on the target IoT device and obtain simulated attack results; A first detection result is obtained according to the system test result and the simulated attack result.

3. The IOT device security testing method according to claim 1, characterized in that: The performing of network architecture analysis on the target IOT device to obtain a second detection result specifically includes: Obtain the network architecture location of the target IOT device, wherein the network architecture location includes an intranet and an extranet; The target IOT device is deployed on the network according to the network architecture position, and an attacker is simulated to attack the target IOT device that is undergoing network deployment to obtain a second detection result.

4. The IOT device security testing method according to claim 1, characterized in that: The communication protocol analysis of the target IOT device is performed to obtain a third detection result, specifically including: Obtain the communication protocol of the target IOT device and obtain industry-recognized network security communication protocol standards from a third party; Based on the industry-recognized network security communication protocol standard, it is determined whether the communication protocol has defects, a defect determination result is obtained, and a third detection result is obtained based on the defect determination result.

5. The IOT device security testing method according to claim 1, characterized in that: The sensitive function verification of the target IOT device to obtain a fourth detection result specifically includes: Acquire sensitive functions of the target IOT device, wherein the sensitive functions include: modifying system configuration, deleting system configuration, adding system configuration, and viewing sensitive information of the system; The sensitive functions are sequentially executed on the target IOT device, and during the execution of the sensitive functions, it is detected whether the target IOT device performs identity authentication to obtain an identity judgment result, and a fourth detection result is obtained according to the identity judgment result.

6. The IOT device security testing method according to claim 1, characterized in that: The source code detection of the target IOT device is performed to obtain a fifth detection result, specifically including: Use a dedicated static scanning tool to perform security testing on the source code of the target IOT device to obtain security testing results; A fifth detection result is obtained according to the security test result, wherein the security test includes: a null pointer test, an array out-of-bounds test, and a buffer overflow test.

7. The IOT device security testing method according to claim 1, characterized in that: The target detection results include: device security detection details and device security assessment scores; The integrating the first detection result, the second detection result, the third detection result, the fourth detection result and the fifth detection result to obtain the target detection result of the target IOT device specifically includes: Arrange and summarize the first test result, the second test result, the third test result, the fourth test result, and the fifth test result to obtain equipment safety test details; Evaluate the first test result, the second test result, the third test result, the fourth test result, and the fifth test result according to a preset evaluation standard to obtain a score corresponding to each test result; Add the scores corresponding to each test result according to the preset weight to obtain the equipment safety assessment score.

8. An IOT device security testing system, characterized in that: The IOT device safety testing system includes: A test instruction acquisition module is used to acquire the target IoT device to be tested and the test instructions, wherein the test instructions include simulated attack instructions, network architecture analysis instructions, communication protocol analysis instructions, sensitive function verification instructions, and source code detection instructions; A first device detection module, used to perform a simulated attack on the target IOT device according to the simulated attack instruction to obtain a first detection result; A second device detection module, used to perform network architecture analysis on the target IOT device according to the network architecture analysis instruction to obtain a second detection result; A third device detection module, used to perform communication protocol analysis on the target IOT device according to the communication protocol analysis instruction to obtain a third detection result; A fourth device detection module, used to perform sensitive function verification on the target IOT device according to the sensitive function verification instruction to obtain a fourth detection result; A fifth device detection module, used to perform source code detection on the target IOT device according to the source code detection instruction to obtain a fifth detection result; The target detection result generation module is used to aggregate the first detection result, the second detection result, the third detection result, the fourth detection result and the fifth detection result to obtain the target detection result of the target IOT device.

9. A terminal, characterized in that: The terminal includes: a memory, a processor, and an IOT device security testing program stored in the memory and executable on the processor. When the IOT device security testing program is executed by the processor, the steps of the IOT device security testing method according to any one of claims 1 to 7 are implemented.

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