Internet of Things terminal security test method and device, medium and equipment
The convolutional neural network model is used to extract features from the device fingerprints and communication parameters of IoT terminals to quickly and efficiently conduct security testing, solve the detection problem of IoT device security issues, and improve testing efficiency and accuracy.
Patent Information
- Application Number
- CN202311462361.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-03
- Publication Date
- 2024-10-18
AI Technical Summary
With the massive access of IoT devices, more and more security issues have been exposed, especially because the devices are exposed to the Internet and are easily exploited by attackers, resulting in DDoS attacks and vulnerabilities being maliciously exploited. It is difficult for existing technologies to carry out rapid and efficient operations. Security testing.
By obtaining the device fingerprint information, communication parameters and request message parameters of the IoT terminal, input them into the pre-trained convolutional neural network model, generate a feature image, and compare it with the reference security feature image to determine whether the terminal passes the security test.
It achieves fast and efficient security testing of IoT terminals, avoids subjective intervention by personnel, improves the accuracy and efficiency of test results, and saves human and material resources.
Smart Images

Figure CN118802228A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of security testing technology, and in particular, relates to a method, device, medium, and equipment for security testing of an Internet of Things terminal. Background Art
[0002] With the development of IoT technology, more and more smart terminals are connected to various industries and people's lives through IoT. According to the typical three-layer architecture of cloud, pipe and terminal, IoT terminals are connected to device gateways through various IoT protocols, and then connected to the cloud platform through IoT gateways, so as to realize the management and control of IoT intelligence from the cloud.
[0003] With the massive access of IoT devices, more and more IoT security issues are constantly being exposed. For example, the famous Mirai virus infects a large number of cameras and other devices, forming a huge botnet. Hackers manipulate the botnet to launch DDoS attacks (i.e. distributed denial of service attacks) on domain name providers, resulting in large-scale network interruptions and affecting multiple well-known networks. In addition, the surge in IoT devices has provided a breeding ground for the growth of DDoS. In order to facilitate remote management, IoT devices are generally exposed to the Internet, which facilitates the scanning and propagation of malicious samples carrying DDoS functions. At the same time, the uneven technical foundations of various IoT manufacturers have led to various vulnerabilities in the systems and applications of each IoT terminal itself being exposed to malicious exploits by attackers. Summary of the invention
[0004] The embodiments of the present application provide a method and apparatus, medium, and equipment for security testing of an IoT terminal, which can quickly and efficiently perform security testing on an IoT terminal.
[0005] According to a first aspect, an embodiment of the present application provides an Internet of Things terminal security testing method, the method comprising:
[0006] Obtain device fingerprint information, device communication parameters, and request message parameters of the IoT terminal to be tested;
[0007] Inputting the device fingerprint information, device communication parameters and request message parameters of the IoT terminal to be tested into a pre-trained convolutional neural network model to obtain a feature image of the IoT terminal to be tested;
[0008] Obtaining a reference security feature image corresponding to the IoT terminal to be tested;
[0009] According to the similarity between the feature image of the Internet of Things terminal to be tested and the reference security feature image, it is determined whether the Internet of Things terminal to be tested passes the security test.
[0010] According to a second aspect, an embodiment of the present application provides an IoT terminal security testing device, the device comprising:
[0011] The first acquisition module is used to obtain device fingerprint information, device communication parameters and request message parameters of the IoT terminal to be tested;
[0012] An information input module, used to input the device fingerprint information, device communication parameters and request message parameters of the IoT terminal to be tested into a pre-trained convolutional neural network model to obtain a feature image of the IoT terminal to be tested;
[0013] A second acquisition module is used to acquire a reference security feature image corresponding to the Internet of Things terminal to be tested;
[0014] The similarity determination module is used to determine whether the Internet of Things terminal to be tested passes the security test according to the similarity between the feature image of the Internet of Things terminal to be tested and the reference security feature image.
[0015] According to a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed in a computer, the computer is caused to execute the method provided in the first aspect.
[0016] According to a fourth aspect, an embodiment of the present application provides a computing device, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method provided in the first aspect is implemented.
[0017] The IoT terminal security testing method, device, medium, and equipment of the embodiment of the present application collects the device fingerprint information, device communication parameters, and request message parameters of the IoT terminal to be tested, and then uses a convolutional neural network to obtain a feature image of the IoT terminal to be tested, and compares the feature image with a reference security feature image to obtain a security test result. It can be seen that the embodiment of the present application is an intelligent security testing solution for IoT terminals based on a convolutional neural network model, which can quickly and efficiently perform security tests on a large number of IoT terminals connected to a cloud platform, thereby ensuring that the IoT terminal has undergone sufficient security verification to provide a safer and more reliable IoT terminal for users. Moreover, the security testing process does not require human participation, which avoids subjective intervention by personnel, improves the accuracy and efficiency of the test results, and saves a lot of manpower and material resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0019] Figure 1 It is a flowchart of a method for security testing of an Internet of Things terminal in one embodiment of the present application;
[0020] Figure 2 This is a structural block diagram of an IoT terminal security testing device in one embodiment of the present application;
[0021] Figure 3 It is a structural block diagram of a computing device in one embodiment of the present application. DETAILED DESCRIPTION
[0022] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0023] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device 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 device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0024] The present invention provides a method for testing the security of an IoT terminal.
[0025] See also Figure 1 The method comprises the following steps S110 to S140:
[0026] S110, obtaining device fingerprint information, device communication parameters and request message parameters of the IoT terminal to be tested;
[0027] It is understandable that the method provided in the embodiment of the present application can be executed by a cloud platform, for example, by OneNET, which is an open cloud platform of China Mobile Internet of Things.
[0028] In actual scenarios, the cloud platform can obtain various relevant information of the IoT terminal to be tested through API interface requests.
[0029] In one embodiment, the device fingerprint information may include first key-value pair information, wherein the first key-value pair information uses the device type and device ID of the IoT terminal to be tested as a key, and uses at least one of the international mobile equipment identity code, integrated circuit card identification code, IP address, communication protocol, communication port and MAC address of the IoT terminal to be tested as a value.
[0030] Among them, the International Mobile Equipment Identity code is the IMEI number.
[0031] Among them, the integrated circuit card identification code is the ICCID number.
[0032] It can be seen that the device fingerprint information is mostly identification information, which can reflect the basic information of the IoT terminal to be tested.
[0033] In one embodiment, the device communication parameters may include second key-value pair information, wherein the second key-value pair information uses the device ID and the custom request serial number as keys, and uses at least one of the communication protocol, request method, and request message header as a value.
[0034] It can be seen that the device communication parameters refer to the communication-related information of the IoT terminal to be tested.
[0035] In one embodiment, the request message parameter may include third key-value pair information, wherein the third key-value pair information uses the custom request serial number as a key and uses the parameter name and parameter value in the request message data body as a value.
[0036] It can be seen that the request message parameters are the basic information of the IoT terminal to be tested in terms of message parameters.
[0037] S120, inputting the device fingerprint information, device communication parameters and request message parameters of the IoT terminal to be tested into a pre-trained convolutional neural network model to obtain a feature image of the IoT terminal to be tested;
[0038] Among them, the input information of the convolutional neural network model is the device fingerprint information, device communication parameters and request message parameters of an IoT terminal, and the output information is the feature image of the IoT terminal.
[0039] In one embodiment, the processing process of the convolutional neural network model may specifically include the following steps S1 to S4:
[0040] S1. Write the device fingerprint information, device communication parameters and request message parameters of the IoT terminal to be tested into their corresponding EXCEL files respectively, and obtain three EXCEL files with written information;
[0041] That is to say, the device fingerprint information of the IoT terminal to be tested is written into an EXCEL file, the device communication parameters of the IoT terminal to be tested is written into an EXCEL file, and the request message parameters are written into an EXCEL file, thus obtaining three EXCEL files with written information.
[0042] S2, converting the character string in each EXCEL file into integer data, and rescaling the EXCEL file into a corresponding matrix after the data type conversion;
[0043] The data type of the information in the EXCEL file is a string, and the string type is converted to an integer, that is, int type. In order not to cross the range represented by int, at most 9 characters are read and converted to integers during the integerization process. After integerization, all integers in an EXCEL file are rescaled to a matrix of a set size, for example, a matrix of size 512*512. That is, after integerization and rescaling, an EXCEL file obtains a corresponding matrix, and three EXCEL files correspond to three matrices.
[0044] Specifically, refer to the following formula for rescaling:
[0045]
[0046] Among them, V k Represents the kth integer in an EXCEL file, R k Indicates V k The corresponding elements in the matrix corresponding to the EXCEL file after rescaling, R k The value range is between 0 and 255. The rescaling process considers as many neighborhood eigenvalues in the vector as possible, and a resampler can be used for bilinear interpolation.
[0047] S3. Generate a behavior image of the Internet of Things terminal to be tested according to the three matrices corresponding to the three EXCEL files;
[0048] That is to say, a behavior image, that is, an image about behavior, is generated using three matrices, and the image can reflect the behavior information of the IoT terminal to be tested.
[0049] In one embodiment, S3 may specifically include:
[0050] Each of the three matrices is matched to a color channel, the obtained three color channels are merged into an RGB image, and the RGB image is used as a behavior image of the IoT terminal to be tested; wherein the three color channels are a green channel, a red channel, and a blue channel.
[0051] That is, one matrix is matched to the green channel, one matrix is matched to the red channel, and one matrix is matched to the blue channel, and then the three color channels are fused into RGB channels to obtain an RGB image, and the RGB image is used as the behavior image of the IoT terminal to be tested.
[0052] It can be seen that this method is to channelize the matrix and then fuse each single color channel to obtain an RGB image.
[0053] In one embodiment, S3 may specifically include:
[0054] A two-dimensional code image is constructed according to the three matrices, and the two-dimensional code image is used as the behavior image.
[0055] That is to say, a two-dimensional code is generated using three matrices. For example, the three matrices can be spliced to obtain a spliced matrix, and then the spliced matrix is converted into a two-dimensional code image, so that the two-dimensional code image is used as the behavior image of the IoT terminal to be tested.
[0056] It can be seen that there are many ways to determine the behavior image of the IoT terminal to be tested, which are certainly not limited to the above two.
[0057] S4. Extract features from the behavior image to obtain a feature image of the Internet of Things terminal to be tested.
[0058] Among them, the convolutional neural network model can specifically adopt the ZFNet model.
[0059] Specifically, the maximum pooling technique can be used to reduce the dimension of the generated feature image and only extract the behavior feature values whose size is larger than the neighboring behavior feature values.
[0060] Among them, the convolutional neural network extracts features from the behavior image to form a feature image. By pre-training the convolutional neural network, the extracted features can be made representative and the accuracy of the safety test can be improved.
[0061] It can be seen that the convolutional neural network model can obtain the feature image of the IoT terminal to be tested based on the above S1 to S4.
[0062] S130, obtaining a reference security feature image corresponding to the IoT terminal to be tested;
[0063] It is understandable that the reference security feature image is a reference image, and as a reference image, it should be a feature image of an IoT terminal that has passed the security test.
[0064] In one embodiment, S130 may specifically include the following steps S131 to S132:
[0065] S131, obtaining a feature image of a tested Internet of Things terminal that has passed a security test of a security test case; wherein the device type of the tested Internet of Things terminal is the same as the device type of the Internet of Things terminal to be tested;
[0066] Among them, the feature image of the tested IoT terminal is a feature image obtained after inputting the device fingerprint information, device communication parameters and request message parameters of the tested IoT terminal into the convolutional neural network model.
[0067] The tested IoT terminal is an IoT terminal that has passed the security test of the security test case. Moreover, the tested IoT terminal and the IoT terminal to be tested are of the same device type, that is, the tested IoT terminal and the IoT terminal to be tested are IoT terminals of the same type and model.
[0068] Among them, security test cases may include nmap's port scanning script, sqlmap's SQL injection scanning script, burpsuite's weak password detection script, burpsuite's cross-domain attack detection script, burpsuite's client request authentication detection script, etc. Different security test cases have different detection contents.
[0069] S132: Use the feature image of the tested IoT terminal as the reference security feature image.
[0070] That is to say, the feature image of the tested IoT terminal is used as the reference image of the IoT terminal to be tested.
[0071] S140: Determine whether the Internet of Things terminal to be tested passes a security test according to a similarity between the feature image of the Internet of Things terminal to be tested and the reference security feature image.
[0072] Specifically, if the similarity between the feature image of the IoT terminal to be tested and the reference security feature image is greater than a preset similarity, it is considered that the similarity between the two images is very high, and the IoT terminal to be tested has passed the security test. If the similarity between the two images is less than or equal to the preset similarity, it is considered that the similarity between the two images is not high, and the IoT terminal to be tested cannot pass the security test.
[0073] It can be understood that the embodiment of the present application proposes an intelligent security testing solution for IoT terminals based on a convolutional neural network model, which can quickly perform security scans and security tests on a large number of IoT terminals connected to the cloud platform, thereby ensuring that the IoT terminals have undergone sufficient security verification to provide safer and more reliable IoT terminals for users.
[0074] It is understandable that the method provided in the embodiment of the present application is applied to the field of security detection of IoT terminals, and security detection is performed on various access scenarios, different access protocol types, assimilation and differentiation between devices of different manufacturers, etc. of IoT terminals, so as to quickly and accurately perform security detection. It can be seen that the embodiment of the present application can quickly and accurately carry out security testing and delivery verification of IoT terminals through automated means, ensuring the quality of research and development and the quality of deliverables.
[0075] The existing solution is to invest security testing manpower and technical support in the project development process and delivery stage to complete the detection and verification of security vulnerabilities and security issues of IoT terminals and troubleshoot the causes of problems, which is time-consuming, labor-intensive and costly. However, in the embodiment of the present application, by collecting the device fingerprint information, device communication parameters and request message parameters of the IoT terminal to be tested, and then using a convolutional neural network to obtain the feature image of the IoT terminal to be tested, the feature image is compared with the reference security feature image to obtain the security test result. This process does not require the steps of manual / semi-automated security testing for different security testing scenarios one by one, thereby improving the efficiency of IoT terminal security testing. The security testing method provided in the embodiment of the present application does not require human participation, avoids subjective intervention by personnel, improves the accuracy of the test results, and does not require a large amount of manpower and material resources to conduct security testing.
[0076] This application embodiment provides an IoT terminal security testing device, see Figure 2 , the device comprises:
[0077] The first acquisition module 210 is used to obtain device fingerprint information, device communication parameters and request message parameters of the IoT terminal to be tested;
[0078] The information input module 220 is used to input the device fingerprint information, device communication parameters and request message parameters of the IoT terminal to be tested into a pre-trained convolutional neural network model to obtain a feature image of the IoT terminal to be tested;
[0079] The second acquisition module 230 is used to acquire a reference security feature image corresponding to the IoT terminal to be tested;
[0080] The similarity determination module 240 is used to determine whether the IoT terminal to be tested passes the security test according to the similarity between the feature image of the IoT terminal to be tested and the reference security feature image.
[0081] In one embodiment, the convolutional neural network model may include:
[0082] An information writing unit, used to write the device fingerprint information, device communication parameters and request message parameters of the IoT terminal to be tested into respective corresponding EXCEL files, to obtain three EXCEL files with written information;
[0083] A type conversion unit, used to convert the character string in each EXCEL file into integer data, and rescale the EXCEL file into a corresponding matrix after the data type conversion;
[0084] An image generating unit, used for generating a behavior image of the Internet of Things terminal to be tested according to three matrices corresponding to three EXCEL files;
[0085] The feature extraction unit is used to extract features from the behavior image to obtain a feature image of the Internet of Things terminal to be tested.
[0086] Furthermore, the image generation unit can be specifically used to: match each of the three matrices to a color channel, fuse the obtained three color channels into an RGB image, and use the RGB image as the behavior image of the Internet of Things terminal to be tested; wherein the three color channels are a green channel, a red channel, and a blue channel; or, the image generation unit can be specifically used to: construct a QR code image based on the three matrices, and use the QR code image as the behavior image.
[0087] In one embodiment, the second acquisition module can be specifically used to: obtain a feature image of a tested Internet of Things terminal that has passed the security test of a security test case; wherein the device type of the tested Internet of Things terminal is the same as the device type of the Internet of Things terminal to be tested; and use the feature image of the tested Internet of Things terminal as the reference security feature image.
[0088] In one embodiment, the device fingerprint information may include first key-value pair information, wherein the first key-value pair information uses the device type and device ID of the IoT terminal to be tested as a key, and uses at least one of the international mobile equipment identity code, integrated circuit card identification code, IP address, communication protocol, communication port and MAC address of the IoT terminal to be tested as a value.
[0089] In one embodiment, the device communication parameters may include second key-value pair information, wherein the second key-value pair information uses the device ID and the custom request serial number as keys, and uses at least one of the communication protocol, request method, and request message header as a value.
[0090] In one embodiment, the request message parameter may include third key-value pair information, wherein the third key-value pair information uses the custom request serial number as a key and uses the parameter name and parameter value in the request message data body as a value.
[0091] It is understandable that the explanation, specific implementation methods, beneficial effects, examples, etc. of the relevant contents in the device provided in the embodiment of the present application can be found in the corresponding parts of the Internet of Things terminal security testing method provided in the embodiment of the present application, and will not be repeated here.
[0092] An embodiment of the present application provides a computer-readable medium having computer instructions stored thereon. When the computer instructions are executed by a processor, the processor executes the method for preventing a web crawler from stealing merchant information provided by an embodiment of the present application.
[0093] It is understandable that the explanation, specific implementation methods, beneficial effects, examples, etc. of the relevant contents in the computer-readable medium provided in the embodiment of the present application can be referred to the corresponding parts of the Internet of Things terminal security testing method provided in the embodiment of the present application, and will not be repeated here.
[0094] An embodiment of the present application provides a computing device, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method in any one of the embodiments in the specification is implemented.
[0095] Figure 3 The hardware structure diagram of the computing device provided by the embodiment of the present invention is shown. The computing device may include a processor 301 and a memory 302 storing computer program instructions.
[0096] Specifically, the processor 301 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.
[0097] The memory 302 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 302 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In one example, the memory 302 may include a removable or non-removable (or fixed) medium, or the memory 302 is a non-volatile solid-state memory. The memory 302 may be inside or outside the integrated gateway disaster recovery device.
[0098] In one example, the memory 302 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Thus, in general, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present application.
[0099] The processor 301 reads and executes the computer program instructions stored in the memory 302 to implement Figure 1 The IoT terminal security testing method in the illustrated embodiment.
[0100] In one example, the computing device may further include a communication interface 303 and a bus 304. Figure 3 As shown, the processor 301, the memory 302, and the communication interface 303 are connected via a bus 304 and communicate with each other.
[0101] The communication interface 303 is mainly used to implement the communication between the modules, devices, units and / or equipment in the embodiment of the present invention.
[0102] Bus 304 includes hardware, software or both, and couples the components of online data traffic billing equipment to each other. For example, but not limitation, the bus may include Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), Hyper Transport (HT) interconnection, Industry Standard Architecture (ISA) bus, InfiniBand interconnection, Low Pin Count (LPC) bus, Memory bus, Micro Channel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus or other suitable bus or two or more of these combinations. Where appropriate, bus 304 may include one or more buses. Although the embodiments of the present invention describe and illustrate specific buses, the present invention considers any suitable bus or interconnection.
[0103] The computing device can execute each step of the IoT terminal security testing method in the embodiment of the present application, thereby realizing the combination Figure 1 Describes IoT terminal security testing methods.
[0104] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.
[0105] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable ReadOnly Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0106] It should also be noted that the exemplary embodiments mentioned in the present invention describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiments, or in a different order from the embodiments, or several steps can be performed simultaneously.
[0107] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0108] The above is only a specific implementation of the present invention. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the system, module and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. It should be understood that the protection scope of the present invention is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be covered within the protection scope of the present invention.
Claims
1. A method for security testing of an Internet of Things terminal, characterized in that: include: Obtain device fingerprint information, device communication parameters, and request message parameters of the IoT terminal to be tested; Inputting the device fingerprint information, device communication parameters and request message parameters of the IoT terminal to be tested into a pre-trained convolutional neural network model to obtain a feature image of the IoT terminal to be tested; Obtaining a reference security feature image corresponding to the IoT terminal to be tested; According to the similarity between the feature image of the Internet of Things terminal to be tested and the reference security feature image, it is determined whether the Internet of Things terminal to be tested passes the security test.
2. The method according to claim 1, characterized in that The processing process of the convolutional neural network model includes: Write the device fingerprint information, device communication parameters and request message parameters of the IoT terminal to be tested into their corresponding EXCEL files respectively, and obtain three EXCEL files with written information; Convert the string in each EXCEL file into integer data, and rescale the EXCEL file into the corresponding matrix after data type conversion; Generate a behavior image of the Internet of Things terminal to be tested according to the three matrices corresponding to the three EXCEL files; Feature extraction is performed from the behavior image to obtain a feature image of the Internet of Things terminal to be tested.
3. The method according to claim 2, characterized in that The step of generating the behavior image of the IoT terminal to be tested according to the three matrices corresponding to the three EXCEL files includes: Match each of the three matrices to a color channel, fuse the obtained three color channels into an RGB image, and use the RGB image as the behavior image of the IoT terminal to be tested; wherein the three color channels are a green channel, a red channel, and a blue channel; Alternatively, a two-dimensional code image is constructed according to the three matrices, and the two-dimensional code image is used as the behavior image.
4. The method according to claim 1, characterized in that: The obtaining of a reference security feature image corresponding to the IoT terminal to be tested includes: Acquire a feature image of a tested Internet of Things terminal that has passed a security test of a security test case; wherein the device type of the tested Internet of Things terminal is the same as the device type of the Internet of Things terminal to be tested; The feature image of the tested Internet of Things terminal is used as the reference security feature image.
5. The method according to claim 1, characterized in that The device fingerprint information includes first key-value pair information, wherein the first key-value pair information uses the device type and device ID of the IoT terminal to be tested as a key, and uses at least one of the international mobile equipment identity code, integrated circuit card identification code, IP address, communication protocol, communication port and MAC address of the IoT terminal to be tested as a value.
6. The method according to claim 1, characterized in that The device communication parameters include second key-value pair information, wherein the second key-value pair information uses the device ID and the custom request serial number as keys, and uses at least one of the communication protocol, the request method, and the request message header as a value.
7. The method according to claim 1, characterized in that The request message parameters include third key-value pair information, wherein the third key-value pair information uses the custom request serial number as a key and uses the parameter name and parameter value in the request message data body as a value.
8. An IoT terminal security testing device, characterized in that: include: The first acquisition module is used to obtain device fingerprint information, device communication parameters and request message parameters of the IoT terminal to be tested; An information input module, used to input the device fingerprint information, device communication parameters and request message parameters of the IoT terminal to be tested into a pre-trained convolutional neural network model to obtain a feature image of the IoT terminal to be tested; A second acquisition module is used to acquire a reference security feature image corresponding to the Internet of Things terminal to be tested; The similarity determination module is used to determine whether the Internet of Things terminal to be tested passes the security test according to the similarity between the feature image of the Internet of Things terminal to be tested and the reference security feature image.
9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed in a computer, the computer is caused to execute the method according to any one of claims 1 to 7.
10. A computing device, characterized in that The method comprises a memory and a processor, wherein the memory stores executable codes, and when the processor executes the executable codes, the method according to any one of claims 1 to 7 is implemented.
