Internet of Things equipment password security detection method and device
By generating character passwords for comparison and binary tree analysis, combined with the timing module and password recovery module, the problem of password security detection for IoT devices is solved, efficient security judgment and password recovery are achieved, and device security is ensured.
Patent Information
- Application Number
- CN202310318205.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology lacks an effective method to efficiently determine the security of the password of an IoT device, making the device vulnerable to attacks and user privacy being violated.
Provides a password security detection method for Internet of Things devices. It generates character passwords for comparison, uses the communication module to communicate with the device, combines the timing module and the password recovery module, and determines the complexity and security of the password based on binary tree and randomness analysis.
Without knowing the password in advance, it can detect the password security of IoT devices and realize password recovery through wireless or wired communication. The process is not limited by computer computing power, is suitable for passwords of any length, and accurately determines the security of device passwords. .
Smart Images

Figure CN118740384A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information security, and specifically to a method and apparatus for detecting the security of passwords for Internet of Things devices. Background Art
[0002] The hardware architecture of IoT devices usually includes a main control module, a communication module, and a storage module. Among them, the main control module and the communication module usually require the user to enter the correct password before they can be used, such as the door unlocking password of devices such as door locks, and the WIFI password of devices such as cameras and routers. It can be seen that passwords have become the main way for IoT devices to identify users.
[0003] As IoT devices are increasingly used in people's lives, password security issues are becoming more prominent. If a device lacks a password security protection solution, once an attacker cracks the password of an IoT device, they can manipulate the device at will to steal data and infringe on user privacy. Therefore, it is increasingly important to determine the security of IoT device passwords. Currently, there is no method that can efficiently determine the security of IoT device passwords. Summary of the invention
[0004] In response to the problems in the prior art, the present application provides a method and apparatus for detecting the security of an IoT device password, which can detect the security of an IoT device password without knowing the IoT device password in advance.
[0005] In order to solve the above technical problems, this application provides the following technical solutions:
[0006] In a first aspect, the present application provides a method for detecting the security of an IoT device password, comprising:
[0007] Generate a character password according to the number of digits of the password of the IoT device and a preset password generation strategy, and trigger the communication module to send the character password to the IoT device, so that the IoT device performs a password character correctness comparison based on the character password;
[0008] Utilizing the communication module to receive the correctness comparison result sent by the IoT device, and sending the correctness comparison result to the password recovery module, so that the password recovery module determines the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result;
[0009] A password complexity analysis is performed on the received correct password, and the password security of the IoT device is determined.
[0010] Furthermore, the step of generating a character password according to the number of digits of the password of the IoT device and a preset password generation strategy includes:
[0011] Starting from the first character of the character password, characters in the character password are predicted bit by bit; wherein each character in the character password is a character in the standard code for information exchange; only after the prediction of the preceding character is correct, the subsequent character corresponding to the preceding character is predicted; before the prediction of the preceding character is correct, the subsequent character and the characters that have not been predicted are assigned zero; if the prediction of the preceding character is wrong, the preceding character is predicted again until the corresponding subsequent character is predicted after the prediction of the preceding character is correct; the preceding character is adjacent to the subsequent character;
[0012] The character password is generated based on the prediction result.
[0013] Further, performing password complexity analysis on the correct password and determining the password security of the IoT device includes:
[0014] Construct a binary tree according to the character string corresponding to the correct password;
[0015] Calculating the depth of the binary tree as the complexity of the correct password;
[0016] Calculating the single-bit frequency of the character string as the randomness of the correct password;
[0017] The password security of the Internet of Things device is determined according to the complexity, the randomness and the corresponding security threshold.
[0018] Furthermore, the method for detecting the security of passwords of IoT devices further includes:
[0019] When the communication module is triggered to send the character password to the IoT device, the timing module is triggered to start timing to determine the time when the password is sent;
[0020] The password sending time is sent to the password recovery module.
[0021] Furthermore, the method for detecting the security of passwords of IoT devices further includes:
[0022] When receiving the correctness comparison result sent by the IoT device, triggering the timing module to start timing to determine the time when the comparison result is received;
[0023] The comparison result receiving time is sent to the password recovery module.
[0024] In a second aspect, the present application provides a method for detecting the security of an IoT device password, comprising:
[0025] The receiving control module receives the command sending time, the comparison result receiving time and the correctness comparison result;
[0026] Determine the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result; wherein the correctness comparison result is the result of the Internet of Things device performing a correctness analysis on the character password generated by the control module;
[0027] The correct password is sent to the control module so that the control module performs password complexity analysis on the correct password and determines the password security of the Internet of Things device.
[0028] Further, the determining the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result includes:
[0029] The corresponding comparison time difference is calculated based on the password sending time corresponding to the correctness comparison and the comparison result receiving time of each correctness comparison; wherein the comparison time difference is the time consumed by the IoT device to perform the correctness comparison;
[0030] The character password corresponding to the maximum value is selected from each comparison time difference as the correct password.
[0031] In a third aspect, the present application provides an IoT device password security detection device, comprising:
[0032] A character password generating unit, used to generate a character password according to the number of digits of the password of the IoT device and a preset password generating strategy, and trigger the communication module to send the character password to the IoT device, so that the IoT device performs a password character correctness comparison based on the character password;
[0033] A character password sending unit, used to receive the correctness comparison result sent by the Internet of Things device using the communication module, and send the correctness comparison result to the password recovery module, so that the password recovery module determines the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result;
[0034] The character password analysis unit is used to perform password complexity analysis on the received correct password and determine the password security of the Internet of Things device.
[0035] Furthermore, the character password generating unit comprises:
[0036] A character prediction module is used to predict the characters in the character password bit by bit starting from the first character of the character password; wherein each character in the character password is a character in the information exchange standard code; only after the prediction of the preceding character is correct, the subsequent character corresponding to the preceding character is predicted; before the prediction of the preceding character is correct, the subsequent character and the characters that have not been predicted are assigned zero; if the prediction of the preceding character is wrong, the preceding character is re-predicted until the corresponding subsequent character is predicted after the prediction of the preceding character is correct; the preceding character is adjacent to the subsequent character;
[0037] The character password generating module is used to generate the character password based on the prediction result.
[0038] Furthermore, the character password analysis unit comprises:
[0039] A binary tree construction module, used to construct a binary tree according to the character string corresponding to the correct password;
[0040] A complexity calculation module, used for calculating the depth of the binary tree as the complexity of the correct password;
[0041] A randomness calculation module, used for calculating the single-bit frequency of the character string as the randomness of the correct password;
[0042] The security determination module is used to determine the password security of the Internet of Things device according to the complexity, the randomness and the corresponding security threshold.
[0043] Furthermore, the Internet of Things device password security detection device also includes:
[0044] A start timing trigger unit, configured to trigger the timing module to start timing when triggering the communication module to send the character password to the IoT device, so as to determine the time when the password is sent;
[0045] A start time sending unit is used to send the password sending time to the password recovery module.
[0046] Furthermore, the Internet of Things device password security detection device also includes:
[0047] An end timing trigger unit is used to trigger the timing module to start timing when receiving the correctness comparison result sent by the Internet of Things device, so as to determine the reception time of the comparison result;
[0048] The end time sending unit is used to send the comparison result receiving time to the password recovery module.
[0049] In a fourth aspect, the present application provides an IoT device password security detection device, comprising:
[0050] A time result receiving unit, used for receiving the command sending time, comparison result receiving time and correctness comparison result sent by the control module;
[0051] A correct password determination unit, used to determine the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result; wherein the correctness comparison result is the result of the Internet of Things device performing a correctness analysis on the character password generated by the control module;
[0052] The correct password sending unit is used to send the correct password to the control module, so that the control module performs password complexity analysis on the correct password and determines the password security of the Internet of Things device.
[0053] Furthermore, the correct password determination unit includes:
[0054] A time difference calculation module, used to calculate the corresponding comparison time difference based on the password sending time corresponding to the correctness comparison and the comparison result receiving time of each correctness comparison; wherein the comparison time difference is the time consumed by the Internet of Things device to perform the correctness comparison;
[0055] The correct password determination module is used to select the character password corresponding to the maximum value from each comparison time difference as the correct password.
[0056] In a fifth aspect, the present application provides an IoT device password security detection system, including: a control module and a password recovery module;
[0057] Among them, the control module is used to generate a character password according to the number of password digits of the Internet of Things device and a preset password generation strategy, and trigger the communication module to send the character password to the Internet of Things device, so that the Internet of Things device performs a password character correctness comparison based on the character password; use the communication module to receive the correctness comparison result sent by the Internet of Things device, and send the correctness comparison result to the password recovery module, so that the password recovery module determines the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result; perform password complexity analysis on the received correct password, and determine the password security of the Internet of Things device;
[0058] The password recovery module is used to receive the password sending time, the comparison result receiving time and the correctness comparison result sent by the control module; determine the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result; wherein the correctness comparison result is the result of the Internet of Things device performing a correctness analysis on the character password generated by the control module; send the correct password to the control module so that the control module performs a password complexity analysis on the correct password and determines the password security of the Internet of Things device.
[0059] In a sixth aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for detecting the password security of an Internet of Things device when executing the program.
[0060] In a seventh aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for detecting the password security of an Internet of Things device.
[0061] In an eighth aspect, the present application provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the method for detecting the password security of an Internet of Things device.
[0062] In response to the problems in the prior art, the method and device for detecting the security of the password of an IoT device provided by the present application can detect the security of the password of an IoT device without knowing the password of the IoT device in advance; in the password recovery stage, it can communicate with the IoT device in a wireless or wired manner, and remotely realize password recovery based on the obtained password comparison time difference. This process is not limited by the computing power of the computer and can recover passwords of any length; in the password complexity analysis stage, it can perform password complexity analysis based on a binary tree. When the password complexity analysis based on the binary tree cannot accurately reflect the security of the password, it can further analyze the security of the password based on a string random algorithm, and finally effectively determine the security of the IoT device password. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0064] Figure 1 This is one of the flow charts of the method for detecting the security of the password of an IoT device in an embodiment of the present application;
[0065] Figure 2 A flowchart of generating a character password in an embodiment of the present application;
[0066] Figure 3 A flowchart for determining the password security of the Internet of Things device in an embodiment of the present application;
[0067] Figure 4 This is the second flow chart of the method for detecting the security of the password of an IoT device in the embodiment of the present application;
[0068] Figure 5 This is the third flow chart of the method for detecting the security of the password of an IoT device in the embodiment of the present application;
[0069] Figure 6 This is the fourth flow chart of the method for detecting the security of the password of an IoT device in the embodiment of the present application;
[0070] Figure 7 A flowchart for determining a correct password in an embodiment of the present application;
[0071] Figure 8 This is one of the structural diagrams of the device for detecting the security of passwords for IoT devices in the embodiment of the present application;
[0072] Fig. 9 This is a structural diagram of a character password generating unit in an embodiment of the present application;
[0073] Fig.10 This is a structural diagram of a character password analysis unit in an embodiment of the present application;
[0074] Fig.11 This is the second structural diagram of the Internet of Things device password security detection device in the embodiment of the present application;
[0075] Fig.12 This is the third structural diagram of the device for detecting the security of passwords for IoT devices in the embodiment of the present application;
[0076] Fig.13 This is the fourth structural diagram of the device for detecting the security of passwords for IoT devices in the embodiment of the present application;
[0077] Fig.14 This is a structural diagram of a correct password determination unit in an embodiment of the present application;
[0078] Fig.15 A schematic diagram of the structure of an electronic device in an embodiment of the present application;
[0079] Fig.16 This is a schematic diagram of the connection relationship between the Internet of Things device and the server in the embodiment of the present application;
[0080] Fig.17It is a flow chart of the overall method in the embodiments of the present application. DETAILED DESCRIPTION
[0081] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0082] The acquisition, storage, use and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0083] In one embodiment, see Figure 1 In order to detect the security of an IoT device password without knowing the IoT device password in advance, the present application provides an IoT device password security detection method, including:
[0084] S101: Generate a character password according to the number of digits of the password of the IoT device and a preset password generation strategy, and trigger a communication module to send the character password to the IoT device, so that the IoT device performs a password character correctness comparison based on the character password;
[0085] S102: using the communication module to receive the correctness comparison result sent by the IoT device, and sending the correctness comparison result to the password recovery module, so that the password recovery module determines the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result;
[0086] S103: Perform password complexity analysis on the received correct password, and determine the password security of the IoT device.
[0087] It is understandable that the purpose of the present invention is mainly to detect the security of the passwords of IoT devices by calculating the complexity of the passwords of IoT devices. These passwords (such as device unique identifiers, device hardware root keys, etc.) may not be known by the execution subject (including the control module) of the embodiment of the present application due to factory settings and other reasons. Therefore, the execution subject of the embodiment of the present application must first determine the correct password before completing the calculation of the password complexity and the detection of security. These passwords include, but are not limited to, WIFI passwords, device startup passwords, etc.
[0088] In specific implementation, the correct password of the IoT device can first be determined by timing; then, on this basis, a binary tree model is established for the correct password; finally, the security of the correct password is determined by analyzing the depth of the binary tree and the randomness of the binary string of the correct password.
[0089] Specifically, see Fig.16 , the embodiment of the present application includes two ends that communicate with each other, one end is a PC (used as a server), and the other end is an Internet of Things device. Among them, the PC end mainly includes: a communication module, a timing module, and a control module (including but not limited to a password complexity analysis module). Among them, the communication module is used to connect to the Internet of Things device through a universal asynchronous receiver / transmitter (UART) or wireless fidelity (WIFI) technology. The timing module is responsible for calculating the time it takes for the PC to communicate with the Internet of Things device once. The password recovery module is used to calculate the password of the Internet of Things device by calculating the time returned by the timing module, that is, to determine the correct password. The control module is used to control the number of times the communication module sends the password to the Internet of Things device and trigger the password recovery module to calculate the password of the Internet of Things device; its internal password complexity analysis module is responsible for password security analysis.
[0090] For the specific signal processing process, see Fig.17 As shown, the specific work steps involved are as follows:
[0091] 1. The control module of the PC generates password characters and triggers the communication module;
[0092] 2. The communication module sends the password characters to the IoT device to trigger the timing module;
[0093] 3. The timing module starts timing;
[0094] 4. After receiving the password characters, the IoT device will check the correctness and return the comparison result to the PC through the communication module;
[0095] 5. After receiving the comparison result, the PC triggers the timing module again, the timing module ends the timing and feeds the time back to the password recovery module;
[0096] 6. The control module of the PC triggers the communication module and repeats steps 2 to 5 N times;
[0097] 7. After step 6 is completed, the control module of the PC triggers the password recovery module, which counts the time returned by all timing modules, and the password characters that take the longest time are the correct password characters.
[0098] 8. After completing step 7, the control module of the PC triggers its internal password complexity analysis module to calculate the complexity of the correct password.
[0099] From the above description, it can be seen that the IoT device password security detection method provided by the present application can detect the security of the IoT device password without knowing the IoT device password in advance; in the password recovery stage, it can communicate with the IoT device in a wireless or wired manner, and remotely realize password recovery based on the obtained password comparison time difference. This process is not limited by the computer computing power and can recover passwords of any length; in the password complexity analysis stage, it can perform password complexity analysis based on a binary tree. When the password complexity analysis based on the binary tree cannot accurately reflect the security of the password, the password security can be further analyzed based on a string random algorithm, and finally the security of the IoT device password is effectively determined.
[0100] The following is a detailed description of steps S101 to S103. The execution body of steps S101 to S103 is the control module of the PC.
[0101] Step S101: Generate a character password according to the number of digits of the password of the IoT device and a preset password generation strategy, and trigger a communication module to send the character password to the IoT device, so that the IoT device performs a password character correctness comparison based on the character password.
[0102] It is understandable that, as mentioned above, in some cases, the executor of this step cannot know the correct password of the IoT device in advance. Therefore, in order to detect the security of the correct password, it is necessary to guess the correct password first. The guessing process includes first generating some character passwords and providing them to the IoT device, so that the IoT device can compare the password characters for correctness based on the character passwords, thereby finally determining the correct password.
[0103] Figure 2 The present invention provides a specific embodiment of a method for detecting the security of an IoT device password.
[0104] In one embodiment, see Figure 2 , generating a character password according to the number of digits of the password of the IoT device and a preset password generation strategy, including:
[0105] S201: starting from the first character of the character password, predict the characters in the character password bit by bit; wherein each character in the character password is a character in the standard code for information exchange; only after the prediction of the preceding character is correct, predict the subsequent character corresponding to the preceding character; before the prediction of the preceding character is correct, assign the subsequent character and the unpredicted character to zero; if the prediction of the preceding character is wrong, re-predict the preceding character until the corresponding subsequent character is predicted after the prediction of the preceding character is correct; the preceding character is adjacent to the subsequent character;
[0106] S202: Generate the character password based on the prediction result.
[0107] It is understandable that, assuming the correct password set for the IoT device is X k {x 1 ,x 2 ,…,x k}, the control module generates a guess password X ′ k (also called character password), starting from X ′ k The ASCII code (0-127) from the 1st to the kth digit of the password is traversed, and the guessed password is sent to the IoT device through the communication module in turn. Assume that the correct password X is recovered k The control module enters the first character of the guessed password X ′ k {x ′ 0 ,x ′ 1 ,x ′ 2 ,…x ′ k}, where x ′ 0 The ASICC code of the character is traversed from 0 to 127, and the remaining k-1 bits are assigned 0. The control module will guess the password X ′ k {x ′ 0 ,0,0,…0} is sent to the communication module.
[0108] From the above description, it can be seen that the IoT device password security detection method provided in the present application can generate a character password based on the number of digits of the IoT device password and a preset password generation strategy.
[0109] In one embodiment, see Figure 3 , performing password complexity analysis on the correct password and determining the password security of the IoT device includes:
[0110] S301: construct a binary tree according to the character string corresponding to the correct password;
[0111] S302: Calculate the depth of the binary tree as the complexity of the correct password;
[0112] S303: Calculate the single-bit frequency of the character string as the randomness of the correct password;
[0113] S304: Determine the password security of the Internet of Things device according to the complexity, the randomness and the corresponding security threshold.
[0114] It is understandable that in the process of password complexity analysis, the correct password X is first k {x 1 ,x 2 ,…,x k} is output as a binary tree. The characters in the password are divided into four categories: numbers, uppercase letters, lowercase letters, and symbols. The binary tree is traversed from left to right and established. When the post-order character belongs to the same category as the pre-order character, the post-order character is the left node of the pre-order character; when the post-order character belongs to a different category than the pre-order character, the post-order character is the right node of the root node of the pre-order character. After traversing all the characters, the depth of the binary tree is calculated. The depth of the binary tree is the complexity H of the string.
[0115] When several passwords have the same depth, the correct password X can be further calculated. k The randomness of the string. The better the randomness, the higher the password security. The randomness calculation method is as follows: k Convert to binary string ε, the first step: convert 0 and 1 in the binary string ε into -1 and 1 respectively, X i =2ε i -1(1≤i≤n); Step 2: Accumulate and calculate Step 3: Calculate statistics Step 4: Calculate single-bit frequency detection When H is the same, the larger the value of P_value is, the higher the password security is.
[0116] From the above description, it can be seen that the Internet of Things device password security detection method provided by the present application can perform password complexity analysis on the correct password and determine the password security of the Internet of Things device.
[0117] In one embodiment, see Figure 4 , the method for detecting the security of passwords for IoT devices further comprises:
[0118] S401: while triggering the communication module to send the character password to the IoT device, triggering the timing module to start timing to determine the password sending time;
[0119] S402: Send the password sending time to the password recovery module.
[0120] It is understandable that the communication module will guess the password X' k {x′ 0 ,0,0,…0} is sent to the IoT device, the timing module is triggered to start timing. At this time, the timing module records the character x′ 0 The start time corresponding to when the comparison starts.
[0121] From the above description, it can be seen that the Internet of Things device password security detection method provided in the present application can trigger the timing module to start timing while triggering the communication module to send the character password to the Internet of Things device to determine the password sending time; and send the password sending time to the password recovery module.
[0122] In one embodiment, see Figure 5 , the method for detecting the security of passwords for IoT devices further comprises:
[0123] S501: When receiving the correctness comparison result sent by the IoT device, triggering a timing module to start timing to determine the time when the comparison result is received;
[0124] S502: Send the comparison result receiving time to the password recovery module.
[0125] It is understandable that when the communication module receives X′ k With X k When the comparison result is reached, the timing module is triggered to record the character x′ 0 The start time corresponding to the end of the comparison, and calculate the time difference required for this comparison The timing module calculates the time difference once and feeds the result back to the password recovery module. The password recovery module stores the time difference after receiving the result.
[0126] From the above description, it can be seen that the Internet of Things device password security detection method provided in the present application can trigger the timing module to start timing when receiving the correctness comparison result sent by the Internet of Things device to determine the time when the comparison result is received; and send the comparison result reception time to the password recovery module.
[0127] In one embodiment, see Figure 6 , a method for detecting the security of passwords of IoT devices, comprising:
[0128] S601: receiving the command sending time, comparison result receiving time and correctness comparison result sent by the control module;
[0129] S602: Determine the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result; wherein the correctness comparison result is the result of the IoT device performing a correctness analysis on the character password generated by the control module; specifically, see Figure 7 , the determining of the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result includes: calculating the corresponding comparison time difference based on the password sending time and the comparison result receiving time corresponding to the previous correctness comparisons (S701); wherein the comparison time difference is the time consumed by the IoT device to perform the correctness comparison; and selecting the character password corresponding to the maximum value from each comparison time difference as the correct password (S702).
[0130] S603: Send the correct password to the control module, so that the control module performs password complexity analysis on the correct password and determines the password security of the IoT device.
[0131] It is understandable that IoT devices receive X ′ k See you later k After the IoT device starts to compare the strings, if the result of the comparison of the two strings is that the first characters are different, the result of the password error will be returned. If the first characters of the two strings are the same, the IoT device will then compare the second characters. If the second characters are also the same, it will continue to compare the third characters until the last character. If there is a character that is different in the middle, the comparison will end and the result of the password error will be returned. If the two strings are exactly the same, the password is correct. In the process of string comparison, the more correct characters, the longer the device takes. After the IoT device completes the string comparison, it will return the correct or incorrect result to the communication module.
[0132] Repeat the above process of the control module generating password characters, the timing module timing and calculating the comparison time difference, and the IoT device performing string comparison n times, that is, the control module repeatedly sends the guessed password X ′ k {x ′ 0 ,0,0,…0} for a total of n times, the timing module calculates the time difference corresponding to each guessed character and the password recovery module stores it
[0133] The control module converts the first character x ′0 The ASCII codes 0 to 127 are sent to the IoT device through a loop. For each ASICC code 0 to 127, the timing module repeats the process of timing and calculating the time difference, and the IoT device performs string comparison, so that the password recovery module receives the complete time difference. Then calculate the average value of n time differences corresponding to ASCII codes 0 to 127 Then sort and select the largest average value, the character x corresponding to the largest average value ′ 0 The ASCII code is the correct password character X k {x 0 ,0,…,0}. The first character x ′ 0 After the ASCII code of is restored, the corresponding letter, number or symbol can be found through the ASCII table. Similarly, by repeating the previous steps, the X ′ k And restore the correct password X k {x 1 ,x 2 ,…,x k}.
[0134] From the above description, it can be seen that the method and device for detecting the security of the password of the Internet of Things device provided by the present application can detect the security of the password of the Internet of Things device without knowing the password of the Internet of Things device in advance; in the stage of password recovery, it can communicate with the Internet of Things device in a wireless or wired manner, and remotely realize password recovery based on the obtained password comparison time difference. This process is not limited by the computing power of the computer and can recover passwords of any length; in the stage of password complexity analysis, password complexity analysis can be performed based on a binary tree. When the password complexity analysis based on the binary tree cannot accurately reflect the security of the password, the security of the password can be further analyzed based on a string random algorithm, and finally the security of the password of the Internet of Things device is effectively determined.
[0135] In summary, the present application provides a system for detecting the security of passwords for IoT devices, including: a control module and a password recovery module;
[0136] Among them, the control module is used to generate a character password according to the number of password digits of the Internet of Things device and a preset password generation strategy, and trigger the communication module to send the character password to the Internet of Things device, so that the Internet of Things device performs a password character correctness comparison based on the character password; use the communication module to receive the correctness comparison result sent by the Internet of Things device, and send the correctness comparison result to the password recovery module, so that the password recovery module determines the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result; perform password complexity analysis on the received correct password, and determine the password security of the Internet of Things device;
[0137] The password recovery module is used to receive the password sending time, the comparison result receiving time and the correctness comparison result sent by the control module; determine the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result; wherein the correctness comparison result is the result of the Internet of Things device performing a correctness analysis on the character password generated by the control module; send the correct password to the control module so that the control module performs a password complexity analysis on the correct password and determines the password security of the Internet of Things device.
[0138] Based on the same inventive concept, the embodiments of the present application also provide a device for detecting the password security of an Internet of Things device, which can be used to implement the method described in the above embodiments, as described in the following embodiments. Since the principle of solving the problem by the device for detecting the password security of an Internet of Things device is similar to that of the method for detecting the password security of an Internet of Things device, the implementation of the device for detecting the password security of an Internet of Things device can refer to the implementation of the method for determining the software performance benchmark, and the repeated parts will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the system described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0139] In one embodiment, see Figure 8 In order to detect the security of the IoT device password without knowing the IoT device password in advance, the present application provides an IoT device password security detection device, including: a character password generation unit 801, a character password sending unit 802 and a character password analysis unit 803.
[0140] The character password generating unit 801 is used to generate a character password according to the number of digits of the password of the IoT device and a preset password generating strategy, and trigger the communication module to send the character password to the IoT device, so that the IoT device performs a password character correctness comparison based on the character password;
[0141] The character password sending unit 802 is used to receive the correctness comparison result sent by the IoT device using the communication module, and send the correctness comparison result to the password recovery module, so that the password recovery module determines the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result;
[0142] The character password analysis unit 803 is used to perform password complexity analysis on the received correct password and determine the password security of the IoT device.
[0143] In one embodiment, see Fig. 9 , the character password generating unit 801 comprises:
[0144] The character prediction module 901 is used to predict the characters in the character password bit by bit starting from the first character of the character password; wherein each character in the character password is a character in the information exchange standard code; only after the prediction of the preceding character is correct, the subsequent character corresponding to the preceding character is predicted; before the prediction of the preceding character is correct, the subsequent character and the characters that have not been predicted are assigned zero; if the prediction of the preceding character is wrong, the preceding character is re-predicted until the corresponding subsequent character is predicted after the prediction of the preceding character is correct; the preceding character is adjacent to the subsequent character;
[0145] The character password generating module 902 is used to generate the character password based on the prediction result.
[0146] In one embodiment, see Fig.10 , the character password analysis unit 803 comprises:
[0147] A binary tree construction module 1001, used to construct a binary tree according to the character string corresponding to the correct password;
[0148] A complexity calculation module 1002, used for calculating the depth of the binary tree as the complexity of the correct password;
[0149] A randomness calculation module 1003, used to calculate the single-bit frequency of the character string as the randomness of the correct password;
[0150] The security determination module 1004 is used to determine the password security of the Internet of Things device according to the complexity, the randomness and the corresponding security threshold.
[0151] In one embodiment, see Fig.11 The Internet of Things device password security detection device also includes: a start timing trigger unit 1101 and a start time sending unit 1102.
[0152] A start timing trigger unit 1101 is used to trigger the timing module to start timing when triggering the communication module to send the character password to the IoT device, so as to determine the password sending time;
[0153] The start time sending unit 1102 is used to send the password sending time to the password recovery module.
[0154] In one embodiment, see Fig.12 The Internet of Things device password security detection device also includes: an end timing trigger unit 1201 and an end time sending unit 1202.
[0155] The end timing trigger unit 1201 is used to trigger the timing module to start timing when receiving the correctness comparison result sent by the IoT device, so as to determine the reception time of the comparison result;
[0156] The end time sending unit 1202 is used to send the comparison result receiving time to the password recovery module.
[0157] In one embodiment, see Fig.13 , a password security detection device for an Internet of Things device, comprising: a time result receiving unit 1301, a correct password determining unit 1302 and a correct password sending unit 1303.
[0158] The time result receiving unit 1301 is used to receive the command sending time, the comparison result receiving time and the correctness comparison result sent by the control module;
[0159] A correct password determination unit 1302 is used to determine the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result; wherein the correctness comparison result is the result of the Internet of Things device performing a correctness analysis on the character password generated by the control module;
[0160] The correct password sending unit 1303 is used to send the correct password to the control module, so that the control module performs password complexity analysis on the correct password and determines the password security of the Internet of Things device.
[0161] In one embodiment, see Fig.14 The correct password determination unit 1302 includes: a time difference calculation module 1401 and a correct password determination module 1402.
[0162] The time difference calculation module 1401 is used to calculate the corresponding comparison time difference based on the password sending time and the comparison result receiving time corresponding to the correctness comparison in the past; wherein the comparison time difference is the time consumed by the IoT device to perform the correctness comparison;
[0163] The correct password determination module 1402 is used to select the character password corresponding to the maximum value from each comparison time difference as the correct password.
[0164] From the hardware level, in order to detect the security of the IoT device password without knowing the IoT device password in advance, the present application provides an embodiment of an electronic device for implementing all or part of the contents of the IoT device password security detection method, and the electronic device specifically includes the following contents:
[0165] Processor, memory, communication interface and bus; wherein the processor, memory and communication interface communicate with each other through the bus; the communication interface is used to realize information transmission between the Internet of Things device password security detection device and related devices such as core business systems, user terminals and related databases; the logic controller can be a desktop computer, a tablet computer and a mobile terminal, etc., but this embodiment is not limited to this. In this embodiment, the logic controller can be implemented with reference to the embodiment of the Internet of Things device password security detection method and the embodiment of the Internet of Things device password security detection device in the embodiment, and the contents are incorporated herein, and the repeated parts are not repeated.
[0166] It is understandable that the user terminal may include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a personal digital assistant (PDA), a vehicle-mounted device, a smart wearable device, etc. Among them, the smart wearable device may include smart glasses, a smart watch, a smart bracelet, etc.
[0167] In practical applications, part of the method for detecting the security of the password of an IoT device may be executed on the electronic device side as described above, or all operations may be completed in the client device. The selection may be made based on the processing capability of the client device and the limitations of the user's usage scenario. This application does not limit this. If all operations are completed in the client device, the client device may also include a processor.
[0168] The client device may have a communication module (i.e., a communication unit) that can communicate with a remote server to achieve data transmission with the server. The server may include a server on the task scheduling center side, and other implementation scenarios may also include a server on an intermediate platform, such as a server on a third-party server platform that has a communication link with the task scheduling center server. The server may include a single computer device, or a server cluster consisting of multiple servers, or a server structure of a distributed device.
[0169] Fig.15 FIG. 9 is a schematic block diagram of the system structure of the electronic device 9600 according to an embodiment of the present application. Fig.15 As shown, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is worth noting that Fig.15 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.
[0170] In one embodiment, the function of the IoT device password security detection method can be integrated into the central processor 9100. The central processor 9100 can be configured to perform the following control:
[0171] S101: Generate a character password according to the number of digits of the password of the IoT device and a preset password generation strategy, and trigger a communication module to send the character password to the IoT device, so that the IoT device performs a password character correctness comparison based on the character password;
[0172] S102: using the communication module to receive the correctness comparison result sent by the IoT device, and sending the correctness comparison result to the password recovery module, so that the password recovery module determines the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result;
[0173] S103: Perform password complexity analysis on the received correct password, and determine the password security of the IoT device.
[0174] From the above description, it can be seen that the method and device for detecting the security of the password of the Internet of Things device provided by the present application can detect the security of the password of the Internet of Things device without knowing the password of the Internet of Things device in advance; in the stage of password recovery, it can communicate with the Internet of Things device in a wireless or wired manner, and remotely realize password recovery based on the obtained password comparison time difference. This process is not limited by the computing power of the computer and can recover passwords of any length; in the stage of password complexity analysis, password complexity analysis can be performed based on a binary tree. When the password complexity analysis based on the binary tree cannot accurately reflect the security of the password, the security of the password can be further analyzed based on a string random algorithm, and finally the security of the password of the Internet of Things device is effectively determined.
[0175] In another embodiment, the Internet of Things device password security detection device can be configured separately from the central processing unit 9100. For example, the data composite transmission device Internet of Things device password security detection device can be configured as a chip connected to the central processing unit 9100, and the function of the Internet of Things device password security detection method can be realized through the control of the central processing unit.
[0176] like Fig.15 As shown, the electronic device 9600 may also include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily have to include Fig.15 In addition, the electronic device 9600 may also include Fig.15 For components not shown, reference may be made to the prior art.
[0177] like Fig.15 As shown, the central processing unit 9100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600.
[0178] The memory 9140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 9100 may execute the program stored in the memory 9140 to implement information storage or processing, etc.
[0179] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used to display display objects such as images and texts. The display may be, for example, an LCD display, but is not limited thereto.
[0180] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 9600 through the central processor 9100.
[0181] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).
[0182] The communication module 9110 is a transmitter / receiver 9110 that sends and receives signals via an antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.
[0183] Based on different communication technologies, multiple communication modules 9110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide an audio output via the speaker 9131 and receive an audio input from the microphone 9132, thereby realizing a common telecommunication function. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 9130 is also coupled to the central processor 9100, so that recording can be performed on the local machine through the microphone 9132, and the sound stored on the local machine can be played through the speaker 9131.
[0184] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps in the method for detecting the password security of an IoT device whose execution subject is a server or a client in the above embodiments. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, all the steps in the method for detecting the password security of an IoT device whose execution subject is a server or a client in the above embodiments are implemented. For example, when the processor executes the computer program, the following steps are implemented:
[0185] S101: Generate a character password according to the number of digits of the password of the IoT device and a preset password generation strategy, and trigger a communication module to send the character password to the IoT device, so that the IoT device performs a password character correctness comparison based on the character password;
[0186] S102: using the communication module to receive the correctness comparison result sent by the IoT device, and sending the correctness comparison result to the password recovery module, so that the password recovery module determines the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result;
[0187] S103: Perform password complexity analysis on the received correct password, and determine the password security of the IoT device.
[0188] From the above description, it can be seen that the method and device for detecting the security of the password of the Internet of Things device provided by the present application can detect the security of the password of the Internet of Things device without knowing the password of the Internet of Things device in advance; in the stage of password recovery, it can communicate with the Internet of Things device in a wireless or wired manner, and remotely realize password recovery based on the obtained password comparison time difference. This process is not limited by the computing power of the computer and can recover passwords of any length; in the stage of password complexity analysis, password complexity analysis can be performed based on a binary tree. When the password complexity analysis based on the binary tree cannot accurately reflect the security of the password, the security of the password can be further analyzed based on a string random algorithm, and finally the security of the password of the Internet of Things device is effectively determined.
[0189] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0190] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (apparatus), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks 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, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0191] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0192] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0193] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A method for detecting the security of passwords of IoT devices, characterized in that: include: Generate a character password according to the number of digits of the password of the IoT device and a preset password generation strategy, and trigger the communication module to send the character password to the IoT device, so that the IoT device performs a password character correctness comparison based on the character password; Utilizing the communication module to receive the correctness comparison result sent by the IoT device, and sending the correctness comparison result to the password recovery module, so that the password recovery module determines the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result; A password complexity analysis is performed on the received correct password, and the password security of the IoT device is determined.
2. The method for detecting the security of passwords of IoT devices according to claim 1, characterized in that: The generating of a character password according to the number of digits of the password of the IoT device and a preset password generation strategy includes: Starting from the first character of the character password, characters in the character password are predicted bit by bit; wherein, each character in the character password is a character in the standard code for information exchange; only after the prediction of the preceding character is correct, the subsequent character corresponding to the preceding character is predicted; before the prediction of the preceding character is correct, the subsequent character and the characters that have not been predicted are assigned zero; if the prediction of the preceding character is wrong, the preceding character is predicted again until the corresponding subsequent character is predicted after the prediction of the preceding character is correct; the preceding character is adjacent to the subsequent character; The character password is generated based on the prediction result.
3. The method for detecting the security of passwords of IoT devices according to claim 1, characterized in that: The performing password complexity analysis on the correct password and determining the password security of the IoT device includes: Construct a binary tree according to the character string corresponding to the correct password; Calculating the depth of the binary tree as the complexity of the correct password; Calculating the single-bit frequency of the character string as the randomness of the correct password; The password security of the Internet of Things device is determined according to the complexity, the randomness and the corresponding security threshold.
4. The method for detecting the security of passwords of IoT devices according to claim 1, characterized in that: Also includes: When the communication module is triggered to send the character password to the IoT device, the timing module is triggered to start timing to determine the time when the password is sent; The password sending time is sent to the password recovery module.
5. The method for detecting the security of passwords of IoT devices according to claim 1, characterized in that: Also includes: When receiving the correctness comparison result sent by the IoT device, triggering the timing module to start timing to determine the time when the comparison result is received; The comparison result receiving time is sent to the password recovery module.
6. A method for detecting the security of passwords of IoT devices, characterized in that: include: The receiving control module receives the command sending time, the comparison result receiving time and the correctness comparison result; Determine the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result; wherein the correctness comparison result is the result of the Internet of Things device performing a correctness analysis on the character password generated by the control module; The correct password is sent to the control module so that the control module performs password complexity analysis on the correct password and determines the password security of the Internet of Things device.
7. The method for detecting the security of passwords of IoT devices according to claim 6, characterized in that: Determining the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result includes: The corresponding comparison time difference is calculated based on the password sending time corresponding to the correctness comparison and the comparison result receiving time of each correctness comparison; wherein the comparison time difference is the time consumed by the IoT device to perform the correctness comparison; The character password corresponding to the maximum value is selected from each comparison time difference as the correct password.
8. A device for detecting password security of an Internet of Things device, characterized in that: include: A character password generating unit, used to generate a character password according to the number of digits of the password of the IoT device and a preset password generating strategy, and trigger the communication module to send the character password to the IoT device, so that the IoT device performs a password character correctness comparison based on the character password; A character password sending unit, used to receive the correctness comparison result sent by the Internet of Things device using the communication module, and send the correctness comparison result to the password recovery module, so that the password recovery module determines the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result; The character password analysis unit is used to perform password complexity analysis on the received correct password and determine the password security of the Internet of Things device.
9. The device for detecting password security of an Internet of Things device according to claim 8, characterized in that: The character password generating unit comprises: A character prediction module is used to predict the characters in the character password bit by bit starting from the first character of the character password; wherein each character in the character password is a character in the information exchange standard code; only after the prediction of the preceding character is correct, the subsequent character corresponding to the preceding character is predicted; before the prediction of the preceding character is correct, the subsequent character and the characters that have not been predicted are assigned zero; if the prediction of the preceding character is wrong, the preceding character is re-predicted until the corresponding subsequent character is predicted after the prediction of the preceding character is correct; the preceding character is adjacent to the subsequent character; The character password generating module is used to generate the character password based on the prediction result.
10. The device for detecting password security of an Internet of Things device according to claim 8, characterized in that: The character password analysis unit comprises: A binary tree construction module, used to construct a binary tree according to the character string corresponding to the correct password; A complexity calculation module, used for calculating the depth of the binary tree as the complexity of the correct password; A randomness calculation module, used for calculating the single-bit frequency of the character string as the randomness of the correct password; The security determination module is used to determine the password security of the Internet of Things device according to the complexity, the randomness and the corresponding security threshold.
11. The device for detecting password security of an Internet of Things device according to claim 8, characterized in that: Also includes: A start timing trigger unit, configured to trigger the timing module to start timing when triggering the communication module to send the character password to the IoT device, so as to determine the time when the password is sent; A start time sending unit is used to send the password sending time to the password recovery module.
12. The device for detecting password security of an Internet of Things device according to claim 8, characterized in that: Also includes: An end timing trigger unit is used to trigger the timing module to start timing when receiving the correctness comparison result sent by the Internet of Things device, so as to determine the reception time of the comparison result; The end time sending unit is used to send the comparison result receiving time to the password recovery module.
13. A device for detecting password security of an Internet of Things device, characterized in that: include: A time result receiving unit, used for receiving the command sending time, comparison result receiving time and correctness comparison result sent by the control module; A correct password determination unit, used to determine the correct password based on the password sending time, the comparison result receiving time and the correctness comparison result; wherein the correctness comparison result is the result of the Internet of Things device performing a correctness analysis on the character password generated by the control module; The correct password sending unit is used to send the correct password to the control module, so that the control module performs password complexity analysis on the correct password and determines the password security of the Internet of Things device.
14. The device for detecting password security of an Internet of Things device according to claim 13, characterized in that: The correct password determination unit comprises: A time difference calculation module, used to calculate the corresponding comparison time difference based on the password sending time corresponding to the correctness comparison and the comparison result receiving time of each correctness comparison; wherein the comparison time difference is the time consumed by the Internet of Things device to perform the correctness comparison; The correct password determination module is used to select the character password corresponding to the maximum value from each comparison time difference as the correct password.
15. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method for detecting the security of the password of an Internet of Things device as described in any one of claims 1 to 7 are implemented.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for detecting the security of passwords of Internet of Things devices as described in any one of claims 1 to 7 are implemented.
17. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the method for detecting the security of passwords of Internet of Things devices as described in any one of claims 1 to 7 are implemented.
