Analysis method and apparatus for network access data, and computer device and storage medium
By inputting network access data into the baseline model for analysis, abnormal access events are identified and alerted, which solves the problem that existing technology cannot effectively identify and prevent abnormal access by hackers, and improves the security of network access.
Patent Information
- Application Number
- PCT/CN2024/088836
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-21
- Filing Date
- 2024-04-19
- Publication Date
- 2024-10-24
AI Technical Summary
Existing technology cannot effectively identify and alert abnormal access events in corporate networks, especially after hackers steal VPN accounts, and cannot proactively detect and prevent malicious access behaviors.
By obtaining network access data and inputting it into the baseline model for analysis, the event probability is determined based on the historical access data within a preset period. When the event probability is less than or equal to the alarm threshold, an alarm is issued to identify and warn of abnormal access events.
When the account login is successful, it can quickly identify and alert abnormal access events, improve the security of network access, and enhance the ability to monitor and prevent hacker behavior.
Smart Images

Figure CN2024088836_24102024_PF_FP_ABST
Abstract
Description
Network access data analysis method, device, computer equipment and storage medium Technical Field
[0001] The present application relates to the field of computer network technology, and in particular to a network access data analysis method, apparatus, computer equipment, and storage medium.
[0002] Background of the Invention
[0003] An enterprise's internal terminal proxy gateway (such as a Virtual Private Network (VPN)) is a type of network access proxy tool. By granting a user a VPN access account and permissions, the enterprise enables employees to access specific intranet or extranet addresses. VPNs are typically installed on users' personal devices.
[0004] In the field of information security, personal terminals, because they can directly communicate with the external internet and connect to the company's internal network, are highly vulnerable to hacker attacks. In practice, hackers can steal employee VPN access accounts and infiltrate the internal network through phishing emails, phishing attacks, or supply chain software attacks.
[0005] Currently, phishing attempts to steal accounts are mostly prevented through methods such as account authorization and access address authorization, combined with employee information security education. However, once hackers gain access to a user's VPN account, the system cannot determine whether the account currently in use is a legitimate one, and is even less able to proactively detect and alert users of subsequent malicious access attempts.
[0006] Summary of the Invention
[0007] Based on this, it is necessary to provide a network access data analysis method, device, computer equipment and storage medium to address the above technical problems, which can analyze the network access data to be analyzed so as to timely identify abnormal access events therein and issue alarms to improve the security of network access.
[0008] In a first aspect, the present application provides a network access data analysis method, comprising: obtaining network access data; inputting the network access data into a baseline model to obtain an event probability corresponding to the network access data, wherein the baseline model is determined based on historical access data within a preset time period; and issuing an alarm for the network access data when the event probability is less than or equal to an alarm threshold.
[0009] In the second aspect, the present application provides a network access data analysis device, including: a data acquisition module for acquiring network access data; a probability analysis module, which is communicated with the data acquisition module and is used to input the network access data into a baseline model to obtain the event probability corresponding to the network access data, and the baseline model is determined based on historical access data within a preset time period; an event alarm module, which is communicated with the probability analysis module and is used to issue an alarm for the network access data when the event probability is less than or equal to the alarm threshold.
[0010] In a third aspect, the present application also provides a computer device, comprising: one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the above-mentioned network access data analysis method.
[0011] In a fourth aspect, the present application further provides a computer-readable storage medium on which a computer program is stored. The computer program is loaded by a processor to execute the steps in the above-mentioned network access data analysis method.
[0012] The aforementioned network access data analysis method, apparatus, computer device, and storage medium can analyze the network access data to be analyzed based on a baseline model, allowing for timely identification of abnormal access events and subsequent alerting. This allows analysis and identification of abnormal access events within the current network access data even when an account login is successful, improving network access security.
[0013] BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0015] FIG1 is a flow chart of a method for analyzing network access data according to an embodiment of the present application.
[0016] FIG2 is a flowchart of a process for determining an alarm threshold according to an embodiment of the present application.
[0017] FIG3 is a flowchart illustrating a process for determining event probabilities corresponding to network access data according to an embodiment of the present application.
[0018] FIG4 is a flowchart of a process for determining a zero-probability dimension provided in an embodiment of the present application.
[0019] FIG5 is a flowchart of a process for determining a zero-probability dimension provided by another embodiment of the present application.
[0020] FIG6 is a flowchart of a process for acquiring historical access data provided by an embodiment of the present application.
[0021] FIG7 is a flowchart illustrating a baseline model updating process according to an embodiment of the present application.
[0022] FIG8 is a flow chart of a network access data analysis method provided in another embodiment of the present application.
[0023] FIG9 is a flow chart of a network access data analysis method provided in another embodiment of the present application.
[0024] FIG10 is a schematic diagram of the structure of a network access data analysis device provided in an embodiment of the present application.
[0025] FIG11 is a schematic structural diagram of a computer device provided in an embodiment of the present application.
[0026] FIG12 is a schematic diagram of the structure of a storage medium provided in an embodiment of the present application.
[0027] Modes for Carrying Out the Invention
[0028] Within an enterprise, employees in different departments and positions may have different authorized access rights and frequently accessed addresses for each VPN user due to varying work needs and job nature. For example, customer service employees tend to access business systems such as customer service ticket inquiries and data queries, while IT engineers may focus on cloud business systems such as IT cloud platforms and operations and maintenance platforms. Historical statistical data shows that the daily work content and personal habits of different positions and individuals exhibit a certain degree of stability, indicating that user behavior is stable. However, when an account is stolen and used, the thief (such as a hacker) is unaware of the account's daily access habits. Furthermore, because their infiltration objectives differ from their daily work needs, the thief's account usage behavior may deviate significantly from normal behavior.
[0029] 1 , an embodiment of the present application provides a method for analyzing network access data. The method may include the following steps S101 to S103 .
[0030] S101, obtaining network access data.
[0031] Specifically, network access data is data collected by the gateway when a user accesses the network, including but not limited to at least one of the following: account number, terminal ID, network access destination address, network access destination port, process name (initiating network access), access time, etc. Real-time acquisition of network access data to be analyzed allows for the prompt and rapid identification of abnormal access events.
[0032] In one embodiment, the network access data to be analyzed can be analyzed based on a baseline model, which can be determined based on historical access data within a preset time period. Specifically, referring to FIG2 , before step S101, the network access data analysis method further includes: S201, obtaining historical access data within a preset time period, the historical access data including at least one historical access event, each of the at least one historical access event including information from any one or more dimensions of access initiator, access target, and access path; S202, determining the event probability of the historical access event based on the historical access data; and S203, determining an alarm threshold based on the event probability of the historical access event. The baseline model may include the event probability and alarm threshold of the historical access event.
[0033] Specifically, the access behavior of each user in the historical access data is used to determine whether there are any anomalies in the current network access data to be analyzed. First, the historical access data within a preset time period is obtained. The closer the time period of the historical access data is to the current time, the more reliable the analysis result based on the historical access data.
[0034] Historical access data includes several historical access events, and a historical access event is a network access request initiated by a user. Historical access events include information of any one or more dimensions of access initiator information, access target information, and access path information. Each type of information in the initiator information, access target information, and access path information is information of one dimension. The initiator information includes but is not limited to at least one of the information such as the account number, terminal identification (terminal id), network port, time, etc. that initiates the network access request. The access target information includes but is not limited to at least one of the information such as the network access destination address, network access destination port, etc. The access path information includes but is not limited to the process name information that initiates the network access. For example, if the historical access event includes account number, terminal id, network access destination address, network access destination port, and process name information (that initiates the network access), then the historical access event includes information of five dimensions. It should be noted that the number of dimensions of the information of several historical access events included in the historical access data is generally the same, and the number of dimensions of the information contained in the network access data to be analyzed is less than or equal to the number of dimensions of the information contained in the historical access events in the historical access data.
[0035] The event probability of each historical access event is determined based on historical access data. The event probability of a historical access event is the percentage of the frequency of that historical access event occurring within a preset time period relative to all historical access events. The alarm threshold for abnormal access events is determined based on the event probability of each historical access event. The historical access data obtained is the data after the abnormal access event is raised. In other words, the historical access data contains normal access data that meets the requirements. Therefore, the event probability of each historical access event in the historical access data is the probability that normal access data would occur. Therefore, the minimum event probability among all historical access events can be determined as the alarm threshold for abnormal access events. Because network access users and related equipment may be adjusted, such as employee resignations leading to the revocation of relevant permissions or equipment upgrades and scrapping, normal and abnormal access behaviors may fluctuate. Therefore, low-probability events within a preset time period may also be abnormal access events. Therefore, the alarm threshold can also be adjusted based on the minimum event probability among all historical access events. Based on the event probability and alarm threshold of each historical access event, a baseline model corresponding to the preset time period is determined.
[0036] In this embodiment, historical access data can be acquired and stored in real time, and a baseline model can be determined based on offline analysis of the historical access data. When abnormal access events are then identified (analyzed) based on the baseline model, the analysis process is simpler, more stable, and faster because the baseline model contains stable data.
[0037] S102: Input the network access data into the baseline model to obtain the event probability corresponding to the network access data.
[0038] Specifically, the baseline model within a preset time period includes the event probability and alarm threshold of each historical access event, so the network access data is input into the preset baseline model to confirm the event probability of the event corresponding to the network access data.
[0039] In one embodiment, referring to FIG3 , step S102 includes: S301, analyzing access information in each dimension of the network access data; S302, matching the access information in each dimension of the network access data with the information in each dimension of each historical access event in the baseline model; S303, if the target access event in the baseline model and the network access data have identical information in each dimension, determining the event reference probability of the target access event to be the event probability of the network access data. Furthermore, step S102 includes: S304, if no target access event in the baseline model has identical information in each dimension with the network access data, determining the event probability of the network access data to be zero.
[0040] Specifically, the access information of each dimension in the network access data is analyzed. The access information is used to match the information of each dimension of each historical access event in the baseline model. Therefore, the dimensions of the required access information are determined based on the dimensions of the historical access events in the baseline model. For example, if a historical access event includes information of five dimensions: account number, terminal ID, network access destination address, network access destination port, and process name information (that initiates network access), then the access information also needs to include information of five dimensions: account number, terminal ID, network access destination address, network access destination port, and process name information (that initiates network access). It should be noted that the access information may contain information of some or all dimensions in the historical access event.
[0041] Match the access information with the information of the same dimensions of historical access events in the baseline model one by one. If the information of each dimension of a historical access event in the baseline model is the same as the information of each dimension of the access information, then the historical access event is determined to be the target access event, that is, the event corresponding to the access information has occurred within the preset time period, and the event reference probability of the target access event is the event probability corresponding to the network access data.
[0042] If there is no historical access event in the baseline model in which the information in each dimension is identical to the information in each dimension of the access information, that is, the historical access events in the baseline model are different from the information in at least one dimension of the access information, it means that the event corresponding to the access information has not occurred within the preset time period, and therefore the probability of the event corresponding to the network access data is determined to be zero.
[0043] S103: When the event probability is less than or equal to the alarm threshold, an alarm is issued for the network access data.
[0044] Specifically, when the event probability corresponding to the network access data is less than or equal to the alarm threshold, an alarm is issued for the network access data. Since the alarm threshold of the baseline model is freely set according to demand based on the minimum event probability of each historical access event in the baseline model, if the alarm threshold is set to be less than the minimum event probability of each historical access event in the baseline model, the network access data for which the alarm is issued has not occurred within the preset time period, and its event probability is zero. If the alarm threshold is set to be greater than or equal to the minimum event probability of each historical access event in the baseline model, the network access data for which the alarm is issued may not have occurred within the preset time period, and its event probability is zero, or it may have occurred, but the number of times is small and the probability is low, so it needs to be reviewed. The network access data for which the alarm is issued can be marked for review, and manual or other analytical means can be used to further determine whether it is an abnormal access event.
[0045] In some embodiments, issuing an alert for network access data may include marking the network access data, or sending an alert message to a terminal device or a server for the current network access data.
[0046] Embodiments of the present application provide a method for analyzing network access data. By inputting network access data into a baseline model, the corresponding event probability of the network access data can be obtained. When the event probability is less than or equal to the alarm threshold, an alarm is generated for the network access data. This allows analysis and identification of abnormal access events in the current network access data even when an account login is successful, thereby improving network access security. Furthermore, because the baseline model contains stable data, the analysis process can be simpler, more stable, and faster.
[0047] In some embodiments, the network access data analysis method further includes: if the event probability is zero, determining a zero probability dimension based on the network access data and a baseline model.
[0048] Specifically, if the event probability corresponding to the network access data is zero, it indicates that the network access data did not occur within the aforementioned preset time period. Because network access data may contain information from multiple dimensions, it is necessary to further identify the one or more dimensions that lead to zero probability, namely the zero-probability dimensions. A zero-probability dimension is one where the network access data and the baseline model do not match. Therefore, the zero-probability dimension is determined based on the network access data and the baseline model, and then used to identify risky behaviors such as hacker access.
[0049] In one embodiment, referring to FIG4 , if the event probability is zero, the step of determining a zero-probability dimension based on the network access data and the baseline model includes: S401: If the event probability is zero and the network access data contains information on one dimension, determining the dimension contained in the network access data as a zero-probability dimension. Furthermore, the aforementioned step also includes: S402: If the event probability is zero and the network access data contains information on multiple dimensions, determining information on any number of dimensions in the network access data as a target event; S403: When the event probability of the target event is non-zero, determining dimensions of non-target events in the network access data as zero-probability dimensions.
[0050] Specifically, network access data can contain information from one or more dimensions. If network access data only contains information from one dimension and the event probability for the network access data is zero, then the information corresponding to that dimension does not exist in the baseline model. For example, if network access data only contains information from one dimension, namely, an account number, and the event probability for the network access data is zero, then this indicates that the account is not an existing account and may have been accessed without authorization or by a hacker. Therefore, the account is subject to verification.
[0051] If network access data contains information across multiple dimensions, and the event probability of the network access data is zero, then one or more of the multiple dimensions are zero-probability dimensions. Therefore, information from any number of dimensions in the network access data is randomly selected as the target event, where this number of dimensions is less than the total number of dimensions contained in the network access data. If the event probability of a target event is not zero, then one or more of the dimensions of the non-target event are zero-probability dimensions. By traversing all target events arranged in any number of dimensions, the zero-probability dimensions can be determined.
[0052] In one embodiment, the network access data contains information of N dimensions, and the target events include one-dimensional events to N-1-dimensional events, where N is a positive integer greater than or equal to 2. The N-1-dimensional event corresponds to a combination of information of N-1 dimensions in the N-dimensional information. Referring to Figure 5, step S403 includes: S501, traversing the event probabilities of all N-1-dimensional events; S502, when the event probability of a certain N-1-dimensional event is non-zero, determining that the dimension of the non-N-1-dimensional event in the network access data is a zero-probability dimension; S503, when the event probability of all N-1-dimensional events is zero, traversing the event probabilities of all N-2-dimensional events; S504, when the event probability of a certain N-2-dimensional event is non-zero, determining that both dimensions of the non-N-2-dimensional event in the network access data are zero-probability dimensions; S505, when the event probability of all N-2-dimensional events is zero, traversing the event probabilities of all N-3-dimensional events until a zero-probability dimension is determined.
[0053] Specifically, when the network access data contains information of multiple dimensions, that is, the network access data contains information of N dimensions, where N is a positive integer greater than or equal to 2. The target event contains information of any number of dimensions in the randomly selected network access data, where any number of dimensions is less than the total number of dimensions of the information contained in the network access data. Therefore, the target event includes events of one dimension to events of N-1 dimensions.
[0054] First, the event probabilities of all N-1 dimensional events are traversed. If the event probability of a certain N-1 dimensional event is non-zero, the dimension of the non-N-1 dimensional event in the network access data is determined to be a zero-probability dimension, and there is no need to continue searching for zero-probability dimensions. If the event probabilities of all N-1 dimensional events are zero, it means that at least two dimensions are zero-probability dimensions, so the event probabilities of all N-2 dimensional events are traversed. Similarly, if the event probability of a certain N-2 dimensional event is non-zero, it is determined that both dimensions of the non-N-2 dimensional event in the network access data are zero-probability dimensions, and there is no need to continue searching for zero-probability dimensions. If the event probabilities of all N-2 dimensional events are zero, it means that at least three dimensions are zero-probability dimensions, so the event probabilities of all N-3 dimensional events are traversed. And so on, gradually decreasing from N-1 dimensional events to one-dimensional events, until a zero-probability dimension is determined and stopped. If the event probabilities of all one-dimensional events are zero, it means that all dimensions are zero-probability dimensions.
[0055] In one embodiment, referring to FIG6 , step S201 includes: S601 , obtaining initial access data within a preset time period; S602 , if an alarm event exists in the initial access data, obtaining review information of the alarm event; S603 , if the review information is an abnormal access event, deleting the abnormal access event from the initial access data to obtain historical access data.
[0056] Specifically, initial access data for a preset time period is obtained. Initial access data refers to all network request data occurring during that time period. If an alarm event is present in the initial access data, this alarm event may be an abnormal access event or a false alarm. Therefore, verification information regarding the alarm event is obtained. If the verification information indicates an abnormal access event, the abnormal access event is removed from the initial access data to obtain historical access data, ensuring that the baseline model is determined based on normal access events.
[0057] It should be noted that, on this basis, setting the alarm threshold to be less than the minimum event probability of all historical access events in the baseline model can ensure that the access events identified are those that have not occurred within the preset period, thereby reducing the probability of false alarms.
[0058] In one embodiment, referring to FIG. 7 , after step S203 , the network access data analysis method further includes: S701 , acquiring new historical access data within a preset time period after a preset period; and S702 , updating a baseline model according to the new historical access data.
[0059] Specifically, as network access users and related devices may be adjusted over time, such as when employees leave the company, resulting in the revocation of relevant permissions, or when equipment is updated and scrapped, normal and abnormal access behaviors may fluctuate. Therefore, new historical access data within a preset time period after a preset period can be obtained and used to update the baseline model based on this new historical access data. The preset time period after the preset period depends on the update cycle of the user's baseline model. For example, if the update cycle is one day, then new historical access data generated on that day will be input into the baseline model at a fixed time each day for updating.
[0060] Furthermore, to prevent the baseline model from including historical access data that is too far from the current time, which would otherwise reduce data reliability, at least some of the historical access data in the baseline model can be periodically deleted to prevent the baseline model from including historical access data that is too far from the current time. For example, the time span of the historical access data in the baseline model can be kept constant. For example, when new historical access data generated on a new day is input into the baseline model, the historical access data for the day furthest from the current time is correspondingly deleted from the baseline model.
[0061] This embodiment analyzes real-time network access data to be analyzed based on a baseline model determined by historical access data within a preset time period. This allows for the timely identification of abnormal access events within the data and the issuance of alerts. Furthermore, the zero-probability dimension of zero-probability abnormal access events is analyzed, providing a basis for causal analysis and facilitating the implementation of appropriate preventative strategies.
[0062] As shown in FIG8 , an embodiment of the present application provides a method for analyzing network access data, which may include the following multiple stages.
[0063] Data collection phase: The enterprise terminal proxy gateway log is centralized on the server to collect the user's network proxy access records, and the collected data is sent to the real-time data stream Kafka.
[0064] Offline training phase: Data in the real-time data stream Kafka will be persisted to HDFS (Hadoop Distributed File System). Historical access data will be obtained from HDFS and a baseline model will be trained daily. The baseline model training results will be updated and saved in the training results database.
[0065] Real-time prediction phase: 1. Read the latest updated baseline model in real time, and read the new proxy access data in the real-time data stream Kafka, that is, the network access data to be analyzed. Use the baseline model to calculate the network access data to be analyzed and determine whether to issue an alarm. The alarm data will be pushed to the new Kafka real-time data stream, that is, the real-time alarm pool. 2. Perform zero-probability dimension attribution calculation on the alarm records of zero-probability events in the alarm pool to obtain a combination of zero-probability dimensions, and add the combination information to the alarm record.
[0066] Real-time alarm stage: The final alarm results are stored in the database and pushed to the work order system.
[0067] Alarm Analysis Phase: The generated work order will be further handled by the relevant security operations personnel. This concludes the entire process.
[0068] 9 , the above-mentioned network access data analysis method specifically includes the following steps.
[0069] Step S1 (Data Collection): Collect user network proxy access records collected by the terminal proxy gateway software and store them persistently. The enterprise terminal gateway proxy access log is historical access data, which includes the account number, terminal ID, network access destination address, network access destination port, and the process name (initiating the network access).
[0070] Step S2 (offline training phase): Extract information from historical access data for each network proxy access event (i.e., historical access event) in five dimensions: access account, terminal ID, network access destination address, network access destination port, and the process name (initiating the network access). Model the historical access data, calculate the probability of each event, and determine the event alarm threshold (baseline) based on the event probability to establish a baseline model. An alarm is triggered when the event probability of the network access data to be analyzed is less than or equal to the alarm threshold.
[0071] Step S3 (including the real-time prediction stage, the real-time alarm stage, and the alarm analysis stage): input the network access data to be analyzed into the baseline model, and issue an alarm for events whose model-predicted event probability is less than or equal to the alarm threshold; when the model-predicted event probability is zero (i.e., a zero-probability event), determine the zero-probability dimension based on the dimensional attribution algorithm, and add the attribution result information to the alarm information; finally, output the alarm event to the work order system.
[0072] Step S4: Iterate the model daily to keep it up to date, ensure the accuracy of the prediction results and reduce false positives.
[0073] Furthermore, step S1 specifically includes the following steps:
[0074] ① Through the log centralization server of the proxy gateway software, collect the real-time data of users accessing the network through the proxy gateway and send it to the real-time data queue Kafka;
[0075] ② Create a new program to save the log data in the Kafka queue to the big data cluster (HDFS) in real time as historical access data for model building.
[0076] Step S2 specifically includes the following steps:
[0077] ① Extract five dimensions of information from historical access data: access account, terminal ID, network access destination address, network access destination port, and the process name (initiating the network access). Model the event and set an alarm threshold (baseline). The dimensional information contained in the historical access data is shown in Table 1.
[0078] Table 1 Dimension information contained in historical access data
[0079] The relevant terms in the modeling steps are explained as follows:
[0080] Definition of risk: "Abnormal access events" are statistically low-probability events. That is, the lower the probability of the event occurring, the higher the "risk" of the event: Where Risk(event) is the risk value of event event, P(event) is the probability of event occurrence, and K(event) is an adjustment item related to the specific event; K(event) is set to 1 in this scheme, that is, the risk value is only inversely proportional to the probability of event occurrence.
[0081] Alarm baseline: When the risk value of an event, Risk(event), exceeds a pre-set threshold, Tr, an alarm is triggered. In practical applications, the risk value of an event is usually described by a probability, P(event), so the threshold, Tr, is described by a probability.
[0082] The modeling process can be found in the following:
[0083] The model may specifically be a terminal proxy gateway account risk detection baseline model.
[0084] Taking a user's account (access account) as an example, let the network proxy access event L be: access account U i , in terminal D i , access the destination network address IP i and the corresponding port i , the corresponding access process is Proc i .
[0085] The probability of the network proxy access event L is: P(L)=P(U i ,D i ,IP i ,Port i ,Proc i )=P(U i )·P(D i |U i )·P(IP i |D i ,U i )·P(Port i |IP i ,D i ,U i )·P(Proc i |Port i ,IP i ,D i ,U i )
[0086] Among them, P(U i ):For access account U i The probability of initiating network proxy access;
[0087] P(D i |U i ):For access account U i When initiating network proxy access, the access terminal used is D i probability;
[0088] P(IP i |D i ,U i ):For access account U i Use terminal D i When initiating a network proxy access, the destination IP address is IP i probability;
[0089] P(Port i |IP i ,D i ,U i ):For access account U i Using Terminal D i Access address IP i When the destination port is Port i probability;
[0090] P(Proc i |Port i ,IP i ,D i ,U i ):For access account Ui Using Terminal D i Access address IP i and Port i When the process used is Proc i probability;
[0091] The solution to each of the above probability terms is approximately the percentage of the statistical frequency of the corresponding event. Specifically, the calculation process of each probability term can be seen in the description below.
[0092] 2.1、P(U i ) calculation process
[0093] Assume that the enterprise has a total of N terminal agent accounts, and the i-th one is recorded as U i , in a period of history (6 months), account U i The total number of network proxy access events initiated is w i Then account number U i The probability of initiating network proxy access is: The denominator is the total number of network proxy access events initiated by all accounts.
[0094] 2.2 P(D i |U i ) calculation process
[0095] Now known account U i The total number of network proxy access events initiated is w i , let w i There is w id The number of network proxy access events is account U i In terminal machine D i If it is initiated on
[0096] 2.3 P(IP i |D i ,U i ) calculation process
[0097] Let w i,d Among the number of network proxy access events, there are w i,d,ip The number of network proxy access events with the destination IP address being IP i ,but:
[0098] 2.4、P(Port i |IP i ,D i ,U i ) calculation process
[0099] Let w i,d,ip Among the number of network proxy access events, there are a total of wi,d,ip,port. The destination port of the network proxy access events is Port. i ,but:
[0100] 2.5、P(Proc i |Port i ,IP i ,D i ,U i ) calculation process
[0101] Assume that among the network proxy access events with the number of wi,d,ip,port, there are a total of network proxy access events with the number of wi,d,ip,port,proc caused by the process Proc i If initiated, then:
[0102] 2.6 Final formula
[0103] P(L) is the product of the above five results. After eliminating the numerator and denominator of the intermediate formula, we have:
[0104] At this point, we have determined the probability of a network proxy access event, P(L). Since we need to determine whether the event is an abnormal access event based on the probability, we will now define an alert threshold for abnormal access events. Specifically, when P(L) is small enough to reach the defined threshold, the risk is considered high and warrants an alert.
[0105] 2.7. Alarm Threshold Definition
[0106] The minimum probability of all network proxy access events in the business system can be defined as the alarm threshold Tr for network proxy access events. Specifically, Tr = min[P(L)], where L is any network proxy access event in the business system. The alarm threshold is also called the event risk baseline, and this model is also called the baseline model.
[0107] 2.8 Alarm Events
[0108] When any network agent accesses an event L and its event probability P(L)≤Tr, an alarm is issued for the event.
[0109] Step S3 specifically includes the following steps:
[0110] ① Using the baseline model described in step S2 to predict the newly generated network access data to be analyzed, and issuing an alarm for events that meet the alarm threshold rules;
[0111] ② When the baseline model's prediction result (i.e., the event probability of a new event) is zero, the zero-dimensional attribution algorithm is used to attribute the event dimension and the attribution result is added to the alert;
[0112] ③If the prediction result of the baseline model (i.e., the probability of the new event occurring) is greater than zero, there is no need to proceed to step ②;
[0113] ④ Push the final alarm result to the work order system for confirmation and investigation by security operations personnel.
[0114] The baseline model output and prediction results can be seen in the description below.
[0115] After the above statistical calculations, the output of the baseline model is an event statistics table, an example of which is shown in Table 2:
[0116] Table 2 Output results of the baseline model
[0117] During prediction, you can extract five dimensional fields from the real-time network access data to be analyzed and compare them with the model's result table. Alerts will be generated in the following situations:
[0118] When real-time records can match corresponding results from model results through dimension fields and their event probability P≤Tr, an alarm is issued for the current record;
[0119] If no matching result can be found from the model results through the dimension field in the real-time record, it means that the probability of the current event P(L) = 0, and an alarm is also issued for the current record; the prediction result record of the baseline model is shown in Table 3 below.
[0120] Table 3 Prediction results of the baseline model
[0121] Example description:
[0122] Example 1: This event can be matched in Table 2, and the event probability is 0.001, which is greater than the Tr value of 0.0001. Therefore, the alarm result is "normal";
[0123] Example 2: This event can be matched in Table 2, and the event probability is 0.0001, which is equal to the Tr value of 0.0001. Therefore, the alarm result is "alarm";
[0124] Example 3: This event cannot find a matching result in Table 2, so the probability is 0, which is less than the Tr value of 0.0001, so the alarm result is "alarm";
[0125] Example 4: This event cannot find a matching result in Table 2, so the probability is 0, which is less than the Tr value of 0.0001, so the alarm result is "alarm".
[0126] The specific content of the zero-probability dimensional attribution algorithm (dimensional attribution) can be found in the description below.
[0127] When the historical probability of a network proxy access event is zero, P(L) = 0. According to the probability formula of event L: P(L) = P(U i ,D i ,IP i ,Port i ,Proc i )=P(U i )·P(D i |U i )·P(IP i |D i ,U i )·P(Port i |IP i ,D i ,U i )·P(Proc i |Port i ,IP i ,D i ,U i ), in the multiplication formula, P(L) is composed of 5 factors, among which there must be one or more multiplication factors with a value of 0, so that the result of P(L) is 0.
[0128] In actual applications, the five factors correspond to five different event dimensions, that is, to different business meanings, and some dimensions are more important. For example, according to the actual business regulations, employee accounts can only log in and access the network on authorized personal computers. If P(L) = 0, it is because the factor P(D i |U i ) is 0, it means that the user has initiated proxy access on a new terminal, so it can be said that the user account is at risk of being stolen or illegally logged in. For example, if P(Port i |IP i ,D i ,U i )=0, it means that the user accessed a new port of the destination IP address, which is common in actual business scenarios, so the risk is relatively low.
[0129] Therefore, when the probability of an event is 0, it is necessary to clarify and distinguish which factors lead to the probability of the event being 0, so as to provide risk analysis guidance for subsequent work order event analysis.
[0130] Specifically, the following algorithm can be used to calculate the zero probability dimension:
[0131] (1) Perform baseline model training on historical data to obtain event statistics results table;
[0132] (2) Extracting 5 dimensions from new events: U i ,D i ,IP i ,Port i ,Proc i ;
[0133] (3) Randomly select the values of 4 dimensions from the 5 dimensions to form a combination, for a total of 5 combinations; traverse each dimension combination and search by dimension matching in the statistical result table of the model. If any one of the 5 combinations can be found, then one dimension other than the combination (4 dimensions) in the 5 dimensions is determined as a zero-probability dimension and the search is stopped; otherwise (none of the 5 combinations can match the corresponding results), proceed to step (4) and continue to search for the zero-probability dimension;
[0134] (4) Randomly select the values of three dimensions from the five dimensions to form a combination, for a total of 10 combinations; traverse each dimension combination and search by dimension matching in the statistical result table of the model. If any one of the 10 combinations can be found, the two dimensions other than the combination (three dimensions) in the five dimensions are determined as zero-probability dimensions and the search is stopped; otherwise (none of the ten combinations can match the corresponding results), proceed to step (5) and continue to search for zero-probability dimensions;
[0135] (5) Randomly select the values of two dimensions from the five dimensions to form a combination, for a total of 10 combinations; traverse each dimension combination and search by dimension matching in the statistical result table of the model. If any one of the 10 combinations can be found, the three dimensions other than the combination (two dimensions) in the five dimensions are determined as zero-probability dimensions and the search is stopped; otherwise (none of the 10 combinations can match the corresponding results), proceed to step (6) and continue to search for zero-probability dimensions;
[0136] (6) Choose any one of the five dimensions, a total of five; traverse each dimension and search by dimension matching in the statistical result table of the model. If any one of the five dimensions can be found, the other four dimensions (one dimension) in the five dimensions are determined as zero-probability dimensions, and the search is stopped; otherwise (none of the five dimensions can be matched to the corresponding results), all five dimensions are determined as zero-probability dimensions, and the search is stopped.
[0137] In the above steps, when matching and searching a certain combination in the model by dimension, all dimensions in the combination must be matched in at least one record in the model record table (statistical result table) in order to find the dimension combination in the model.
[0138] Example description:
[0139] Table 3, Example 3: The probability of this event is 0. According to the attribution algorithm, the combination of four dimensions (01102798, 120.79.2.10, 8080, chrome.exe) matches the model statistics table (see Table 2). Therefore, the remaining dimension (DeviceId) 06WDSF has a zero probability dimension. The attribution results indicate that this account accessed the network through a proxy on a new terminal.
[0140] Table 3, Example 4: The probability of this event is 0. According to the attribution algorithm, the combination of two dimensions (01102798, 11TMSF) matches the model statistics table, so the remaining dimensions (IP, port, proc) have zero probability. The attribution results indicate that this account accessed an unknown network address (and port) through a proxy using an unknown network process.
[0141] Step S4 specifically includes the following steps:
[0142] ① Set up a daily scheduled computing task so that the model training task is executed once every night. Each time it is executed, the newly generated network access data during the day will be included in the training scope as new historical access data, thereby updating the daily model results; the model results updated the previous night will be loaded, and the updated model will be used to predict the newly generated network access data to be analyzed the next day.
[0143] As shown in Figure 10, an embodiment of the present application provides a network access data analysis device 1000, including: a data acquisition module 1010, used to acquire network access data; a probability analysis module 1020, which is communicated with the data acquisition module 1010 and is used to input the network access data into a baseline model to obtain the event probability corresponding to the network access data, and the baseline model is determined based on historical access data within a preset time period; an event alarm module 1030, which is communicated with the probability analysis module 1020 and is used to issue an alarm for the network access data when the event probability is less than or equal to the alarm threshold.
[0144] In some embodiments of the present application, the network access data analysis device 1000 further includes an attribution analysis module 1040 , which is in communication with the event alarm module 1030 and is configured to determine a zero probability dimension based on the network access data and the baseline model if the event probability is zero.
[0145] In some embodiments of the present application, the attribution analysis module 1040 is used to: if the event probability is zero, and the network access data contains information of one dimension, determine that the dimension contained in the network access data is a zero-probability dimension.
[0146] In some embodiments of the present application, the attribution analysis module 1040 is also used to: if the event probability is zero, and the network access data contains information of multiple dimensions, then determine that information of any number of dimensions in the network access data is a target event; when the event probability of the target event is non-zero, determine that the dimension of the non-target event in the network access data is a zero probability dimension.
[0147] In some embodiments of the present application, the network access data includes information in N dimensions, and the target events include events in one dimension to events in an N-1 dimension. The N-1 dimension event corresponds to a combination of information in N-1 dimensions within the N-dimensional information, where N is a positive integer greater than or equal to 2. The attribution analysis module 1040 is configured to: traverse the event probabilities of all N-1 dimension events; when the event probability of a certain N-1 dimension event is non-zero, determine that a dimension of a non-N-1 dimension event in the network access data is a zero-probability dimension; when the event probabilities of all N-1 dimension events are zero, traverse the event probabilities of all N-2 dimension events; when the event probability of a certain N-2 dimension event is non-zero, determine that both dimensions of the non-N-2 dimension event in the network access data are zero-probability dimensions; and when the event probabilities of all N-2 dimension events are zero, traverse the event probabilities of all N-3 dimension events until a zero-probability dimension is determined.
[0148] In some embodiments of the present application, the probability analysis module 1020 is further configured to: obtain historical access data within a preset time period, the historical access data including at least one historical access event, each of the at least one historical access event including information from any one or more dimensions of access initiator, access target, and access path; determine the event probability of the historical access event based on the historical access data; and determine an alarm threshold based on the event probability of the historical access event. The baseline model includes the event probability and alarm threshold for the historical access event.
[0149] In some embodiments of the present application, the probability analysis module 1020 is used to: analyze the access information of each dimension in the network access data; match the access information of each dimension in the network access data with the information of each dimension of each historical access event in the baseline model; if the target access event in the baseline model and the network access data have the same information in each dimension, then determine that the event reference probability of the target access event is the event probability of the network access data.
[0150] In some embodiments of the present application, the probability analysis module 1020 is further configured to: if the information of the targetless access event in the baseline model and the network access data in each dimension is identical, then determine that the event probability of the network access data is zero.
[0151] In some embodiments of the present application, the probability analysis module 1020 is used to: obtain initial access data within a preset time period; if there is an alarm event in the initial access data, obtain review information of the alarm event; if the review information is an abnormal access event, delete the abnormal access event from the initial access data to obtain historical access data.
[0152] In some embodiments of the present application, the probability analysis module 1020 is further configured to: obtain new historical access data within a preset time period after a preset period; and update the baseline model according to the new historical access data.
[0153] In some embodiments of the present application, the initiating end information includes at least one of the account, terminal identification, network port and time, the access target end information includes at least one of the network access destination address and network access destination port, and the access path information includes the process name information that initiates the network access.
[0154] In some embodiments of the present application, the alarm threshold is greater than or equal to the minimum event probability corresponding to at least one historical access event in the baseline model.
[0155] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0156] For example, the computer device shown in FIG11 can execute step S101 via the data acquisition module 1010 in the network access data analysis apparatus 1000 shown in FIG10 . The computer device can execute step S102 via the probability analysis module 1020 . The computer device can execute step S103 via the event alarm module 1030 . Furthermore, the computer device can execute the following steps via the attribution analysis module 1040: If the event probability is zero, determining a zero probability dimension based on the network access data and a baseline model. The computer device includes a processor, memory, and a network interface connected via a system bus. The processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and computer program in the non-volatile storage medium to run. The network interface of the computer device is configured to communicate with external computer devices via a network connection. When executed by the processor, the computer program implements a method for analyzing network access data.
[0157] Those skilled in the art will understand that the structure shown in FIG11 is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0158] In some embodiments of the present application, a computer device is provided, comprising one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and configured to execute the steps of the aforementioned network access data analysis method by the processor. The steps of the network access data analysis method herein may be the steps of the network access data analysis method in each of the aforementioned embodiments.
[0159] In some embodiments of the present application, a computer-readable storage medium 1200 is provided. As shown in FIG12 , the computer-readable storage medium 1200 stores a computer program 1210. The computer program is loaded by a processor, causing the processor to execute the steps of the network access data analysis method described above. The steps of the network access data analysis method herein may be the steps of the network access data analysis method described in each of the above embodiments. In addition, the computer-readable storage medium shown in FIG12 is only one embodiment of a computer-readable storage medium, and its structure is not restrictive. The embodiments of the present application do not specifically limit the structure of the computer-readable storage medium.
[0160] A person of ordinary skill in the art will appreciate that all or part of the processes in the above-described embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-described methods. Any reference to memory, storage, database or other media used in the embodiments provided herein may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0161] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0162] The above is a detailed introduction to a network access data analysis method, device, computer equipment and storage medium provided in the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core ideas. At the same time, for technical personnel in this field, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present application.
Claims
1. A network access data analysis method, characterized in that: include: Get network access data; Inputting the network access data into a baseline model to obtain event probabilities corresponding to the network access data, wherein the baseline model is determined based on historical access data within a preset period of time; When the event probability is less than or equal to an alarm threshold, an alarm is issued for the network access data.
2. The network access data analysis method according to claim 1, characterized in that: Also includes: If the event probability is zero, a zero probability dimension is determined according to the network access data and the baseline model.
3. The network access data analysis method according to claim 2, characterized in that: If the event probability is zero, determining a zero probability dimension according to the network access data and the baseline model includes: If the event probability is zero, and the network access data includes information of one dimension, it is determined that the dimension included in the network access data is the zero-probability dimension.
4. The network access data analysis method according to claim 3, characterized in that: If the event probability is zero, determining a zero probability dimension according to the network access data and the baseline model, further comprising: If the event probability is zero, and the network access data contains information of multiple dimensions, then determining information of any number of dimensions in the network access data as a target event; When the event probability of the target event is non-zero, the dimension of the non-target event in the network access data is determined to be the zero probability dimension.
5. The network access data analysis method according to claim 4, characterized in that: The network access data includes information of N dimensions, the target event includes events of one dimension to N-1 dimensions, the N-1 dimension event corresponds to a combination of information of N-1 dimensions in the information of the N dimensions, N is a positive integer greater than or equal to 2, and when the event probability of the target event is non-zero, determining that the dimension of the non-target event in the network access data is the zero-probability dimension includes: Traverse the event probabilities of all N-1 dimensional events; When the event probability of a certain N-1 dimensional event is non-zero, determining the dimension of the network access data other than the N-1 dimensional event as the zero probability dimension; When the event probabilities of all N-1 dimensional events are zero, traverse the event probabilities of all N-2 dimensional events; When the event probability of a certain N-2 dimensional event is non-zero, determining that two dimensions other than the N-2 dimensional event in the network access data are both the zero probability dimensions; When the event probabilities of all N-2 dimensional events are zero, the event probabilities of all N-3 dimensional events are traversed until the zero probability dimension is determined.
6. The network access data analysis method according to any one of claims 1 to 5, characterized in that: Before obtaining the network access data, the network access data analysis method further includes: Acquire the historical access data within the preset time period, the historical access data including at least one historical access event, each of the at least one historical access event including information of any one or more dimensions of access initiator information, access target information, and access path information; Determining the event probability of the historical access event according to the historical access data; Determine the alarm threshold according to the event probability of the historical access event, The baseline model includes the event probability of the historical access event and the alarm threshold.
7. The network access data analysis method according to claim 6, characterized in that: The step of inputting the network access data into a baseline model to obtain event probabilities corresponding to the network access data includes: Analyzing access information of various dimensions in the network access data; Matching the access information of each dimension in the network access data with the information of each dimension of each historical access event in the baseline model; If the target access event in the baseline model has the same information as the network access data in each dimension, then the event reference probability of the target access event is determined to be the event probability of the network access data.
8. The network access data analysis method according to claim 7, characterized in that: The step of inputting the network access data into a baseline model to obtain event probabilities corresponding to the network access data further includes: If the information of the targetless access event in the baseline model and the network access data in each dimension is the same, then it is determined that the event probability of the network access data is zero.
9. The network access data analysis method according to any one of claims 6 to 8, characterized in that: The acquiring the historical access data within the preset time period includes: Acquiring initial access data within the preset time period; If there is an alarm event in the initial access data, obtaining review information of the alarm event; If the review information is an abnormal access event, the abnormal access event is deleted from the initial access data to obtain the historical access data.
10. The network access data analysis method according to any one of claims 6 to 9, characterized in that: After determining the alarm threshold according to the event probability of the historical access event, the network access data analysis method further includes: Acquire new historical access data within a preset time period after the preset time period; The baseline model is updated according to the new historical access data.
11. The network access data analysis method according to any one of claims 6 to 10, characterized in that: The initiator information includes at least one of an account, a terminal identifier, a network port, and a time; the access target information includes at least one of a network access destination address and a network access destination port; and the access path information includes the process name information that initiates the network access.
12. The network access data analysis method according to any one of claims 6 to 11, characterized in that: The warning threshold is greater than or equal to a minimum event probability corresponding to the at least one historical access event in the baseline model.
13. A network access data analysis device, characterized in that: include: A data acquisition module, used to acquire network access data; A probability analysis module, which is in communication with the data acquisition module and is used to input the network access data into a baseline model to obtain event probabilities corresponding to the network access data, wherein the baseline model is determined based on historical access data within a preset period of time; The event alarm module is in communication with the probability analysis module and is used to generate an alarm for the network access data when the event probability is less than or equal to an alarm threshold.
14. A computer device, characterized in that: The computer device comprises: one or more processors; A memory; and one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the network access data analysis method according to any one of claims 1 to 12.
15. A computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to execute the steps in the network access data analysis method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Data abnormal access detection method and device
CN114760125A
Sensitive data access method, electronic equipment and computer readable storage medium
CN115378619A
Security Analytics System Configured to Instantiate User Behavior Baselines Using Historical Data Stored on an Endpoint Device
US20210297437A1
Cited By
Sensitive data security protection method and system
CN120162809A
Dynamic permission acquisition method for data use, electronic equipment and storage medium
CN120874094A
Self-adaptive regulation and control system for automobile part stamping production line
CN120909146A
