Traffic security analysis method, device, platform and storage medium
By determining the critical moment and intercepting the data of the corresponding period for analysis and troubleshooting when a traffic alarm occurs, the problem of low manual troubleshooting efficiency in the existing technology is solved, and efficient elimination of traffic anomalies is achieved.
Patent Information
- Application Number
- CN202410924275.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-11
AI Technical Summary
In the existing technology, manual troubleshooting of network traffic anomalies is less efficient and cannot effectively improve the efficiency of troubleshooting traffic anomalies.
By determining the first and second moments when a traffic alarm occurs, intercepting the Internet behavior data of the corresponding period, conducting statistical analysis and risk investigation, screening out the risk address data set, and further screening abnormal addresses based on comparison and investigation to improve investigation. efficiency.
By conducting risk inspection and comparison inspection on the first address data set, it is possible to effectively screen out risky or risk-free addresses, reduce the workload of subsequent inspections, and improve the efficiency of troubleshooting traffic anomalies.
Smart Images

Figure CN118487868B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of security technology, and in particular to a traffic security analysis method, device, platform and storage medium. Background Art
[0002] Network traffic security protection is widely used by different enterprise users. Routers are usually used to monitor user traffic. When the traffic exceeds the threshold, an alarm is issued to notify operation and maintenance personnel to conduct traffic anomaly inspection. However, manual inspection is inefficient. Summary of the invention
[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a flow security analysis method, device, platform and storage medium, which can perform flow anomaly investigation and improve the investigation efficiency.
[0004] On the one hand, an embodiment of the present invention provides a traffic security analysis method, including:
[0005] In the case of a flow alarm, a first moment and a second moment are determined, wherein the first moment is used to characterize the moment when the flow abnormality begins to occur or the moment of a preset length of time before the flow abnormality occurs, and the second moment is used to characterize the moment when the flow alarm is triggered;
[0006] intercepting first online behavior data and second online behavior data, wherein the first online behavior data is used to represent online behavior data between the first moment and the second moment, and the second online behavior data is used to represent online behavior data within a preset time period before the first moment;
[0007] Performing statistical analysis on the first online behavior data and the second online behavior data respectively to determine a first address data set and a second address data set;
[0008] Performing risk screening on the first address data set to determine a third address data set and a risk address data set, wherein the risk screening includes regional distribution screening and blacklist and whitelist screening;
[0009] Based on the second address data set, the third address data set is compared and checked to determine a fourth address data set.
[0010] According to some embodiments of the present invention, in the case where a flow alarm occurs, determining the first time and the second time includes:
[0011] In response to the flow alarm, determining a second time;
[0012] Acquire the flow data of a preset time period before the second moment;
[0013] Determining a flow rate change rate of the flow data based on a preset first analysis time interval;
[0014] The first moment is determined according to the flow rate change rate and a preset change rate threshold.
[0015] According to some embodiments of the present invention, the determining the first moment according to the flow rate of change and a preset rate of change threshold further includes:
[0016] Obtaining traffic data for a preset time period before and after the first moment;
[0017] Calculating a flow rate change rate of the flow data based on a preset second analysis time interval, wherein the second analysis time interval is smaller than the first analysis time interval;
[0018] The first time is updated according to the flow rate change rate and the change rate threshold.
[0019] According to some embodiments of the present invention, in the case where a flow alarm occurs, determining the first time and the second time includes:
[0020] In response to the flow alarm, determining a second time;
[0021] Acquire the flow data of a preset time period before the second moment;
[0022] Based on historical flow data, determine the average flow rate at the same period location;
[0023] The moment in the flow data at which the flow value is equal to the flow average value and is closest to the second moment is determined as the first moment.
[0024] According to some embodiments of the present invention, the first address data set and the second address data set contain the same fields, including source IP address, destination IP address, region to which the source IP address belongs, region to which the destination IP address belongs, access traffic, and number of visits.
[0025] According to some embodiments of the present invention, performing statistical analysis on the first online behavior data and the second online behavior data respectively to determine the first address data set and the second address data set includes:
[0026] Performing field extraction on the first online behavior data and the second online behavior data respectively to obtain a first intermediate data set and a second intermediate data set;
[0027] Based on the destination IP address, the first intermediate data set and the second intermediate data set are respectively merged to obtain the first address data set and the second address data set.
[0028] According to some embodiments of the present invention, comparing and checking the third address data set based on the second address data set to determine the fourth address data set may also include:
[0029] Perform a risk check on the second address data set and update the second address data set, wherein the risk check includes a regional distribution check and a blacklist and whitelist check.
[0030] In a second aspect, an embodiment of the present invention provides a traffic security analysis device, including:
[0031] A time determination module, used for determining a first time and a second time when a flow alarm occurs, wherein the first time is used to represent the time when the flow abnormality begins to occur, and the second time is used to represent the time when the flow alarm is triggered;
[0032] a data interception module, configured to intercept first online behavior data and second online behavior data, wherein the first online behavior data is used to represent online behavior data between the first moment and the second moment, and the second online behavior data is used to represent online behavior data within a preset time period before the first moment;
[0033] A statistical analysis module, used to perform statistical analysis on the first online behavior data and the second online behavior data respectively, to determine a first address data set and a second address data set;
[0034] A first screening module is used to perform risk screening on the first address data set to determine a third address data set and a risk address data set, wherein the risk screening includes regional distribution screening and blacklist and whitelist screening;
[0035] The second checking module is used to compare and check the third address data set based on the second address data set to determine a fourth address data set.
[0036] In a third aspect, an embodiment of the present invention provides a traffic security analysis platform, including a processor and a memory, wherein the memory stores a computer program, and the processor is used to implement the above-mentioned traffic security analysis method when running the computer program.
[0037] In a fourth aspect, an embodiment of the present invention provides a storage medium, in which a computer program is stored, and when the computer program is executed, the above-mentioned traffic security analysis method is implemented.
[0038] The embodiments of the present invention have at least the following beneficial effects:
[0039] By conducting a risk check on the first address data set, the third address data set and the risky address data set can be determined. By comparing and checking the third address data set based on the second address data set, risky addresses or risk-free addresses can be further screened out and the fourth address data set to be further checked can be determined, thereby eliminating traffic anomalies and improving the efficiency of the check.
[0040] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0042] Figure 1 A flow chart of the steps of the traffic security analysis method according to an embodiment of the present invention;
[0043] Figure 2 This is one of the schematic diagrams of flow rate and time changes in an embodiment of the present invention;
[0044] Figure 3 This is the second schematic diagram of flow rate and time changes in an embodiment of the present invention;
[0045] Figure 4 is a principle block diagram of a traffic security analysis device according to an embodiment of the present invention;
[0046] Figure 5 The figure is a principle block diagram of a traffic security analysis platform according to an embodiment of the present invention. DETAILED DESCRIPTION
[0047] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0048] In the description of the present invention, "several" means one or more, "multiple" means more than two, greater than, less than, and exceeding are understood as not including the number itself, and "above", "below", and "within" are understood as including the number itself. If there is a description of "first", "second", etc., it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0049] In the description of the present invention, unless otherwise clearly defined, words such as “configuration” and “setting” should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above words in the present invention in combination with the specific content of the technical solution.
[0050] Router devices are one of the widely used network hardware. In order to facilitate enterprises to manage network traffic, enterprises configure router devices between internal networks and external networks to collect traffic data, and upload the collected traffic data to the corresponding management platform to manage network traffic security. In related technologies, traffic monitoring methods mostly set traffic thresholds according to the needs of enterprise users. When the traffic exceeds the traffic threshold, an alarm is issued to notify the operation and maintenance personnel to conduct risk investigation. However, this investigation method has low work efficiency. For this reason, this embodiment proposes a traffic security analysis method, device, platform and storage medium, which can conduct traffic anomaly investigation and improve the investigation efficiency.
[0051] Please refer to Figure 1 This embodiment discloses a traffic security analysis method, including steps S100 to S500. It should be noted that the steps in this embodiment are numbered only for the convenience of review and understanding, rather than limiting the execution order of the steps. In actual applications, adaptive adjustments can be made based on the logical relationship between the steps. The contents of each step are described in detail below:
[0052] S100, in the case of a flow alarm, determining a first moment and a second moment, the first moment being used to characterize the moment when the flow abnormality begins to occur or the moment of a preset length of time before the flow abnormality occurs, and the second moment being used to characterize the moment when the flow alarm is triggered;
[0053] For example, different flow alarm thresholds are configured according to the needs of different users. When the actual flow value exceeds the flow alarm threshold, a flow alarm is issued. Of course, in order to avoid false alarms caused by instantaneous peak values, in actual applications, the alarm monitoring can be delayed. For example, please refer to Figure 2, the dotted line L1 represents the flow alarm threshold. If the actual flow value exceeds the flow alarm threshold (such as moment t3) and lasts for a period of time, a flow alarm is issued. The first moment is recorded as t1, the second moment is recorded as t2, and the moment when the flow abnormality begins to appear is recorded as t0. Then, in some application examples, t1=t0, that is, when a flow alarm occurs, forward analysis is performed to determine the moment when the flow abnormality begins to appear as the first moment; in other application examples, in order to improve the accuracy of data analysis, the buffer time tm can be configured, then t1=t0-tm, that is, when t0 is determined, the tm time is traced forward to obtain the first moment. It should be noted that the "forward" here is based on the time axis as a reference. For a certain moment on the time axis, the past time is "before" and the future time is "after".
[0054] S200, intercepting first online behavior data and second online behavior data, the first online behavior data being used to represent online behavior data between a first moment and a second moment, and the second online behavior data being used to represent online behavior data within a preset time period before the first moment;
[0055] Exemplarily, during operation, according to different routing speed limit strategies, in some application examples, when a traffic alarm is triggered, the router can limit the speed of the relevant port or stop the networking service, while in other application examples, when a traffic alarm is triggered, the router continues to provide networking services normally and continues to collect traffic data. The traffic data collected by the router is uploaded to the corresponding management platform, and the data is intercepted on the management platform. Of course, the traffic data can also be uploaded to the database, and the traffic data in the database can be called and intercepted on the management platform. Under normal circumstances, the traffic used by the user usually does not exceed the preset traffic threshold, and when traffic anomalies occur, some cases are due to frequent access or more bandwidth occupied by the same or similar IP addresses, resulting in a surge in traffic. Based on this, the Internet behavior data between the first moment and the second moment can be used as an analysis object to find out the IP addresses with risks, and the Internet behavior data within the preset time before the first moment can be used as a comparison object with lower risks to further reduce the number of investigation data. The preset duration can be determined based on experience or experiments. For example, the Internet behavior data within 1 hour, 1.5 hours or 3 hours before the first moment can be intercepted as the second Internet behavior data, or the Internet behavior data from 0:00 on the same day to the first moment can be intercepted as the second Internet behavior data. In actual applications, the format of the Internet behavior data can be customized, but usually includes information such as the source IP address, destination IP address, port number, access time, and the protocol used by the destination IP address. Of course, in some application scenarios, the URL (Uniform Resource Locator) of the application can be used as one of the parameters of the Internet behavior data through the router.
[0056] S300, performing statistical analysis on the first online behavior data and the second online behavior data respectively to determine a first address data set and a second address data set;
[0057] Exemplarily, the first online behavior data and the second online behavior data are both collected raw data, which are not convenient for direct analysis. Therefore, a statistical analysis is performed on the first online behavior data to determine the first address data set, and a statistical analysis is performed on the second online behavior data to determine the second address data set, so as to facilitate subsequent analysis based on the first address data set and the second address data set.
[0058] S400, performing risk screening on the first address data set to determine a third address data set and a risk address data set, wherein the risk screening includes regional distribution screening and blacklist and whitelist screening;
[0059] For example, for some users, their main business is in China, and the frequency of visits to overseas websites is low or even zero. Therefore, by checking the regional distribution of the destination IP address, it can be preliminarily determined whether the destination IP address is at risk; and by checking the blacklist and whitelist, it can be determined whether the destination IP address is at risk or belongs to a risk-free object in the whitelist. The destination IP addresses that are at risk or suspected of being at risk are stored in the risk address data set, and the risk level of the destination IP address is marked, and the corresponding source IP address and the protocol used are associated. Since both the regional distribution check and the blacklist and whitelist check require the user to pre-configure the corresponding comparison data, it is impossible to identify all destination IP addresses, which is a limited check. Therefore, the data that has not been risk checked in the first address data set is stored as the third address data set for further checking based on the second address data set.
[0060] S500: Based on the second address data set, compare and check the third address data set to determine a fourth address data set.
[0061] Exemplarily, since the second address data set is derived from the Internet behavior data before the first moment, and the traffic collected by the router before the first moment is within the normal range, it can be considered that the risk of the Internet behavior data before the first moment is very low. In this way, the second address data set is used as a reference object for comparison and investigation, and the destination IP addresses with no risk or low risk can be investigated to a certain extent, and the fourth address data set is obtained, which is conducive to reducing the workload of subsequent investigations and improving the efficiency of investigations. It should be noted that the risky address data set and the fourth address data set can be retrieved and displayed on the management platform. Of course, according to actual operation requirements, the fifth address data set with no risk or low risk during the investigation process can also be retrieved.
[0062] In the above scheme, the method of determining the second moment is relatively clear. However, the determination of the first moment has a greater impact on the accuracy and efficiency of data analysis. Therefore, it is necessary to reasonably determine the first moment to balance the accuracy and comprehensiveness of traffic security analysis. The following two schemes are provided:
[0063] The first solution is to analyze the traffic change rate based on intercepted traffic data:
[0064] Step S100, in the case of a flow alarm, determining a first time and a second time, comprising:
[0065] S110A, in response to a flow alarm, determining a second time;
[0066] S120A, obtaining flow data of a preset time period before a second moment;
[0067] S130A, determining a flow rate change rate of the flow data based on a preset first analysis time interval;
[0068] S140A. Determine a first moment according to a flow rate change rate and a preset change rate threshold.
[0069] Exemplarily, the determination condition of the second moment is relatively clear, therefore, the second moment is determined first, and then the first moment is determined with the second moment as the time reference. After determining the second moment, the flow data of a period of time before the second moment can be used as the analysis object, and the specific duration can be adaptively configured according to the actual application requirements. For example, in order to reduce the amount of data analysis, the flow data of half an hour before the second moment can be intercepted; and if in order to improve the comprehensiveness of the investigation, the flow data of 1 to 2 hours before the second moment can be intercepted. Since the acquired flow data is collected and uploaded by the router based on a certain sampling frequency, considering that some abnormal flows are disguised, that is, the flow change will gradually increase, therefore, by setting the first analysis time interval, the flow data is determined to obtain the flow change rate. For example, assuming that the sampling frequency of the router is 10 seconds, the first analysis time interval can be set to 30 seconds, 43 seconds, 55 seconds or 1 minute, etc., so that the flow change rate of the flow data can be more obvious. If the flow change rate at a certain moment is greater than or equal to the preset change rate threshold, the moment is determined as the first moment.
[0070] In the above scheme, the length of the first analysis time interval has a great influence on the accuracy of the first moment. In order to improve the accuracy of determining the first moment, step S140A determines the first moment according to the flow rate change rate and a preset change rate threshold, and then further includes:
[0071] S150A, obtaining flow data of a preset time period before and after the first moment;
[0072] S160A, calculating the flow rate change rate of the flow data based on a preset second analysis time interval, the second analysis time interval being smaller than the first analysis time interval;
[0073] S170A: Update the first moment according to the flow rate change rate and the change rate threshold.
[0074] Exemplarily, assume that the first analysis time interval is tn, and the first moment is denoted as t1. Then, the traffic data between the moments of t1 - N * tn and t1 + N * tn can be obtained, where N is a positive number. The second analysis time interval can be configured as k * tn, where 0 < k < 1. In this way, the traffic change rate of the traffic data can be calculated. When the traffic change rate at a certain moment is greater than the change rate threshold, that moment is determined as the first moment, i.e., t1 is updated. Of course, by adjusting the second analysis time interval multiple times and executing steps S150A to S170A, a more accurate first moment can be obtained, which is convenient for determining the attack time of abnormal traffic and is beneficial for operation and maintenance personnel to analyze.
[0075] The second solution is to analyze based on historical traffic data:
[0076] Step S100: In the case of a traffic alarm, determine the first moment and the second moment, including:
[0077] S110B: In response to the traffic alarm, determine the second moment;
[0078] S120B: Obtain the traffic data of a preset duration before the second moment;
[0079] S130B: Based on the historical traffic data, determine the traffic average value at the same cycle position;
[0080] S140B: Determine the moment closest to the second moment among the traffic values in the traffic data that are equal to the traffic average value as the first moment.
[0081] Exemplarily, the work of some users has strong regularity. For example, taking a week (7 days) as a work cycle, the traffic used on the same day of each week (such as Monday) is roughly the same. In this way, by analyzing the historical traffic data of multiple work cycles, the traffic average value corresponding to the day when the traffic alarm occurs (i.e., the same cycle position) can be determined. Please refer to Figure 3 , the dotted line L1 represents the traffic alarm threshold. Using the traffic average value (such as the dotted line L2) as a reference benchmark, one or more t1 (such as points A1, A2, and A3) can be determined. Considering that the traffic data may exceed the traffic average value instantaneously or in a short period of time, among one or more t1, the t1 closest to the second moment (such as t2) is determined as the first moment.
[0082] In some application examples, to improve the accuracy of determining the first moment, the above first solution and the second solution can be used simultaneously to determine t1, and the t1 obtained from the two solutions can be comprehensively used to determine the first moment, for example, based on principles such as the closest in time, the farthest in time, or the average in time.
[0083] The first address data set and the second address data set contain the same fields, including source IP address, destination IP address, region to which the source IP address belongs, region to which the destination IP address belongs, access traffic, and number of accesses.
[0084] Step S300, performing statistical analysis on the first online behavior data and the second online behavior data respectively to determine the first address data set and the second address data set, including:
[0085] S310, performing field extraction on the first online behavior data and the second online behavior data respectively to obtain a first intermediate data set and a second intermediate data set;
[0086] S320: Based on the destination IP address, merge the first intermediate data set and the second intermediate data set to obtain a first address data set and a second address data set.
[0087] Exemplarily, the online behavior data usually includes information such as the source IP address, the destination IP address, the port number, the access time, and the protocol used by the destination IP address. The first online behavior data is subjected to field extraction to obtain the first intermediate data set; the second online behavior data is subjected to field extraction to obtain the second intermediate data set. For example, the IP address contains information about the region to which it belongs, so the region to which the source IP address belongs can be determined based on the source IP address, and the region to which the destination IP address belongs can be determined based on the destination IP address. In the first intermediate data set, the data with the same destination IP address are merged, and the merging process counts the access traffic and access frequency of the IP address, thereby obtaining the first address data set; similarly, in the second intermediate data set, the data with the same destination IP address are merged to obtain the second address data set, so as to facilitate subsequent risk investigation.
[0088] S500: Based on the second address data set, the third address data set is compared and checked to determine a fourth address data set, which also includes:
[0089] S501. Perform risk screening on the second address data set and update the second address data set. The risk screening includes regional distribution screening and blacklist and whitelist screening.
[0090] For example, although the traffic before the first moment is considered safe by taking the first moment as the boundary, some abnormal traffic is disguised, so by conducting a risk check on the second address data set, the whitelist data in the second address data set can be removed and the second address data set can be updated; if a risky IP address or a potential risky IP address is found in the second address data set, the second address data set and the risky address data set are updated, and the trust level of the second address data set is updated. When the trust level is characterized as untrustworthy, the second moment is updated to the first moment, that is, t2=t1, and the moment corresponding to the risky address (recorded as t4) is determined as the first moment, that is, t1=t4, and the process returns to step S200 for re-checking.
[0091] In the above scheme, the traffic alarm may be issued after the actual traffic value exceeds the traffic alarm threshold and lasts for a period of time. Therefore, step S100 may also determine a third moment, which is the moment when the traffic value exceeds the traffic alarm threshold and is closest to the second moment. Correspondingly, step S200 also includes intercepting the third Internet behavior data, which is used to characterize the Internet behavior data between the third moment and the second moment. Step S400 also includes performing a risk check on the third Internet behavior data set based on the feature library, determining risky Internet behavior data, and performing statistical analysis on the risky Internet behavior data to update the risk address data set. In this way, performing a risk check on the Internet behavior data that exceeds the traffic alarm threshold based on the feature library can improve the accuracy of the check and reduce the amount of data checked, which is conducive to improving the analysis efficiency.
[0092] Please refer to Figure 4 This embodiment also provides a traffic security analysis device, including a time determination module 110, a data interception module 120, a statistical analysis module 130, a first troubleshooting module 140 and a second troubleshooting module 150,
[0093] The time determination module 110 is used to determine a first time and a second time when a flow alarm occurs, wherein the first time is used to represent the time when the flow abnormality begins to occur, and the second time is used to represent the time when the flow alarm is triggered;
[0094] The data interception module 120 is used to intercept first online behavior data and second online behavior data, the first online behavior data is used to represent the online behavior data between the first moment and the second moment, and the second online behavior data is used to represent the online behavior data within a preset time period before the first moment;
[0095] The statistical analysis module 130 is used to perform statistical analysis on the first online behavior data and the second online behavior data respectively to determine a first address data set and a second address data set;
[0096] The first screening module 140 is used to perform risk screening on the first address data set to determine the third address data set and the risk address data set, wherein the risk screening includes regional distribution screening and blacklist and whitelist screening;
[0097] The second checking module 150 is used to compare and check the third address data set based on the second address data set to determine a fourth address data set.
[0098] By conducting a risk check on the first address data set, the third address data set and the risky address data set can be determined. By comparing and checking the third address data set based on the second address data set, risky addresses or risk-free addresses can be further screened out, and the fourth address data set to be further checked can be determined, thereby eliminating traffic anomalies and improving the efficiency of the check. It is hoped that it will be understood that the embodiment of the traffic security analysis device and the above-mentioned traffic security analysis method embodiment are based on the same inventive concept. The content not involved in the embodiment of the traffic security analysis device can refer to the above-mentioned traffic security analysis method embodiment, and will not be repeated here.
[0099] Please refer to Figure 5 This embodiment also provides a traffic security analysis platform, including a processor 210 and a memory 220, wherein the memory 220 stores a computer program, and the processor 210 is used to implement the above-mentioned traffic security analysis method when running the computer program.
[0100] By conducting a risk check on the first address data set, the third address data set and the risky address data set can be determined. By comparing and checking the third address data set based on the second address data set, risky addresses or risk-free addresses can be further screened and excluded, and the fourth address data set to be further checked can be determined, thereby eliminating traffic anomalies and improving the efficiency of the check. It is hoped that it will be understood that the present traffic security analysis platform embodiment and the above-mentioned traffic security analysis method embodiment are based on the same inventive concept. The content not involved in the present traffic security analysis platform embodiment can refer to the above-mentioned traffic security analysis method embodiment, and will not be repeated here.
[0101] This embodiment also provides a storage medium, in which a computer program is stored. When the computer program is executed, the above-mentioned traffic security analysis method is implemented.
[0102] By conducting a risk check on the first address data set, the third address data set and the risk address data set can be determined. By comparing and checking the third address data set based on the second address data set, risky addresses or risk-free addresses can be further screened and excluded, and the fourth address data set to be further checked can be determined, thereby eliminating traffic anomalies and improving the efficiency of the check. It is hoped that it will be understood that the present storage medium embodiment and the above-mentioned traffic security analysis method embodiment are based on the same inventive concept. The content not involved in the present storage medium embodiment can refer to the above-mentioned traffic security analysis method embodiment, and will not be repeated here.
[0103] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.
Claims
1. A traffic security analysis method, characterized in that: include: In the case of a flow alarm, a first moment and a second moment are determined, wherein the first moment is used to characterize the moment when the flow abnormality begins to occur or the moment of a preset length of time before the flow abnormality occurs, and the second moment is used to characterize the moment when the flow alarm is triggered; intercepting first online behavior data and second online behavior data, wherein the first online behavior data is used to represent online behavior data between the first moment and the second moment, and the second online behavior data is used to represent online behavior data within a preset time period before the first moment; Performing statistical analysis on the first online behavior data and the second online behavior data respectively to determine a first address data set and a second address data set; Performing risk screening on the first address data set to determine a third address data set and a risk address data set, wherein the risk screening includes regional distribution screening and blacklist and whitelist screening; Based on the second address data set, the third address data set is compared and checked to determine a fourth address data set; Wherein, in the case where a flow alarm occurs, determining the first time and the second time comprises: In response to the flow alarm, determining a second time; Acquire the flow data of a preset time period before the second moment; Determining a flow rate change rate of the flow data based on a preset first analysis time interval; Determining a first moment according to the flow rate change rate and a preset change rate threshold; Obtaining traffic data for a preset time period before and after the first moment; Calculating a flow rate change rate of the flow data based on a preset second analysis time interval, wherein the second analysis time interval is smaller than the first analysis time interval; The first time is updated according to the flow rate change rate and the change rate threshold.
2. The traffic security analysis method according to claim 1, characterized in that: The first address data set and the second address data set contain the same fields, including source IP address, destination IP address, region to which the source IP address belongs, region to which the destination IP address belongs, access traffic, and number of accesses.
3. The traffic security analysis method according to claim 2, characterized in that: The performing statistical analysis on the first online behavior data and the second online behavior data respectively to determine the first address data set and the second address data set includes: Performing field extraction on the first online behavior data and the second online behavior data respectively to obtain a first intermediate data set and a second intermediate data set; Based on the destination IP address, the first intermediate data set and the second intermediate data set are respectively merged to obtain the first address data set and the second address data set.
4. The traffic security analysis method according to claim 1, characterized in that: The step of comparing and checking the third address data set based on the second address data set to determine a fourth address data set may also include: Perform a risk check on the second address data set and update the second address data set, wherein the risk check includes a regional distribution check and a blacklist and whitelist check.
5. A traffic security analysis device, characterized in that: include: A time determination module, for determining a first time and a second time in the case of a flow alarm, wherein the first time is used to characterize the time when the flow abnormality begins to appear, and the second time is used to characterize the time when the flow alarm is triggered, wherein the first time and the second time are determined in the case of a flow alarm, including: determining the second time in response to the flow alarm; obtaining flow data of a preset time length before the second time; determining the flow change rate of the flow data based on a preset first analysis time interval; determining the first time according to the flow change rate and a preset change rate threshold; obtaining flow data of a preset time length before and after the first time; calculating the flow change rate of the flow data based on a preset second analysis time interval, the second analysis time interval being less than the first analysis time interval; updating the first time according to the flow change rate and the change rate threshold; a data interception module, configured to intercept first online behavior data and second online behavior data, wherein the first online behavior data is used to represent online behavior data between the first moment and the second moment, and the second online behavior data is used to represent online behavior data within a preset time period before the first moment; A statistical analysis module, used to perform statistical analysis on the first online behavior data and the second online behavior data respectively, to determine a first address data set and a second address data set; A first screening module is used to perform risk screening on the first address data set to determine a third address data set and a risk address data set, wherein the risk screening includes regional distribution screening and blacklist and whitelist screening; The second checking module is used to compare and check the third address data set based on the second address data set to determine a fourth address data set.
6. A traffic security analysis platform, comprising a processor and a memory, wherein a computer program is stored in the memory, characterized in that: When the processor runs the computer program, it is used to implement the traffic security analysis method as described in any one of claims 1 to 4.
7. A storage medium storing a computer program, characterized in that: When the computer program is executed, the traffic security analysis method as described in any one of claims 1 to 4 is implemented.
