Method and device for preventing password from being brute force cracked based on machine learning

Through the machine learning-based system for password security assessment and user behavior dynamic authentication, the problem that the traditional password authentication system is easy to be cracked is solved, and a safe and reliable password authentication service and good scalability are achieved.

CN118690351APending Publication Date: 2024-09-24SHENZHEN LANYOU TECHNOLOGY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410713268.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Traditional password authentication systems are easily cracked by brute force and lack the ability to adapt to user behavior and environmental changes, resulting in high security risks.

Method used

Use a system based on machine learning for password security assessment and dynamic authentication of user behavior. By building a machine learning system, including data collection, user behavior analysis and machine learning clusters, we train models to identify password security features and patterns, and dynamically adjust password security control strategies. , and block or allow access based on user behavior status.

Benefits of technology

Effectively prevent password cracking attacks, provide safe and reliable password authentication services, adapt to changes in user scale and security requirements, and improve the security and scalability of password authentication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690351A
    Figure CN118690351A
Patent Text Reader

Abstract

The invention relates to the technical field of network security, and provides a method and a device for preventing a password from being cracked by brute force based on machine learning, a machine learning system is constructed, the machine learning system is used for evaluating the security of a user password and performing dynamic authentication on a user behavior, and when the user sets the password, the password can be effectively prevented from being cracked by brute force. Password security evaluation is carried out on a password set by a user through a machine learning system, dynamic authentication is carried out on user behaviors through the machine learning system when the user logs in an application system to start use, and a password security control strategy and a password authentication strategy are dynamically adjusted according to a password security evaluation result. And according to the user behavior state obtained through dynamic authentication, the user behavior is blocked or allowed, so that password cracking attacks are comprehensively identified and prevented, a safe and reliable password authentication service is provided, meanwhile, good expandability is provided, and the method adapts to continuously changing user scales and safety requirements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security technology, and more specifically, to a method and device for preventing passwords from being cracked by brute force based on machine learning. Background Art

[0002] With the popularization of the Internet and the rapid development of information technology, passwords have become one of the most commonly used means of authentication in network systems. However, traditional password authentication methods have certain security risks, especially when facing password cracking attacks. Traditional password authentication systems usually rely on static authentication methods, such as username and password combinations. In traditional password authentication systems, many users tend to choose simple and easy-to-remember passwords, such as common words, numbers or dates, which are easily guessed by brute force cracking tools. Malicious users can use brute force cracking tools to make a large number of attempts on passwords and gain unauthorized access by constantly trying different password combinations. Attackers can use pre-prepared password dictionaries to try the password combinations one by one to crack user passwords. Traditional password authentication systems often rely on static authentication methods and lack the ability to adapt to user behavior and environmental changes.

[0003] In summary, existing password authentication technologies have technical problems such as being easily cracked by brute force and lacking the ability to adapt to user behavior and environmental changes. Summary of the invention

[0004] The technical problem to be solved by the present invention is that, in view of the shortcomings of the above-mentioned technical solutions, a method and device for preventing passwords from being cracked by brute force based on machine learning is provided to comprehensively identify and prevent password cracking attacks, provide safe and reliable password authentication services, and at the same time provide good scalability to adapt to the ever-changing user scale and security requirements.

[0005] In a first aspect, the present invention provides a method for preventing a password from being cracked by brute force based on machine learning, comprising the following steps:

[0006] Building a machine learning system that is used to assess the security of user passwords and dynamically authenticate user behavior;

[0007] When a user sets a password, the machine learning system is used to evaluate the password security of the password set by the user. When the user logs in to the application system to start using it, the machine learning system is used to dynamically authenticate the user's behavior.

[0008] According to the results of password security assessment, the password security control policy and password authentication policy are dynamically adjusted, and user behavior is blocked or allowed according to the user behavior status obtained by dynamic authentication.

[0009] Furthermore, the machine learning system includes a data collection server, which is used to collect an open source Internet password dictionary through a firewall and generate a commonly used password dictionary based on the Internet password dictionary.

[0010] Furthermore, the machine learning system includes a user behavior analysis server, which is used to analyze user behavior.

[0011] Furthermore, the machine learning system includes a machine learning cluster, which is obtained by training and evaluating a selected machine learning model through the commonly used password dictionary, the collected user history password dictionary, and the collected user history behavior characteristics.

[0012] Furthermore, the commonly used password dictionary, the collected user historical password dictionary, and the collected user historical behavior characteristics are preprocessed to form a training set and a validation set, and the training set is used to train the selected machine learning model; during the training process, the selected machine learning model is enabled to learn the security features and patterns of user passwords by optimizing the algorithm and adjusting the parameters; the validation set is used to evaluate the performance and generalization ability of the trained machine learning model.

[0013] Furthermore, during the evaluation process, the performance and generalization ability of the trained machine learning model are evaluated using accuracy, recall, and F1 score, and the model and parameters are adjusted based on the evaluation results to improve the performance and generalization ability of the model.

[0014] Furthermore, the preprocessing method of the commonly used password dictionary, the collected user history password dictionary and the collected user history behavior characteristics includes data cleaning and removing duplicate values.

[0015] Furthermore, when the machine learning system evaluates the security of a user's password, the password strength is measured through a password evaluation function library; the password evaluation function library accepts a password as input and outputs a score representing the password strength.

[0016] Furthermore, when dynamically adjusting the password security control policy based on the results of the password security assessment, the machine learning system calls the password recommendation function library to determine the strength of the password set by the user. If the password set by the user is determined to be a weak password, a compliant password is automatically generated for recommendation to the user.

[0017] Furthermore, when the machine learning system dynamically authenticates user behavior, it calls the behavior analysis and evaluation function library to dynamically authenticate user behavior. When the user behavior status obtained by dynamic authentication is abnormal, it calls the enterprise firewall to block the abnormal user behavior.

[0018] In a second aspect, the present invention provides a device for preventing a password from being cracked by brute force based on machine learning, comprising:

[0019] A machine learning system building module, used to build a machine learning system, wherein the machine learning system is used to evaluate the security of user passwords and dynamically authenticate user behaviors;

[0020] A password assessment and behavior authentication module, which is used to perform a password security assessment on the password set by the user through the machine learning system when the user sets the password, and to dynamically authenticate the user's behavior through the machine learning system when the user logs in to the application system to start using it;

[0021] The security dynamic adjustment module is used to dynamically adjust the password security control policy and password authentication policy according to the results of the password security assessment, and block or allow user behavior according to the user behavior status obtained by dynamic authentication.

[0022] Compared with the prior art, the present invention has the following beneficial effects:

[0023] The present invention provides a method and device for preventing passwords from being cracked by brute force based on machine learning. A machine learning system is constructed, and the machine learning system is used to evaluate the security of user passwords and dynamically authenticate user behaviors. When a user sets a password, the machine learning system performs a password security evaluation on the password set by the user. When the user logs in to an application system to start using it, the machine learning system performs a dynamic authentication on the user behavior. According to the result of the password security evaluation, the password security control strategy and the password authentication strategy are dynamically adjusted, and according to the user behavior status obtained by dynamic authentication, the user behavior is blocked or allowed, thereby comprehensively identifying and preventing password cracking attacks, providing a safe and reliable password authentication service, and providing good scalability to adapt to the ever-changing user scale and security requirements. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 This is a flow chart of a method for preventing a password from being cracked by brute force based on machine learning according to an embodiment of the present invention;

[0025] Figure 2 It is a structural schematic diagram of a device for preventing a password from being cracked by brute force based on machine learning in an embodiment of the present invention;

[0026] Figure 3 It is a schematic diagram of an architecture of a machine learning system according to an embodiment of the present invention;

[0027] Figure 4 This is a schematic diagram of a process for user password security assessment according to an embodiment of the present invention;

[0028] Figure 5It is a flow chart of dynamic authentication of user behavior in an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0030] It should be noted that if the terms "first", "second", etc. appear in the specification and claims of the present invention and the above-mentioned drawings, their purpose is to distinguish similar objects, and they are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein.

[0031] Embodiment 1

[0032] See also Figure 1 , Figure 3 , Figure 4 and Figure 5 This embodiment provides a method for preventing passwords from being cracked by brute force based on machine learning, including step S101, step S102 and step S103. By constructing a machine learning system, the machine learning system is used to evaluate the security of user passwords and dynamically authenticate user behaviors. When a user sets a password, the machine learning system performs a password security evaluation on the password set by the user. When the user logs in to the application system to start using it, the machine learning system performs a dynamic authentication on the user behavior. According to the result of the password security evaluation, the password security control strategy and the password authentication strategy are dynamically adjusted, and according to the user behavior status obtained by the dynamic authentication, the user behavior is blocked or allowed, thereby comprehensively identifying and preventing password cracking attacks, providing a safe and reliable password authentication service, and providing good scalability to adapt to the ever-changing user scale and security requirements.

[0033] Specifically, in step S101, a machine learning system is constructed, and the machine learning system is used to evaluate the security of user passwords and dynamically authenticate user behaviors. The machine learning system includes a data acquisition server, and the data acquisition server is used to collect open source Internet password dictionaries through firewalls, and generate common password dictionaries based on the Internet password dictionaries. The machine learning system includes a user behavior analysis server, and the user behavior analysis server is used to analyze user behaviors. The machine learning system includes a machine learning cluster, and the machine learning cluster trains and evaluates the selected machine learning model through the common password dictionary, the collected user history password dictionary, and the collected user history behavior characteristics. The common password dictionary, the collected user history password dictionary, and the collected user history behavior characteristics form a training set and a validation set after preprocessing, and the training set trains the selected machine learning model; during the training process, the selected machine learning model is enabled to learn the security features and patterns of user passwords through optimization algorithms and parameter adjustments; the validation set evaluates the performance and generalization ability of the trained machine learning model. During the evaluation process, the performance and generalization ability of the trained machine learning model are evaluated with accuracy, recall rate and F1 score as evaluation indicators, and the model and parameters are adjusted according to the evaluation results to improve the performance and generalization ability of the model. The preprocessing method of the commonly used password dictionary, the collected user history password dictionary and the collected user history behavior characteristics includes data cleaning and removal of duplicate values.

[0034] It should be noted that the assessment of user password security may include analyzing the complexity, length, character combination and other characteristics of the user password. Dynamic authentication of user behavior may include analyzing the user's login behavior pattern, device information, geographic location and other contextual information. In addition, user historical behavior characteristics may include account activity records, device information, etc. The selected machine learning model may be logistic regression, decision tree, random forest, neural network, etc.

[0035] Specifically, in step S102, when the user sets a password, the password set by the user is evaluated for password security through the machine learning system, and when the user logs in to the application system to start using it, the user behavior is dynamically authenticated through the machine learning system. In step S103, according to the result of the password security evaluation, the password security control strategy and the password authentication strategy are dynamically adjusted, and according to the user behavior status obtained by the dynamic authentication, the user behavior is blocked or allowed.

[0036] In some preferred embodiments, when the machine learning system evaluates the security of the user's password, the password strength is measured by a password evaluation function library; the password evaluation function library accepts a password as input and outputs a score indicating the password strength. It should be noted that the score indicating the password strength can be a numerical value or a classification indicating the strength level of the password, such as weak, medium, strong, etc.

[0037] In some preferred embodiments, when dynamically adjusting the password security control policy based on the results of the password security assessment, the machine learning system calls the password recommendation function library to determine the strength of the password set by the user. If the password set by the user is determined to be a weak password, a compliant password is automatically generated to recommend to the user. It should be noted that the password recommendation function library can be used to measure the strength of the password. The password recommendation function library accepts a password as input and outputs a score indicating the strength of the password. This score indicating the strength of the password can be a numerical value or a classification, indicating the strength level of the password, such as weak, medium, strong, etc. When the user sets the password, the user logs in to the application system, selects the password setting, and enters the static verification item (historical password, verification code, etc.); the user sets a new password, that is, enters the password he wants to set; the application calls the password evaluation function library to evaluate: if it is identified as a normal password, the setting is successful; if it is identified as a weak password, modification suggestions are given.

[0038] In some further preferred embodiments, when dynamically adjusting the password authentication policy, if the password set by the user is determined to be a weak password, the user is prompted to perform additional identity authentication, or the access rights of the user with the weak password are restricted; if the password set by the user is determined to be a password with higher security, a simplified authentication process is provided, thereby realizing dynamic adjustment of the password authentication policy and improving the user's authentication experience.

[0039] In some preferred embodiments, when the machine learning system dynamically authenticates user behavior, it calls the behavior analysis and evaluation function library to dynamically authenticate user behavior. When the user behavior status obtained by dynamic authentication is abnormal, it calls the enterprise firewall to block the abnormal user behavior. It should be noted that the behavior analysis and evaluation function library is used to evaluate user behavior, mainly for identifying abnormal behavior and potential security risks. The behavior analysis and evaluation function library receives user behavior data as input, and outputs a score or classification indicating the safety level of the behavior. In addition, when the user behavior is dynamically authenticated, the user logs in to the application system and starts using it; the machine learning system obtains the user behavior, calls the behavior analysis and evaluation function library for evaluation, and when it is identified that the user behavior is abnormal, it calls the enterprise firewall to block the user behavior.

[0040] In some further preferred embodiments, the user behavior analysis server uses the mirror traffic of the application system to perform a separate analysis of user behavior. When the user behavior is identified as abnormal, the access of the abnormal behavior user is blocked through a firewall and the abnormal behavior user is blacklisted, thereby improving the security of dynamic authentication of user behavior.

[0041] Embodiment 2

[0042] See also Figure 1-Figure 5 This embodiment provides a device for preventing a password from being cracked by brute force based on machine learning, including:

[0043] A machine learning system building module, used to build a machine learning system, wherein the machine learning system is used to evaluate the security of user passwords and dynamically authenticate user behaviors;

[0044] A password assessment and behavior authentication module, which is used to perform a password security assessment on the password set by the user through the machine learning system when the user sets the password, and to dynamically authenticate the user's behavior through the machine learning system when the user logs in to the application system to start using it;

[0045] The security dynamic adjustment module is used to dynamically adjust the password security control policy and password authentication policy according to the results of the password security assessment, and block or allow user behavior according to the user behavior status obtained by dynamic authentication.

[0046] In this embodiment, a machine learning system is constructed, which is used to evaluate the security of user passwords and dynamically authenticate user behavior. When a user sets a password, the machine learning system performs a password security evaluation on the password set by the user. When the user logs in to the application system to start using it, the machine learning system performs a dynamic authentication on the user behavior. According to the results of the password security evaluation, the password security control policy and the password authentication policy are dynamically adjusted, and according to the user behavior status obtained by dynamic authentication, the user behavior is blocked or allowed, thereby comprehensively identifying and preventing password cracking attacks, providing safe and reliable password authentication services, and at the same time providing good scalability to adapt to the ever-changing user scale and security needs.

[0047] It should be noted that the machine learning system includes a data collection server, which is used to collect open source Internet password dictionaries through firewalls and generate common password dictionaries based on the Internet password dictionaries. The machine learning system includes a user behavior analysis server, which is used to analyze user behavior. The machine learning system includes a machine learning cluster, which trains and evaluates the selected machine learning model through the common password dictionary, the collected user history password dictionary, and the collected user history behavior characteristics. The common password dictionary, the collected user history password dictionary, and the collected user history behavior characteristics form a training set and a validation set after preprocessing, and the training set trains the selected machine learning model; during the training process, the selected machine learning model is enabled to learn the security features and patterns of user passwords through optimization algorithms and parameter adjustments; the validation set evaluates the performance and generalization ability of the trained machine learning model. During the evaluation process, the performance and generalization ability of the trained machine learning model are evaluated with accuracy, recall rate, and F1 score as evaluation indicators, and the model and parameters are adjusted according to the evaluation results to improve the performance and generalization ability of the model. The preprocessing method of the commonly used password dictionary, the collected user history password dictionary and the collected user history behavior characteristics includes data cleaning and removing duplicate values.

[0048] It should be noted that the assessment of user password security may include analyzing the complexity, length, character combination and other characteristics of the user password. Dynamic authentication of user behavior may include analyzing the user's login behavior pattern, device information, geographic location and other contextual information. In addition, user historical behavior characteristics may include account activity records, device information, etc. The selected machine learning model may be logistic regression, decision tree, random forest, neural network, etc.

[0049] In some preferred embodiments, when the machine learning system evaluates the security of the user's password, the password strength is measured by a password evaluation function library; the password evaluation function library accepts a password as input and outputs a score indicating the password strength. It should be noted that the score indicating the password strength can be a numerical value or a classification indicating the strength level of the password, such as weak, medium, strong, etc.

[0050] In some preferred embodiments, when dynamically adjusting the password security control policy based on the results of the password security assessment, the machine learning system calls the password recommendation function library to determine the strength of the password set by the user. If the password set by the user is determined to be a weak password, a compliant password is automatically generated to recommend to the user. It should be noted that the password recommendation function library can be used to measure the strength of the password. The password recommendation function library accepts a password as input and outputs a score indicating the strength of the password. This score indicating the strength of the password can be a numerical value or a classification, indicating the strength level of the password, such as weak, medium, strong, etc. When the user sets the password, the user logs in to the application system, selects the password setting, and enters the static verification item (historical password, verification code, etc.); the user sets a new password, that is, enters the password he wants to set; the application calls the password evaluation function library to evaluate: if it is identified as a normal password, the setting is successful; if it is identified as a weak password, modification suggestions are given.

[0051] In some further preferred embodiments, when dynamically adjusting the password authentication policy, if the password set by the user is determined to be a weak password, the user is prompted to perform additional identity authentication, or the access rights of the user with the weak password are restricted; if the password set by the user is determined to be a password with higher security, a simplified authentication process is provided, thereby realizing dynamic adjustment of the password authentication policy and improving the user's authentication experience.

[0052] In some preferred embodiments, when the machine learning system dynamically authenticates user behavior, it calls the behavior analysis and evaluation function library to dynamically authenticate user behavior. When the user behavior status obtained by dynamic authentication is abnormal, it calls the enterprise firewall to block the abnormal user behavior. It should be noted that the behavior analysis and evaluation function library is used to evaluate user behavior, mainly for identifying abnormal behavior and potential security risks. The behavior analysis and evaluation function library receives user behavior data as input, and outputs a score or classification indicating the safety level of the behavior. In addition, when the user behavior is dynamically authenticated, the user logs in to the application system and starts using it; the machine learning system obtains the user behavior, calls the behavior analysis and evaluation function library for evaluation, and when it is identified that the user behavior is abnormal, it calls the enterprise firewall to block the user behavior.

[0053] In some further preferred embodiments, the user behavior analysis server uses the mirror traffic of the application system to perform a separate analysis of user behavior. When the user behavior is identified as abnormal, the access of the abnormal behavior user is blocked through a firewall and the abnormal behavior user is blacklisted, thereby improving the security of dynamic authentication of user behavior.

[0054] It should be pointed out that the above embodiments are only preferred specific implementation modes of the present invention, and the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention. The protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for preventing passwords from being cracked by brute force based on machine learning, characterized in that: The following steps are involved: Building a machine learning system that is used to assess the security of user passwords and dynamically authenticate user behavior; When a user sets a password, the machine learning system is used to evaluate the password security of the password set by the user. When the user logs in to the application system to start using it, the machine learning system is used to dynamically authenticate the user's behavior. According to the results of password security assessment, the password security control policy and password authentication policy are dynamically adjusted, and user behavior is blocked or allowed according to the user behavior status obtained by dynamic authentication.

2. The method for preventing passwords from being cracked by brute force based on machine learning as claimed in claim 1, characterized in that: The machine learning system includes a data collection server, which is used to collect an open source Internet password dictionary through a firewall and generate a common password dictionary based on the Internet password dictionary.

3. The method for preventing passwords from being cracked by brute force based on machine learning as claimed in claim 2, characterized in that: The machine learning system includes a user behavior analysis server, which is used to analyze user behavior.

4. The method for preventing passwords from being cracked by brute force based on machine learning as claimed in claim 3, characterized in that: The machine learning system includes a machine learning cluster, which is obtained by training and evaluating a selected machine learning model through the commonly used password dictionary, the collected user history password dictionary, and the collected user history behavior characteristics.

5. The method for preventing passwords from being cracked by brute force based on machine learning as claimed in claim 4, characterized in that: The commonly used password dictionary, the collected user historical password dictionary and the collected user historical behavior characteristics are pre-processed to form a training set and a validation set, and the training set is used to train the selected machine learning model; During the training process, the selected machine learning model is enabled to learn the security features and patterns of user passwords by optimizing algorithms and adjusting parameters; the validation set evaluates the performance and generalization ability of the trained machine learning model.

6. The method for preventing passwords from being cracked by brute force based on machine learning as claimed in claim 5, characterized in that: During the evaluation process, the performance and generalization ability of the trained machine learning model are evaluated using accuracy, recall rate, and F1 score. The model and parameters are adjusted based on the evaluation results to improve the performance and generalization ability of the model.

7. The method for preventing passwords from being cracked by brute force based on machine learning according to any one of claims 1 to 6, characterized in that: When the machine learning system evaluates the security of a user's password, the password strength is measured through a password evaluation function library; the password evaluation function library accepts a password as input and outputs a score representing the password strength.

8. The method for preventing passwords from being cracked by brute force based on machine learning according to any one of claims 1 to 6, characterized in that: When dynamically adjusting the password security control policy based on the results of the password security assessment, the machine learning system calls the password recommendation function library to determine the strength of the password set by the user. If the password set by the user is determined to be a weak password, a compliant password is automatically generated for recommendation to the user.

9. The method for preventing passwords from being cracked by brute force based on machine learning according to any one of claims 1 to 6, characterized in that: When the machine learning system dynamically authenticates the user behavior, it calls the behavior analysis and evaluation function library to dynamically authenticate the user behavior. When the user behavior status obtained by dynamic authentication is abnormal, it calls the enterprise firewall to block the abnormal user behavior.

10. A device for preventing passwords from being cracked by brute force based on machine learning, characterized in that: include: A machine learning system building module, used to build a machine learning system, wherein the machine learning system is used to evaluate the security of user passwords and dynamically authenticate user behaviors; A password assessment and behavior authentication module, which is used to perform a password security assessment on the password set by the user through the machine learning system when the user sets the password, and to dynamically authenticate the user's behavior through the machine learning system when the user logs in to the application system to start using it; The security dynamic adjustment module is used to dynamically adjust the password security control policy and password authentication policy according to the results of the password security assessment, and block or allow user behavior according to the user behavior status obtained by dynamic authentication.

Citation Information

Cited By

  • Enterprise equal insurance processing and password application intelligent evaluation system based on big data

    CN119885187A