Enterprise internal abnormal access behavior detection method

By obtaining the tree height distribution characteristics and high-frequency coefficients in the isolated forest model, and calculating the anomaly score, the problem of detection result error in the existing technology is solved, and more accurate detection of abnormal access behavior within the enterprise is achieved.

CN118586033APending Publication Date: 2024-09-03SHENZHEN POLYTECHNIC

Patent Information

Application Number
CN202410734175.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

The existing technology detects only one abnormal access behavior feature in the isolated forest model without considering confidence and high-frequency features, resulting in errors in detection results.

Method used

By constructing an isolated forest model, the tree height distribution characteristics, confidence, fixed high-frequency coefficients and dynamic high-frequency coefficients of access records are obtained, and the final anomaly score is calculated to detect abnormal access behavior.

Benefits of technology

It improves the accuracy of abnormal access detection, takes into account the confidence and high frequency of access records, reduces errors, and obtains more accurate detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586033A
    Figure CN118586033A
Patent Text Reader

Abstract

The invention relates to the technical field of abnormal access data processing, in particular to an enterprise internal abnormal access behavior detection method. The method comprises the following steps: constructing an isolated forest model of access records; according to the distribution characteristics of the tree heights in the isolated forest model, accessing the confidence coefficient of the record in each isolated tree to which the record belongs, correcting the average tree height according to the confidence coefficient to obtain the final average tree height of the access record, and further obtaining the initial abnormal score of the access record; respectively calculating a fixed high-frequency coefficient and a dynamic high-frequency coefficient of the access record according to different characteristics of abnormal access behaviors of the fixed ip address and the dynamic ip address, and further obtaining a high-frequency degree of the access record; and obtaining a final abnormal score according to the initial abnormal score and the high-frequency degree, and performing abnormal behavior detection. According to the method, the confidence coefficient and the high-frequency degree of the access records are calculated, and the abnormal score of each access record is corrected, so that a more accurate enterprise internal abnormal access detection result is obtained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of abnormal access data, and in particular to a method for detecting abnormal access behavior within an enterprise. Background Art

[0002] Enterprises are currently facing increasingly complex and diverse network threats, so the detection of abnormal access behavior within the enterprise has become particularly important in today's digital environment. As the number of employees and access rights increase, security risks will also increase. In order to prevent potential threats, enterprises urgently need an effective detection method.

[0003] Abnormal access behaviors within an enterprise mainly include abnormal logins, access during non-working hours, tentative continuous access to unauthorized files, databases or other sensitive data, or downloading large amounts of data to occupy bandwidth and other access features. Due to the diversity of access features of abnormal access behaviors, in the isolation forest model, if only one of the abnormal access behavior features is used as the basis for determining abnormal access, the confidence level of the abnormal access and the high-frequency characteristics of the abnormal access itself are not taken into account, which will lead to errors in the detection results. Summary of the invention

[0004] In order to solve the problem of various types of abnormal access behaviors, in the isolation forest model, if only one abnormal access behavior feature is used as the basis for judging abnormal access within the enterprise, the confidence of judging abnormal access and the high-frequency characteristics of abnormal access itself are not taken into account, which will lead to technical problems such as errors in the detection results. The purpose of the present invention is to provide a method for detecting abnormal access behaviors within an enterprise, and the technical solutions adopted are as follows:

[0005] A method for detecting abnormal access behavior within an enterprise, the method comprising:

[0006] Obtain all access records within the enterprise; construct an isolation forest model of all access records;

[0007] According to the tree height distribution characteristics of the isolated tree to which each access record belongs in the isolation forest model, the confidence of each access record in each isolated tree to which it belongs is obtained; according to the confidence, the average tree height of each access record in the isolated tree to which it belongs is corrected to obtain the final average tree height of each access record; according to the final average tree height, an initial anomaly score of each access record is obtained;

[0008] In all access records using the same fixed IP address, a fixed high frequency coefficient of each access record using the fixed IP address is obtained according to the occurrence frequency of unauthorized access records within a preset neighborhood range of each access record; a dynamic high frequency coefficient of each access record using the same dynamic IP address is obtained according to the fluctuation characteristics of the time interval between each two adjacent access records within a preset neighborhood range of each access record; and a high frequency degree of each access record is obtained according to the fixed high frequency coefficient and the dynamic high frequency coefficient;

[0009] According to the initial anomaly score and the high frequency of each access record, a final anomaly score of each access record is obtained; and abnormal behaviors within the enterprise are detected according to the final anomaly score.

[0010] Furthermore, the method for obtaining the confidence level includes:

[0011] Select any access record as the target access record, and take all isolated trees containing the target access record as the target isolated trees;

[0012] The difference between the tree height of the target access record in each target isolated tree and the average tree height of all target isolated trees is taken as a first tree height difference;

[0013] In each target isolated tree, the difference between the tree height of each non-target access record in the target isolated tree and the average tree height of each non-target access record in all target isolated trees is used as the tree height difference degree; the tree height difference degrees of each non-target access record are averaged to obtain a second tree height difference of the non-target access records in each target isolated tree;

[0014] Performing negative correlation mapping and normalization processing on the product of the first tree height difference and the second tree height difference to obtain tree height distribution characteristics of the target access record in each target isolated tree;

[0015] The tree height uniformity of the target access record in all target isolated trees is used as the tree height uniformity of the target access record in all target isolated trees;

[0016] The product of the tree height distribution feature and the tree height uniformity is used as the confidence of each isolated tree to which the target access record belongs;

[0017] The target access record is changed to obtain the confidence of each access record in each corresponding isolated tree.

[0018] Furthermore, the method for obtaining the final average tree height includes:

[0019] The final average tree height is calculated according to the final average tree height calculation formula, and the final average tree height calculation formula is as follows:

[0020] In the formula, represents the final average tree height of the i-th access record; K i represents the number of isolated trees containing the i-th access record; k represents the sequence number of the isolated tree containing the i-th access record; Z i,k represents the confidence of the i-th access record on the k-th isolated tree; h i,k Represents the tree height of the i-th access record in the k-th isolated tree.

[0021] Furthermore, the method for obtaining the fixed high frequency coefficients includes:

[0022] In a preset neighborhood range of each access record using the same fixed IP address, the ratio between the number of unauthorized access records and the total number of access records in the preset neighborhood range is used as a fixed high frequency coefficient of each access record.

[0023] Furthermore, the method for acquiring the time interval fluctuation characteristics includes:

[0024] Obtain the time interval between every two adjacent access records within a preset neighborhood;

[0025] A two-dimensional space is constructed with the sequence number of the time interval as the horizontal axis and the time interval value as the vertical axis;

[0026] A vector pointing from a previous time interval value to a next time interval value in the two-dimensional space is used as each time interval vector; an accumulated vector of all time interval vectors within a preset neighborhood range is used as a neighborhood range vector; a vector projecting the time interval vector onto the neighborhood range vector is used as a projection vector for each time interval;

[0027] Calculate the modulus of the vector difference between the projection vector of each time interval within a preset neighborhood range and the vector of the neighborhood range as the smoothness of each time interval; take the ratio of the smoothness of each time interval within the preset neighborhood range of each access record to the number of other access records as the first smoothness of each other access record; accumulate and sum the first smoothness to obtain the time interval fluctuation characteristics within the preset neighborhood range of each access record.

[0028] Furthermore, the preset neighborhood range is set to 100 access records on the left and right of the access time of each access record.

[0029] Furthermore, the method for obtaining the dynamic high-frequency coefficient includes:

[0030] The time interval fluctuation characteristics are negatively correlated and normalized to obtain a dynamic high-frequency coefficient of each access record.

[0031] Furthermore, the method for obtaining the high frequency degree includes:

[0032] The maximum value between the fixed high frequency coefficient and the dynamic high frequency coefficient is taken as the high frequency degree of each access record.

[0033] Furthermore, the method for obtaining the final anomaly score includes:

[0034] The product of the initial anomaly score of each access record and the high frequency degree is normalized to obtain a final anomaly score of each access record.

[0035] Furthermore, detecting abnormal behaviors within the enterprise according to the final abnormality score includes:

[0036] An abnormality threshold is preset, and access records whose final abnormality score is greater than the abnormality threshold are regarded as abnormal accesses.

[0037] The present invention has the following beneficial effects:

[0038] The present invention constructs an isolation forest model of all access records; since the access records isolated too early cannot be used as a reference for whether the access records are abnormal access behaviors in the isolated tree, the tree height distribution of each access record in the isolated tree to which it belongs can determine whether the access record can become the basis for determining abnormal access, and therefore, according to the tree height distribution characteristics of the isolated tree to which each access record belongs in the isolation forest model, the confidence of each access record in each isolated tree to which it belongs is obtained; the average tree height of each access record in the isolated tree to which it belongs is corrected according to the confidence, and the final average tree height of each access record is obtained, and then the initial abnormal score of each access record is obtained; since abnormal access of fixed IP addresses usually generates a large number of unauthorized access records in a short period of time, according to each access record, the access record is classified into the following categories: The frequency of occurrence of unauthorized access records within a preset neighborhood range is recorded to obtain a fixed high-frequency coefficient for each access record using the same fixed IP address; since the access records of the same dynamic IP address will not be repeatedly generated in a short time, but the time interval of its access records is short, the dynamic high-frequency coefficient of each access record using the same dynamic IP address is obtained according to the time interval fluctuation characteristics between each adjacent access records within the preset neighborhood range of each access record; the high-frequency degree of each access record is obtained according to the fixed high-frequency coefficient and the dynamic high-frequency coefficient, and the high-frequency degree reflects the abnormal degree of each access record; the final abnormal score of each access record is obtained according to the initial abnormal score and the high-frequency degree of each access record; and the abnormal behavior within the enterprise is detected according to the final abnormal score. The present invention takes into account the confidence and high-frequency degree of the access records in the isolation forest model, and then corrects the abnormal score of each access record, so as to obtain a more accurate abnormal access detection result within the enterprise. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 A flow chart of a method for detecting abnormal access behavior within an enterprise provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation method, structure, features and effects of a method for detecting abnormal access behavior within an enterprise proposed by the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0042] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0043] The following is a detailed description of a method for detecting abnormal access behavior within an enterprise provided by the present invention in conjunction with the accompanying drawings.

[0044] See also Figure 1 , which shows a flow chart of a method for detecting abnormal access behavior within an enterprise provided by an embodiment of the present invention, the method comprising:

[0045] Step S1: Obtain all access records within the enterprise; construct an isolation forest model of all access records.

[0046] The embodiment of the present invention provides a method for detecting abnormal access behavior within an enterprise. To detect abnormal access behavior within an enterprise, all access records within the enterprise should be obtained first. In actual situations, the main characteristics of abnormal behavior within an enterprise include: abnormal login, access during non-working hours, tentative continuous access to unauthorized files, databases or other sensitive data, or downloading a large amount of data to occupy bandwidth, etc. Therefore, it is necessary to record the access time, access item, access permission, access result and information transmission volume of each access record and analyze whether each access record is an abnormal access.

[0047] Since there are multiple access features in the internal access records of an enterprise, the data dimension is high and the data volume is large, and the isolation forest model can effectively detect outliers in high-dimensional data and large data sets, the isolation forest model is constructed for all access records based on the access features of different dimensions.

[0048] In one embodiment of the present invention, by querying the access log of the enterprise system, the access record left by each access is obtained, and the access characteristics of the access time, access item, access permission, access result and information transmission volume in the access record are recorded.

[0049] Step S2: According to the tree height distribution characteristics of the isolated tree to which each access record belongs in the isolation forest model, the confidence of each access record in each isolated tree is obtained; according to the confidence, the average tree height of each access record in the isolated tree to which it belongs is corrected to obtain the final average tree height of each access record; according to the final average tree height, the initial anomaly score of each access record is obtained.

[0050] All access records of each isolated tree in the isolation forest model are obtained by random sampling. When most of the access records in an isolated tree have similar data on the same access feature, a small number of access records will be isolated prematurely, among which normal access records may exist. At this time, it is considered that the access records isolated prematurely cannot be used as a reference for whether the access records are abnormal access behaviors in the isolated tree. In order to determine whether the tree heights of all access records in the isolation forest model can serve as a basis for determining abnormal access, in an embodiment of the present invention, the confidence of each access record in each isolated tree to which it belongs is obtained based on the tree height distribution characteristics of the isolated tree to which each access record belongs in the isolation forest model.

[0051] Preferably, in one embodiment of the present invention, the method for obtaining the confidence level includes:

[0052] Any access record is randomly selected as the target access record. Since all access records of each isolated tree are obtained by random sampling, not every isolated tree contains the target access record. Therefore, all isolated trees containing the target access record are taken as the target isolated trees. The difference between the tree height of the target access record in each target isolated tree and the average tree height of each target access record in all target isolated trees is taken as the first tree height difference. The smaller the first tree height difference is, the closer the tree height of the target access record in each isolated tree is to the overall tree height of the target access record in the corresponding isolated tree. At this time, the tree height confidence of the target access record in each target isolated tree is higher. In each target isolated tree, the difference between the tree height of each non-target access record in the target isolated tree and the average tree height of each non-target access record in all target isolated trees is taken as the tree height difference degree. The tree height difference degree of each non-target access record is averaged to obtain the second tree height difference of the non-target access record in each target isolated tree. The smaller the second tree height difference is, the higher the tree height difference is. The more similar the tree height of other access records except the target access record in each target isolated tree is to the overall tree height in the isolated forest model, the higher the confidence of the target isolated tree is; the product of the first tree height difference and the second tree height difference is negatively correlated and normalized to obtain the tree height distribution characteristics of the target access record in each target isolated tree; since the kurtosis can reflect the distribution characteristics of the tree height of the access record in the isolated tree, the tree kurtosis of the target access record on all target isolated trees is used as the uniformity of the tree height of the target access record in all target isolated trees. The larger the tree kurtosis, the closer the tree height of the target access record in each target isolated tree is to the average tree height of each access record in the isolated tree to which it belongs, and the higher the confidence of the tree height of the target access record in each target isolated tree is at this time; the product of the tree height distribution characteristics and the tree height uniformity is used as the confidence of the target access record in each isolated tree to which it belongs; the target access record is changed to obtain the confidence of each access record in each isolated tree to which it belongs. In one embodiment of the present invention, the confidence calculation formula is as follows:

[0053]

[0054] Where i represents the sequence number of the target access record in the kth isolated tree; Z i,k represents the confidence of the target access record in the kth isolated tree; F i represents the kurtosis of the target access record in the corresponding isolated tree; h i,k Indicates the tree height of the target access record in the kth isolated tree; represents the average tree height of the target access record in the isolated tree to which it belongs; I represents the number of access records in the kth isolated tree; i' represents the sequence number of the non-target access record; h i',k Indicates the tree height of the i'th non-target access record in the kth isolated tree; It represents the average tree height of the i'th non-target access record in the kth isolated tree; exp() represents an exponential function with a natural constant as the base.

[0055] In the confidence calculation formula, the smaller the difference between the tree height of the i-th access record in the k-th isolated tree and the average tree height of the i-th access record in the corresponding isolated tree, the closer the tree height of the i-th access record in the k-th isolated tree is to the average tree height of the i-th access record in the isolation forest model. At this time, the confidence of the decision result of the k-th isolated tree in calculating the anomaly score of the i-th access record is higher; It indicates the difference in tree height between the tree height of the i'th non-target access record in the k'th isolated tree and the average tree height in the isolated tree to which it belongs. The smaller the difference in tree height, the higher the confidence of the k'th isolated tree in calculating the abnormal score for the i'th non-target access record. The difference between the tree height of each non-target access record in the k'th isolated tree and the average tree height in the isolated tree to which it belongs is averaged. The smaller the average value, the higher the credibility of the overall decision result of the k'th isolated tree. The larger the kurtosis of all tree heights of the i'th access record in the isolated forest model, the closer the tree height of the i'th access record in each target isolated tree is to the average tree height of the i'th access record in the isolated forest model, and the higher the confidence of the tree height of the i'th access record in each target isolated tree.

[0056] It should be noted that the method for calculating the kurtosis of the i-th access record in the corresponding isolated tree is a technical means well known to those skilled in the art and will not be elaborated here.

[0057] The average tree height of each access record in each isolated tree is corrected using the confidence of each access record in each isolated tree. Preferably, in one embodiment of the present invention, the method for obtaining the final average tree height includes:

[0058] The final average tree height is calculated according to the final average tree height calculation formula. The final average tree height calculation formula is as follows:

[0059]

[0060] In the formula, represents the final average tree height of the i-th access record; K i represents the number of isolated trees containing the i-th access record; k represents the sequence number of the isolated tree containing the i-th access record; Z i,k represents the confidence of the i-th access record on the k-th isolated tree; h i,k Represents the tree height of the i-th access record in the k-th isolated tree.

[0061] In the final average tree height calculation formula, the ratio between the confidence of the i-th access record in the k-th isolated tree and the total confidence of the i-th access record in the corresponding isolated tree is calculated. The larger the ratio, the higher the h. i,k The higher the credibility is, the more important the tree height of the i-th access record on the k-th isolated tree is when calculating the final average tree height of the i-th access record. For h i,k Make corrections; average the tree heights of each access record in the isolated tree to which it belongs after correction to obtain the final average tree height.

[0062] In one embodiment of the present invention, the abnormality score calculation method in the isolation forest algorithm is used to obtain the initial abnormality score of each access record according to the final average tree height. It should be noted that the isolation forest algorithm is a technical means well known to those skilled in the art and will not be described in detail here.

[0063] Step S3: In all access records using the same fixed IP address, obtain the fixed high-frequency coefficient of each access record using the same fixed IP address according to the frequency of occurrence of unauthorized access records within the preset neighborhood of each access record; obtain the dynamic high-frequency coefficient of each access record using the same dynamic IP address according to the fluctuation characteristics of the time interval between each two adjacent access records within the preset neighborhood of each access record; obtain the high-frequency degree of each access record according to the fixed high-frequency coefficient and the dynamic high-frequency coefficient.

[0064] In reality, abnormal access characteristics within an enterprise usually include high-frequency, indiscriminate access in a short period of time, and the accessed data includes data with and without access rights. In addition, in the access process, not only fixed IP addresses are used, but also dynamic IP addresses are used to increase anonymity and concealment. Proxy servers, TOR networks, or botnets are used to rotate access between different IP addresses, making the access behavior appear more dispersed and difficult to track. For access records of fixed IP addresses, abnormal access usually generates a large number of unauthorized access records in a short period of time. Therefore, in an embodiment of the present invention, among all access records using fixed IP addresses, a fixed high-frequency coefficient of each access record using a fixed IP address is obtained based on the frequency of occurrence of unauthorized access records within a preset neighborhood range of the fixed IP address used by each access record.

[0065] In one embodiment of the present invention, the preset neighborhood range is set to 100 access records around the access time of each access record. It should be noted that unless otherwise specified, the preset neighborhood range herein adopts this setting mode. In other embodiments of the present invention, the preset neighborhood range can be set by the implementer himself, which is not limited here.

[0066] Preferably, in one embodiment of the present invention, the method for obtaining the fixed high frequency coefficient includes:

[0067] Since abnormal access behavior of a fixed IP address will generate a large number of unauthorized access records, in the preset neighborhood range of each access record using the same fixed IP address, the ratio between the number of unauthorized access records and the total number of access records in the preset neighborhood range is used as the fixed high-frequency coefficient of each access record, and the fixed high-frequency coefficient is used to reflect the abnormality of each access record using the same fixed IP address. In one embodiment of the present invention, the fixed high-frequency coefficient calculation formula is as follows:

[0068]

[0069] In the formula, G i represents the fixed high-frequency coefficient of the i-th access record; n i N represents the number of unauthorized access records within the preset neighborhood of the i-th access record; i Indicates the total number of access records within the preset neighborhood of the i-th access record.

[0070] In the fixed high-frequency coefficient calculation formula, the more unauthorized access records there are in the neighborhood of the ith access record using a fixed IP address, the more abnormal accesses there are near the ith access record, and the more likely the ith access record is to be an abnormal access record.

[0071] For the access records of dynamic IP addresses, the access records of the same dynamic IP address will not be repeatedly generated in a short period of time, but the time interval between its access records is short. Therefore, it is possible to judge whether it is an abnormal access of the dynamic IP address based on whether the time interval between every two access records in the nearest neighborhood of each access record using the same dynamic IP address is regular. Therefore, in the embodiment of the present invention, the dynamic high-frequency coefficient of each access record using the same dynamic IP address is obtained based on the fluctuation characteristics of the time interval between every two adjacent access records in the preset neighborhood of each access record.

[0072] Preferably, in one embodiment of the present invention, the method for acquiring the time interval fluctuation characteristics includes:

[0073] Obtain the time interval between each two adjacent access records within a preset neighborhood range; construct a two-dimensional space with the sequence number of the time interval as the horizontal axis and the time interval value as the vertical axis; use the vector pointing from the previous time interval value to the next time interval value in the two-dimensional space as each time interval vector; use the cumulative vector of all time interval vectors within the preset neighborhood range as the neighborhood range vector; use the vector projected onto the neighborhood range vector by the time interval vector as the projection vector of each time interval; calculate the modulus of the vector difference between the projection vector of each time interval within the preset neighborhood range and the neighborhood range vector as the stability of each time interval; use the ratio of the stability of each time interval within the preset neighborhood range of each access record to the number of other access records as the first stability of each other access record; accumulate and sum the first stability to obtain the time interval fluctuation characteristics within the preset neighborhood range of each access record. In one embodiment of the present invention, the time interval fluctuation characteristic calculation formula is as follows:

[0074]

[0075] In the formula, H i represents the time interval fluctuation characteristics of the i-th access record; N represents the number of access records within the preset neighborhood of the i-th access record; j represents the sequence number of the access record within the preset neighborhood of the i-th access record; Represents the neighborhood range vector within the preset neighborhood range of the i-th access record; The projection vector of the time interval vector of the jth access record within the preset neighborhood of the i-th access record on the neighborhood range vector. In one embodiment of the present invention, the difference between the access start time of the access record after the j-th access record and the access end time of the j-th access record is used as the time interval of the j-th access record.

[0076] In the time interval fluctuation characteristic calculation formula, if the direction between the time interval vector of the jth access record in the preset neighborhood range of the i-th access record and the neighborhood range vector is more consistent, after projection, the length of the projection vector on the neighborhood range vector is closer to the length of the corresponding time interval vector. The smaller the value is, the smaller the change of the time interval within the preset neighborhood of the i-th access record is, the more stable the fluctuation characteristics of the time interval within the preset neighborhood of the i-th access record is, and the higher the possibility that the i-th access record belongs to abnormal access from a dynamic IP address is.

[0077] Preferably, in one embodiment of the present invention, the method for obtaining the dynamic high frequency coefficient includes:

[0078] The time interval fluctuation characteristics are negatively correlated and normalized to obtain the dynamic high-frequency coefficient of each access record.

[0079] D i =exp(-H i )

[0080] Where D i represents the dynamic high-frequency coefficient of the i-th access record; H i It represents the time interval fluctuation characteristics of the i-th access record; exp() represents an exponential function with a natural constant as the base.

[0081] Since it is not known in advance whether the IP address used for each access record is a fixed IP address or a dynamic IP address, it is considered that each access record uses both a fixed IP address and a dynamic IP address. The fixed high-frequency coefficient of each access record is compared with the dynamic high-frequency coefficient to determine the high-frequency degree of each access record. Therefore, in an embodiment of the present invention, the high-frequency degree of each access record is obtained based on the fixed high-frequency coefficient and the dynamic high-frequency coefficient.

[0082] Preferably, in one embodiment of the present invention, the method for obtaining the high frequency degree includes:

[0083] The maximum value between the fixed high frequency coefficient and the dynamic high frequency coefficient is used as the high frequency degree of each access record. In one embodiment of the present invention, the high frequency degree calculation formula is as follows:

[0084] Z i =max{G i , D i}

[0085] In the formula, Z i Indicates the high frequency of the i-th access record; G i represents the fixed high-frequency coefficient of the i-th access record; D i represents the dynamic high-frequency coefficient of the i-th access record; max{} represents the maximum value function.

[0086] In the high frequency calculation formula, if the maximum value of the fixed high frequency coefficient and the dynamic high frequency coefficient of the i-th access record is the fixed high frequency coefficient, it means that the i-th access record uses a fixed IP address. In this case, the fixed high frequency coefficient of the i-th access record is used as the high frequency degree of the i-th access record; if the maximum value of the fixed high frequency coefficient and the dynamic high frequency coefficient of the i-th access record is the dynamic high frequency coefficient, it means that the i-th access record uses a dynamic IP address. In this case, the dynamic high frequency coefficient of the i-th access record is used as the high frequency degree of the i-th access record.

[0087] At this point, the frequency of each access record is obtained.

[0088] Step S4: Obtain a final anomaly score for each access record based on the initial anomaly score and high frequency of each access record; and detect abnormal behaviors within the enterprise based on the final anomaly score.

[0089] Preferably, in one embodiment of the present invention, the method for obtaining the final anomaly score includes:

[0090] Since abnormal access is usually accompanied by the characteristic of extremely short access time interval, the initial abnormal score of each access record is corrected by using the high frequency of each access record, so the product of the initial abnormal score of each access record and the high frequency is normalized to obtain the final abnormal score of each access record. In one embodiment of the present invention, the final abnormal score calculation formula is as follows:

[0091] g(i)=sigmoid[c(i)×(1+Z i )]

[0092] Where g(i) represents the final anomaly score of the i-th access record; c(i) represents the initial anomaly score of the i-th access record; Z i Indicates the high frequency of the i-th access record; sigmoid[] represents the S-type function, which is used for normalization processing.

[0093] In the final anomaly score calculation formula, if the average tree height of the ith access record in the isolation forest model is large, the initial anomaly score of the ith access record is small. However, the greater the high frequency, the more likely the ith access record is an abnormal access. The initial anomaly score of the ith access record is adjusted using the high frequency of the ith access record, so that the final anomaly score of the ith access record can more accurately reflect the degree of anomaly of the ith access record.

[0094] Preferably, in one embodiment of the present invention, detecting abnormal behavior within an enterprise according to the final abnormality score includes:

[0095] An abnormal threshold is preset, and access records with a final abnormal score greater than the abnormal threshold are regarded as abnormal accesses. In one embodiment of the present invention, the abnormal threshold is set to 0.8. It should be noted that in other embodiments of the present invention, the setting method of the abnormal threshold can be set by the implementer, which is not limited here.

[0096] At this point, the detection of abnormal access behavior within the enterprise is completed.

[0097] In summary, the present invention constructs an isolation forest model for all access records according to the access characteristics of the access records; obtains the confidence of each access record according to the uniform tree height characteristics of each access record in the isolation forest model and the tree height distribution characteristics of each access record in the isolation forest model; corrects the average tree height of each access record in the isolation forest model according to the confidence of each access record in the isolation forest model to obtain the final average tree height of each access record; obtains the initial abnormality score of each access record according to the final average tree height; obtains the fixed high frequency coefficient of each access record using the same fixed IP address according to the frequency of occurrence of unauthorized access records within the preset neighborhood of each access record; obtains the dynamic high frequency coefficient of each access record using the same dynamic IP address according to the fluctuation characteristics of the time interval between each two adjacent access records within the preset neighborhood of each access record; obtains the high frequency degree of each access record according to the fixed high frequency coefficient and the dynamic high frequency coefficient; obtains the final abnormality score of each access record according to the initial abnormality score and the high frequency degree of each access record; and detects abnormal behavior within the enterprise according to the final abnormality score. The present invention takes into account the confidence and high frequency of access records in the isolation forest model, and then corrects the abnormal score of each access record, thereby obtaining a more accurate abnormal access detection result within the enterprise.

[0098] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0099] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A method for detecting abnormal access behavior within an enterprise, characterized in that: The method comprises: Obtain all access records within the enterprise; construct an isolation forest model of all access records; According to the tree height distribution characteristics of the isolated tree to which each access record belongs in the isolation forest model, the confidence of each access record in each isolated tree to which it belongs is obtained; according to the confidence, the average tree height of each access record in the isolated tree to which it belongs is corrected to obtain the final average tree height of each access record; according to the final average tree height, an initial anomaly score of each access record is obtained; In all access records using the same fixed IP address, a fixed high frequency coefficient of each access record using the fixed IP address is obtained according to the occurrence frequency of unauthorized access records within a preset neighborhood range of each access record; a dynamic high frequency coefficient of each access record using the same dynamic IP address is obtained according to the fluctuation characteristics of the time interval between each two adjacent access records within a preset neighborhood range of each access record; and a high frequency degree of each access record is obtained according to the fixed high frequency coefficient and the dynamic high frequency coefficient; According to the initial anomaly score and the high frequency of each access record, a final anomaly score of each access record is obtained; and abnormal behaviors within the enterprise are detected according to the final anomaly score.

2. According to claim 1, a method for detecting abnormal access behavior within an enterprise is characterized in that: The method for obtaining the confidence level includes: Select any access record as the target access record, and take all isolated trees containing the target access record as the target isolated trees; The difference between the tree height of the target access record in each target isolated tree and the average tree height of all target isolated trees is taken as a first tree height difference; In each target isolated tree, the difference between the tree height of each non-target access record in the target isolated tree and the average tree height of each non-target access record in all target isolated trees is used as the tree height difference degree; the tree height difference degrees of each non-target access record are averaged to obtain a second tree height difference of the non-target access records in each target isolated tree; Performing negative correlation mapping and normalization processing on the product of the first tree height difference and the second tree height difference to obtain tree height distribution characteristics of the target access record in each target isolated tree; The tree height uniformity of the target access record in all target isolated trees is used as the tree height uniformity of the target access record in all target isolated trees; The product of the tree height distribution feature and the tree height uniformity is used as the confidence of each isolated tree to which the target access record belongs; The target access record is changed to obtain the confidence of each access record in each corresponding isolated tree.

3. According to claim 1, a method for detecting abnormal access behavior within an enterprise is characterized in that: The method for obtaining the final average tree height includes: The final average tree height is calculated according to the final average tree height calculation formula, and the final average tree height calculation formula is as follows: In the formula, represents the final average tree height of the i-th access record; K i represents the number of isolated trees containing the i-th access record; k represents the sequence number of the isolated tree containing the i-th access record; Z i,k represents the confidence of the i-th access record on the k-th isolated tree; h i,k Represents the tree height of the i-th access record in the k-th isolated tree.

4. According to claim 1, a method for detecting abnormal access behavior within an enterprise is characterized in that: The method for obtaining the fixed high frequency coefficient includes: In a preset neighborhood range of each access record using the same fixed IP address, the ratio between the number of unauthorized access records and the total number of access records in the preset neighborhood range is used as a fixed high frequency coefficient of each access record.

5. According to claim 1, a method for detecting abnormal access behavior within an enterprise is characterized in that: The method for acquiring the time interval fluctuation characteristics comprises: Obtain the time interval between every two adjacent access records within a preset neighborhood; A two-dimensional space is constructed with the sequence number of the time interval as the horizontal axis and the time interval value as the vertical axis; A vector pointing from a previous time interval value to a next time interval value in the two-dimensional space is used as each time interval vector; an accumulated vector of all time interval vectors within a preset neighborhood range is used as a neighborhood range vector; a vector projecting the time interval vector onto the neighborhood range vector is used as a projection vector for each time interval; Calculate the modulus of the vector difference between the projection vector of each time interval within a preset neighborhood range and the vector of the neighborhood range as the smoothness of each time interval; take the ratio of the smoothness of each time interval within the preset neighborhood range of each access record to the number of other access records as the first smoothness of each other access record; accumulate and sum the first smoothness to obtain the time interval fluctuation characteristics within the preset neighborhood range of each access record.

6. The method for detecting abnormal access behavior within an enterprise according to claim 1, characterized in that: The preset neighborhood range is set to 100 access records on the left and right of the access time of each access record.

7. A method for detecting abnormal access behavior within an enterprise according to claim 5, characterized in that: The method for obtaining the dynamic high-frequency coefficient includes: The time interval fluctuation characteristics are negatively correlated and normalized to obtain a dynamic high-frequency coefficient of each access record.

8. The method for detecting abnormal access behavior within an enterprise according to claim 1, characterized in that: The method for obtaining the high frequency level includes: The maximum value between the fixed high frequency coefficient and the dynamic high frequency coefficient is taken as the high frequency degree of each access record.

9. The method for detecting abnormal access behavior within an enterprise according to claim 1, characterized in that: The method for obtaining the final anomaly score includes: The product of the initial anomaly score of each access record and the high frequency degree is normalized to obtain a final anomaly score of each access record.

10. The method for detecting abnormal access behavior within an enterprise according to claim 1, characterized in that: Detecting abnormal behaviors within the enterprise based on the final abnormality score includes: An abnormality threshold is preset, and access records whose final abnormality score is greater than the abnormality threshold are regarded as abnormal accesses.

Citation Information

Patent Citations

  • Method and device for establishing identification model and identifying abnormal access, and medium

    CN115509874A

  • Digital broiler breeding information storage management method and system

    CN117786543A

  • Abnormal login detection method and system based on isolated forest

    CN117978461A

Cited By

  • IP address security management method and device

    CN120034393A

  • Method and apparatus for ip address security management

    CN120034393B