Abnormal behavior detection method, device, computer equipment and storage medium
By detecting the number of abnormal times of user operation behavior in the Internet system and using the form database to identify abnormal behavior, the problem of undetected attack behavior in the system is solved and the system security is improved.
Patent Information
- Application Number
- CN202411132454.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-16
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-08-16
AI Technical Summary
There are undetected abnormal behaviors in the Internet system, including using back-end interfaces to attack the system database, data leakage, multi-account, and multi-IP disordered hash call interfaces, affecting system security.
By determining the user's operational behavior information on the business system, obtaining the form database of the business system, detecting the matching between the target domain space identification and the interface identification and whether the interface calls meet the requirements, counting the number of exceptions, and analyzing whether it is an abnormal behavior.
Accurately detect and identify user attack behaviors, improve system security, and prevent data breaches and system attacks.
Smart Images

Figure CN118656823B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, computer equipment and storage medium for detecting abnormal behavior. Background Art
[0002] With the development of Internet technology, more and more users use Internet systems to handle business, in order to improve the convenience and efficiency of business handling. In order to ensure the security of Internet systems, security mechanisms can be set for the system, such as prohibiting system embedding, limiting the number of single-user interface calls, limiting the number of business handling, etc. However, the study found that the following abnormal behaviors still exist in the system that have not been detected: 1. Using the back-end interface to input data into the system to achieve the purpose of attacking the system database; 2. Using the back-end interface to obtain data, resulting in data leakage; 3. Using multiple accounts and multiple Internet Protocol (IP) unordered hash call interfaces to attack the system, affecting system security. Therefore, it is particularly important to propose a method that can detect the above abnormal behaviors. Summary of the invention
[0003] The embodiments of the present disclosure at least provide a method, apparatus, computer device and storage medium for detecting abnormal behavior.
[0004] In a first aspect, an embodiment of the present disclosure provides a method for detecting abnormal behavior, comprising:
[0005] Determining behavior information of a user's operation behavior on a business system, wherein the behavior information of the operation behavior includes a target domain space identifier of a target business form of the operation and an interface identifier of at least one target interface called when operating the target business form;
[0006] Acquire a form database corresponding to the business system, wherein a business form on the business system matches a domain space, and the form database stores domain space identifiers of multiple domain spaces and interface information under each domain space, wherein the interface information includes an interface identifier and a call attribute of the interface, and the call attribute is used to indicate whether the interface must be called;
[0007] According to the form database, detecting whether the target domain space identifier in the behavior information matches the interface identifier of the at least one target interface, and detecting whether the interface that must be called under the target domain space identifier is called, and generating a detection result;
[0008] The abnormal number of the operation behavior is determined according to the detection result, and when the abnormal number is greater than a number threshold, the behavior information of the operation behavior is analyzed to determine whether the user's operation behavior is an abnormal behavior.
[0009] In an optional implementation, when there are multiple target business forms for the operation behavior, the behavior information further includes: the switching relationship between the multiple target domain space identifiers; the interface information under the domain space in the form database further includes: the switching attribute of the interface, the switching attribute is used to indicate whether the interface can be switched to the next domain space; when the switching attribute of the interface indicates that it can be switched to the next domain space, the interface information also includes the domain space identifier of the next domain space after the interface is switched;
[0010] The method further comprises:
[0011] According to the form database, it is determined whether a switching relationship between every two target domain spaces in the switching relationships identified by the plurality of target domain spaces is established.
[0012] In an optional implementation manner, determining the number of abnormal times of the operation behavior according to the detection result includes:
[0013] When the detection result indicates that the target domain space identifier does not match the interface identifier of the at least one target interface, increasing the number of abnormal times of the operation behavior by a first preset value;
[0014] When the detection result indicates that all interfaces that must be called under the target domain space identifier are not called, the number of abnormal times of the operation behavior is increased by a second preset value;
[0015] When the switching relationship between the two target domain spaces is not established, the number of abnormal times of the operation behavior is increased by a third preset value.
[0016] In an optional implementation, a form database corresponding to the business system is generated according to the following steps:
[0017] Obtaining historical behavior information of historical operation behaviors on the business system;
[0018] A form database corresponding to the business system is generated according to the historical behavior information.
[0019] In an optional implementation manner, the obtaining historical behavior information of historical operation behaviors on the business system includes:
[0020] Determining multiple processing services included in the business system;
[0021] For each of the business operations, obtaining historical behavior information of the historical operation behaviors for the business operations on the business system;
[0022] Generating a form database corresponding to the business system according to the historical behavior information includes:
[0023] Based on the historical behavior information of the historical operation behavior of the business handling, generating data link table information corresponding to the business handling;
[0024] Based on the data link table information corresponding to the plurality of business operations, a form database corresponding to the business system is generated.
[0025] In an optional implementation manner, the method further includes:
[0026] Determine the target business to be handled corresponding to the operation behavior;
[0027] The detecting, according to the form database, whether the target domain space identifier in the behavior information matches the interface identifier of the at least one target interface, and detecting whether the interface that must be called under the target domain space identifier is called, includes:
[0028] Determine the target data link table information corresponding to the target handling business from the form database;
[0029] According to the target data linked list information, it is detected whether the target domain space identifier in the behavior information matches the interface identifier of the at least one target interface, and it is detected whether the interface that must be called under the target domain space identifier is called.
[0030] In an optional implementation manner, the method further includes:
[0031] When it is determined that the operation behavior of the user is an abnormal behavior, the user information of the user is added to a blacklist database, and / or, based on the behavior information of the operation behavior, the business system is optimized.
[0032] In a second aspect, the present disclosure also provides an abnormal behavior detection device, including:
[0033] A determination module, used to determine the behavior information of the user's operation behavior on the business system, wherein the behavior information of the operation behavior includes the target domain space identifier of the target business form of the operation and the interface identifier of at least one target interface called when operating the target business form;
[0034] An acquisition module is used to acquire a form database corresponding to the business system, wherein one or more business forms on the business system match a domain space, and the form database stores domain space identifiers of multiple domain spaces and interface information under each domain space, wherein the interface information includes an interface identifier and a call attribute of the interface, and the call attribute is used to indicate whether the interface must be called;
[0035] A detection module, used to detect whether the target domain space identifier in the behavior information matches the interface identifier of the at least one target interface according to the form database, and to detect whether the interface that must be called under the target domain space identifier is called, and to generate a detection result;
[0036] The analysis module is used to determine the number of abnormal times of the operation behavior according to the detection result, and when the number of abnormal times is greater than a threshold value, analyze the behavior information of the operation behavior to determine whether the user's operation behavior is an abnormal behavior.
[0037] In an optional implementation, when there are multiple target business forms for the operation behavior, the behavior information further includes: the switching relationship between the multiple target domain space identifiers; the interface information under the domain space in the form database further includes: the switching attribute of the interface, the switching attribute is used to indicate whether the interface can be switched to the next domain space; when the switching attribute of the interface indicates that it can be switched to the next domain space, the interface information also includes the domain space identifier of the next domain space after the interface is switched;
[0038] The detection module is further used to: determine, according to the form database, whether a switching relationship between every two target domain spaces in the switching relationships identified by the plurality of target domain spaces is established.
[0039] In an optional implementation, when determining the number of abnormal times of the operation behavior according to the detection result, the analysis module is used to:
[0040] When the detection result indicates that the target domain space identifier does not match the interface identifier of the at least one target interface, increasing the number of abnormal times of the operation behavior by a first preset value;
[0041] When the detection result indicates that all interfaces that must be called under the target domain space identifier are not called, the number of abnormal times of the operation behavior is increased by a second preset value;
[0042] When the switching relationship between the two target domain spaces is not established, the number of abnormal times of the operation behavior is increased by a third preset value.
[0043] In an optional implementation, a generation module is further included, which is used to generate a form database corresponding to the business system according to the following steps:
[0044] Obtaining historical behavior information of historical operation behaviors on the business system;
[0045] A form database corresponding to the business system is generated according to the historical behavior information.
[0046] In an optional implementation manner, the generating module, when acquiring the historical behavior information of the historical operation behavior on the business system, is used to:
[0047] Determining multiple processing services included in the business system;
[0048] For each of the business operations, obtaining historical behavior information of the historical operation behaviors for the business operations on the business system;
[0049] The generating module, when generating the form database corresponding to the business system according to the historical behavior information, is used to:
[0050] Based on the historical behavior information of the historical operation behavior of the business handling, generating data link table information corresponding to the business handling;
[0051] Based on the data link table information corresponding to the plurality of business operations, a form database corresponding to the business system is generated.
[0052] In an optional implementation manner, the determining module is further used to:
[0053] Determine the target business to be handled corresponding to the operation behavior;
[0054] The detection module, when detecting, according to the form database, whether the target domain space identifier in the behavior information matches the interface identifier of the at least one target interface, and detecting whether the interface that must be called under the target domain space identifier is called, is used to:
[0055] Determine the target data link table information corresponding to the target handling business from the form database;
[0056] According to the target data linked list information, it is detected whether the target domain space identifier in the behavior information matches the interface identifier of the at least one target interface, and it is detected whether the interface that must be called under the target domain space identifier is called.
[0057] In an optional implementation manner, the device further includes: a processing module, configured to:
[0058] When it is determined that the operation behavior of the user is an abnormal behavior, the user information of the user is added to a blacklist database, and / or, based on the behavior information of the operation behavior, the business system is optimized.
[0059] In a third aspect, an optional implementation of the present disclosure further provides a computer device, a processor, and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor is used to execute the machine-readable instructions stored in the memory, and when the machine-readable instructions are executed by the processor, the machine-readable instructions perform the steps of the above-mentioned first aspect, or any possible implementation of the first aspect.
[0060] In a fourth aspect, an optional implementation of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the steps of the above-mentioned first aspect, or any possible implementation of the first aspect are executed.
[0061] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present disclosure.
[0062] The abnormal behavior detection method, device, computer equipment and storage medium provided by the embodiment of the present disclosure determine the behavior information of the user's operation behavior on the business system, wherein the behavior information of the operation behavior includes the target domain space identifier of the target business form of the operation and the interface identifier of at least one target interface called when operating the target business form, so the behavior information of the operation behavior can more accurately reflect the various behaviors of the user on the business system. And obtain the form database corresponding to the business system, one or more business forms on the business system match a domain space, the form database stores the domain space identifiers of multiple domain spaces and the interface information under each domain space, the interface information includes the interface identifier and the call attribute of the interface, the call attribute is used to indicate whether the interface must be called, the data stored in the form database can be generated based on the operation behavior when handling the business in history, so according to the form database, detect whether the target domain space identifier in the behavior information matches the interface identifier of at least one target interface, and detect whether the interface that must be called under the target domain space identifier is called, and generate the detection result; according to the detection result, it is possible to more accurately determine the abnormal number of the operation behavior, which is the number of abnormal situations in the operation behavior, and by counting the abnormal number of the operation behavior, the user's attack behavior can be preliminarily detected. When the number of abnormalities is greater than the threshold, the behavior information of the operation behavior is analyzed to more accurately determine whether the user's operation behavior is abnormal behavior, thereby improving the security of the system.
[0063] The study found that when using the back-end interface to input data into the system and when using the back-end interface to obtain data, the above behavior must not belong to the normal operation behavior of the business system, and the calling process of the back-end interface does not meet the requirements of the form database. Therefore, the abnormal behavior can be detected more accurately through the form database. Also, when a user uses multiple accounts and multiple IPs to attack the system without hashing the calling interface, the process of calling the interface is random and does not meet the calling requirements of the form database for the interface. Therefore, the abnormal behavior can be detected more accurately through the form database. It can be seen that the above method proposed in the present disclosure, using the form database of the business system, can more accurately determine whether the interface call in the user's operation behavior meets the requirements, and then determine whether the user's operation behavior is abnormal behavior.
[0064] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used together with the specification to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.
[0066] Figure 1 A flow chart showing a method for detecting abnormal behavior provided by some embodiments of the present disclosure is shown;
[0067] Figure 2 A schematic diagram showing an abnormal behavior detection device provided by some embodiments of the present disclosure;
[0068] Figure 3 A schematic diagram of a computer device provided by some embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0069] In order to make the purpose, technical scheme and advantages of the embodiments of the present disclosure clearer, the technical scheme in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure is not intended to limit the scope of the present disclosure claimed for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present disclosure.
[0070] In order to ensure the security of the Internet system, security mechanisms are set up for the system, such as system embedding prohibition, single-user interface call number limit, business handling number limit, etc. The study found that the system still has the following abnormal behaviors that have not been detected: 1. Using the back-end interface to input data into the system to achieve the purpose of attacking the system database; 2. Using the back-end interface to obtain data, resulting in data leakage; 3. Using multiple accounts and multiple Internet Protocol (IP) unordered hash call interfaces to attack the system, affecting system security.
[0071] Considering that in the above abnormal behavior, the operation behavior of the attacker must be different from the behavior during normal business handling, that is, the behavior information of the attack behavior must be different from the behavior information of the normal behavior, and its call to the interface must also be different from the interface call during normal business handling. Based on this, the present disclosure provides a method for detecting abnormal behavior, by determining the behavior information of the user's operation behavior on the business system, wherein the behavior information of the operation behavior includes the target domain space identifier of the target business form of the operation and the interface identifier of at least one target interface called when operating the target business form, so the behavior information of the operation behavior can more accurately reflect the various behaviors of the user on the business system. And obtain the form database corresponding to the business system, one or more business forms on the business system match a domain space, the form database stores the domain space identifiers of multiple domain spaces and the interface information under each domain space, the interface information includes the interface identifier and the call attribute of the interface, the call attribute is used to indicate whether the interface must be called, and the data stored in the form database can be generated based on the operation behavior when handling the business in history, so according to the form database, detect whether the target domain space identifier in the behavior information matches the interface identifier of at least one target interface, and detect whether the interface that must be called under the target domain space identifier is called, and generate the detection result; according to the detection result, the abnormal number of the operation behavior can be more accurately determined, and the abnormal number is the number of abnormal situations in the operation behavior. By counting the abnormal number of the operation behavior, the user's attack behavior can be preliminarily detected. And when the abnormal number is greater than the number threshold, the behavior information of the operation behavior is analyzed to more accurately determine whether the user's operation behavior is abnormal behavior, thereby improving the security of the system.
[0072] Specifically, the study found that when using the back-end interface to input data into the system and when using the back-end interface to obtain data, the above behavior must not belong to the normal operation behavior of the business system, and the calling process of the back-end interface does not meet the requirements of the form database. Therefore, the form database can detect the abnormal situation more accurately, and further detect the abnormal behavior when there are many abnormal situations. In addition, when the user uses multiple accounts and multiple IPs to attack the system without hashing the calling interface, the process of calling the interface is random and does not meet the calling requirements of the form database for the interface. Therefore, the form database can detect the abnormal behavior more accurately. It can be seen that the above method proposed in the present disclosure, using the form database of the business system, can more accurately determine whether the interface call in the user's operation behavior meets the requirements, and then determine whether the user's operation behavior is abnormal.
[0073] The above contents are all the results obtained by the inventor after practice and careful research. Therefore, the process of discovering the above problems and the solutions proposed by the present disclosure for the above problems below should be the contributions made by the inventor to the present disclosure during the disclosure process.
[0074] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0075] To facilitate understanding of this embodiment, a method for detecting abnormal behavior disclosed in an embodiment of the present disclosure is first introduced in detail. The execution subject of the method for detecting abnormal behavior provided in the embodiment of the present disclosure is generally a computer device with certain computing capabilities, and the computer device includes, for example: a terminal device or a server or other processing device, and the terminal device may be a user equipment (UE), a mobile device, a user terminal, a personal digital assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, etc. In some possible implementations, the method for detecting abnormal behavior may be implemented by a processor calling a computer-readable instruction stored in a memory.
[0076] The abnormal behavior detection method provided by the embodiment of the present disclosure is described below by taking the execution subject as a terminal device as an example.
[0077] See also Figure 1 FIG. 1 is a flowchart of a method for detecting abnormal behavior provided by an embodiment of the present disclosure, wherein the method includes steps S101 to S104, wherein:
[0078] S101. Determine behavior information of a user's operation behavior on a business system, wherein the behavior information of the operation behavior includes a target domain space identifier of a target business form of the operation and an interface identifier of at least one target interface called when operating the target business form.
[0079] When a user handles a business on a business system, the business system can record the behavior information of the user's operation behavior in real time, so that the behavior information of the user's operation behavior can be obtained from the business system. The business system can be a system for handling business in any scenario.
[0080] Among them, it can be set that one business form in the business system matches one domain space, that is, multiple business forms in the business system correspond to one domain space respectively. When the user operates the target business form on the business system, the business system can record the target domain space identifier of the target business form, and record the interface identifier of at least one target interface called when operating the target business form, such as the interface identifier of the target interface called when loading the target business form, the interface identifier of the target interface called when inputting data into the target business form, etc. That is, the behavior information of the operation behavior includes the target domain space identifier of the target business form operated, and the interface identifier of at least one target interface called when operating the target business form. When there are multiple target business forms operated by the operation behavior, the behavior information also includes: the switching relationship of multiple target domain space identifiers, for example, the operation order of the target business form in the operation behavior is: target business form one (target domain space identifier is info1), target business form two (target domain space identifier is info2), target business form three (target domain space identifier is info3), so the switching relationship of multiple target domain space identifiers is: info1->info2->info3, that is, info1 switches to info2, and info2 switches to info3.
[0081] By way of example, the behavior information of the operation behavior may include the following contents: target domain space identifier baseinfo, target domain space identifier personinfo, interface identifiers / loadbaseinfo and / loadregion of the target interface under baseinfo, interface identifiers / loadpersoninfo and / loadposition of the target interface under personinfo, and the switching relationship of multiple target domain space identifiers: baseinfo->personinfo.
[0082] S102. Obtain a form database corresponding to the business system, wherein a business form on the business system matches a domain space, and the form database stores domain space identifiers of multiple domain spaces and interface information under each of the domain spaces, wherein the interface information includes an interface identifier and a calling attribute of the interface, and the calling attribute is used to indicate whether the interface must be called.
[0083] During implementation, a form database corresponding to the business system may also be obtained, wherein the form database may be generated according to the following steps: obtaining historical behavior information of historical operation behaviors on the business system; and generating a form database corresponding to the business system according to the historical behavior information.
[0084] Historical operation behaviors may include historical behavior information of historical operation behaviors corresponding to each business operation on the business system. Based on the historical behavior information, a form database corresponding to the business system can be statistically generated. The form database includes domain space identifiers corresponding to multiple domain spaces, and interface information under each domain space. The interface information includes an interface identifier and an interface call attribute. In addition, the interface information may also include a switching attribute of the interface, and the switching attribute is used to indicate whether the interface can be switched to the next domain space; when the switching attribute of the interface indicates that it can be switched to the next domain space, the interface information also includes the domain space identifier of the next domain space after the interface is switched. During implementation, the form database may also include a data identifier, an enable attribute for indicating whether the interface is enabled, and the like.
[0085] For example, if the historical operation behavior information indicates that the user called the three interfaces / loadbaseinfo, / loadregion, and / savebaseinfo in the baseinfo domain space, and then switched to the personinfo domain space, then based on the historical behavior information, the following table 1 can be obtained:
[0086] Table 1 Partial information of the form database
[0087]
[0088] Among them, id is the data identifier, domain is the domain space identifier, url is the interface identifier under the domain space, isInvoke is the calling attribute of the interface. If the attribute value is 1, it indicates that the interface is an interface that must be called. If the attribute value is 0, it indicates that the interface is not an interface that must be called. The default value of the calling attribute can be set to 1. isSwitch is the switching attribute of the interface. If the attribute value is 1, it means that the interface can switch to the next domain space, that is, the interface has the ability to switch domain spaces; if the attribute value is 0, it means that the interface cannot switch to the next domain space, that is, the interface does not have the ability to switch domain spaces. ndomain is the domain space identifier of the next domain space to be switched, that is, when the attribute value of the switching attribute of the interface is 1, there is a domain space identifier of the next domain space after the interface is switched at ndomain. chosign can be an enable attribute used to indicate whether the interface is enabled. The attribute value of the startup attribute can be set to the default value 1, that is, enabled.
[0089] Following the above content, if the historical operation behavior information also indicates that the user called the three interfaces / loadpersoninfo, / loadposition, and / switchnavi in the personinfo domain space, and then switched to the baseinfo domain space, and operated the three interfaces / loadbaseinfo, / loadenttype, and / savebaseinfo in the baseinfo domain space, then Table 1 can be updated to obtain Table 2, which is as follows:
[0090] Table 2 Partial information of the form database
[0091]
[0092] Since the / loadregion interface is not called in the baseinfo domain space this time, the interface is not a must-call interface, so the attribute value of the call attribute of the interface is adjusted to 0. At the same time, since the / loadenttype interface was not called in the last operation in the baseinfo domain space, the interface is not a must-call interface, so the attribute value of the call attribute isInvoke of the interface is also 0.
[0093] Similarly, the form database can be generated and updated in real time based on the historical behavior information of the historical operation behavior until all the historical behavior information is counted, that is, the form database corresponding to the business system is obtained.
[0094] The historical behavior data of historical operation behaviors used in the above process can more accurately generate a form database corresponding to the business system, and enable the form database to more accurately reflect the historical operation behaviors on the business system, and the historical operation behaviors are normal behaviors when handling business, so that the subsequent use of the form database can more accurately determine abnormal situations in user operation behaviors and ensure system security.
[0095] S103. According to the form database, detect whether the target domain space identifier in the behavior information matches the interface identifier of the at least one target interface, and detect whether the interface that must be called under the target domain space identifier is called, and generate a detection result.
[0096] During implementation, the interface identifiers of multiple candidate interfaces under the target domain space identifier in the form database can be determined; the interface identifier of at least one target interface is matched with the interface identifiers of multiple candidate interfaces. If all target interfaces match the candidate interfaces, it means that the target domain space identifier in the behavior information matches the interface identifier of at least one target interface. If any target interface does not match the candidate interface, it means that the target domain space identifier in the behavior information does not match the interface identifier of at least one target interface.
[0097] For example, if the interface identifiers of multiple candidate interfaces under the target domain space in the form database include: / loadbaseinfo, / loadregion, / savebaseinfo, and the interface identifier of the target interface under the target domain space in the behavior information includes: / loadposition, it can be seen that the interface identifier of the target interface does not match the interface identifiers of the multiple candidate interfaces, that is, the candidate interface under the target domain space in the form database does not include the target interface, then the generated detection result can indicate: the target domain space identifier does not match the interface identifier of at least one target interface.
[0098] And the interface that must be called in the target domain space can also be determined based on the form database. Then determine whether at least one target interface under the target domain space identifier in the behavior information includes the interface that must be called. For example, if the interface identifiers of multiple candidate interfaces under the target domain space in the form database include: / loadbaseinfo, / loadregion, / savebaseinfo, the interfaces that must be called include / loadbaseinfo and / savebaseinfo; if the interface identifier of the target interface under the target domain space in the behavior information includes: / loadbaseinfo and / savebaseinfo, then it is determined that all the interfaces that must be called in the target domain space are called, and the generated detection result can also indicate: all the interfaces that must be called in the target domain space are called. On the contrary, if the interface identifier of the target interface under the target domain space in the behavior information does not include / loadbaseinfo, or does not include / savebaseinfo, or does not include both, then it is determined that not all the interfaces that must be called in the target domain space are called, and the generated detection result can also indicate: not all the interfaces that must be called in the target domain space are called.
[0099] In an optional implementation, when there are multiple target business forms for the operation behavior, the behavior information also includes: the switching relationship between the multiple target domain space identifiers; the interface information under the domain space in the form database also includes: the switching attribute of the interface, and the switching attribute is used to indicate whether the interface can switch to the next domain space; when the switching attribute of the interface indicates that it can switch to the next domain space, the interface information also includes the domain space identifier of the next domain space after the interface is switched.
[0100] The method further includes: determining, according to the form database, whether a switching relationship between any two adjacent target domain spaces among the plurality of target domain space identifiers is established.
[0101] During implementation, whether the switching relationship of multiple target domain space identifiers in the operation behavior is established can be determined based on the switching attributes of the interface under the domain space in the form database and the domain space identifier of the next domain space after the interface is switched.
[0102] Assume that the form database is as shown in Table 3 below:
[0103] Table 3 At least part of the information in the form database
[0104]
[0105] If the switching relationship of multiple target domain space identifiers in the behavior information is baseinfo switching to personinfo, personinfo switching to supplementinfo, that is, baseinfo->personinfo->suppleinfo, then determine whether the switching relationship is established according to the form database in Table 3. According to Table 3, / savebaseinfo has the domain space switching capability and can switch from baseinfo to personinfo, that is, switching from baseinfo to personinfo is established. According to Table 3, it can be seen that personinfo cannot be directly switched to supplementinfo, that is, switching from personinfo to supplementinfo is not established.
[0106] Through the above process, the behavior information of the operation behavior can be detected more accurately to identify abnormal situations in the operation behavior.
[0107] S104: Determine the number of abnormalities of the operation behavior according to the detection result, and when the number of abnormalities is greater than a threshold, analyze the behavior information of the operation behavior to determine whether the user's operation behavior is an abnormal behavior.
[0108] After the detection result is determined, the number of abnormalities in the operation behavior can also be determined based on the detection result. For example, if there is an abnormality in the detection result, the number of abnormalities is increased by 1, and the number of abnormalities in the operation behavior can be obtained.
[0109] Optionally, the determination of the number of abnormalities of the operation behavior according to the detection result includes: when the detection result indicates that the target domain space identifier does not match the interface identifier of the at least one target interface, the number of abnormalities of the operation behavior is increased by a first preset value; when the detection result indicates that all interfaces that must be called under the target domain space identifier are not called, the number of abnormalities of the operation behavior is increased by a second preset value; when the switching relationship between multiple target domain space identifiers is not established, the number of abnormalities of the operation behavior is increased by a third preset value. The first preset value, the second preset value, and the third preset value can be set as needed, that is, multiple preset values can be the same or different.
[0110] During implementation, when the detection result indicates that the target domain space identifier does not match the interface identifier of at least one target interface, it is determined that the operation behavior has the abnormal situation, so the number of abnormal times of the operation behavior is increased by a first preset value. The initial value of the number of abnormal times of the operation behavior can be a default value (such as 0).
[0111] If there are multiple target domain space identifiers, determine for each target domain space identifier whether the target domain space identifier matches the interface identifier of at least one target interface. If the target domain space identifier 1 does not match the interface identifier of at least one target interface, the number of abnormal operation behaviors is increased by the first preset value; if the detection finds that the target domain space identifier 2 does not match the interface identifier of at least one target interface, the number of abnormal operation behaviors is increased by the first preset value. Similarly, when the detection result indicates that all interfaces that must be called under the target domain space identifier are not called, the number of abnormal operation behaviors is increased by the second preset value.
[0112] When there are two target domain spaces where the switching relationship is not established, the number of abnormal times of the operation behavior is increased by a third preset value. For example, if the switching relationship of multiple target domain spaces is: target domain space 1->target domain space 2->target domain space 3->target domain space 4, it is detected that the switching relationship of target domain space 1->target domain space 2 is not established, the switching relationship of target domain space 2->target domain space 3 is established, and the switching relationship of target domain space 3->target domain space 4 is not established, that is, there are two abnormal situations where the switching relationship is not established, so the number of abnormal times of the operation behavior is increased by two third preset values. That is, the present application can increase the preset value once each time an abnormal situation is detected in the operation behavior.
[0113] Through the above process, the number of abnormal operation behaviors can be counted. Considering that when the number of abnormalities is small, it may be caused by user error. In order to alleviate the analysis resource consumption caused by this situation, a number threshold can be set so that behavior analysis can be performed when the number of abnormalities is greater than the number threshold to ensure the security of the business platform.
[0114] The number threshold can be set according to the scenario requirements and is not specifically limited here.
[0115] When the number of abnormalities is less than or equal to the number threshold, user behavior analysis may not be performed. When the number of abnormalities is greater than the number threshold, the behavior information of the operation behavior is analyzed to determine whether the user's operation behavior is abnormal. For example, a neural network model may be used to analyze the behavior information of the operation behavior to determine whether the user's operation behavior is abnormal. Alternatively, the behavior information may be sent to the maintenance personnel of the business system so that the maintenance personnel can analyze the behavior information of the operation behavior to determine whether the user's operation behavior is abnormal.
[0116] In an optional implementation, the method further includes: when it is determined that the operation behavior of the user is abnormal behavior, adding the user information of the user to a blacklist database, and / or, based on the behavior information of the operation behavior, optimizing the business system.
[0117] During implementation, if it is determined that the user's operation behavior is abnormal, the user's user information such as user account, user ID, user IP, etc. can be added to the blacklist database to prevent the user from interfering with the normal operation of the business system again.
[0118] Alternatively, the business system may be optimized based on the behavior information of the operation behavior, such as adjusting the structure of the business system, business processing procedures, etc.
[0119] When it is determined that the user's operation behavior is not abnormal behavior, no corresponding processing is required.
[0120] The above contents can improve the security of the business system and ensure the normal operation of the business system.
[0121] In order to more accurately identify abnormal operating behaviors, the data link table information corresponding to the business operations of the business system can be counted. Different business operations correspond to different data link table information, so that the target data link table information corresponding to the target business operations can be used later to detect whether there are abnormal operating behaviors.
[0122] Optionally, generating a form database corresponding to the business system may also include: determining multiple business operations included in the business system; for each of the business operations, obtaining historical behavior information of historical operation behaviors for the business operation on the business system; based on the historical behavior information of historical operation behaviors for the business operations, generating data linked list information corresponding to the business operations; based on the data linked list information corresponding to each of the multiple business operations, generating a form database corresponding to the business system.
[0123] After determining the multiple business operations included in the business system, the historical behavior information of the historical operation behavior of the business operation on the business system can be obtained for each business operation. Then, based on the historical behavior information of the historical operation behavior of the business operation, the data link table information corresponding to the business operation is generated; wherein the process of generating the data link table information corresponding to the business operation can refer to the process of generating Table 2 mentioned above. Then, the data link table information corresponding to the multiple business operations is stored in the database, and the form database corresponding to the business system is obtained, that is, the form database stores the data link table information corresponding to each business operation, and each data link table information stores the domain space identifier of the domain space included in the business operation and the interface information under the domain space.
[0124] Here, different data link table information is generated for different business operations, providing data support for the subsequent more accurate identification of abnormal operating behaviors under the target business operations.
[0125] In an optional implementation manner, the method further includes: determining a target handling business corresponding to the operation behavior;
[0126] The detecting, according to the form database, whether the target domain space identifier in the behavior information matches the interface identifier of the at least one target interface, and detecting whether the interface that must be called under the target domain space identifier is called, includes:
[0127] Determine the target data link table information corresponding to the target handling business from the form database;
[0128] According to the target data linked list information, it is detected whether the target domain space identifier in the behavior information matches the interface identifier of the at least one target interface, and it is detected whether the interface that must be called under the target domain space identifier is called.
[0129] In specific implementation, the target handling business corresponding to the operation behavior can be determined, and after obtaining the form database corresponding to the business system, the target data linked list information corresponding to the target handling business can be determined from the form database. Then, the interface identifiers of multiple candidate interfaces under the target domain space identifier in the target data linked list information are determined, and then the interface identifiers of the multiple candidate interfaces are matched with the interface identifier of at least one target interface to determine whether the target domain space identifier in the behavior information matches the interface identifier of at least one target interface.
[0130] And the interface that must be called under the target domain space identifier can be determined according to the target data linked list information. It is determined whether the target interface under the target domain space identifier in the behavior information includes the interface that must be called.
[0131] Here, through the target data linked list information, abnormal situations in the operation behavior can be identified more accurately, thereby improving the accuracy of the number of abnormalities.
[0132] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.
[0133] Based on the same inventive concept, an abnormal behavior detection device corresponding to the abnormal behavior detection method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the device in the embodiment of the present disclosure is similar to the above-mentioned abnormal behavior detection method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0134] Reference Figure 2 FIG. 2 is a schematic diagram of an abnormal behavior detection device provided by an embodiment of the present disclosure, wherein the device comprises: a determination module 201, an acquisition module 202, a detection module 203, and an analysis module 204; wherein,
[0135] The determination module 201 is used to determine the behavior information of the user's operation behavior on the business system, wherein the behavior information of the operation behavior includes the target domain space identifier of the target business form operated, and the interface identifier of at least one target interface called when operating the target business form;
[0136] The acquisition module 202 is used to acquire a form database corresponding to the business system, wherein one or more business forms on the business system match a domain space, and the form database stores domain space identifiers of multiple domain spaces and interface information under each domain space, wherein the interface information includes an interface identifier and a call attribute of the interface, and the call attribute is used to indicate whether the interface must be called;
[0137] The detection module 203 is used to detect whether the target domain space identifier in the behavior information matches the interface identifier of the at least one target interface according to the form database, and detect whether the interface that must be called under the target domain space identifier is called, and generate a detection result;
[0138] The analysis module 204 is used to determine the number of abnormal times of the operation behavior according to the detection result, and when the number of abnormal times is greater than a threshold, analyze the behavior information of the operation behavior to determine whether the user's operation behavior is an abnormal behavior.
[0139] In an optional implementation, when there are multiple target business forms for the operation behavior, the behavior information further includes: the switching relationship between the multiple target domain space identifiers; the interface information under the domain space in the form database further includes: the switching attribute of the interface, the switching attribute is used to indicate whether the interface can be switched to the next domain space; when the switching attribute of the interface indicates that it can be switched to the next domain space, the interface information also includes the domain space identifier of the next domain space after the interface is switched;
[0140] The detection module 203 is further configured to: determine, according to the form database, whether a switching relationship between every two target domain spaces in the switching relationships identified by the plurality of target domain spaces is established.
[0141] In an optional implementation, when determining the number of abnormal times of the operation behavior according to the detection result, the analysis module 204 is configured to:
[0142] When the detection result indicates that the target domain space identifier does not match the interface identifier of the at least one target interface, increasing the number of abnormal times of the operation behavior by a first preset value;
[0143] When the detection result indicates that all interfaces that must be called under the target domain space identifier are not called, the number of abnormal times of the operation behavior is increased by a second preset value;
[0144] When the switching relationship between the two target domain spaces is not established, the number of abnormal times of the operation behavior is increased by a third preset value.
[0145] In an optional implementation, a generation module 205 is further included, which is used to generate a form database corresponding to the business system according to the following steps:
[0146] Obtaining historical behavior information of historical operation behaviors on the business system;
[0147] A form database corresponding to the business system is generated according to the historical behavior information.
[0148] In an optional implementation, the generating module 205, when acquiring the historical behavior information of the historical operation behavior on the business system, is used to:
[0149] Determining multiple processing services included in the business system;
[0150] For each of the business operations, obtaining historical behavior information of the historical operation behaviors for the business operations on the business system;
[0151] The generating module 205, when generating the form database corresponding to the business system according to the historical behavior information, is used to:
[0152] Based on the historical behavior information of the historical operation behavior of the business handling, generating data link table information corresponding to the business handling;
[0153] Based on the data link table information corresponding to the plurality of business operations, a form database corresponding to the business system is generated.
[0154] In an optional implementation manner, the determining module 201 is further configured to:
[0155] Determine the target business to be handled corresponding to the operation behavior;
[0156] The detection module 203, when detecting, according to the form database, whether the target domain space identifier in the behavior information matches the interface identifier of the at least one target interface, and detecting whether the interface that must be called under the target domain space identifier is called, is used to:
[0157] Determine the target data link table information corresponding to the target handling business from the form database;
[0158] According to the target data linked list information, it is detected whether the target domain space identifier in the behavior information matches the interface identifier of the at least one target interface, and it is detected whether the interface that must be called under the target domain space identifier is called.
[0159] In an optional implementation manner, the device further includes: a processing module 206, configured to:
[0160] When it is determined that the operation behavior of the user is an abnormal behavior, the user information of the user is added to a blacklist database, and / or, based on the behavior information of the operation behavior, the business system is optimized.
[0161] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0162] The present disclosure also provides a computer device, such as Figure 3 FIG. 1 is a schematic diagram of a computer device structure provided in an embodiment of the present disclosure, including:
[0163] A processor 31 and a memory 32; the memory 32 stores machine-readable instructions executable by the processor 31, and the processor 31 is used to execute the machine-readable instructions stored in the memory 32. When the machine-readable instructions are executed by the processor 31, the processor 31 performs the following steps:
[0164] Determining behavior information of a user's operation behavior on a business system, wherein the behavior information of the operation behavior includes a target domain space identifier of a target business form of the operation and an interface identifier of at least one target interface called when operating the target business form;
[0165] Acquire a form database corresponding to the business system, wherein a business form on the business system matches a domain space, and the form database stores domain space identifiers of multiple domain spaces and interface information under each domain space, wherein the interface information includes an interface identifier and a call attribute of the interface, and the call attribute is used to indicate whether the interface must be called;
[0166] According to the form database, detecting whether the target domain space identifier in the behavior information matches the interface identifier of the at least one target interface, and detecting whether the interface that must be called under the target domain space identifier is called, and generating a detection result;
[0167] The abnormal number of the operation behavior is determined according to the detection result, and when the abnormal number is greater than a number threshold, the behavior information of the operation behavior is analyzed to determine whether the user's operation behavior is an abnormal behavior.
[0168] The above-mentioned memory 32 includes internal memory 321 and external memory 322; the memory 321 here is also called internal memory, which is used to temporarily store the calculation data in the processor 31, as well as the data exchanged with the external memory 322 such as the hard disk. The processor 31 exchanges data with the external memory 322 through the internal memory 321.
[0169] The specific execution process of the above instructions can refer to the steps of the abnormal behavior detection method described in the embodiment of the present disclosure, which will not be repeated here.
[0170] The present disclosure also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the abnormal behavior detection method described in the above method embodiment are executed. The storage medium can be a volatile or non-volatile computer-readable storage medium.
[0171] The embodiments of the present disclosure also provide a computer program product, which carries a program code. The instructions included in the program code can be used to execute the steps of the abnormal behavior detection method described in the above method embodiment. For details, please refer to the above method embodiment, which will not be repeated here.
[0172] The computer program product may be implemented in hardware, software or a combination thereof. In one optional embodiment, the computer program product is implemented as a computer storage medium. In another optional embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0173] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.
[0174] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0175] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0176] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, 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, which is stored in a storage medium and includes several instructions for 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 disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0177] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for detecting abnormal behavior, characterized in that: include: Determining behavior information of a user's operation behavior on a business system, wherein the behavior information of the operation behavior includes a target domain space identifier of a target business form of the operation and an interface identifier of at least one target interface called when operating the target business form; When there are multiple target business forms for the operation behavior, the behavior information further includes: switching relationships between multiple target domain space identifiers; Acquire a form database corresponding to the business system, wherein a business form on the business system matches a domain space, and the form database stores domain space identifiers of multiple domain spaces and interface information under each of the domain spaces, wherein the interface information includes an interface identifier and a call attribute of the interface, and the call attribute is used to indicate whether the interface must be called; the interface information under the domain space in the form database also includes: a switching attribute of the interface, and the switching attribute is used to indicate whether the interface can be switched to the next domain space; when the switching attribute of the interface indicates that it can be switched to the next domain space, the interface information also includes the domain space identifier of the next domain space after the interface is switched; According to the form database, detecting whether the target domain space identifier in the behavior information matches the interface identifier of the at least one target interface, and detecting whether the interface that must be called under the target domain space identifier is called, and generating a detection result; Determine the number of abnormalities of the operation behavior according to the detection result, and when the number of abnormalities is greater than a number threshold, analyze the behavior information of the operation behavior to determine whether the user's operation behavior is an abnormal behavior; The method further comprises: determining, according to the form database, whether a switching relationship between every two target domain spaces in the switching relationships identified by the plurality of target domain spaces is established; Determining the number of abnormal times of the operation behavior based on the detection result includes: determining the number of abnormal times of the operation behavior based on the detection result and a determination result of whether a switching relationship between every two target domain spaces in the switching relationships identified by multiple target domain spaces is established.
2. The method according to claim 1, characterized in that Determining the number of abnormal times of the operation behavior according to the detection result includes: When the detection result indicates that the target domain space identifier does not match the interface identifier of the at least one target interface, increasing the number of abnormal times of the operation behavior by a first preset value; When the detection result indicates that all interfaces that must be called under the target domain space identifier are not called, the number of abnormal times of the operation behavior is increased by a second preset value; When the switching relationship between the two target domain spaces is not established, the number of abnormal times of the operation behavior is increased by a third preset value.
3. The method according to claim 1, characterized in that Generate the form database corresponding to the business system according to the following steps: Obtaining historical behavior information of historical operation behaviors on the business system; A form database corresponding to the business system is generated according to the historical behavior information.
4. The method according to claim 3, characterized in that: The obtaining of historical behavior information of historical operation behaviors on the business system includes: Determining multiple processing services included in the business system; For each of the business operations, obtaining historical behavior information of the historical operation behaviors for the business operations on the business system; Generating a form database corresponding to the business system according to the historical behavior information includes: Based on the historical behavior information of the historical operation behavior of the business handling, generating data link table information corresponding to the business handling; Based on the data link table information corresponding to the plurality of business operations, a form database corresponding to the business system is generated.
5. The method according to claim 4, characterized in that The method further comprises: Determine the target business to be handled corresponding to the operation behavior; The detecting, according to the form database, whether the target domain space identifier in the behavior information matches the interface identifier of the at least one target interface, and detecting whether the interface that must be called under the target domain space identifier is called, includes: Determine the target data link table information corresponding to the target handling business from the form database; According to the target data linked list information, it is detected whether the target domain space identifier in the behavior information matches the interface identifier of the at least one target interface, and it is detected whether the interface that must be called under the target domain space identifier is called.
6. The method according to claim 1, characterized in that The method further comprises: When it is determined that the operation behavior of the user is an abnormal behavior, the user information of the user is added to a blacklist database, and / or, based on the behavior information of the operation behavior, the business system is optimized.
7. A device for detecting abnormal behavior, characterized in that: include: A determination module, used to determine the behavior information of the user's operation behavior on the business system, wherein the behavior information of the operation behavior includes the target domain space identifier of the target business form of the operation and the interface identifier of at least one target interface called when operating the target business form; When there are multiple target business forms for the operation behavior, the behavior information further includes: switching relationships between multiple target domain space identifiers; An acquisition module is used to acquire a form database corresponding to the business system, wherein one or more business forms on the business system match a domain space, and the form database stores domain space identifiers of multiple domain spaces and interface information under each of the domain spaces, wherein the interface information includes an interface identifier and a call attribute of the interface, and the call attribute is used to indicate whether the interface must be called; the interface information under the domain space in the form database also includes: a switching attribute of the interface, and the switching attribute is used to indicate whether the interface can be switched to the next domain space; when the switching attribute of the interface indicates that it can be switched to the next domain space, the interface information also includes the domain space identifier of the next domain space after the interface is switched; A detection module, used to detect whether the target domain space identifier in the behavior information matches the interface identifier of the at least one target interface according to the form database, and to detect whether the interface that must be called under the target domain space identifier is called, and to generate a detection result; An analysis module, configured to determine the number of abnormalities of the operation behavior according to the detection result, and when the number of abnormalities is greater than a threshold, analyze the behavior information of the operation behavior to determine whether the operation behavior of the user is an abnormal behavior; The detection module is further used to: determine, according to the form database, whether a switching relationship between every two target domain spaces in the switching relationships identified by the plurality of target domain spaces is established; When determining the number of abnormal times of the operation behavior based on the detection result, the analysis module is used to: determine the number of abnormal times of the operation behavior based on the detection result and the determination result of whether the switching relationship between every two target domain spaces in the switching relationship identified by multiple target domain spaces is established.
8. A computer device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor is used to execute the machine-readable instructions stored in the memory. When the machine-readable instructions are executed by the processor, the processor executes the steps of the abnormal behavior detection method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program. When the computer program is executed by a computer device, the computer device executes the steps of the abnormal behavior detection method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Business handling data processing method, device, system and equipment based on block chain
CN117573768A
