Network security analysis method and system based on firewall, and storage medium

Through fine-grained analysis of user behavior and device communication data, calculation of behavior index and communication index, dynamically adjusting access modes and using SDN technology, the problem of insufficient monitoring of traditional firewalls in the face of internal threats is solved, and the internal threats are achieved. Improved real-time response and defense capabilities.

CN119030785AActive Publication Date: 2024-11-26GANZHOU DIGITAL IND GROUP CO LTD

Patent Information

Application Number
CN202411406537.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-10
Publication Date
2024-11-26
Estimated Expiration
2044-10-10

AI Technical Summary

Technical Problem

When traditional firewalls face blurred network boundaries and internal threats, it is difficult to effectively identify and prevent internal security risks, and lack in-depth monitoring of internal user behavior and device communication.

Method used

By collecting user behavior data and device communication data, conducting fine-grained security analysis, calculating behavior index and communication index, dynamically adjusting user access mode and device communication mode, and using SDN technology to achieve isolation and island mode control of moderate and high-risk devices .

Benefits of technology

Real-time monitoring and rapid response to potential threats is achieved, the accuracy of security control decisions and system flexibility of the firewall are improved, and the overall defense capabilities are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119030785A_ABST
    Figure CN119030785A_ABST
Patent Text Reader

Abstract

The invention discloses a network security analysis method and system based on a firewall and a storage medium, and relates to the technical field of network security. Fine-grained security analysis is carried out on behavior data of a user and communication data of equipment to obtain a behavior index and a communication index, comprehensive security assessment is formed, and a comprehensive analysis method is provided in combination with data of multiple dimensions; through real-time monitoring and analysis of the user behavior index and the equipment communication index, the access mode of the user and the communication mode of the equipment can be dynamically adjusted, the flexibility and the potential threat coping capability of the system are greatly improved through the dynamic adjustment mode based on behaviors and communication risks, and the safety of the system is improved. The permission of the user or the equipment can be quickly limited when the abnormal behavior occurs, and the overall defense capability is enhanced.
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 firewall-based network security analysis method, system and storage medium. Background Art

[0002] As a core device or software for network security, firewalls effectively protect computers or networks from unauthorized access and malicious attacks by controlling the inbound and outbound traffic of the network. It builds a security barrier by screening and filtering network activities such as data packets and connection requests to prevent malicious behavior from entering the network; therefore, network security analysis of firewalls is particularly important;

[0003] Traditional firewalls mainly control the traffic in and out of the network by setting external boundaries. However, with the development of network technology and the widespread application of emerging technologies such as cloud computing, the Internet of Things, and mobile office, the network boundaries of enterprises have become increasingly blurred, and the boundaries between external and internal threats are no longer so clear. Therefore, when attackers have entered the network or internal users have leaked data due to negligence, the effectiveness of firewalls is greatly reduced. In addition, firewalls lack in-depth monitoring of internal user behavior and communication between devices, making it difficult to identify and prevent internal security risks. Summary of the invention

[0004] The present invention provides a firewall-based network security analysis method, system and storage medium, which are used to solve the above-mentioned technical problems.

[0005] The first aspect of the present invention provides a network security analysis method based on a firewall, comprising the following steps:

[0006] Step 1: Collect and save the behavior data of each user in the station, the communication data of each device and the historical login information of each user; the behavior data includes login time, login IP address, number of operations, and the operation type, operation data and operation duration corresponding to each operation; the communication data includes traffic, data transmission volume, memory usage and CPU load;

[0007] Step 2: Perform fine-grained security analysis on each user and each device based on the behavior data and communication data to obtain the behavior index and communication index, and send them to Step 3;

[0008] Step 3: Dynamically adjust the user's access mode and the device's communication mode based on the user's behavior index and the device's communication index, specifically:

[0009] The behavior index of each user is retrieved and compared with the set behavior interval. When the behavior index is greater than the maximum value in the set behavior interval, the user is locked and can only query data. When the behavior index is within the set behavior interval, the user's account is restricted and can only query data and download data. When the behavior index is less than the minimum value in the set behavior interval, no restrictions are required and normal access rights are maintained.

[0010] The communication index of each device is retrieved and compared with the set communication interval. When the communication index is less than the minimum value in the set communication interval, the device is recorded as a safe device; when the communication index is in the set communication interval, the device is recorded as a medium-risk device and isolated. The specific isolation method is: redirect the communication traffic of the medium-risk device to the safe device through SDN to form an independent logical subnet; when the communication index is greater than the maximum value in the set communication interval, the device is recorded as a high-risk device and controlled to enter the island mode.

[0011] Optionally, the specific process of fine-grained security analysis based on behavioral data is as follows:

[0012] 201: Retrieve the behavior data of each user, wherein the behavior data includes login time, login IP address, number of operations, operation type, operation data and operation duration corresponding to each operation, and record the operation duration as Tj, wherein i=1,2,3...J, J is a positive integer, J represents the total operation type, and j represents any one of the operation types;

[0013] 202: Set a number of time periods for the user, each time period corresponds to a habit coefficient, and compare the login time of the user with each set time period to match the corresponding habit coefficient; set a number of login IP addresses for account login, each IP address corresponds to a confidence coefficient, and compare the login IP address of the user's login with all set login IP addresses to match the corresponding confidence coefficient;

[0014] 203: Perform correlation analysis on the operation data of each operation of the user and the user to obtain the operation risk value;

[0015] 204: The custom coefficient G1, confidence coefficient G2 and operational risk value HT are calculated by the formula The behavior index GH is calculated, where f3, f4, and f5 are respectively the set proportional coefficients; when a login behavior is completed, the historical login information is accumulated, where the historical login information includes the historical login time and the historical login IP, and the accumulated information is updated to the server;

[0016] 205: Retrieve the historical login information of the user, wherein the historical login information includes the historical login times, historical login times, and historical login IP addresses; divide the twenty-four hours of a day into a number of time periods, match the historical login times with each time period, and if the historical login time belongs to a certain time period, then the time period accumulates one login; thus, the historical login times can be accumulated into each time period respectively; count the cumulative times in each time period respectively, and divide it by the historical login times to obtain the times ratio of each time period; multiply the times ratio of each time period by the set habit conversion coefficient to obtain the habit coefficient;

[0017] Traverse the historical login times to extract several IP addresses, match the login IP address of each login with all IP addresses to obtain the cumulative login times of each IP address, and divide it by the historical login times to obtain the number of times proportion of each IP address; multiply the number of times proportion of each IP address by the set confidence conversion coefficient to obtain the confidence coefficient;

[0018] Update the habit coefficient of each time period and the confidence coefficient of each IP address to 202.

[0019] Optionally, the specific process of association analysis is:

[0020] Retrieve the operation data corresponding to each operation, use natural language processing technology to extract several keywords from the operation data, and use TF-IDF technology to obtain the importance score of each keyword in the operation data; compare the user's keywords with the keywords of the operation data to obtain the number of intersection keywords and the number of union keywords, and record them as I and N respectively; thus, the importance score corresponding to each intersection keyword can be recorded as Fi, where i = 1, 2, 3...I, I is a positive integer, I represents the total number of intersection keywords, and i represents any one of the intersection keywords;

[0021] Compare and analyze the importance score of each intersection keyword with the set score range to divide the intersection keywords corresponding to the importance score into heavy keywords, medium keywords and light keywords, and count the number of heavy keywords, medium keywords and light keywords respectively, and record them as H1, H2, H3 respectively;

[0022] Substitute H1, H2, H3, I, N and Fi into the given formula The correlation Ha between each operation data and the user is calculated, where they are the set proportional coefficients and a1>a2>a3>0; the correlation corresponding to each type of operation is recorded as Haj, and it is substituted into the set formula with the corresponding operation time Tj The operational risk value HT is calculated, where αj is the proportional constant corresponding to each type of operation, and f1 and f2 are the set proportional coefficients respectively.

[0023] Optionally, the specific process of fine-grained security analysis based on line communication data is as follows:

[0024] 401: Retrieve the communication data of each device at each collection time, wherein the communication data includes flow, data transmission volume, memory usage and CPU load, and record them as Lk, Ck, Yk and Zk respectively, wherein k = 1, 2, 3 ... K, K is a positive integer, K represents the total number of collection time, and k represents the sequence number of any collection time;

[0025] 402: Set a regular communication baseline for each device, where the regular communication baseline includes expected traffic, expected data transmission volume, expected memory usage, and expected CPU load, and record them as QL, QC, QY, and QZ respectively;

[0026] 403: Substitute Lk, Ck, Yk, Zk, QL, QC, QY and QZ into the set formula The communication risk value Zg at each collection moment is calculated, where g1, g2, g3, and g4 are respectively the set proportional coefficients;

[0027] 403: A two-dimensional rectangular coordinate system is constructed with time as the horizontal coordinate and the communication risk value as the vertical coordinate. Points are drawn on the coordinate axis according to the communication risk values ​​and their corresponding collection times to obtain a number of communication points. The communication points are connected in sequence to obtain a line graph of communication risk changes over time. The line graph of communication risk changes over time is graphically analyzed to obtain a communication index.

[0028] Optionally, the specific process of performing graphical analysis on the line graph of communication risk changes over time is as follows:

[0029] Calculate the slope of the line segment formed by two adjacent communication points and record it as The slopes greater than zero are summed up to obtain the risk increase value, which is recorded as A1, and the slopes less than zero are summed up to obtain the risk reduction value, which is recorded as 2;

[0030] The slope equal to zero is recorded as the equilibrium slope, and the communication risk values ​​corresponding to the two adjacent acquisition moments are averaged to obtain the equilibrium value; thus, the equilibrium value corresponding to each equilibrium slope can be obtained; each equilibrium value is compared and analyzed with the set equilibrium interval to divide each equilibrium value into risk balance, medium risk balance and light risk balance, and the number of high risk balance, medium risk balance and light risk balance is counted respectively, and they are recorded as P1, P2 and P3 respectively; the equilibrium mean is calculated by averaging each equilibrium value and recorded as P4; P1, P2, P3 and P4 are substituted into the set formula The balance degree value Pb is calculated, wherein b1, b2, and b3 are respectively set proportional coefficients, and b1>b2>b3>1;

[0031] The slope The risk increase value A1, risk reduction value A2 and balance value Pb are calculated by the formula The communication index AP is calculated, where h1, h2, and h3 are the set proportional coefficients. is the mean of the slopes.

[0032] A second aspect of the present invention provides a firewall-based network security analysis system, the system comprising: a server, a security analysis module and a security management and control module;

[0033] The server collects and stores the behavior data of each user in the station, the communication data of each device and the historical login information of each user. The behavior data includes the login time, login IP address, number of operations, and the operation type, operation data and operation duration corresponding to each operation. The communication data includes traffic, data transmission volume, memory usage and CPU load.

[0034] The security analysis module performs fine-grained security analysis on each user and each device based on the behavior data and communication data to obtain the behavior index and communication index, and sends them to the security control module;

[0035] The security control module dynamically adjusts the user's access mode and the device's communication mode based on the user's behavior index and the device's communication index. Specifically:

[0036] The behavior index of each user is retrieved and compared with the set behavior interval. When the behavior index is greater than the maximum value in the set behavior interval, the user is locked and can only query data. When the behavior index is within the set behavior interval, the user's account is restricted and can only query data and download data. When the behavior index is less than the minimum value in the set behavior interval, no restrictions are required and normal access rights are maintained.

[0037] The communication index of each device is retrieved and compared with the set communication interval. When the communication index is less than the minimum value in the set communication interval, the device is recorded as a safe device; when the communication index is in the set communication interval, the device is recorded as a medium-risk device and isolated. The specific isolation method is: redirect the communication traffic of the medium-risk device to the safe device through SDN to form an independent logical subnet; when the communication index is greater than the maximum value in the set communication interval, the device is recorded as a high-risk device and controlled to enter the island mode.

[0038] A third aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned firewall-based network security analysis method.

[0039] Compared with the prior art, the technical solution provided by the present invention has the following beneficial effects:

[0040] 1. Through fine-grained security analysis of user behavior data and device communication data to obtain behavior index and communication index, a comprehensive security assessment is formed. Combining data from multiple dimensions, a comprehensive analysis method is provided. Fine-grained monitoring is achieved to provide data support for firewall security management and control decisions, effectively improving the response speed and accuracy to potential threats and ensuring real-time monitoring of abnormal behavior and device risks.

[0041] 2. Through real-time monitoring and analysis of user behavior index and device communication index, it is possible to dynamically adjust the user's access mode and the device's communication mode. This dynamic adjustment method based on behavior and communication risks greatly improves the system's flexibility and ability to respond to potential threats, ensuring that the user or device's permissions can be quickly restricted when abnormal behavior occurs. The entire process is based on automated monitoring, analysis and dynamic adjustment, which can adapt to the ever-changing security situation in a timely manner, and combines behavior monitoring and SDN technology to achieve rapid response and isolation to potential attacks, thereby enhancing overall defense capabilities. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. The following drawings are not intentionally scaled to the actual size, and the focus is on illustrating the main purpose of the present application.

[0043] Figure 1 It is a principle block diagram of the present invention;

[0044] Figure 2 It is a block diagram of the system module connection of the present invention. DETAILED DESCRIPTION

[0045] Embodiments of the present invention provide a network security analysis method, system and storage medium based on a firewall. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0046] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1-2 In an embodiment of the present invention, a firewall-based network security analysis method is implemented by applying a firewall-based network security analysis system, wherein the firewall-based network security analysis system includes a server, a security analysis module, and a security management and control module;

[0047] The specific method comprises the following steps:

[0048] Step 1: The server collects the behavior data of each user in the station and the communication data of each device, and saves them; the behavior data includes; the communication data includes; in addition, the server also stores the historical login information of each user;

[0049] Step 2: The security analysis module performs fine-grained security analysis on each user and each device in the station based on the behavior data and communication data to obtain the behavior index of each user and the communication index of each device; specifically:

[0050] Fine-grained security analysis based on behavioral data:

[0051] Step 1: retrieve the behavior data of each user, where the behavior data includes login time, login IP address, number of operations, and the operation type, operation data and operation duration corresponding to each operation, and record the operation duration as Tj, where i = 1, 2, 3...J, J is a positive integer, J represents the total operation type, and j represents any one of the operation types; specific operation types include querying data, downloading data, modifying data and deleting data, and the queried data, downloaded data, modified data and deleted data are recorded as operation data;

[0052] Step 2: Set a number of time periods for the user, each time period corresponds to a habit coefficient, compare the login time of the user with the set time periods to match the corresponding habit coefficient, and record it as G1;

[0053] Set a number of login IP addresses for the account login, each IP address corresponds to a confidence coefficient, compare the login IP address of the user this time with all the set login IP addresses to match the corresponding confidence coefficient, and record it as G2;

[0054] Step 3: retrieve the operation data corresponding to each operation, use natural language processing (NLP) technology to extract several keywords from the operation data, and use TF-IDF technology to obtain the importance score of each keyword in the operation data; set several keywords corresponding to each user, and it should be noted that the keywords of each user are set by personnel in this field according to the identity or position corresponding to each user; compare the user's keywords with the keywords of the operation data to obtain the number of intersection keywords and the number of union keywords, and record them as I and N respectively; thus, the importance score corresponding to each intersection keyword can be recorded as Fi, where i=1,2,3...I, I is a positive integer, I represents the total number of intersection keywords, and i represents any one of the intersection keywords;

[0055] Compare and analyze the importance scores of each intersection keyword with the set score range. When the importance score is greater than the maximum value in the set score range, the intersection keyword corresponding to the importance score is recorded as a heavy keyword; when the importance score is in the set score range, the intersection keyword corresponding to the importance score is recorded as a medium keyword; when the importance score is less than the minimum value in the set score range, the intersection keyword corresponding to the importance score is recorded as a light keyword; count the number of heavy keywords, medium keywords and light keywords respectively, and record them as H1, H2, H3 respectively, and use the set formula The correlation Ha between each operation data and the user is calculated, where they are the set proportional coefficients and a1>a2>a3>0; the correlation corresponding to each type of operation is recorded as Haj, and it is combined with the corresponding operation time Tj through the set formula The operation risk value HT is calculated, where αj is the proportional constant corresponding to each type of operation. For example, the proportional constant corresponding to the operation of deleting data is greater than the proportional constant corresponding to the operation of downloading data; f1 and f2 are respectively the set proportional coefficients; from the formula, it can be seen that the more sensitive the operation is (the sensitivity of the operation of deleting data is higher than that of the operation of downloading data and querying data, that is, the larger the proportional constant αj corresponding to the operation, the more sensitive the operation is), the greater the operation risk value; when the correlation between the data of the operation and the user is smaller, the operation risk value is greater; when the operation duration is longer, the operation risk value is greater;

[0056] Step 4: Use the custom coefficient G1, confidence coefficient G2 and operational risk value HT through the set formula The behavior index GH is calculated, where f3, f4, and f5 are respectively the set proportional coefficients; when a login behavior is completed, the historical login information is accumulated, where the historical login information includes the historical login time and the historical login IP, and the accumulated information is updated to the server;

[0057] Step 5: retrieve the user's historical login information, where the historical login information includes the number of historical logins, historical login time, and historical login IP; divide the twenty-four hours of a day into several time periods (specifically, the time period is divided according to the login time corresponding to each login), match the historical login time with each time period, and if the historical login time belongs to a certain time period, then the time period accumulates one login; thus, the number of historical logins can be accumulated into each time period respectively; count the cumulative number of times in each time period respectively, and divide it by the number of historical logins to obtain the number ratio of each time period; multiply the number ratio of each time period by the set habit conversion coefficient (the habit conversion coefficient is a set constant) to obtain the habit coefficient;

[0058] Traverse the historical login times to extract several IP addresses, match the login IP address of each login with all IP addresses to obtain the cumulative login times of each IP address, and divide it by the historical login times to obtain the number of times proportion of each IP address; multiply the number of times proportion of each IP address by the set confidence conversion coefficient (the confidence conversion coefficient is a set constant) to obtain the confidence coefficient;

[0059] Update the habit coefficient of each time period and the confidence coefficient of each IP address to step 2.

[0060] Fine-grained security analysis based on communication data:

[0061] The communication data of each device at each collection time is retrieved, where the communication data includes traffic, data transmission volume, memory usage and CPU load, and they are recorded as Lk, Ck, Yk and Zk respectively, where k = 1, 2, 3 ... K, K is a positive integer, K represents the total number of collection times, and k represents the sequence number of any collection time; it should be noted that an abnormal increase or decrease in traffic indicates that the device has an abnormal risk; a sudden increase or decrease in transmission volume may mean abnormal activity of the device, indicating that the device has an abnormal risk; an abnormal increase in memory usage and CPU load indicates that the device is at risk of being attacked;

[0062] Set a regular communication baseline for each device, where the regular communication baseline includes expected traffic, expected data transmission volume, expected memory usage and expected CPU load, and they are recorded as QL, QC, QY and QZ respectively; it should be noted that the regular communication baseline here is set by technicians in this field according to actual needs, and the specific setting method is set according to the daily work that the device is responsible for, as a reference standard for monitoring the health and safety status of the device;

[0063] Using the set formula The communication risk value Zg at each collection moment is calculated, where g1, g2, g3, and g4 are respectively the set proportional coefficients; it can be seen from the formula that the more the communication data deviates from the normal communication baseline, the greater the communication risk value;

[0064] A two-dimensional rectangular coordinate system is constructed with time as the horizontal coordinate and communication risk value as the vertical coordinate. Points are drawn on the coordinate axis according to the communication risk value and the corresponding collection time to obtain several communication points. The communication points are connected in sequence to obtain a line graph of communication risk changes over time. The slope of the line segment composed of two adjacent communication points is calculated and recorded as The slopes greater than zero are summed up to obtain the risk increase value, recorded as A1, and the slopes less than zero are summed up to obtain the risk reduction value, recorded as A2;

[0065] The slope equal to zero is recorded as the equilibrium slope. It should be noted that the equilibrium slope refers to the state in which the communication risk value remains unchanged; the communication risk values ​​corresponding to the two adjacent acquisition moments corresponding to the equilibrium slope are averaged to obtain the equilibrium value; thus, the equilibrium value corresponding to each equilibrium slope can be obtained. If the equilibrium value is larger, it means that the equipment is balanced in a state with a relatively large communication risk value; each equilibrium value is compared and analyzed with the set equilibrium interval. When each equilibrium value is greater than the maximum value in the equilibrium interval, a high-risk balance is accumulated; when each equilibrium value is in the equilibrium interval, a medium-risk balance is accumulated; when each equilibrium value is less than the minimum value in the equilibrium interval, a light-risk balance is accumulated; the number of high-risk balances, medium-risk balances and light-risk balances are counted respectively, and they are recorded as P1, P2 and P3 respectively; the equilibrium mean is obtained by averaging each equilibrium value and recorded as P4, and the set formula is used The balance degree value Pb is calculated, wherein b1, b2, and b3 are respectively set proportional coefficients, and b1>b2>b3>1;

[0066] The slope The risk increase value A1, risk reduction value A2 and balance value Pb are calculated by the formula The communication index AP is calculated, where h1, h2, and h3 are the set proportional coefficients. is the mean of each slope; from the formula, it can be seen that when the slope fluctuates more, it means that the communication status of the device is more unstable, and the communication index is larger; when the risk increase value is larger, the risk reduction value is smaller, and the balance degree value is larger, the communication index is larger;

[0067] Send the behavior index and communication index to Step 3;

[0068] By conducting fine-grained security analysis on the user's behavior data and the device's communication data to obtain the behavior index and communication index, a comprehensive security assessment is formed. Combining data from multiple dimensions, a comprehensive analysis method is provided; fine-grained monitoring is achieved, providing data support for the firewall's security management and control decisions, effectively improving the response speed and accuracy to potential threats, and ensuring real-time monitoring of abnormal behavior and device risks.

[0069] Step 3: The security control module dynamically adjusts the user's access mode and the device's communication mode based on the user's behavior index and the device's communication index to achieve internal security protection of the firewall; specifically:

[0070] The behavior index of each user is retrieved and compared with the set behavior range. When the behavior index is greater than the maximum value in the set behavior range, it means that the user has a relatively high risk, and the user is locked and can only query data operations; when the behavior index is within the set behavior range, the user's account is restricted and can only query data and download data operations; when the behavior index is less than the minimum value in the set behavior range, no restrictions are required and normal access rights are maintained;

[0071] The communication index of each device is retrieved and compared with the set communication interval. When the communication index is less than the minimum value in the set communication interval, it means that the device is in a normal state and the device is recorded as a safe device. When the communication index is in the set communication interval, the device is recorded as a medium-risk device and isolated. The specific isolation method is: redirect the communication traffic of the medium-risk device to the safe device through SDN (software defined network) to form an independent logical subnet (that is, only high-risk devices and safe devices are allowed to connect), prevent communication with other devices, and avoid the spread of attacks.

[0072] When the communication index is greater than the maximum value in the set communication interval, it means that the device has a relatively large security risk. The device will be recorded as a high-risk device and controlled to enter the island mode (that is, through SDN (software defined network), the communication traffic of the high-risk device is blocked to form a communication island), which can effectively curb the spread of security risks and protect the security of the entire network;

[0073] Through real-time monitoring and analysis of user behavior index and device communication index, it is possible to dynamically adjust user access mode and device communication mode. This dynamic adjustment method based on behavior and communication risks greatly improves the system's flexibility and ability to respond to potential threats, ensuring that user or device permissions can be quickly restricted when abnormal behavior occurs. The entire process is based on automated monitoring, analysis and dynamic adjustment, which can adapt to the ever-changing security situation in a timely manner, and combines behavior monitoring and SDN technology to achieve rapid response and isolation to potential attacks, thereby enhancing overall defense capabilities.

[0074] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the firewall-based network security analysis method.

[0075] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0076] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0077] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A network security analysis method based on a firewall, characterized in that: The following steps are involved: Step 1: Collect and save the behavior data of each user in the station, the communication data of each device and the historical login information of each user; the behavior data includes login time, login IP address, number of operations, and the operation type, operation data and operation duration corresponding to each operation; Communication data includes traffic, data transfer, memory usage, and CPU load; Step 2: Perform fine-grained security analysis on each user and each device based on the behavior data and communication data to obtain the behavior index and communication index, and send them to Step 3; Step 3: Dynamically adjust the user's access mode and the device's communication mode based on the user's behavior index and the device's communication index, specifically: The behavior index of each user is retrieved and compared with the set behavior interval. When the behavior index is greater than the maximum value in the set behavior interval, the user is locked and can only query data. When the behavior index is within the set behavior interval, the user's account is restricted and can only query data and download data. When the behavior index is less than the minimum value in the set behavior interval, no restrictions are required and normal access rights are maintained. The communication index of each device is retrieved and compared with the set communication interval. When the communication index is less than the minimum value in the set communication interval, the device is recorded as a safe device; when the communication index is in the set communication interval, the device is recorded as a medium-risk device and isolated. The specific isolation method is: redirect the communication traffic of the medium-risk device to the safe device through SDN to form an independent logical subnet; when the communication index is greater than the maximum value in the set communication interval, the device is recorded as a high-risk device and controlled to enter the island mode.

2. The firewall-based network security analysis method according to claim 1, characterized in that: The specific process of fine-grained security analysis based on behavioral data is as follows: 201: Retrieving the behavior data of each user, wherein the behavior data includes login time, login IP address, number of operations, and operation type, operation data and operation duration corresponding to each operation; 202: Set a number of time periods for the user, each time period corresponds to a habit coefficient, and compare the login time of the user with each set time period to match the corresponding habit coefficient; set a number of login IP addresses for account login, each IP address corresponds to a confidence coefficient, and compare the login IP address of the user's login with all set login IP addresses to match the corresponding confidence coefficient; 203: Perform correlation analysis on the operation data of each operation of the user and the user to obtain the operation risk value; 204: normalize the habit coefficient, confidence coefficient and operational risk value and take their values, and analyze the values ​​to obtain the behavior index; When a login behavior is completed, historical login information is accumulated, where the historical login information includes historical login time and historical login IP, and the accumulated information is updated to the server; 205: Retrieve the historical login information of the user, wherein the historical login information includes the historical login times, historical login times, and historical login IP addresses; divide the twenty-four hours of a day into a number of time periods, match the historical login times with each time period, and if the historical login time belongs to a certain time period, then the time period accumulates one login; thus, the historical login times can be accumulated into each time period respectively; count the cumulative times in each time period respectively, and divide it by the historical login times to obtain the times ratio of each time period; multiply the times ratio of each time period by the set habit conversion coefficient to obtain the habit coefficient; Traverse the historical login times to extract several IP addresses, match the login IP address of each login with all IP addresses to obtain the cumulative login times of each IP address, and divide it by the historical login times to obtain the number of times proportion of each IP address; multiply the number of times proportion of each IP address by the set confidence conversion coefficient to obtain the confidence coefficient; Update the habit coefficient of each time period and the confidence coefficient of each IP address to 202.

3. The firewall-based network security analysis method according to claim 2, characterized in that: The specific process of association analysis is as follows: Retrieve the operation data corresponding to each operation, extract several keywords from the operation data using natural language processing technology, and use TF-IDF technology to obtain the importance score of each keyword in the operation data; compare the user's keywords with the keywords of the operation data to obtain the number of intersection keywords and the number of union keywords, thereby obtaining the importance score corresponding to each intersection keyword; Compare and analyze the importance score of each intersection keyword with the set score range to divide the intersection keywords corresponding to the importance score into heavy keywords, medium keywords and light keywords, count the number of heavy keywords, medium keywords and light keywords respectively, and normalize them with the importance score of the intersection keywords, the number of intersection keywords and the number of union keywords and take their numerical values, and analyze the numerical values ​​to obtain the correlation between the operation data and the user; thereby, the correlation corresponding to each type of operation can be obtained, and it is normalized with the corresponding operation time and take its numerical value, and the operation risk value is obtained by numerical analysis.

4. The firewall-based network security analysis method according to claim 1, characterized in that: The specific process of fine-grained security analysis based on communication data is as follows: 401: Retrieve the communication data of each device at each collection time, where the communication data includes flow, data transmission volume, memory usage and CPU load; 402: Set a regular communication baseline for each device, where the regular communication baseline includes expected traffic, expected data transmission volume, expected memory usage, and expected CPU load; 403: normalize the traffic, data transmission volume, memory usage, CPU load, expected traffic, expected data transmission volume, expected memory usage, and expected CPU load, and obtain their values, and analyze the values ​​to obtain the communication risk value of the device at each collection time; 403: A two-dimensional rectangular coordinate system is constructed with time as the horizontal coordinate and the communication risk value as the vertical coordinate. Points are drawn on the coordinate axis according to the communication risk values ​​and their corresponding collection times to obtain a number of communication points. The communication points are connected in sequence to obtain a line graph of communication risk changes over time. The line graph of communication risk changes over time is graphically analyzed to obtain a communication index.

5. The firewall-based network security analysis method according to claim 4 is characterized in that: The specific process of graphically analyzing the line graph of communication risk changes over time is as follows: Calculate the slope of the line segment formed by two adjacent communication points, sum the slopes greater than zero to obtain the risk increase value, and sum the slopes less than zero to obtain the risk reduction value; The slope equal to zero is recorded as the equilibrium slope, and the communication risk values ​​corresponding to the two adjacent acquisition moments are averaged to obtain the equilibrium value; thus, the equilibrium value corresponding to each equilibrium slope can be obtained; each equilibrium value is compared and analyzed with the set equilibrium interval to divide each equilibrium value into risk balance, medium risk balance and light risk balance, and the number of high risk balance, medium risk balance and light risk balance is counted respectively, and the average of each equilibrium value is calculated to obtain the equilibrium mean; The balance degree value is obtained by formulating and analyzing the number of balance mean, high risk balance, medium risk balance and light risk balance; The slope, risk increase value, risk reduction value and balance degree value are normalized and their values ​​are taken, and the communication index is obtained by numerical analysis.

6. A network security analysis system based on a firewall, characterized in that: Applied to the firewall-based network security analysis method as described in any one of claims 1 to 5, the system comprises: a server, a security analysis module and a security management and control module; The server collects and stores the behavior data of each user in the station, the communication data of each device and the historical login information of each user. The behavior data includes the login time, login IP address, number of operations, and the operation type, operation data and operation duration corresponding to each operation. The communication data includes traffic, data transmission volume, memory usage and CPU load. The security analysis module performs fine-grained security analysis on each user and each device based on the behavior data and communication data to obtain the behavior index and communication index, and sends them to the security control module; The security control module dynamically adjusts the user's access mode and the device's communication mode based on the user's behavior index and the device's communication index. Specifically: The behavior index of each user is retrieved and compared with the set behavior interval. When the behavior index is greater than the maximum value in the set behavior interval, the user is locked and can only query data. When the behavior index is within the set behavior interval, the user's account is restricted and can only query data and download data. When the behavior index is less than the minimum value in the set behavior interval, no restrictions are required and normal access rights are maintained. The communication index of each device is retrieved and compared with the set communication interval. When the communication index is less than the minimum value in the set communication interval, the device is recorded as a safe device; when the communication index is in the set communication interval, the device is recorded as a medium-risk device and isolated. The specific isolation method is: redirect the communication traffic of the medium-risk device to the safe device through SDN to form an independent logical subnet; when the communication index is greater than the maximum value in the set communication interval, the device is recorded as a high-risk device and controlled to enter the island mode.

7. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the firewall-based network security analysis method as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Multi-modal data intelligent recommendation method and system based on Internet of Things perception

    CN117666377A

  • Internet of vehicles security terminal threat intrusion detection system

    CN118611984A

  • Intelligent campus archive data security management system

    CN118710461A

  • Investor Profiling and Behavioral Risk Management System for Wealth Management

    US20230035818A1

  • Risky code pre-detection method and apparatus, electronic device, computer readable storage medium, and computer program product

    WO2023236538A1

Cited By

  • Intranet access control method and system of server

    CN122204528A