A network security protection method based on artificial intelligence

By monitoring and analyzing the traffic and log data of users in the enterprise in real time, distinguishing the traffic of office and leisure applications, and combining historical data to obtain preset relationships, the problem of lagging adjustment of traffic monitoring strategies in the existing technology is solved, and rapid identification and response are achieved Cyber ​​attacks reduce the risk of data breaches.

CN118646587BActive Publication Date: 2024-11-22JIANGSU DIXIN INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410893317.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-11-22
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

The existing technology failed to adjust the corresponding strategies in the enterprise network, resulting in the new normal traffic mode being misidentified as an abnormality, increasing the workload of the security team and affecting the operation of the business.

Method used

By obtaining the application consumption rate and log data of users within the enterprise, monitoring and analyzing user traffic in real time, establishing office and leisure traffic curves, combining historical data to obtain preset relationships, determining whether the traffic is abnormal, and timely adjusting monitoring strategies.

Benefits of technology

It realizes rapid identification and response to potential cyber attacks, reduces false alarms and missed reports, improves the accuracy and effectiveness of security incident responses, and reduces the risk of data leakage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118646587B_ABST
    Figure CN118646587B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of network security protection methods based on artificial intelligence, and specifically discloses a network security protection method based on artificial intelligence, comprising the following steps: step S1: dividing applications into office applications and leisure applications; collecting the real-time consumption rate of applications under normal use; step S2: obtaining real-time traffic and log data; obtaining the user's activity time in each application according to the log data, and obtaining the user's predicted traffic, and judging whether the user's real-time traffic is abnormal; step S3: if the user's real-time traffic is normal, establishing an office traffic curve and a leisure traffic curve in the same rectangular coordinate system according to the office traffic and leisure traffic obtained in real time; step S4: dividing the user's working time into three time periods; obtaining the user's average office traffic and difference area in the time period; step S5: judging whether the average office traffic and the difference area S satisfy a preset relationship.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network security technology, and in particular to a network security protection method based on artificial intelligence. Background Art

[0002] Network security protection refers to the protection of computer systems, networks and data from unauthorized access, attack, damage or leakage through various technical and management means; network security protection is a complex and multi-level process that covers multiple aspects such as technology, management and processes; including technical protection, identity authentication and access control, security management and policies, real-time monitoring and response, etc.

[0003] Real-time monitoring and response in network security protection include security information and event management, network traffic monitoring, intrusion detection and prevention systems, behavioral analysis and user behavior analysis, etc.; among them, network traffic monitoring can be combined with user behavior analysis to establish a baseline for normal behavior, monitor and analyze network traffic, and identify abnormal behavior and potential signs of attack.

[0004] When hackers launch DDoS attacks, the target website's access traffic will surge. This abnormal traffic is usually accompanied by a large number of invalid requests, which exceeds the normal range. Or the spread of network viruses or malware may also cause abnormal network traffic. These malicious programs usually generate a large number of abnormal data flows in the network. Therefore, in network security protection, it is often necessary to monitor whether the traffic is within the normal range.

[0005] In the existing technology, network traffic monitoring often uses predetermined rules to determine whether there are any anomalies in the network traffic. However, the traffic patterns in the enterprise network will continue to change with business needs, user behavior, and application updates. If the traffic monitoring system fails to adjust the corresponding traffic monitoring strategy in time, it is possible to mistakenly identify the new normal traffic pattern as an anomaly; these situations will lead to false alarms, increase the workload of the security team, and may also affect normal business operations. Summary of the invention

[0006] The purpose of the present invention is to provide a network security protection method based on artificial intelligence to solve the above technical problems.

[0007] The purpose of the present invention can be achieved through the following technical solutions:

[0008] A network security protection method based on artificial intelligence includes the following steps:

[0009] Step S1: Obtain all applications used by users in the enterprise, and divide all applications into office applications and leisure applications; collect the real-time traffic consumed by the applications under normal use to obtain the consumption rate of the applications;

[0010] Step S2: obtaining the real-time traffic of the user's office equipment and the log data of the user's office equipment in real time; obtaining the user's activity time in each application according to the log data and obtaining the user's predicted traffic; comparing the real-time traffic with the predicted traffic, and preliminarily determining whether the user's real-time traffic is abnormal according to the comparison result;

[0011] Step S3: If it is preliminarily determined that the user's real-time traffic is normal, the traffic consumed by office applications and leisure applications is obtained respectively, and recorded as office traffic and leisure traffic respectively; according to the office traffic and leisure traffic obtained in real time, two real-time traffic curves are established in the same rectangular coordinate system respectively, and recorded as office traffic curve and leisure traffic curve respectively;

[0012] Step S4: Divide the user's working time into three time periods; obtain the average office flow of the user in the time period according to the office flow curve, and obtain the difference area between the office flow curve and the leisure flow curve in the time period in real time Where f(t) and g(t) are the expressions of office flow curve and leisure flow curve after fitting, t a is the starting time of the time period, t b is the end time of the time period;

[0013] Step S5: Obtain historical traffic data, and obtain the preset relationship between the user's average office traffic and the difference area based on the historical traffic data; determine whether the average office traffic and the difference area S satisfy the preset relationship. If so, the user's real-time traffic is normal.

[0014] As a further solution of the present invention: in step S1, the process of obtaining the consumption rate of the application includes:

[0015] Select several test users and set a time interval T, where the setting range of the time interval is [30s, 300s]. Test users use the application normally, and obtain the traffic F consumed by the application within T time interval every time interval T, and obtain {F1, F2, ..., F n}, where F1 is the traffic consumed by the application in the first time interval, and n is the total number of time intervals collected; the consumption rate of the application is obtained Where i∈[1,n] and i is a positive integer.

[0016] As a further solution of the present invention: in step S2, the log data is acquired through an API interface, a script for acquiring the log data is written according to the API document, and the script is deployed using an automated deployment tool.

[0017] As a further solution of the present invention: in step S2, the process of obtaining the user's activity time in each application according to the log data includes:

[0018] Establishing a log management platform, and transmitting the log data to the log management platform in real time using a protocol, wherein the protocol includes Syslog and FTP;

[0019] The log management platform parses the log data using parsing tools and converts it into structured data. The parsing tools include Logstash and Fluentd. The activity time of the user on the application is obtained by querying the structured data using SQL query statements.

[0020] As a further solution of the present invention: in step S2, the process of obtaining the predicted flow includes:

[0021] Obtain the user's activity time in each application, and obtain the data set {(t1, v1), (t2, v2), ..., (t m , v m )}, where (t1, v1) represents the activity time of the first application and the consumption rate of the first application, and m is the total number of applications; the predicted traffic of the user is Where j∈[1,m] and j is a positive integer.

[0022] As a further solution of the present invention: in step S2, the process of comparing the real-time flow rate with the predicted flow rate includes:

[0023] An error threshold ε is set to obtain an absolute value ΔF of the difference between the real-time flow and the predicted flow. When ΔF≥ε, it is recorded that the user's real-time flow is abnormal; when ΔF<ε, it is recorded that the user's real-time flow is not abnormal.

[0024] As a further solution of the present invention: in step S4, the process of dividing the three time periods includes:

[0025] The user's working hours include work time, off-get off work time, lunch break start time and lunch break end time; the time between the work time and the lunch break start time is recorded as a time period, the time between the lunch break start time and the lunch break end time is recorded as a time period, and the time between the lunch break end time and the off-get off work time is recorded as a time period, resulting in three time periods.

[0026] As a further solution of the present invention: in step S5, the process of obtaining the preset relationship includes:

[0027] Acquire historical traffic data of the user under network security conditions, the historical traffic data including daily historical office traffic and historical leisure traffic; establish a historical office traffic curve and a historical leisure traffic curve in the same rectangular coordinate system according to the historical traffic data;

[0028] In the rectangular coordinate system, the average office flow and difference area in the time period are obtained to obtain the historical data set {(To1, S1), (To2, S2), ..., (To k , S k )}, wherein (To1, S1) represents the average office flow and difference area in the first time period, and k is the total number of time periods obtained according to the historical flow data; a scatter plot is obtained according to the historical data set, and a regression equation of the scatter plot is obtained, and the regression equation is recorded as a preset relationship.

[0029] Beneficial effects of the present invention:

[0030] In the existing technology, network traffic monitoring often uses predetermined rules to determine whether there are abnormalities in network traffic. However, the traffic pattern in the enterprise network will continue to change with business needs, user behavior, and application updates. If the traffic monitoring system fails to adjust the corresponding traffic monitoring strategy in time, it may mistakenly identify the new normal traffic pattern as abnormal. These situations will lead to false alarms, increase the workload of the security team, and may also affect normal business operations.

[0031] Compared with the prior art, for network traffic monitoring of office equipment within an enterprise, the present invention can timely detect abnormal traffic by real-time monitoring and analyzing the traffic usage of users, thereby quickly responding to and handling potential security threats and reducing the risk of network attacks and data leakage; by real-time acquisition and analysis of user traffic data and log data, abnormal traffic behavior can be timely detected, such as sudden traffic surges or abnormal traffic patterns, which helps to quickly identify potential network attacks or data leakage incidents; by distinguishing the traffic of office applications and leisure applications, the use of network resources within the enterprise can be more accurately understood. When users use office equipment, if the enterprise's business volume increases, the user's workload will increase, and the corresponding office application traffic consumption will increase, while the traffic consumption of leisure applications will decrease; abnormal traffic is often a precursor to data leakage. By monitoring and analyzing the traffic of office and leisure applications, unauthorized data transmission can be timely detected and blocked, reducing the risk of sensitive information leakage; based on historical traffic data, By comparing and analyzing the preset relationship found, real-time traffic data with the preset relationship can be used to detect abnormal traffic trends early, take preventive measures in advance, and prevent potential threats from developing into actual attacks; by recording and analyzing the traffic consumption of each application in detail, it is possible to more accurately locate which applications or users may have security risks, so as to conduct more targeted security reviews and repairs; real-time monitoring and analysis enable the security team to respond quickly to abnormal traffic events, shorten response time, and block attacks in time to reduce losses; by collecting and analyzing traffic data under normal circumstances, a behavioral baseline for users and applications is established; when abnormal behavior occurs, it can be identified and responded to more quickly to improve the overall security protection capability; through refined traffic monitoring and analysis, false positives and missed positives caused by misjudgment can be reduced, and the accuracy and effectiveness of security incident response can be improved; by distinguishing the traffic of office and leisure applications, enterprises can better control and restrict employees' network usage behavior and reduce security risks caused by the abuse of network resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The present invention will be further described below in conjunction with the accompanying drawings.

[0033] Figure 1 It is a structural schematic diagram of an artificial intelligence-based network security protection method of the present invention. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0035] See also Figure 1 As shown, the present invention is a network security protection method based on artificial intelligence, comprising the following steps:

[0036] Step S1: Obtain all applications used by users in the enterprise, and divide all applications into office applications and leisure applications; collect the real-time traffic consumed by the applications under normal use to obtain the consumption rate of the applications;

[0037] The consumption rate of an application under normal usage includes:

[0038] Select several test users and set a time interval T, where the setting range of the time interval is [30s, 300s]. Test users use the application normally, and obtain the traffic F consumed by the application within T time interval every time interval T, and obtain {F1, F2, ..., F n}, where F1 is the traffic consumed by the application in the first time interval, and n is the total number of time intervals collected; the consumption rate of the application is obtained Where i∈[1,n] and i is a positive integer;

[0039] The consumption rate is the average traffic consumption per second generated by the application under normal use;

[0040] Step S2: obtaining the real-time traffic of the user's office equipment and the log data of the user's office equipment in real time; obtaining the user's activity time in each application according to the log data and obtaining the user's predicted traffic; comparing the real-time traffic with the predicted traffic, and preliminarily determining whether the user's real-time traffic is abnormal according to the comparison result;

[0041] It is worth noting that the present invention assumes that all network devices and applications are configured to record necessary log data, including the user's login time, the application visited, the duration of the visit, etc. The real-time traffic of the user's office equipment can be obtained through a network traffic monitoring tool;

[0042] The log data is collected through an API interface, a script for obtaining the log data is written according to the API document, and the script is deployed using an automated deployment tool;

[0043] The process of obtaining the user's activity time in each application program according to the log data includes:

[0044] Establishing a log management platform, and transmitting the log data to the log management platform in real time using a protocol, wherein the protocol includes Syslog and FTP;

[0045] The log management platform uses a parsing tool to parse the log data and convert it into structured data. The parsing tool includes Logstash and Fluentd. The activity time of the user on the application is obtained by querying the structured data through an SQL query statement.

[0046] The process of obtaining the predicted flow includes:

[0047] Obtain the user's activity time in each application, and obtain the data set {(t1, v1), (t2, v2), ..., (t m , v m )}, where (t1, v1) represents the activity time of the first application and the consumption rate of the first application, and m is the total number of applications; the predicted traffic of the user is Where j∈[1,m] and j is a positive integer;

[0048] It should be noted that the user does not refer to a single staff member, but can also be divided into different departments or groups according to the working methods or work contents of enterprise personnel, and one department or group is recorded as one user; correspondingly, when the user is a department or group, the real-time traffic of the user's office equipment is the total real-time traffic of the entire department or group, and the predicted traffic is the sum of the predicted traffic of all personnel; the working methods or work contents mainly refer to the differences in traffic consumption of office applications, for example, some personnel's office applications do not have traffic consumption;

[0049] The process of comparing the real-time traffic with the predicted traffic includes:

[0050] An error threshold ε is set to obtain an absolute value ΔF of the difference between the real-time flow and the predicted flow. When ΔF≥ε, it is recorded that the real-time flow of the user is abnormal; when ΔF<ε, it is recorded that the real-time flow of the user is not abnormal for the time being.

[0051] It is understandable that the error threshold is determined through experiments, and the error threshold is regularly evaluated and adjusted to adapt to changes in network behavior; when ΔF ≥ ε, the user's office equipment has a large amount of unknown traffic consumption;

[0052] Step S3: If it is preliminarily determined that the user's real-time traffic is normal, the traffic consumed by office applications and leisure applications is obtained respectively, and recorded as office traffic and leisure traffic respectively; according to the office traffic and leisure traffic obtained in real time, two real-time traffic curves are established in the same rectangular coordinate system respectively, and recorded as office traffic curve and leisure traffic curve respectively;

[0053] It can be understood that the process of establishing the real-time flow curve includes establishing a rectangular coordinate system with time as the horizontal coordinate and flow as the vertical coordinate; converting the office flow or leisure flow obtained in real time into coordinate points of corresponding positions in the rectangular coordinate system according to the time of acquisition; connecting the coordinate points with a smooth curve to obtain an office flow curve or a leisure flow curve;

[0054] Step S4: Divide the user's working time into three time periods; obtain the average office flow of the user in the time period according to the office flow curve, and obtain the difference area between the office flow curve and the leisure flow curve in the time period in real time Where f(t) and g(t) are the expressions of office flow curve and leisure flow curve after fitting, t a is the starting time of the time period, t b is the end time of the time period;

[0055] It should be noted that when a user is using office equipment, if the user's business volume suddenly increases, the activity time of the corresponding office application will increase, and the activity time of the corresponding leisure application will decrease. At this time, the traffic consumption of the leisure application will decrease; if the traffic consumption of the user's office application increases, and the traffic consumption of the leisure application is also high, then the network traffic may be abnormal;

[0056] It is worth noting that when the user's office application does not need to consume traffic, the activity time of the user's office application is obtained and recorded as the workload; the relationship between the total workload and the difference area S in the time period in the historical traffic data is obtained as a preset relationship, and whether the user's traffic usage is abnormal is determined based on this preset relationship;

[0057] It should be noted that when there is an application that can be used as both an office application and a leisure application, the application is recorded as a flexible application; a proportion threshold is set, and the proportion threshold is used to determine the proportion of the traffic consumed by the flexible application compared to the total traffic of the user; its consumption rate and the user's activity time on the flexible application are obtained, and the predicted traffic of the user on the flexible application is calculated, and the real-time traffic is compared with the predicted traffic to determine whether the user's real-time traffic is abnormal; when the judgment result of the real-time traffic and the predicted traffic is normal, the proportion of the traffic consumed by the user on the flexible application compared to the user's real-time traffic is obtained; when the proportion is less than the proportion threshold, the flexible application does not participate in the establishment of the subsequent real-time traffic curve; when the proportion is greater than or equal to the proportion threshold, the receiving URL of the request sent by the user when using the flexible application is obtained according to the log data, and it is determined whether the receiving URL is a working URL, and the traffic consumed when the user receives the URL when using the flexible application is a working URL is recorded as office traffic, and the traffic consumed when the user receives the URL when using the flexible application is a non-working URL is recorded as leisure traffic, and then the traffic consumption of the flexible application is analyzed to participate in the establishment of the subsequent real-time traffic curve;

[0058] The division process into three time periods includes:

[0059] The working hours of the user include the start time, the end time, the lunch break start time and the lunch break end time; the time between the start time and the lunch break start time is recorded as a time period, the time between the lunch break start time and the lunch break end time is recorded as a time period, and the time between the lunch break end time and the end time is recorded as a time period, so as to obtain three time periods;

[0060] It is understandable that there are differences between office traffic and leisure traffic in different time periods. For example, the time period between the start and end of lunch break is usually the user's rest time, used for meals and short breaks to restore physical strength and spirit and prepare for afternoon work. Therefore, in general, the user's leisure traffic is higher during this time period;

[0061] Step S5: Obtain historical traffic data, and obtain a preset relationship between the user's average office traffic and the difference area according to the historical traffic data; determine whether the average office traffic and the difference area S satisfy the preset relationship, and if so, the user's real-time traffic is normal;

[0062] It should be noted that the process of judging whether the average office flow and the difference area S satisfy the preset relationship includes: setting a deviation threshold σ, recording the preset relationship as P(d), where d represents the average office flow; obtaining the average office flow of the current user as d1, and then according to the preset relationship, obtaining the predicted difference area as P(d1); obtaining the absolute value of the difference between the current difference area S and the predicted difference area, recorded as |P(d1)-S|; when |P(d1)-S|≤σ, recording that the current average office flow and the difference area satisfy the preset relationship, and at this time the user's real-time flow is normal; when |P(d1)-S|>σ, recording that the current average office flow and the difference area do not satisfy the preset relationship, and at this time the user's real-time flow is abnormal;

[0063] The process of obtaining the preset relationship includes:

[0064] Acquire historical traffic data of the user under network security conditions, the historical traffic data including daily historical office traffic and historical leisure traffic; establish a historical office traffic curve and a historical leisure traffic curve in the same rectangular coordinate system according to the historical traffic data;

[0065] In the rectangular coordinate system, the average office flow and difference area in the time period are obtained to obtain the historical data set {(To1, S1), (To2, S2), ..., (To k , S k )}, wherein (To1, S1) represents the average office flow and difference area in the first time period, and k is the total number of time periods obtained according to the historical flow data; a scatter plot is obtained according to the historical data set, and a regression equation of the scatter plot is obtained, and the regression equation is recorded as a preset relationship.

[0066] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A network security protection method based on artificial intelligence, characterized in that: The following steps are involved: Step S1: Obtain all applications used by users in the enterprise, and divide all applications into office applications and leisure applications; collect the real-time traffic consumed by the applications under normal use to obtain the consumption rate of the applications; Step S2: obtaining the real-time traffic of the user's office equipment and the log data of the user's office equipment in real time; obtaining the user's activity time in each application according to the log data and obtaining the user's predicted traffic; Comparing the real-time traffic with the predicted traffic, and preliminarily determining whether the user's real-time traffic is abnormal based on the comparison result; Step S3: If it is preliminarily determined that the user's real-time traffic is normal, the traffic consumed by office applications and leisure applications is obtained respectively, and recorded as office traffic and leisure traffic respectively; according to the office traffic and leisure traffic obtained in real time, two real-time traffic curves are established in the same rectangular coordinate system respectively, and recorded as office traffic curve and leisure traffic curve respectively; Step S4: Divide the user's working time into three time periods; obtain the average office flow of the user in the time period according to the office flow curve, and obtain the difference area between the office flow curve and the leisure flow curve in the time period in real time. , where f(t) and g(t) are the expressions of office flow curve and leisure flow curve after fitting, t a is the starting time of the time period, t b is the end time of the time period; Step S5: Obtain historical traffic data, and obtain a preset relationship between the user's average office traffic and the difference area according to the historical traffic data; determine whether the average office traffic and the difference area S satisfy the preset relationship, and if so, the user's real-time traffic is normal; In step S1, the process of obtaining the consumption rate of the application includes: selecting a number of test users, setting a time interval T, and the setting range of the time interval is [30s, 300s]; the test users use the application normally, and obtain the traffic F consumed by the application in the time T every time interval T, and obtain {F1, F2, ..., F n }, where F1 is the traffic consumed by the application in the first time interval, and n is the total number of time intervals collected; the consumption rate of the application is obtained , where i∈[1,n] and i is a positive integer; In step S2, the process of obtaining the predicted flow includes: Obtain the user's activity time in each application, and obtain the data set {(t1, v1), (t2, v2), ..., (t m , v m )}, where (t1, v1) represents the activity time of the first application and the consumption rate of the first application, and m is the total number of applications; the predicted traffic of the user is , where j∈[1,m] and j is a positive integer.

2. According to claim 1, a network security protection method based on artificial intelligence is characterized in that: In step S2, the log data is collected through an API interface, a script for obtaining the log data is written according to the API document, and the script is deployed using an automated deployment tool.

3. The network security protection method based on artificial intelligence according to claim 2 is characterized in that: In step S2, the process of obtaining the user's activity time in each application according to the log data includes: Establishing a log management platform, and transmitting the log data to the log management platform in real time using a protocol, wherein the protocol includes Syslog and FTP; The log management platform parses the log data using parsing tools and converts it into structured data. The parsing tools include Logstash and Fluentd. The activity time of the user on the application is obtained by querying the structured data using SQL query statements.

4. The network security protection method based on artificial intelligence according to claim 1 is characterized in that: In step S2, the process of comparing the real-time traffic with the predicted traffic includes: An error threshold ε is set to obtain an absolute value ΔF of the difference between the real-time flow and the predicted flow. When ΔF≥ε, it is recorded that the user's real-time flow is abnormal; when ΔF<ε, it is recorded that the user's real-time flow is not abnormal.

5. The network security protection method based on artificial intelligence according to claim 1 is characterized in that: In step S4, the process of dividing the three time periods includes: The user's working hours include work time, off-get off work time, lunch break start time and lunch break end time; the time between the work time and the lunch break start time is recorded as a time period, the time between the lunch break start time and the lunch break end time is recorded as a time period, and the time between the lunch break end time and the off-get off work time is recorded as a time period, resulting in three time periods.

6. The network security protection method based on artificial intelligence according to claim 1 is characterized in that: In step S5, the process of obtaining the preset relationship includes: Acquire historical traffic data of the user under network security conditions, the historical traffic data including daily historical office traffic and historical leisure traffic; establish a historical office traffic curve and a historical leisure traffic curve in the same rectangular coordinate system according to the historical traffic data; In the rectangular coordinate system, the average office flow and difference area in the time period are obtained to obtain the historical data set {(To1, S1), (To2, S2), ..., (To k , S k )}, wherein (To1, S1) represents the average office flow and difference area in the first time period, and k is the total number of time periods obtained according to the historical flow data; a scatter plot is obtained according to the historical data set, and a regression equation of the scatter plot is obtained, and the regression equation is recorded as a preset relationship.