Method and device for determining abnormal behavior of user
By carrying the encrypted user account information in the subsequent request of the user client, the problem of insufficient attention to internal abnormal behavior in the prior art is solved, and accurate analysis of user behavior and improvement of network security is achieved.
Patent Information
- Application Number
- CN202410929608.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-11-22
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology focuses on external attacks and less on the abnormal behavior of internal personnel, making it difficult to effectively analyze and determine important data leakage problems that internal employees may cause.
By sending the encrypted user account information to the user client and carrying the encrypted user account information during all subsequent requests and accesses, the correlation analysis of user behavior is realized, preventing account information from being leaked, and improving network security.
Accurately analyze abnormal behaviors of user accounts, prevent important data leakage caused by internal employees, and improve network security.
Smart Images

Figure CN119011189A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for determining abnormal behavior of a user. Background Art
[0002] As the number of application programming interfaces (APIs) continues to grow, APIs have attracted widespread attention from external attackers in the process of continuous request calls. As one of the main targets of attack, API security issues can cause a series of losses to enterprises in many aspects, such as large-scale data leaks, compliance penalties from regulators, and setbacks in the digitalization process.
[0003] In the related technologies, usually efforts are made to monitor and protect against attack methods, and to provide a portrait display of various attacks and the risks they exist. That is, the focus is mainly on external attack behaviors, and less attention is paid to the abnormal behaviors of internal personnel. In fact, internal employees may also cause important data leakage. Therefore, how to effectively analyze and determine the abnormal behaviors of users is a technical problem that technicians in this field urgently need to solve. Summary of the invention
[0004] In view of the problems in the prior art, an embodiment of the present invention provides a method and device for determining abnormal behavior of a user.
[0005] Specifically, the embodiment of the present invention provides the following technical solutions: In a first aspect, an embodiment of the present invention provides a method for determining abnormal behavior of a user, comprising: Receive a login request from a user client; the login request carries user account information; According to the login request, return response data to the user client; the response data includes encrypted user account information; receiving a subsequent request from the user client; wherein the subsequent request carries the encrypted user account information; The abnormal behavior of the user is determined according to the encrypted user account information carried in the subsequent request of the user client.
[0006] Furthermore, according to the login request, response data is returned to the user client; the response data includes encrypted user account information, including: According to the login request, response data is returned to the user client; the response data includes a small text file cookie; the cookie includes the encrypted user account information.
[0007] Furthermore, the method further comprises: Sending indication information to the user client; the indication information is used to indicate that the encrypted user account information is carried in subsequent requests.
[0008] Further, determining the abnormal behavior of the user according to the encrypted user account information carried in the subsequent request of the user client includes: Decrypting the encrypted user account information carried in a subsequent request of the user client to obtain the decrypted user account information; The decrypted user account information is associated with subsequent requests from the user client to determine abnormal behavior of the user.
[0009] Furthermore, associating the decrypted user account information with subsequent requests of the user client to determine abnormal behavior of the user includes: The decrypted user account information is associated with subsequent requests of the user client. If the number of requests corresponding to the user account information within the target time period is greater than a preset value, it is determined that the user behavior is abnormal behavior.
[0010] Furthermore, associating the decrypted user account information with subsequent requests of the user client to determine abnormal behavior of the user includes: The decrypted user account information is associated with subsequent requests of the user client. If the subsequent requests corresponding to the user account information include requests for a preset target API, it is determined that the user behavior is abnormal behavior.
[0011] In a second aspect, an embodiment of the present invention further provides a device for determining abnormal behavior of a user, comprising: A first receiving module is used to receive a login request from a user client; the login request carries user account information; A response module, used to return response data to the user client according to the login request; the response data includes encrypted user account information; A second receiving module is used to receive subsequent requests from the user client; the subsequent requests all carry the encrypted user account information; The determination module is used to determine the abnormal behavior of the user according to the encrypted user account information carried in the subsequent request of the user client.
[0012] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for determining abnormal user behavior as described in the first aspect are implemented.
[0013] In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for determining abnormal user behavior as described in the first aspect.
[0014] In a fifth aspect, an embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method for determining abnormal user behavior as described in the first aspect.
[0015] The method and device for determining abnormal user behavior provided by the embodiment of the present invention realizes the association of all requests, access processes and specific user clients by sending encrypted user account information to the user client and carrying the encrypted user account information in all subsequent requests and access processes of the user client; then, based on the association relationship between the user account information and the request behavior, it is also possible to associate all requests and accesses of the user, and accurately analyze whether the specific behavior of the user account is abnormal. In addition, the user client carries the encrypted user account information in all subsequent requests and access processes instead of directly carrying the unencrypted account information, which can also effectively prevent the leakage of account information and improve network security. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 It is a flowchart of a method for determining abnormal user behavior provided by an embodiment of the present invention.
[0018] Figure 2 It is a structural diagram of a device for determining abnormal user behavior provided by an embodiment of the present invention.
[0019] Figure 3 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0020] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0021] The method of the embodiment of the present invention can be applied to the scenario of determining abnormal user behavior to achieve accurate analysis and determination of abnormal user behavior.
[0022] In the related technologies, usually, efforts are made to monitor and protect against attack methods, and to display portraits of various types of attacks and existing risks. For example, the API risk monitoring system based on traffic analysis and data identification technology collects API traffic in the entire application environment, discovers the latest and most complete API data in real time, and tracks and depicts the historical behavior and life cycle of the API, helping enterprises to master all API portraits. Based on API portraits and the use of big data engine technology, the system automatically identifies possible vulnerabilities and weaknesses in the API, analyzes and accurately identifies attack behaviors on the API in real time, and integrates or links third-party security protection products for data protection. By leaving traces of API data access behavior, it helps enterprises trace data leaks, so as to timely discover and respond to security incidents. That is, in the related technologies, the main focus is on external attack behaviors, and less attention is paid to abnormal behaviors of internal personnel. In fact, internal employees may also cause important data leaks. Therefore, how to effectively analyze and determine abnormal behaviors of users is a technical problem that technicians in this field urgently need to solve.
[0023] The method for determining abnormal user behavior in the embodiment of the present invention realizes associating all requests, access processes and specific user clients by sending encrypted user account information to the user client and carrying the encrypted user account information in all subsequent requests and access processes of the user client; then, based on the association between the user account information and the request behavior, all requests and accesses of the user can be associated, and the specific behavior of the user account can be accurately analyzed to see if there is any abnormality. In addition, the user client carries the encrypted user account information in all subsequent requests and access processes instead of directly carrying the unencrypted account information, which can also effectively prevent the leakage of account information and improve network security.
[0024] Combine the following Figure 1-Figure 3 The technical solution of the present invention is described in detail with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0025] Figure 1 FIG. 1 is a flow chart of an embodiment of a method for determining abnormal user behavior provided by an embodiment of the present invention. Figure 1 As shown, the method provided in this embodiment includes: Step 101: Receive a login request from a user client; the login request carries user account information; Specifically, in the prior art, the focus is mainly on external attacks, and less on abnormal behaviors of internal personnel. In fact, internal employees may also cause important data leakage. Therefore, how to effectively analyze and determine abnormal behaviors of users is a technical problem that those skilled in the art need to solve urgently.
[0026] In order to solve the above problem, in the embodiment of the present application, a login request from a user client is first received, and the user account information is carried in the login request. Optionally, the login request from the user client can be a login request for logging into a preset target page, or a login request for a preset system related to the business, which is not specifically limited in the embodiment of the present application.
[0027] Step 102: Return response data to the user client according to the login request; the response data includes encrypted user account information; Specifically, after receiving a login request from a user client and parsing and obtaining the user account information carried in the login request, an embodiment of the present application responds to the login request and returns response data to the user client; optionally, the response data includes encrypted user account information; optionally, the user account information can be encrypted using a preset specific encryption algorithm, or it can be encrypted based on blockchain technology, and this application does not impose any specific restrictions.
[0028] Step 103: receiving subsequent requests from the user client; the subsequent requests all carry the encrypted user account information; Specifically, after the encrypted user account information is sent to the user client, the user client can carry the encrypted user account information in all subsequent requests and access processes, that is, all requests and access processes are marked with the encrypted user account information, so as to associate all requests and access processes with specific user clients and determine the specific operation behaviors of the user client. Optionally, the user client carries the encrypted user account information in all subsequent requests and access processes instead of directly carrying the unencrypted account information, which can also effectively prevent the leakage of account information and improve network security.
[0029] Step 104: Determine the abnormal behavior of the user based on the encrypted user account information carried in the subsequent request of the user client.
[0030] Specifically, when the user client carries the encrypted user account information in subsequent requests, all requests, access processes and user accounts can be associated through the encrypted user account information. Then, based on the association between the user account information and the request behavior, all requests and accesses of the user can be associated, so that the specific behavior of the user account can be accurately analyzed to see if there are any abnormalities. That is, this application records the login account and carries the encrypted account information in subsequent requests, and by associating all subsequent requests of the account, the effect of monitoring the behavior of the account is achieved.
[0031] It should be noted that the prior art mainly focuses on attacks on APIs, and analyzes each request record independently, without associating it with subsequent requests. In other words, the account is not analyzed, and all subsequent requests are not associated with the account information. Compared with the prior art, the technical solution proposed in this application records the login account, and by carrying the encrypted account information in subsequent requests, it is possible to associate all subsequent requests of the account, thereby achieving the effect of monitoring the behavior of the account and preventing data leakage from internal personnel.
[0032] The method of the above embodiment, by sending the encrypted user account information to the user client, and carrying the encrypted user account information in all subsequent requests and access processes of the user client, realizes the association of all requests, access processes and specific user clients; then, based on the association relationship between the user account information and the request behavior, it is also possible to associate all the user's requests and accesses, and accurately analyze whether the specific behavior of the user account is abnormal. In addition, the user client carries the encrypted user account information in all subsequent requests and access processes, rather than directly carrying the unencrypted account information, which can also effectively prevent the leakage of account information and improve network security.
[0033] In one embodiment, according to the login request, response data is returned to the user client; the response data includes encrypted user account information, including: According to the login request, response data is returned to the user client; the response data includes a small text file cookie; the cookie includes encrypted user account information.
[0034] Specifically, in the process of returning response data to the client, the encrypted user account information can be embedded in a small text file cookie, thereby utilizing the small text file cookie to achieve fast and efficient transmission of the encrypted user account information without defining a new transmission structure and transmission process, saving resources and effectively improving efficiency.
[0035] That is, this application uses the cookies carried in the request message and the response message for association. When a user accesses the login API, the login account is obtained by parsing the request content, the login account is recorded, and the set-cookie field is added to the response content. The encrypted login account is returned to the client. Subsequent requests will carry the cookie, and the original login account is obtained by decrypting the cookie field, so that subsequent requests can be associated with the account, and abnormal behavior of the account can be analyzed and alarmed.
[0036] For example, a small text file cookie may be included in the response data, and the field may be set: set-cookie:UID=encrypted user account information, thereby utilizing the small text file cookie to achieve fast and efficient transmission of the encrypted user account information.
[0037] The method of the above embodiment, in the process of returning response data to the client, uses a small text file cookie to achieve fast and efficient transmission of encrypted user account information without defining a new transmission structure and transmission process, thereby saving resources and effectively improving efficiency.
[0038] In one embodiment, the method further comprises: Send an instruction message to the user client; the instruction message is used to indicate that the encrypted user account information should be carried in subsequent requests.
[0039] Specifically, after obtaining the user account information carried in the login request and sending the encrypted user account information to the user client, the embodiment of the present application also sends an indication message to the user client, wherein the indication message is used to instruct the user client to carry the encrypted user account information in subsequent requests; after receiving the indication message, the user client can also carry the encrypted user account information in all subsequent requests and access processes according to the indication message, thereby effectively preventing the leakage of account information and achieving the association between all requests, access processes and specific user clients, thereby providing effective data support for the analysis of abnormal user behavior.
[0040] The method of the above embodiment, by sending an indication message to the user client, instructing to carry the encrypted user account information in subsequent requests, thereby effectively preventing the leakage of account information, and realizing the association of all requests, access processes and specific user clients, thereby providing effective data support for the analysis of abnormal user behavior.
[0041] In one embodiment, determining abnormal behavior of a user according to encrypted user account information carried in a subsequent request of the user client includes: Decrypting the encrypted user account information carried in the subsequent request of the user client to obtain the decrypted user account information; The decrypted user account information is associated with subsequent requests from the user client to determine the user's abnormal behavior.
[0042] Specifically, in an embodiment of the present application, when a subsequent request carrying encrypted user account information is received from a user client, the encrypted user account information can be decrypted, and the decrypted user account information and the subsequent request of the user client can be associated to obtain the association relationship between the user account information and the subsequent request. Then, by analyzing the association relationship between the user account information and the subsequent request, the user's abnormal behavior can be effectively determined.
[0043] For example, after decrypting the encrypted user account information carried in the subsequent request of the user client, and associating the decrypted user account information with the subsequent request of the user client, the association relationship between the user account information and the subsequent request can be obtained, such as account X corresponds to requests A, B, and C; account Y corresponds to requests D and E, and then based on requests A, B, and C of account X, it is determined whether the behavior of account X is abnormal, and based on requests D and E of account Y, it is determined whether the behavior of account Y is abnormal.
[0044] The method of the above embodiment associates the decrypted user account information with the subsequent requests of the user client to obtain the association relationship between the user account information and the subsequent requests, and then analyzes the association relationship between the user account information and the subsequent requests to accurately and effectively determine the user's abnormal behavior.
[0045] In one embodiment, the decrypted user account information is associated with subsequent requests from the user client to determine abnormal behavior of the user, including: The decrypted user account information is associated with subsequent requests from the user client. If the number of requests corresponding to the user account information within the target time period is greater than a preset value, the user behavior is determined to be abnormal behavior.
[0046] Specifically, in an embodiment of the present application, by associating the decrypted user account information with the subsequent requests of the user client, the association relationship between the user account information and the subsequent requests can be obtained. If the number of requests corresponding to the user account information in the target time period is greater than the preset value, the user behavior is determined to be abnormal behavior. For example, if the target time period is a non-working time period, that is, requests and accesses are frequently initiated during the non-working time period, the abnormal behavior will be determined and recorded, thereby achieving rapid, accurate and effective determination of abnormal user behavior, and then effectively troubleshooting abnormal behavior of internal employees, avoiding the occurrence of important data leakage problems caused by internal employees, and improving network security.
[0047] The method of the above embodiment associates the decrypted user account information with subsequent requests from the user client. If the number of requests corresponding to the user account information within the target time period is greater than a preset value, the user behavior is determined to be abnormal behavior, thereby achieving rapid, accurate and effective determination of the user's abnormal behavior, and further effectively troubleshooting abnormal behavior of internal employees, avoiding the occurrence of important data leakage problems caused by internal employees, and improving network security.
[0048] In one embodiment, the decrypted user account information is associated with subsequent requests from the user client to determine abnormal behavior of the user, including: The decrypted user account information is associated with subsequent requests of the user client. If the subsequent requests corresponding to the user account information include requests for a preset target API, it is determined that the user behavior is abnormal behavior.
[0049] Specifically, in an embodiment of the present application, by associating the decrypted user account information with the subsequent requests of the user client, the association relationship between the user account information and the subsequent requests can be obtained. If the subsequent request corresponding to the user account information includes a request for a preset target API, the user behavior is determined to be abnormal behavior. For example, if the preset system management files and internal information files are prohibited from access or have a high level of access rights, if account A requests access to the preset system management files and internal information files, the user behavior is determined to be abnormal behavior, thereby achieving rapid, accurate and effective determination of abnormal user behavior, and further effectively troubleshooting abnormal behavior of internal employees, avoiding the occurrence of important data leakage problems caused by internal employees, and improving network security.
[0050] The method of the above embodiment associates the decrypted user account information with the subsequent requests of the user client. If the subsequent requests corresponding to the user account information include requests for a preset target API, the user behavior is determined to be abnormal behavior, thereby achieving rapid, accurate and effective determination of the user's abnormal behavior, and further effectively troubleshooting the abnormal behavior of internal employees, avoiding the occurrence of important data leakage problems caused by internal employees, and improving network security.
[0051] Exemplarily, the specific process of the method for determining abnormal user behavior in the embodiment of the present application is as follows: 1. The user client logs in to the API and carries account information in the request message.
[0052] Optionally, the login request of the user client may be a login request to log in to a preset target page, or may be a login request to a preset system related to the business, which is not specifically limited in the embodiment of the present application.
[0053] 2. Identify the logged-in account information and record it.
[0054] Optionally, after receiving the login request from the user client, the account information carried in the login request can be obtained and recorded.
[0055] 3. Encrypt the account information according to a specific encryption algorithm; 4. Set the field in the response header: set-cookie:UID=encrypted account information; that is, the response information carries the cookie field, which includes the encrypted account information.
[0056] Optionally, the user client carries encrypted user account information in all subsequent requests and access processes instead of directly carrying unencrypted account information, which can also effectively prevent the leakage of account information and effectively improve network security.
[0057] 5. The client's subsequent request messages will carry the cookie, decrypt the UID field in the cookie, and obtain the original account information, thereby achieving association and determining the user's abnormal behavior.
[0058] Optionally, when the user client carries encrypted user account information in subsequent requests, all requests and access processes can be associated with specific user clients through the encrypted user account information. Then, based on the association between the user account information and the request behavior, all requests and accesses of the user can be associated, so that the specific behavior of the user account can be accurately analyzed to see if there are any abnormalities. That is, this application records the login account, and the user account carries encrypted account information in subsequent requests, and by associating all subsequent requests of the account, a method for monitoring the behavior of the account is achieved.
[0059] The method of the above embodiment uses the cookies carried in the request message and the response message for association. When a user accesses the login API, the login account is obtained by parsing the request content, the login account is recorded, and the set-cookie field is added to the response content. The encrypted login account is returned to the client, and subsequent requests will carry the cookie. The original login account is obtained by decrypting the cookie field, thereby realizing the association between subsequent requests and the account, so that the abnormal behavior of the account can be accurately and effectively analyzed and an alarm can be issued.
[0060] The following is a description of a device for determining abnormal user behavior provided by the present invention. The device for determining abnormal user behavior described below and the method for determining abnormal user behavior described above can refer to each other.
[0061] Figure 2: is a schematic diagram of the structure of the device for determining abnormal user behavior provided by the present invention. The device for determining abnormal user behavior provided by this embodiment includes: The first receiving module 710 is used to receive a login request from a user client; the login request carries user account information; The response module 720 is used to return response data to the user client according to the login request; the response data includes encrypted user account information; The second receiving module 730 is used to receive subsequent requests from the user client; the subsequent requests all carry the encrypted user account information; The determination module 740 is used to determine the abnormal behavior of the user according to the encrypted user account information carried in the subsequent request of the user client.
[0062] Optionally, the response module 720 is specifically used to: return response data to the user client according to the login request; the response data includes a small text file cookie; the cookie includes encrypted user account information.
[0063] Optionally, the response module 720 is specifically used to: send an indication message to the user client; the indication message is used to indicate that the encrypted user account information is carried in subsequent requests.
[0064] Optionally, the determination module 740 is specifically configured to: decrypt the encrypted user account information carried in the subsequent request of the user client to obtain the decrypted user account information; The decrypted user account information is associated with subsequent requests from the user client to determine the user's abnormal behavior.
[0065] Optionally, the determination module 740 is specifically used to: associate the decrypted user account information with subsequent requests of the user client, and if the number of requests corresponding to the user account information within the target time period is greater than a preset value, determine that the user behavior is abnormal behavior.
[0066] Optionally, the determination module 740 is specifically used to: associate the decrypted user account information with subsequent requests of the user client, and if the subsequent requests corresponding to the user account information include requests for a preset target API, determine that the user behavior is abnormal behavior.
[0067] The device of the embodiment of the present invention is used to execute the method in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0068] Figure 3An example of a physical structure diagram of an electronic device is provided, and the electronic device may include: a processor 810, a communication interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute a method for determining abnormal user behavior, and the method includes: receiving a login request from a user client; the login request carries user account information; according to the login request, returning response data to the user client; the response data includes encrypted user account information; receiving subsequent requests from the user client; the subsequent requests all carry encrypted user account information; and determining abnormal user behavior according to the encrypted user account information carried in the subsequent requests from the user client.
[0069] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0070] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the method for determining abnormal user behavior provided by the above-mentioned methods, and the method includes: receiving a login request from a user client; carrying user account information in the login request; returning response data to the user client based on the login request; the response data includes encrypted user account information; receiving subsequent requests from the user client; each subsequent request carries encrypted user account information; and determining the user's abnormal behavior based on the encrypted user account information carried in the subsequent requests from the user client.
[0071] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned methods for determining abnormal user behavior, the methods comprising: receiving a login request from a user client; carrying user account information in the login request; returning response data to the user client based on the login request; the response data including encrypted user account information; receiving subsequent requests from the user client; each of the subsequent requests carries the encrypted user account information; and determining the abnormal user behavior based on the encrypted user account information carried in the subsequent requests from the user client.
[0072] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0073] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0074] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for determining abnormal user behavior, It is characterized in that include: Receive a login request from a user client; The login request carries user account information; According to the login request, return response data to the user client; the response data includes encrypted user account information; receiving a subsequent request from the user client; wherein the subsequent request carries the encrypted user account information; The abnormal behavior of the user is determined according to the encrypted user account information carried in the subsequent request of the user client.
2. The method for determining abnormal user behavior according to claim 1, It is characterized in that According to the login request, response data is returned to the user client; the response data includes encrypted user account information, including: According to the login request, response data is returned to the user client; the response data includes a small text file cookie; the cookie includes the encrypted user account information.
3. The method for determining abnormal user behavior according to claim 1, It is characterized in that Also includes: Sending instruction information to the user client; The indication information is used to indicate that the encrypted user account information is carried in subsequent requests.
4. The method for determining abnormal user behavior according to any one of claims 1 to 3, It is characterized in that The determining the abnormal behavior of the user according to the encrypted user account information carried in the subsequent request of the user client includes: Decrypting the encrypted user account information carried in a subsequent request of the user client to obtain the decrypted user account information; The decrypted user account information is associated with subsequent requests from the user client to determine abnormal behavior of the user.
5. The method for determining abnormal user behavior according to claim 4, It is characterized in that The step of associating the decrypted user account information with a subsequent request of the user client to determine abnormal behavior of the user includes: The decrypted user account information is associated with subsequent requests of the user client. If the number of requests corresponding to the user account information within the target time period is greater than a preset value, it is determined that the user behavior is abnormal behavior.
6. The method for determining abnormal user behavior according to claim 4, It is characterized in that The step of associating the decrypted user account information with a subsequent request of the user client to determine abnormal behavior of the user includes: The decrypted user account information is associated with subsequent requests of the user client. If the subsequent requests corresponding to the user account information include requests for a preset target API, it is determined that the user behavior is abnormal behavior.
7. A device for determining abnormal behavior of a user, It is characterized in that include: A first receiving module, used to receive a login request from a user client; The login request carries user account information; A response module, used to return response data to the user client according to the login request; the response data includes encrypted user account information; A second receiving module is used to receive subsequent requests from the user client; the subsequent requests all carry the encrypted user account information; The determination module is used to determine the abnormal behavior of the user according to the encrypted user account information carried in the subsequent request of the user client.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of the method for determining abnormal user behavior as described in any one of claims 1 to 6 are implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method for determining abnormal user behavior as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Exception access behavior identification method and server
CN109194671A
Account login method, account association method, account login device, account association device, equipment and medium
CN116961983A
Account management method and device, electronic equipment and storage medium
CN117997618A
Application program login method, application program login device and mobile terminal
WO2020093214A1
Account binding method, and device, server and system
WO2023061058A1
