Password detection method and device and storage medium

By capturing and analyzing protocol and interaction data in the 5G network environment, and performing automated password detection, it solves the password detection problem in the 5G environment, improves detection efficiency and accuracy, and ensures the correctness and security of password applications.

CN118631456AActive Publication Date: 2024-09-10DINGXUAN COMMERCIAL PASSWORD EVALUATION TECH (SHENZHEN) CO LTD

Patent Information

Application Number
CN202411096427.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-09-10
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

Existing password detection technology cannot effectively adapt to the 5G network environment, making it difficult to implement automated password detection in the 5G environment, prone to manual accidental missed detections, and unable to meet the special needs of the 5G network.

Method used

By capturing the protocol process data and interaction process data generated by the device to be tested during the information transmission process, receiving detection verification information, based on these data, the protocol correctness, algorithm correctness, key data correctness and algorithm performance detection are performed, and password detection is generated. As a result, automated password detection is achieved.

Benefits of technology

It improves the efficiency and accuracy of password detection, ensures the correctness of password application in 5G networks, avoids accidental missed detections by humans, and enhances the security of the password system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631456A
    Figure CN118631456A
Patent Text Reader

Abstract

The invention discloses a password detection method and device and a storage medium, and relates to the technical field of data transmission security, and the password detection method comprises the steps: capturing protocol process data and interaction process data generated by a first to-be-detected device and a second to-be-detected device in an information transmission process, password application is included in the information transmission process; receiving detection verification information sent by the second to-be-detected device; and based on the detection verification information, the protocol process data and the interaction process data, detecting a password application in the information transmission process, and generating a password detection result. The protocol process data and the interaction process data generated by the first to-be-detected device and the second to-be-detected device in the information transmission process are verified and detected, so that automatic password detection is realized, the password testing efficiency is improved, the correctness of the password application in the information transmission process is ensured, and the password application experience is improved. And meanwhile, artificial accidental missing detection is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data transmission security, and in particular to a password detection method, device and storage medium. Background Art

[0002] With the rapid development of 5G technology, 5G networks have gradually penetrated into people's daily lives, such as smart homes, autonomous driving, telemedicine, etc. However, with the widespread application of 5G networks, network security issues have become increasingly prominent, especially password security issues.

[0003] In order to verify the correctness of password application in 5G environment, it is urgent to carry out password detection in the data transmission process in 5G environment. However, there is no relevant technology specifically for password detection in 5G environment. The existing password detection technology is mainly for traditional network environment, such as Ethernet, wireless LAN, etc., while the password detection in information transmission in 5G network and other environments still relies on manual detection. However, manual detection will inevitably have occasional missed detection and other situations, making it difficult to adapt to the special environment and requirements of 5G network and other environments. Summary of the invention

[0004] The main purpose of this application is to provide a password detection method, device and storage medium, aiming to realize automated password detection, improve test efficiency, and ensure the correct application of passwords in special networks.

[0005] To achieve the above object, the present application proposes a password detection method, the method comprising: Capturing protocol process data and interaction process data generated during information transmission between the first device to be detected and the second device to be detected, wherein the information transmission process includes cryptographic application; Receiving detection verification information sent by the second device to be detected; Based on the detection verification information, the protocol process data and the interaction process data, the password application in the information transmission process is detected to generate a password detection result In one embodiment, the detecting the password application in the information transmission process based on the detection verification information, the protocol process data and the interaction process data to generate the password detection result includes: Performing a protocol correctness test on the test verification information, the protocol process data, and the interaction process data to obtain a first test result; Based on the algorithm type used by the first device to be detected and the second device to be detected in the process of transmitting information, perform algorithm correctness detection on the detection verification information and the interaction process data to obtain a second detection result; Performing key data correctness detection on the detection verification information and the interaction process data to obtain a third detection result; Based on the detection verification information and the interaction process data, an algorithm performance test is performed to obtain a fourth test result; The first detection result, the second detection result, the third detection result and the fourth detection result are associated and combined to generate a password detection result.

[0006] In one embodiment, the performing protocol correctness detection on the detection verification information, the protocol process data, and the interaction process data to obtain a first detection result includes: Matching the protocol process data with preset protocol specification information to obtain a protocol matching result; If the match is successful, the interaction process data is calculated to obtain an interaction calculation result, and the interaction calculation result is matched with the detection verification information to obtain an interaction matching result; The protocol matching result and the interaction matching result are associated and combined to generate a first detection result.

[0007] In one embodiment, the algorithm correctness detection is performed on the detection verification information and the interaction process data based on the algorithm type used by the first device to be detected and the second device to be detected in the process of transmitting information to obtain the second detection result, including: Determine the type of algorithm used by the first device to be detected and the second device to be detected during information transmission; Decrypting the interaction process data based on the algorithm type; The decrypted interaction process data is matched with the detection verification information to obtain a second detection result.

[0008] In one embodiment, the interaction process data includes initial transmission data and transmission node data; The performing key data correctness detection on the detection verification information and the interaction process data to obtain a third detection result includes: Based on the initial transmission data and the transmission node data, generate first key data corresponding to each transmission node; The first key data is compared with the second key data in the detection verification information to obtain a third detection result.

[0009] In one embodiment, the interaction process data includes plaintext data and first ciphertext data; The performing of algorithm performance detection based on the detection verification information and the interaction process data to obtain a fourth detection result includes: Capturing interaction process data generated during a preset number of information transmissions between the first device to be detected and the second device to be detected; Encrypting the plaintext data to obtain second ciphertext data, and determining the encryption duration; Matching the first ciphertext data with the second ciphertext data to obtain a ciphertext matching result; Based on the encryption duration and the ciphertext matching result, a fourth detection result is obtained.

[0010] To achieve the above object, the present application proposes a password detection method, the method comprising: Obtain information to be transmitted; Encrypting the information to be transmitted to obtain transmission encrypted information; The transmission encrypted information is sent to the second device to be detected, and the password detection platform captures the protocol process data and interaction process data generated by the first device to be detected and the second device to be detected during the information transmission process to generate a password detection result.

[0011] To achieve the above object, the present application proposes a password detection method, the method comprising: Receiving transmission encryption information sent by the first device to be detected; Decrypting the transmission encrypted information to obtain transmission decrypted information; Associating and combining the transmission encryption information and the transmission decryption information to generate detection verification information; The detection verification information is sent to the password detection platform, which receives the detection verification information and captures the protocol process data and interaction process data generated by the first device to be detected and the second device to be detected during the information transmission process to generate a password detection result.

[0012] In addition, to achieve the above purpose, the present application also proposes a password detection device, the password detection device comprising: A detection module, used to capture protocol process data and interaction process data generated by the first device to be detected and the second device to be detected during the information transmission process, wherein the information transmission process includes a cryptographic application; receive detection verification information sent by the second device to be detected; based on the detection verification information, the protocol process data and the interaction process data, detect the cryptographic application in the information transmission process and generate a cryptographic detection result; The first transmission module is used to obtain information to be transmitted; encrypt the information to be transmitted to obtain transmission encrypted information; send the transmission encrypted information to the second device to be detected, and the password detection platform captures the protocol process data and interaction process data generated by the first device to be detected and the second device to be detected during the information transmission process to generate a password detection result; The second transmission module is used to receive the transmission encryption information sent by the first device to be detected; decrypt the transmission encryption information to obtain transmission decryption information; associate and combine the transmission encryption information and the transmission decryption information to generate detection verification information; send the detection verification information to the password detection platform, which receives the detection verification information and captures the protocol process data and interaction process data generated by the first device to be detected and the second device to be detected during the information transmission process to generate a password detection result.

[0013] In addition, to achieve the above-mentioned purpose, the present application also proposes a password detection device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the password detection method described above.

[0014] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the password detection method described above are implemented.

[0015] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the password detection method described above are implemented.

[0016] The present application provides a password detection method, device and storage medium. The password detection method captures protocol process data and interaction process data generated by a first device to be detected and a second device to be detected during the information transmission process, wherein the information transmission process includes a password application, and then receives detection verification information sent by the second device to be detected, thereby detecting the password application in the information transmission process based on the detection verification information, the protocol process data and the interaction process data, generating a password detection result, thereby realizing automated password detection, improving password testing efficiency, ensuring the correctness of the password application in the information transmission process, and avoiding accidental human omissions. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0018] In order to more clearly illustrate the embodiments of the present application 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0019] Figure 1 A flowchart of the first embodiment of the password detection method of the present application is provided; Figure 2 A flowchart of the second embodiment of the password detection method of the present application is provided; Figure 3 A flowchart of the third embodiment of the password detection method of the present application is provided; Figure 4 A brief implementation flow diagram of the password detection method provided for this application; Figure 5 This is a schematic diagram of the module structure of the password detection device according to an embodiment of the present application; Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the password detection method in the embodiment of the present application.

[0020] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0021] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0022] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0023] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a big data service platform, a password detection system, etc. The following takes the password detection system as an example to illustrate this embodiment and the following embodiments.

[0024] Based on this, the present application embodiment provides a password detection method, referring to Figure 1 , Figure 1 A flowchart of the first embodiment of the password detection method of the present application is provided.

[0025] In this embodiment, the password detection method includes steps S11 to S13: Step S11, capturing protocol process data and interaction process data generated during information transmission between the first device to be detected and the second device to be detected, wherein the information transmission process includes cryptographic application; It should be noted that the first device to be detected and the second device to be detected refer to communication devices in a 5G environment, such as mobile terminals, core networks, and base stations, etc., which are not limited here and can be set according to actual conditions. The protocol process data refers to the protocol information generated during the device communication process, such as the protocol data in the network access authentication protocol 5G-AKA / EAP-AKA, etc. In addition, the interactive process data refers to the interactive information generated by the device during the communication process. For example, the first device to be detected encrypts data and transmits it to the second device to be detected, and the second device to be detected decrypts the encrypted data. Then the encrypted data and the decrypted data are both interactive process data, which are not limited here and can be set according to actual conditions.

[0026] It should be further explained that the cryptographic application refers to the use of cryptographic methods to protect the security of information during information transmission, including encryption and decryption (for example, encryption can use symmetric cryptography (such as AES, DES, etc.), asymmetric cryptography (such as RSA, ECC, etc.), identity authentication, data integrity, key management, security protocols and identity authorization, etc., without limitation here.

[0027] Specifically, the protocol process data and the interaction process data generated by the first device to be detected and the second device to be detected during the information transmission process are captured, and the protocol process can be captured by calling a packet capture tool, wherein the information transmission process includes a password application. In addition, since the password detection platform needs to obtain data in the 5G environment for password detection, but the 5G standard environment has no corresponding password detection interface, the protocol process data and the interaction process data can be received through a preset detection interface. In one embodiment, the content of the preset detection interface can be the output of the 5G-AKA / EAP-AKA protocol step content, and the 5G environment is customized and developed according to the defined preset detection interface to ensure that the corresponding data is output according to the preset detection interface, wherein the data includes the plaintext, key, and ciphertext of each step of the 5G-AKA / EAP-AKA protocol, and the data is saved to a specified directory at the same time, so that when the password detection platform is connected to the 5G environment through a network cable, the specified directory is read to obtain the data, and then the 5G environment is mobilized to perform corresponding operations by sending commands.

[0028] Step S12, receiving the detection verification information sent by the second device to be detected; It should be noted that the detection and verification information is used to verify the correctness of the actual transmission data between the devices to be detected and the detection and verification data of the password detection platform, including information such as transmitted plaintext, ciphertext, key, transmission subject, and the protocol used for transmission. There is no restriction here and it can be set according to actual conditions.

[0029] Step S13, based on the detection verification information, the protocol process data and the interaction process data, the password application in the information transmission process is detected to generate a password detection result.

[0030] It should be noted that the password detection result refers to the verification detection result of the correctness of the password during information transmission between devices in the 5G environment.

[0031] Specifically, a protocol correctness check is performed on the detection verification information, the protocol process data and the interaction process data to obtain a first detection result, and then based on the algorithm type used by the first device to be detected and the second device to be detected in the process of transmitting information, an algorithm correctness check is performed on the detection verification information and the interaction process data to obtain a second detection result, thereby performing a key data correctness check on the detection verification information and the interaction process data to obtain a third detection result, and based on the detection verification information and the interaction process data, an algorithm performance check is performed to obtain a fourth detection result, thereby associating and combining the first detection result, the second detection result, the third detection result and the fourth detection result to generate a password detection result.

[0032] This embodiment captures the protocol process data and the interaction process data generated by the first device to be detected and the second device to be detected during the information transmission process, wherein the information transmission process includes a cryptographic application, and then receives the detection verification information sent by the second device to be detected, thereby detecting the cryptographic application in the information transmission process based on the detection verification information, the protocol process data and the interaction process data, generating a cryptographic detection result, thereby realizing automated password detection, improving the efficiency of password testing, ensuring the correctness of the cryptographic application in the information transmission process, and avoiding accidental human omissions.

[0033] Based on this, the present application embodiment provides a password detection method, referring to Figure 2 , Figure 2 A flowchart of the second embodiment of the password detection method of the present application is provided.

[0034] In a feasible implementation manner, the detecting the password application in the information transmission process based on the detection verification information, the protocol process data and the interaction process data to generate a password detection result includes: Step S21, performing a protocol correctness test on the test verification information, the protocol process data, and the interaction process data to obtain a first test result; It should be noted that the first detection result refers to the detection result of the protocol correctness detection.

[0035] Specifically, the protocol process data is matched with the preset protocol specification information to obtain a protocol matching result, and if the match is successful, the interaction process data is calculated to obtain an interaction calculation result, and the interaction calculation result is matched with the detection verification information to obtain an interaction matching result, thereby associating and combining the protocol matching result with the interaction matching result to generate a first detection result.

[0036] Step S22, based on the algorithm type used by the first device to be detected and the second device to be detected in the process of transmitting information, perform algorithm correctness detection on the detection verification information and the interaction process data to obtain a second detection result; It should be noted that the second test result refers to the test result of the algorithm correctness test.

[0037] Specifically, the algorithm type used by the first device to be detected and the second device to be detected in the process of transmitting information is determined, and then based on the algorithm type, the interaction process data is decrypted, so as to match the decrypted interaction process data with the detection verification information to obtain a second detection result.

[0038] Step S23, performing key data correctness detection on the detection verification information and the interaction process data to obtain a third detection result; It should be noted that the third test result refers to the test result of the correctness of the key data.

[0039] Specifically, based on the initial transmission data and the transmission node data, first key data corresponding to each transmission node is generated, and then the first key data is compared with the second key data in the detection verification information to obtain a third detection result.

[0040] Step S24, performing algorithm performance testing based on the detection verification information and the interaction process data to obtain a fourth detection result; It should be noted that the fourth test result refers to the test result of the algorithm performance test. Since the algorithm performance may vary in different network environments and between different users, the fourth test result can be used as reference data for the algorithm performance and cannot determine the final test result.

[0041] Specifically, the interaction process data generated by the first device to be detected and the second device to be detected during the transmission of information for a preset number of times is captured, and then the plaintext data is encrypted to obtain second ciphertext data, and the encryption duration is determined, so as to match the first ciphertext data with the second ciphertext data to obtain a ciphertext matching result, and then based on the encryption duration and the ciphertext matching result, a fourth detection result is obtained.

[0042] Step S25, associating and combining the first detection result, the second detection result, the third detection result and the fourth detection result to generate a password detection result.

[0043] Specifically, the first detection result, the second detection result, the third detection result and the fourth detection result are associated and combined to generate a password detection result. In one embodiment, only when the first detection result, the second detection result and the third detection result are all pass results and the fourth detection result meets the preset algorithm performance pass range, the password detection result is a detection pass result. Then, the password detection result can be pushed to the security management personnel, so that the security management personnel can debug and optimize the applicability of the password when the detected device performs data transmission in the 5G environment according to the password detection result, thereby promoting the use of passwords in the 5G environment and the optimization of detection, and improving user satisfaction.

[0044] This embodiment performs a protocol correctness test on the test verification information, the protocol process data, and the interaction process data to obtain a first test result, and then performs an algorithm correctness test on the test verification information and the interaction process data to obtain a second test result, and then performs a key data correctness test on the test verification information and the interaction process data to obtain a third test result, and then performs an algorithm performance test based on the test verification information and the interaction process data to obtain a fourth test result, and then associates and combines the first test result, the second test result, the third test result, and the fourth test result to generate a cryptographic test result, and then comprehensively considers various aspects of the cryptographic system, so as to help discover multi-level potential problems and loopholes, enhance the security of the cryptographic system, and improve the accuracy and professionalism of the test, thereby realizing automated cryptographic detection, greatly improving test efficiency, ensuring the correctness of cryptographic application in 5G networks, and avoiding accidental human omissions.

[0045] Based on this, the present application embodiment provides a password detection method, referring to Figure 3 , Figure 3 A flowchart of the third embodiment of the password detection method of the present application is provided.

[0046] In a feasible implementation manner, the performing protocol correctness detection on the detection verification information, the protocol process data, and the interaction process data to obtain a first detection result includes: Step S31, matching the protocol process data with preset protocol specification information to obtain a protocol matching result; It should be noted that the preset protocol specification information refers to the pre-set rule information that conforms to the protocol specification, that is, the steps and detailed specifications of the transmission protocol during the data transmission process. In addition, the protocol matching result includes a complete matching result, a partial matching result, and a matching failure result, etc., which represent the matching degree between the protocol process data and the preset protocol specification information.

[0047] Specifically, the protocol process data is matched with the preset protocol specification information to obtain a protocol matching result, wherein the captured protocol process data can be compared in turn to determine whether each step in the protocol process data complies with the preset protocol specification information, which can be achieved through keyword matching and vector matching, and if all matches are successful, the next step of judgment is performed.

[0048] Step S32: if the match is successful, the interaction process data is calculated to obtain an interaction calculation result, and the interaction calculation result is matched with the detection verification information to obtain an interaction matching result; It should be noted that the interactive calculation results are used to verify the accuracy and integrity of the data and ensure that the data has not been tampered with during transmission and processing.

[0049] Specifically, if the match is successful, the interaction process data is calculated to obtain an interaction calculation result, and the interaction calculation result is matched with the detection and verification information to obtain an interaction matching result. For example, calculation is performed based on the plaintext and key in the interaction process data to obtain a ciphertext, and the calculated plaintext, key and ciphertext are matched with the plaintext, key and ciphertext in the detection and verification information to obtain an interaction matching result.

[0050] Step S33: Associating and combining the protocol matching result with the interaction matching result to generate a first detection result.

[0051] Specifically, the protocol matching result and the interaction matching result are associated and combined to generate a first detection result. In one embodiment, only if the protocol matching result and the interaction matching result are both pass results, the first detection result is a pass result. This can be set according to actual conditions and is not limited here.

[0052] This embodiment obtains a protocol matching result by matching the protocol process data with preset protocol specification information, and then if the match is successful, the interaction process data is calculated to obtain an interaction calculation result, and the interaction calculation result is matched with the detection verification information to obtain an interaction matching result, so as to associate and combine the protocol matching result with the interaction matching result to generate a first detection result, and then verify whether the actual protocol process data complies with the established protocol standard to ensure the compliance of the communication, and verify the accuracy and integrity of the data through the calculation of the interaction data to ensure that the data has not been tampered with during the transmission and processing process, ensure the correct execution of the protocol and the integrity of the data, and improve the stability and reliability of the system.

[0053] In a feasible implementation manner, the algorithm correctness detection is performed on the detection verification information and the interaction process data based on the algorithm type used by the first device to be detected and the second device to be detected in the process of transmitting information to obtain the second detection result, including: Step S41, determining the algorithm type used by the first device to be detected and the second device to be detected in the process of transmitting information; It should be noted that the algorithm type refers to the algorithm type used for data encryption, for example, the AES (Advanced Encryption Standard) or ZUC (Zu Chongzhi Algorithm) algorithm corresponding to the algorithm type supported by the network access authentication protocol 5G-AKA / EAP-AKA. There is no restriction here and it can be set according to actual conditions.

[0054] Specifically, determine the algorithm type used by the first device to be detected and the second device to be detected in the process of transmitting information. For example, if the first device to be detected and the second device to be detected are both mobile phone terminals, select the algorithm type supported by the network access authentication protocol 5G-AKA / EAP-AKA when configuring the mobile phone terminal, such as AES or ZUC algorithm.

[0055] Step S42, decrypting the interaction process data based on the algorithm type; Specifically, continuing with the above example, the interaction process data is decrypted using a decryption algorithm corresponding to AES or ZUC.

[0056] Step S43, matching the decrypted interaction process data with the detection verification information to obtain a second detection result.

[0057] Specifically, the decrypted interaction process data is matched with the detection verification information to obtain a second detection result. In one embodiment, only if the decrypted interaction process data completely matches the detection verification information, that is, the decrypted message and the plaintext data are consistent, it means that the AES / ZUC algorithm is correct, and thus the second detection result is a pass result.

[0058] This embodiment obtains the algorithm type used by the first device to be detected and the second device to be detected in the process of transmitting information, and then decrypts the interaction process data based on the algorithm type, thereby matching the decrypted interaction process data with the detection verification information to obtain a second detection result, thereby ensuring that the algorithm is correct and verifying that the data has not been tampered with during the transmission process, thereby maintaining the integrity and reliability of the data. At the same time, matching the decrypted interaction process data with the detection verification information helps to verify the consistency and legality of the data, thereby avoiding errors or anomalies caused by changes in data format or content during transmission.

[0059] In a feasible implementation manner, the interaction process data includes initial transmission data and transmission node data; and the performing key data correctness detection on the detection verification information and the interaction process data to obtain a third detection result includes: Step S51, generating first key data corresponding to each transmission node based on the initial transmission data and the transmission node data; It should be noted that the initial transmission data refers to the original data, that is, the data that has not been processed (such as encryption, compression, etc.), and the transmission node data refers to the data processed by various transmission nodes (such as routers, switches, servers and base stations, etc.) during the data transmission process. These nodes play the role of relaying and forwarding on the data transmission path. When passing through each node, the data may be repackaged or converted to adapt to different network protocols or interfaces.

[0060] It should be further explained that the first key data refers to the key data generated on the password detection platform.

[0061] Specifically, based on the initial transmission data and the transmission node data, the first key data corresponding to each transmission node is generated. For example, the transmission node data of each transmission node in the interaction process data is read. According to the interface definition, the transmission node data includes the key generated by each transmission node. Therefore, based on the initial transmission data and the transmission node data of each node, the key of each transmission node, that is, the first key data, is derived in turn.

[0062] Step S52: Compare the first key data with the second key data in the detection verification information to obtain a third detection result.

[0063] It should be noted that the second key data refers to the key data used when data is transmitted between the devices to be detected.

[0064] Specifically, the first key data is compared with the second key data in the detection verification information to obtain a third detection result. In one embodiment, only if the second key data output by the device to be detected and the first key data derived and calculated by the password detection platform are all verified, the third detection result is a verification pass result.

[0065] This embodiment generates first key data corresponding to each transmission node based on the initial transmission data and the transmission node data, and then compares the first key data with the second key data in the detection verification information to obtain a third detection result, thereby verifying the correctness of the key, which helps to ensure the security, compliance and reliability of communications, while improving the overall security level of the system and user trust.

[0066] In a feasible implementation manner, the interaction process data includes plaintext data and first ciphertext data; and the algorithm performance test is performed based on the test verification information and the interaction process data to obtain a fourth test result, including: Step S61, capturing interaction process data generated during a preset number of information transmissions between the first device to be detected and the second device to be detected; It should be noted that the plaintext data refers to data that has not been encrypted, that is, original data. It usually contains meaningful information, such as text, numbers, images, etc., and can be directly read or understood by users. The first ciphertext data refers to the ciphertext data generated when data is transmitted between the devices to be detected.

[0067] Specifically, in one embodiment, if the first device to be detected and the second device to be detected are virtual mobile phones, the algorithm type supported by the network access authentication protocol 5G-AKA / EAP-AKA, such as AES / ZUC, is selected, so that the virtual mobile phone can access the network for 5G-AKA / EAP-AKA protocol authentication, and the virtual mobile phone is set to complete 1000 calls, and the interaction process data generated by the first device to be detected and the second device to be detected during the 1000 calls is captured, where 1000 times is a preset number, which can be set according to actual conditions and is not limited here.

[0068] Step S62, encrypting the plaintext data to obtain second ciphertext data, and determining the encryption duration; It should be noted that the second ciphertext data refers to the ciphertext data obtained by encrypting the plaintext data by the password detection platform itself, and is used for verification with the ciphertext data generated between the device to be detected.

[0069] Specifically, according to a preset algorithm type, the plaintext data is encrypted to obtain second ciphertext data, and the encryption duration is determined, which can be determined by a detection tool and is not limited here.

[0070] Step S63, matching the first ciphertext data with the second ciphertext data to obtain a ciphertext matching result; Specifically, the first ciphertext data is matched with the second ciphertext data to obtain a ciphertext matching result. In one embodiment, the ciphertext matching result is a successful matching result only when the first ciphertext data and the second ciphertext data are completely matched successfully. It can be set according to actual conditions and is not limited here.

[0071] Step S64, obtaining a fourth detection result based on the encryption duration and the ciphertext matching result.

[0072] Specifically, continuing with the above example, the encryption duration of 1,000 calls is determined, and then the average encryption duration is calculated based on each of the encryption durations, so as to match the average encryption duration with a preset encryption duration range to obtain an encryption performance result, and then the encryption performance result is associated and combined with the ciphertext matching result to obtain a fourth test result. In one embodiment, only when the encryption performance result is in line with the preset encryption duration range and the ciphertext matching result is a pass result, the fourth test result is a verification pass result.

[0073] This embodiment captures the interaction process data generated by the first device to be detected and the second device to be detected during the transmission of information for a preset number of times, and then encrypts the plaintext data to obtain second ciphertext data, and determines the encryption duration, so as to match the first ciphertext data with the second ciphertext data to obtain a ciphertext matching result, and then obtains a fourth detection result based on the encryption duration and the ciphertext matching result, thereby detecting the algorithm performance while monitoring the encryption process, ensuring that the use of the encryption algorithm and the key meets expectations, and then evaluating the efficiency and performance of the encryption process.

[0074] Based on this, an embodiment of the present application provides a password detection method. In this embodiment, the password detection method includes steps S71 to S73: Step S71, obtaining information to be transmitted; It should be noted that the information to be transmitted refers to information that needs to be transmitted between the devices to be detected, that is, original plaintext information.

[0075] Step S72, encrypting the information to be transmitted to obtain transmission encrypted information; It should be noted that the transmission encrypted information refers to the encrypted information obtained by performing algorithm encryption on the information to be transmitted.

[0076] Specifically, according to a preset encryption algorithm, such as AES or ZUC algorithm, the information to be transmitted is encrypted to obtain transmission encrypted information.

[0077] Step S73, sending the transmission encrypted information to the second device to be detected, and the password detection platform captures the protocol process data and interaction process data generated by the first device to be detected and the second device to be detected during the information transmission process to generate a password detection result.

[0078] This embodiment obtains the information to be transmitted and then encrypts the information to be transmitted to obtain the transmission encrypted information, which is then sent to the second device to be detected. The password detection platform captures the protocol process data and interaction process data generated by the first device to be detected and the second device to be detected during the information transmission process to generate a password detection result, thereby providing a data basis for capturing and analyzing the protocol process data and the interaction process data, thereby detecting the correctness of the password application, and at the same time monitoring any abnormal behavior or potential security threats in the communication process.

[0079] Based on this, an embodiment of the present application provides a password detection method. In this embodiment, the password detection method includes steps S81 to S84: Step S81, receiving transmission encryption information sent by the first device to be detected; Step S82, decrypting the transmission encryption information to obtain transmission decryption information; It should be noted that the transmission decryption information refers to the information obtained after decrypting the transmission encryption information.

[0080] Specifically, the transmission encrypted information is decrypted according to a decryption algorithm corresponding to a preset encryption algorithm to obtain transmission decrypted information.

[0081] Step S83, associating and combining the transmission encryption information and the transmission decryption information to generate detection verification information; Specifically, the transmission encryption information and the transmission decryption information are associated and combined to generate detection verification information, that is, the detection verification information includes information such as plaintext, ciphertext and key generated when data is transmitted between the first device to be detected and the second device to be detected.

[0082] Step S84, sending the detection verification information to the password detection platform, which receives the detection verification information and captures the protocol process data and interaction process data generated by the first device to be detected and the second device to be detected during the information transmission process to generate a password detection result.

[0083] This embodiment receives transmission encryption information sent by the first device to be detected, and then decrypts the transmission encryption information to obtain transmission decryption information, thereby associating and combining the transmission encryption information and the transmission decryption information to generate detection verification information, and then sending the detection verification information to the password detection platform, which receives the detection verification information and captures the protocol process data and interaction process data generated by the first device to be detected and the second device to be detected during the information transmission process to generate a password detection result, thereby providing a data basis for capturing and analyzing the protocol process data and the interaction process data, thereby detecting the correctness of the password application, and at the same time monitoring any abnormal behavior or potential security threats in the communication process.

[0084] For example, to help understand the implementation process of the password detection method, please refer to Figure 4 , Figure 4 This is a diagram showing a brief implementation flow of the password detection method provided for this application.

[0085] It should be noted that the examples in the figure are only used to understand the present application and do not constitute a limitation on the password detection method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0086] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0087] This application also provides a password detection device, please refer to Figure 5 , the password detection device comprises: The detection module 51 is used to capture the protocol process data and the interaction process data generated by the first device to be detected and the second device to be detected during the information transmission process, wherein the information transmission process includes the cryptographic application; receive the detection verification information sent by the second device to be detected; based on the detection verification information, the protocol process data and the interaction process data, detect the cryptographic application in the information transmission process and generate a cryptographic detection result; The first transmission module 52 is used to obtain information to be transmitted; encrypt the information to be transmitted to obtain transmission encrypted information; send the transmission encrypted information to the second device to be detected, and the password detection platform captures the protocol process data and interaction process data generated by the first device to be detected and the second device to be detected during the information transmission process to generate a password detection result; The second transmission module 53 is used to receive the transmission encryption information sent by the first device to be detected; decrypt the transmission encryption information to obtain transmission decryption information; associate and combine the transmission encryption information and the transmission decryption information to generate detection verification information; send the detection verification information to the password detection platform, which receives the detection verification information and captures the protocol process data and interaction process data generated by the first device to be detected and the second device to be detected during the information transmission process to generate a password detection result.

[0088] The password detection device is also used for: Performing a protocol correctness test on the test verification information, the protocol process data, and the interaction process data to obtain a first test result; Based on the algorithm type used by the first device to be detected and the second device to be detected in the process of transmitting information, perform algorithm correctness detection on the detection verification information and the interaction process data to obtain a second detection result; Performing key data correctness detection on the detection verification information and the interaction process data to obtain a third detection result; Based on the detection verification information and the interaction process data, an algorithm performance test is performed to obtain a fourth test result; The first detection result, the second detection result, the third detection result and the fourth detection result are associated and combined to generate a password detection result.

[0089] The password detection device is also used for: Matching the protocol process data with preset protocol specification information to obtain a protocol matching result; If the match is successful, the interaction process data is calculated to obtain an interaction calculation result, and the interaction calculation result is matched with the detection verification information to obtain an interaction matching result; The protocol matching result and the interaction matching result are associated and combined to generate a first detection result.

[0090] The password detection device is also used for: Determine the type of algorithm used by the first device to be detected and the second device to be detected during information transmission; Decrypting the interaction process data based on the algorithm type; The decrypted interaction process data is matched with the detection verification information to obtain a second detection result.

[0091] The password detection device is also used for: Based on the initial transmission data and the transmission node data, generate first key data corresponding to each transmission node; The first key data is compared with the second key data in the detection verification information to obtain a third detection result.

[0092] The password detection device is also used for: Capturing interaction process data generated during a preset number of information transmissions between the first device to be detected and the second device to be detected; Encrypting the plaintext data to obtain second ciphertext data, and determining the encryption duration; Matching the first ciphertext data with the second ciphertext data to obtain a ciphertext matching result; Based on the encryption duration and the ciphertext matching result, a fourth detection result is obtained.

[0093] The password detection device provided by the present application adopts the password detection method in the above embodiment, and can solve the technical problems in the background technology. Compared with the prior art, the beneficial effects of the password detection device provided by the present application are the same as the beneficial effects of the password detection method provided by the above embodiment, and other technical features in the password detection device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0094] The present application provides a password detection device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the password detection method in the above-mentioned embodiment one.

[0095] Reference below Figure 6 , which shows a schematic diagram of the structure of a password detection device suitable for implementing the embodiment of the present application. The password detection device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The password detection device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0096] like Figure 6As shown, the password detection device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the password detection device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the password detection device to communicate wirelessly or wired with other devices to exchange data. Although the password detection device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.

[0097] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0098] The password detection device provided by the present application adopts the password detection method in the above embodiment, which can solve the technical problems in the background technology. Compared with the prior art, the beneficial effects of the password detection device provided by the present application are the same as the beneficial effects of the password detection method provided by the above embodiment, and other technical features in the password detection device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0099] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0100] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0101] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the password detection method in the above-mentioned embodiment.

[0102] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0103] The computer-readable storage medium may be included in the password detection device; or may exist independently without being assembled into the password detection device.

[0104] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the password detection device, the password detection device: Capturing protocol process data and interaction process data generated during information transmission between the first device to be detected and the second device to be detected, wherein the information transmission process includes cryptographic application; Receiving detection verification information sent by the second device to be detected; Based on the detection verification information, the protocol process data and the interaction process data, the cryptographic application in the information transmission process is detected to generate a cryptographic detection result.

[0105] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0106] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0107] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0108] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned password detection method, and can solve the technical problems in the background technology. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the password detection method provided in the above-mentioned embodiment, and will not be repeated here.

[0109] An embodiment of the present application provides a computer program product, including a computer program, which implements the steps of the password detection method as described above when the computer program is executed by a processor.

[0110] The computer program product provided in this application can solve the technical problems in the background technology. Compared with the prior art, the beneficial effects of the computer program product provided in the embodiment of this application are the same as the beneficial effects of the password detection method provided in the above embodiment, which will not be repeated here.

[0111] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A password detection method, It is characterized in that The password detection method is applied to a password detection platform, including: Capturing protocol process data and interaction process data generated during information transmission between the first device to be detected and the second device to be detected, wherein the information transmission process includes cryptographic application; Receiving detection verification information sent by the second device to be detected; Based on the detection verification information, the protocol process data and the interaction process data, the cryptographic application in the information transmission process is detected to generate a cryptographic detection result.

2. The password detection method according to claim 1, It is characterized in that The detecting the password application in the information transmission process based on the detection verification information, the protocol process data and the interaction process data to generate a password detection result includes: Performing a protocol correctness test on the test verification information, the protocol process data, and the interaction process data to obtain a first test result; Based on the algorithm type used by the first device to be detected and the second device to be detected in the process of transmitting information, perform algorithm correctness detection on the detection verification information and the interaction process data to obtain a second detection result; Performing key data correctness detection on the detection verification information and the interaction process data to obtain a third detection result; Based on the detection verification information and the interaction process data, an algorithm performance test is performed to obtain a fourth test result; The first detection result, the second detection result, the third detection result and the fourth detection result are associated and combined to generate a password detection result.

3. The password detection method according to claim 2, It is characterized in that The performing protocol correctness detection on the detection verification information, the protocol process data, and the interaction process data to obtain a first detection result includes: Matching the protocol process data with preset protocol specification information to obtain a protocol matching result; If the match is successful, the interaction process data is calculated to obtain an interaction calculation result, and the interaction calculation result is matched with the detection verification information to obtain an interaction matching result; The protocol matching result and the interaction matching result are associated and combined to generate a first detection result.

4. The password detection method according to claim 2, It is characterized in that The method of performing algorithm correctness detection on the detection verification information and the interaction process data based on the algorithm type used by the first device to be detected and the second device to be detected in the process of transmitting information to obtain a second detection result includes: Determine the type of algorithm used by the first device to be detected and the second device to be detected during information transmission; Decrypting the interaction process data based on the algorithm type; The decrypted interaction process data is matched with the detection verification information to obtain a second detection result.

5. The password detection method according to claim 2, It is characterized in that The interaction process data includes initial transmission data and transmission node data; The performing key data correctness detection on the detection verification information and the interaction process data to obtain a third detection result includes: Based on the initial transmission data and the transmission node data, generate first key data corresponding to each transmission node; The first key data is compared with the second key data in the detection verification information to obtain a third detection result.

6. The password detection method according to claim 2, It is characterized in that The interaction process data includes plaintext data and first ciphertext data; The performing of algorithm performance detection based on the detection verification information and the interaction process data to obtain a fourth detection result includes: Capturing interaction process data generated during a preset number of information transmissions between the first device to be detected and the second device to be detected; Encrypting the plaintext data to obtain second ciphertext data, and determining the encryption duration; Matching the first ciphertext data with the second ciphertext data to obtain a ciphertext matching result; Based on the encryption duration and the ciphertext matching result, a fourth detection result is obtained.

7. A password detection method, It is characterized in that The password detection method is applied to a first device to be detected, comprising: Obtain information to be transmitted; Encrypting the information to be transmitted to obtain transmission encrypted information; The transmission encrypted information is sent to the second device to be detected, and the password detection platform captures the protocol process data and interaction process data generated by the first device to be detected and the second device to be detected during the information transmission process to generate a password detection result.

8. A password detection method, It is characterized in that The password detection method is applied to a second device to be detected, comprising: Receiving transmission encryption information sent by the first device to be detected; Decrypting the transmission encrypted information to obtain transmission decrypted information; Associating and combining the transmission encryption information and the transmission decryption information to generate detection verification information; The detection verification information is sent to the password detection platform, which receives the detection verification information and captures the protocol process data and interaction process data generated by the first device to be detected and the second device to be detected during the information transmission process to generate a password detection result.

9. A password detection device, It is characterized in that The password detection device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the password detection method according to any one of claims 1 to 6 or 7 or 8.

10. A storage medium, It is characterized in that The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the password detection method according to any one of claims 1 to 6 or 7 or 8 are implemented.

Citation Information

Patent Citations

  • Commercial password detection method, device and system

    CN107612698A

  • Password security situation awareness method, device and equipment, and readable storage medium

    CN112738121A

  • B / S mode-based application password type detection method and platform

    CN114567469A

  • Security evaluation method and security evaluation equipment for cryptographic module and storage medium

    CN115630355A

  • Commercial password detection method and device and storage medium

    CN115760118A

Cited By

  • Security detection method and system for unified password service and management

    CN120528597A

  • A security detection method and system for unified password service management

    CN120528597B