A security monitoring method for a computer host

Through clustering and frequent item set analysis of log data, risk indicators are calculated, which solves the problem of low identification accuracy of traditional security monitoring systems and realizes dynamic security monitoring of computer hosts.

CN118378218BActive Publication Date: 2024-10-11SHENZHEN XINSAIKE SCI&TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410805800.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-11
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

Traditional security monitoring systems based on established rules are difficult to effectively identify complex security threats, resulting in low accuracy in identifying abnormal data and unable to effectively monitor the security of computer hosts.

Method used

By obtaining log data, performing clustering and division, obtaining representative data of abnormal data clusters, comparing the similarity with new data, using the FP-Growth algorithm to construct frequent item sets, calculating risk indicators, and achieving dynamic monitoring of host security.

Benefits of technology

It improves the accuracy of abnormal data identification, clarifies the risk levels of different abnormal data, and realizes dynamic security monitoring of computer hosts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118378218B_ABST
    Figure CN118378218B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of electronic digital data processing technology, and in particular to a security monitoring method for a computer host, comprising: clustering the acquired historical log data to obtain normal historical data clusters and abnormal historical data clusters of each user, determining representative data of each abnormal historical data cluster, comparing the representative data with new log data, obtaining possible abnormal data in the new data, performing data mining on the possible abnormal data in the new data to extract frequent item sets, calculating the risk index of the data in the frequent item set, obtaining the risk level of each data-related event in the frequent item set, so as to monitor the host security at different levels. The present invention accurately defines the range of abnormal data, improves the accuracy of the risk level of different abnormal data-related events, and improves the security monitoring efficiency of the computer host.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a security monitoring method for a computer host. Background Art

[0002] Security monitoring of computer hosts involves two aspects: physical security and software security. Among them, software security is crucial, including host firewall configuration, virus protection, and vulnerability scanning and repair. As cyberspace becomes increasingly complex, network attack methods are becoming more diverse. Traditional security monitoring systems based on established rules can no longer effectively identify complex security threats, and more advanced methods are needed to monitor the security of computer hosts.

[0003] In daily operations, abnormal data often appears frequently, and abnormal data may be a potential sign of attack. In order to capture these anomalies, existing methods often mine frequent itemsets in log data, conduct in-depth analysis of the data, discover the association between the data, and then identify abnormal data. However, in this process, frequent item set mining may be inaccurate, resulting in low accuracy in abnormal data identification, which makes it impossible to monitor the security of computer hosts well. Summary of the invention

[0004] The invention provides a safety monitoring method for a computer host to solve the existing problems.

[0005] A security monitoring method for a computer host of the present invention adopts the following technical solution:

[0006] An embodiment of the present invention provides a security monitoring method for a computer host, the method comprising the following steps:

[0007] Obtain log data of several users, divide the log data into normal historical data and abnormal historical data, and each log data corresponds to an event;

[0008] Clustering the normal historical data and abnormal historical data of the user respectively to obtain the normal historical data cluster and the abnormal historical data cluster of each user, dividing the abnormal historical data cluster, and obtaining the representative data of any abnormal historical data cluster according to the number of data in any abnormal historical data cluster, the number of data in the normal historical data cluster, and the distance between the data in the normal historical data cluster and the abnormal historical data cluster;

[0009] Get new log data, record it as new data, compare the representative data of each abnormal historical data cluster with the new data, obtain possible abnormal data in the new data, perform data mining on the possible abnormal data, and obtain frequent item sets;

[0010] Compare the differences between frequent item sets and normal historical data, calculate the risk index of log data in frequent item sets, and obtain the risk level of events corresponding to each log data in the frequent item sets;

[0011] The host security is monitored at different levels according to the risk level of the events corresponding to each log data in the frequent item set.

[0012] Furthermore, the specific method of obtaining representative data of any abnormal historical data cluster includes:

[0013] According to The number of data in any abnormal historical data cluster of a user, the number of data in any abnormal historical data cluster The number of data in the normal historical data cluster corresponding to the data, the number of data in any abnormal historical data cluster Article data and The distance between other data outside the data, the distance between any abnormal historical data cluster Article data and The distance between the data in the normal historical data cluster corresponding to the data is calculated. Any abnormal historical data cluster of users The representative rationality of the abnormal historical data is determined, and the abnormal historical data with the greatest rationality is used as the representative data of the abnormal historical data cluster.

[0014] Furthermore, the calculation Any abnormal historical data cluster of users The representative rationality of the data is calculated as follows:

[0015]

[0016] In the formula, Indicates Any abnormal historical data cluster of users The representativeness of the data; Indicates Any abnormal historical data cluster of users The abnormal historical data cluster where the data item is located; Indicates Any abnormal historical data cluster of users Normal historical data cluster corresponding to the data; express The amount of data in express The amount of data in express Middle Items of data, express Except The data outside Item data; express Middle Item data; Indicates the distance between two pieces of data; express and The distance between express and The distance between.

[0017] Furthermore, the representative data of each abnormal historical data cluster is compared with the new data to obtain possible abnormal data in the new data, including the specific method of:

[0018] Each new data is compared with the representative data of each abnormal historical data cluster, and the similarity between each new data and the representative data of each abnormal historical data cluster is calculated by calculating the intersection ratio. Among the similarities between the representative data of all abnormal historical data clusters, there is a corresponding similarity greater than the preset threshold. The new data is recorded as possible abnormal data.

[0019] Furthermore, the data mining of possible abnormal data to obtain frequent item sets includes the following specific methods:

[0020] Use FP-Growth algorithm to construct FP-Tree of possible abnormal data;

[0021] Starting from the leaf node of the FP-Tree, traverse each node layer by layer to obtain the conditional pattern base corresponding to each node. For each conditional pattern base, recursively extract the frequent item sets of each conditional pattern base. In the process of extracting frequent item sets, it is necessary to calculate the support of the new frequent item set in the conditional pattern base. If the support of the new frequent item set is greater than or equal to the preset frequent item set support threshold, then this frequent item set is output, and so on, until the entire FP-Tree is traversed, thereby obtaining the final frequent item set.

[0022] Furthermore, the method of comparing the difference between the frequent itemsets and the normal historical data and calculating the risk index of the log data in the frequent itemsets includes the following specific methods:

[0023]

[0024] In the formula, Indicates The number of data in all normal historical data clusters of a user; Indicates The frequent items in the user The data is different from the normal historical data. Similarity of data; Indicates The frequent items in the user The frequency of the data; Indicates The frequent items in the user The minimum support threshold of the event corresponding to the data; Indicates The frequent items in the user Risk indicators of the data; represents an exponential function with a natural constant as base; Indicates taking the minimum value.

[0025] Furthermore, the specific method of obtaining the risk level of the event corresponding to each log data in the frequent item set includes:

[0026] The first The frequent items in the user The risk index of the data is used as the risk index of the event corresponding to the data, and the risk level of the event corresponding to each log data is divided according to the size of the risk index.

[0027] Furthermore, the log data of several users is obtained, and the log data is divided into normal historical data and abnormal historical data, including the specific method of:

[0028] Use the Papertrail log analysis tool to automatically collect log data from various log sources. One log source represents one user. The collected log data of all users is recorded as historical data. Then the historical data is classified to obtain two categories: normal historical data and abnormal historical data. The normal historical data includes information and success audit logs, and the abnormal historical data includes warning, error, and failure audit logs.

[0029] Furthermore, the specific method of clustering the normal historical data and abnormal historical data of the users to obtain the normal historical data cluster and the abnormal historical data cluster of each user includes:

[0030] Preset K value and use K-means clustering algorithm to cluster the Cluster analysis is performed on the normal historical data and abnormal historical data of each user to obtain the A number of clusters formed by normal historical data and a number of clusters formed by abnormal historical data of a user are respectively recorded as normal historical data clusters and abnormal historical data clusters.

[0031] Furthermore, the specific method of dividing the abnormal historical data clusters includes:

[0032] By calculating the intersection ratio, we calculate the User's The similarity between all data in the abnormal historical data cluster and all data in each normal historical data cluster is User's The first The data and the user's The sum of the similarities of all data in a normal historical data cluster is recorded as User's The first Article data and User's The similarity of normal historical data clusters;

[0033] In the User's The first The data and A correspondence is established between the normal historical data clusters with the highest data similarity, and the abnormal data corresponding to different normal data categories are divided into different clusters according to the established correspondence.

[0034] The beneficial effects of the technical solution of the present invention are: clustering the acquired historical data to obtain normal historical data clusters and abnormal historical data clusters of each user, determining the abnormal historical data representative in each abnormal historical data cluster, comparing the abnormal historical data representative with the new data, obtaining possible abnormal data in the new data, performing data mining on the possible abnormal data, obtaining frequent item sets, accurately determining the selection range of abnormal data, calculating the risk index of the data in the frequent item set, obtaining the risk level of each data-related event in the frequent item set, clarifying the different risk levels of different abnormal data, and monitoring the host security at different levels according to the risk level of each data-related event in the frequent item set, thereby realizing dynamic monitoring of the computer host security. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, 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.

[0036] Figure 1A flowchart of the steps of a security monitoring method for a computer host according to the present invention;

[0037] Figure 2 Schematic diagram of the abnormal historical data cluster division method of the present invention. DETAILED DESCRIPTION

[0038] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a security monitoring method for a computer host proposed by the present invention, its specific implementation method, structure, features and effects, 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.

[0039] 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.

[0040] A specific scheme of a security monitoring method for a computer host provided by the present invention is described in detail below with reference to the accompanying drawings.

[0041] See also Figure 1 , which shows a flowchart of a method for security monitoring of a computer host provided by an embodiment of the present invention, the method comprising the following steps:

[0042] Step S001: Obtain log data of several users, divide the log data into normal historical data and abnormal historical data, and each log data corresponds to an event.

[0043] It should be noted that the system log is an important component for recording the operation status and problem information of the hardware and software in the system. It can be used to detect various events occurring in the system and provide records of important information such as time, user, type, etc. Among them, the log types include information, warning, error, success audit and failure audit. To conduct security monitoring of the computer host, it is necessary to obtain and analyze the system log. By analyzing the system log, you can understand the events occurring in the system and their types, frequency of occurrence, risk level, etc., thereby realizing security monitoring of the computer host.

[0044] In order to perform security monitoring of the computer host in this embodiment, it is necessary to use a log management tool to collect computer log data and pre-process the data.

[0045] Specifically, in order to implement a security monitoring method for a computer host proposed in this embodiment, it is first necessary to collect computer log data. The specific process is as follows:

[0046] First, use the Papertrail log analysis tool to automatically collect log data from various log sources, one log source for one user, and record the collected log data of all users as historical data. Then classify the historical data into two categories: normal historical data and abnormal historical data. The normal historical data includes information and success audit logs, and the abnormal historical data includes warning, error, and failure audit logs.

[0047] Since log data formats are different, you need to first select a unified log data format, such as CSV format, write a parser or converter for each log format, and unify the formats of historical data in different formats.

[0048] It should be noted that when unifying the log format, a log format parser or converter may be written according to the needs, which is not specifically limited in this embodiment.

[0049] So far, normal historical data and abnormal historical data are obtained through the above method.

[0050] Step S002, clustering the normal historical data and abnormal historical data of the user respectively, obtaining the normal historical data cluster and abnormal historical data cluster of each user, dividing the abnormal historical data cluster, and obtaining representative data of any abnormal historical data cluster according to the number of data in any abnormal historical data cluster, the number of data in the normal historical data cluster, and the distance between the data in the normal historical data cluster and the abnormal historical data cluster.

[0051] It should be noted that each data cluster after clustering contains multiple data. If multiple data in a data cluster need to be simplified into one data, it is necessary to select a piece of data that best represents the cluster data as the representative data.

[0052] Preset K value and use K-means clustering algorithm to cluster the Cluster the normal historical data and abnormal historical data of each user to get Several clusters formed by normal historical data and several clusters formed by abnormal historical data of a user are respectively recorded as normal historical data clusters and abnormal historical data clusters. The data in the normal historical data clusters are all normal historical data, and the data in the abnormal historical data clusters are all abnormal historical data.

[0053] By calculating the intersection ratio, we calculate the User's The similarity between all data in the abnormal historical data cluster and all data in each normal historical data cluster is User's The first The data and user The sum of the similarities of all data in a normal historical data cluster is recorded as User's The first Article data and User's The similarity of a normal historical data cluster.

[0054] In the User's The first The data and A corresponding relationship is established between the normal historical data clusters with the highest similarity of the data, and the abnormal data corresponding to different normal data categories are divided into different clusters according to the established corresponding relationship, such as Figure 2 The figure shows a schematic diagram of the abnormal historical data clustering method.

[0055] When determining the representative data in the abnormal historical data cluster, it is necessary to calculate the rationality of each piece of data in the abnormal historical data cluster to represent the abnormal historical data cluster to which it belongs. User's The first The data represents the The stronger the ability of the abnormal historical data cluster is, the The data represents the The higher the rationality of an abnormal historical data cluster, the lower the rationality.

[0056] According to The number of data in any abnormal historical data cluster of a user, the number of data in any abnormal historical data cluster The number of data in the normal historical data cluster corresponding to the data, the number of data in any abnormal historical data cluster Article data and The distance between other data outside the data, the distance between any abnormal historical data cluster Article data and The distance between the data in the normal historical data cluster corresponding to the data is calculated. Any abnormal historical data cluster of users The representative rationality of the data, which means Any abnormal historical data cluster of users The data represents the rationality of the abnormal historical data cluster to which it belongs. The specific calculation method is:

[0057]

[0058] In the formula, Indicates Any abnormal historical data cluster of users The representativeness of the data; Indicates Any abnormal historical data cluster of users The abnormal historical data cluster where the data item is located; Indicates Any abnormal historical data cluster of users Normal historical data cluster corresponding to the data; express The amount of data in express The amount of data in express Middle Items of data, express Except The data outside Item data; express Middle Item data; Indicates the distance between two pieces of data; express and The distance between express and The distance between.

[0059] It should be noted that when The shorter the sum of the distances from a piece of data to all other data in its abnormal historical data cluster, The smaller the value, the The larger the value, the The more representative the data is for other data in the abnormal historical data cluster, the The greater the rationality of the abnormal historical data cluster to which the data piece belongs, the more The larger the sum of the distances between a data item and its corresponding normal historical data cluster, the larger the sum of the distances between a data item and its corresponding normal historical data cluster. The larger the value, the The greater the difference between a data item and its corresponding normal historical data cluster, the The more reasonable the data is, the more reasonable the abnormal historical data cluster it belongs to.

[0060] It should be noted that in order to calculate the distance between data, it is necessary to first use the UMAP algorithm (Uniform Manifold Approximation and Projection) to reduce the data dimension to two-dimensional space, and then calculate the distance between the data.

[0061] It should be noted that the UMAPA algorithm is an existing technology and will not be described in detail here.

[0062] The rationality of each piece of data in any abnormal historical data cluster representing the abnormal historical data cluster to which it belongs is calculated, and the data with the greatest rationality is used as the representative data of the abnormal historical data cluster.

[0063] It should be noted that when obtaining the representative data of each abnormal historical data cluster, the difference between the obtained representative data and the data in the cluster should be as small as possible, and the difference with the normal historical data should be large. However, when calculating the similarity between the abnormal historical data cluster and the normal historical data cluster, some data in the same abnormal historical data cluster may be different from the first data. The similarity of the normal historical data cluster is high, while the other part is similar to the The similarity between the two normal historical data clusters is high. At this time, if the differences between all the abnormal historical data clusters and the same normal historical data cluster are calculated, the accuracy of the representative data will be reduced.

[0064] So far, the representative data of each abnormal historical data cluster is obtained through the above method.

[0065] Step S003, obtaining new log data, recording it as new data, comparing the representative data of each abnormal historical data cluster with the new data, obtaining possible abnormal data in the new data, performing data mining on the possible abnormal data, and obtaining frequent item sets.

[0066] In step (3.1), new log data is obtained and recorded as new data. The representative data is compared with the new data to obtain possible abnormal data in the new data.

[0067] Obtain each log data generated by the user's new operation, record it as new data, and process the new data in the same way as historical data. Compare each new data with the representative data of each abnormal historical data cluster, and calculate the similarity between each new data and the representative data of each abnormal historical data cluster by calculating the intersection and union ratio. Among the similarities between the new data and the representative data of all abnormal historical data clusters, there is a corresponding similarity greater than the preset threshold. The new data is recorded as possible abnormal data, and then the FP-Growth algorithm is used to construct the FP-Tree of possible abnormal data.

[0068] It should be noted that the FP-Growth algorithm is a well-known technology and will not be described in detail here.

[0069] It should be noted that in order to maximize the efficiency of subsequent updates of the FP-Tree based on dynamic data flows, in the process of constructing the FP-Tree, data with more shared nodes will be inserted with higher priority. During insertion, in order to ensure the close connection between the security monitoring process and events, if a piece of data does not contain information representing an event, the data will not participate in subsequent processing.

[0070] In step (3.2), data mining is performed on possible abnormal data to obtain frequent item sets.

[0071] Specifically, starting from the leaf node of the FP-Tree, traverse each node layer by layer to obtain the conditional pattern base corresponding to each node. For each conditional pattern base, recursively extract the frequent item sets of each conditional pattern base. In the process of extracting frequent item sets, it is necessary to calculate the support of the new frequent item set in the conditional pattern base. If the support of the new frequent item set is greater than or equal to the preset frequent item set support threshold, the frequent item set is output, and so on, until the entire FP-Tree is traversed, thereby obtaining the final frequent item set.

[0072] It should be noted that in the process of computer host security monitoring, different types of abnormal events have different levels of attention. For example, for the same security-related issue, security event ID 4625 requires higher attention. This event indicates a user who failed to log in, which may indicate a brute force cracking attempt or a password guessing attack; however, system event ID 6008 indicates that the log service has stopped, which may be a normal maintenance operation or log rotation, and often does not require excessive attention. For abnormal events that require high attention, a lower minimum support threshold is set for them during the FP-Tree mining process, which means that when such events occur a small number of times, they will be monitored and warned. For abnormal events that require less attention, a higher minimum support threshold is set, which means that when such events occur more times, they will become frequent itemsets and be monitored and warned by the security system.

[0073] It should be noted that in order to ensure the close connection between the security monitoring process and events and improve computing efficiency, only frequent item sets containing event information are retained, and when searching for frequent item sets of a certain feature, for the case where item set A is a true subset of item set B, only item set B is retained. For example, the content of frequent item set A is {event A: 5, time B: 5}, and the content of frequent item set B is {event A: 5, time B: 5, IP address C: 5}, only frequent item set B is retained.

[0074] So far, frequent itemsets are obtained through the above method.

[0075] Step S004: Compare the differences between the frequent itemsets and the normal historical data, calculate the risk index of the log data in the frequent itemsets, and obtain the risk level of the event corresponding to each log data in the frequent itemsets.

[0076] Specifically, get the The frequent items in the user The frequency of the data, The minimum support threshold of the event corresponding to the data, The data is different from the normal historical data. The similarity of the data is based on The number of data in all normal historical data clusters of users, The frequent items in the user The data in the normal historical data cluster is Similarity of data, frequent itemsets The frequency of the data, the number of frequent items in the The minimum support threshold of the event corresponding to the data is calculated. The frequent items in the user The specific calculation method of the risk index of the data is as follows:

[0077]

[0078] In the formula, Indicates The number of data in all normal historical data clusters of a user; Indicates The frequent items in the user The data is different from the normal historical data. Similarity of data; Indicates The frequent items in the user The frequency of the data; Indicates The frequent items in the user The minimum support threshold of the event corresponding to the data; Indicates The frequent items in the user Risk indicators of the data; represents an exponential function with a natural constant as base; Indicates taking the minimum value.

[0079] It should be noted that Indicates The frequent items in the user The frequency of the data is The difference between the minimum support thresholds of the events corresponding to the data, when the The smaller the overall similarity between the data and the normal historical data, the The higher the abnormality of a piece of data, the The smaller the value, the The larger the The higher the risk index corresponding to the data, the higher the risk index corresponding to the data. The safe number of events corresponding to each data is preset, that is, the maximum number of times the event is allowed to occur. The more times a piece of data appears than the number of security events corresponding to the data, the The frequency of the data is The greater the difference in the minimum support threshold of the event corresponding to the data item, the The larger the value, The larger the The higher the risk index corresponding to the data.

[0080] The first The frequent items in the user The risk index of the data is used as the risk index of the event corresponding to the data, and the risk level of the event corresponding to each log data is divided according to the size of the risk index.

[0081] So far, the risk level of each data-related event in the frequent item set is obtained through the above method.

[0082] Step S005 , monitoring the host security at different levels according to the risk level of the event corresponding to each log data in the frequent item set.

[0083] According to the risk level of each data-related event in the frequent item set, the operation permissions, log records, encryption measures and monitoring strategies related to the event are set accordingly according to the risk level of the event, and different levels of monitoring are performed on events of different risk levels. After the log is updated, the above steps are repeated to obtain a new risk level, thereby realizing dynamic strength monitoring of computer host security, effectively saving resources while achieving the purpose of targeted detection.

[0084] At this point, this embodiment is completed.

[0085] It should be noted that the The model is only used to represent negative correlation and constrain the output of the model to be in In the specific implementation, it can be replaced by other models with the same purpose. The model is described as an example without any specific limitation. is the input to the model.

[0086] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A security monitoring method for a computer host, characterized in that: The method comprises the following steps: Obtain log data from several users and divide the log data into normal historical data and abnormal historical data. Each log data corresponds to an event. Clustering the user's normal historical data and abnormal historical data separately to obtain normal historical data clusters and abnormal historical data clusters for each user, dividing the abnormal historical data clusters, and obtaining representative data of any abnormal historical data cluster based on the number of data in any abnormal historical data cluster, the number of data in any normal historical data cluster, and the distance between the data in the normal historical data cluster and the abnormal historical data cluster; Obtain new log data, record it as new data, compare the representative data of each abnormal historical data cluster with the new data, obtain possible abnormal data in the new data, perform data mining on the possible abnormal data, and obtain frequent item sets; Compare the differences between frequent item sets and normal historical data, calculate the risk index of the log data in the frequent item sets, and obtain the risk level of the event corresponding to each log data in the frequent item sets; Monitor host security at different levels based on the risk level of each event corresponding to each log data in the frequent item set; The specific method of obtaining representative data of any abnormal historical data cluster includes: According to The number of data in any abnormal historical data cluster of a user, the number of The number of data in the normal historical data cluster corresponding to the data, the number of data in any abnormal historical data cluster Article data and The distance between other data outside the data, the distance between any abnormal historical data cluster Article data and The distance between the data in the normal historical data cluster corresponding to the data is calculated. In any abnormal historical data cluster of a user The representative rationality of the data, and taking the abnormal historical data with the greatest rationality as the representative data of the abnormal historical data cluster; The calculation In any abnormal historical data cluster of a user The representative rationality of the data is calculated as follows: Where, Indicates the In any abnormal historical data cluster of a user The representativeness of the data; Indicates the In any abnormal historical data cluster of a user The abnormal historical data cluster where the data item is located; Indicates the In any abnormal historical data cluster of a user Normal historical data cluster corresponding to the data; express The amount of data in express The amount of data in express Middle pieces of data, express Except the The data outside pieces of data; express Middle pieces of data; Indicates the distance between two data; express and The distance between express and The distance between.

2. A security monitoring method for a computer host according to claim 1, characterized in that: The representative data of each abnormal historical data cluster is compared with the new data to obtain possible abnormal data in the new data, including the following specific methods: Compare each new data with the representative data of each abnormal historical data cluster, and calculate the similarity between each new data and the representative data of each abnormal historical data cluster by calculating the intersection ratio. Among the similarities between the new data and the representative data of all abnormal historical data clusters, there is a corresponding similarity greater than the preset threshold. The new data is recorded as possible abnormal data.

3. A security monitoring method for a computer host according to claim 1, characterized in that: The method of performing data mining on possible abnormal data to obtain frequent item sets includes the following specific methods: Use FP-Growth algorithm to construct FP-Tree of possible abnormal data; Starting from the leaf node of the FP-Tree, traverse each node layer by layer to obtain the conditional pattern base corresponding to each node. For each conditional pattern base, recursively extract the frequent item sets of each conditional pattern base. In the frequent item set extraction process, it is necessary to calculate the support of the new frequent item set in the conditional pattern base. If the support of the new frequent item set is greater than or equal to the preset frequent item set support threshold, then the frequent item set is output, and so on, until the entire FP-Tree is traversed, thereby obtaining the final frequent item set.

4. A security monitoring method for a computer host according to claim 1, characterized in that: The specific method of comparing the differences between the frequent itemsets and the normal historical data and calculating the risk index of the log data in the frequent itemsets is as follows: Where, Indicates the The number of data in all normal historical data clusters of a user; Indicates the The frequent item set of a user The data is different from the normal historical data. Similarity of data; Indicates the The frequent item set of a user The frequency of the data; Indicates the The frequent item set of a user The minimum support threshold of the event corresponding to the data; Indicates the The frequent item set of a user Risk indicators of the data; represents an exponential function with a natural constant as its base; Indicates taking the minimum value.

5. A security monitoring method for a computer host according to claim 1, characterized in that: The specific method for obtaining the risk level of the event corresponding to each log data in the frequent item set includes: The first The frequent item set of a user The risk index of each piece of data is used as the risk index of the event corresponding to the data, and the risk level of the event corresponding to each log data is divided according to the size of the risk index.

6. A security monitoring method for a computer host according to claim 1, characterized in that: The method of obtaining log data of several users and dividing the log data into normal historical data and abnormal historical data includes the following specific methods: Use the Papertrail log analysis tool to automatically collect log data from various log sources. One log source represents one user. The collected log data of all users is recorded as historical data. Then, the historical data is classified into two categories: normal historical data and abnormal historical data. The normal historical data includes information and success audit logs, and the abnormal historical data includes warning, error, and failure audit logs.

7. A security monitoring method for a computer host according to claim 1, characterized in that: The specific method of clustering the normal historical data and abnormal historical data of the user to obtain the normal historical data cluster and abnormal historical data cluster of each user is as follows: Preset K value and use K-means clustering algorithm to cluster the Perform cluster analysis on the normal historical data and abnormal historical data of each user to obtain the Several clusters formed by normal historical data and several clusters formed by abnormal historical data of a user are recorded as normal historical data clusters and abnormal historical data clusters respectively.

8. A security monitoring method for a computer host according to claim 1, characterized in that: The specific method of dividing abnormal historical data clusters includes: By calculating the intersection ratio, calculate the User's The similarity between all data in an abnormal historical data cluster and all data in each normal historical data cluster is User's The first in the abnormal historical data cluster The data and the user's The sum of the similarities of all data in a normal historical data cluster is recorded as User's The first in the abnormal historical data cluster Article data and User's The similarity of normal historical data clusters; In the User's The first in the abnormal historical data cluster The data and the A correspondence is established between the normal historical data clusters with the highest data similarity, and based on the established correspondence, the abnormal data corresponding to different normal data categories are divided into different clusters.