A network security risk assessment method, system and storage medium

By analyzing traffic data, calculating and comprehensively evaluating the risk assessment coefficients of SQL injection, XSS attacks and command execution times, the problem of failing to fully consider the impact of multiple attack methods in the existing technology is solved, and the accuracy of network security risk assessment is improved. .

CN117544407BActive Publication Date: 2024-09-10CHINA TELECOM CO LTD PUYANG BRANCH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311754849.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-19
Publication Date
2024-09-10
Estimated Expiration
2043-12-19

AI Technical Summary

Technical Problem

Existing technologies fail to fully consider the impact of multiple attack methods when assessing network security risks, resulting in inaccurate assessments.

Method used

By analyzing traffic data, calculating the number of SQL injections, XSS attacks and command executions, calculating the corresponding risk assessment coefficient, and comprehensively evaluating the comprehensive risk assessment coefficient of the IP address, the network security risk level is determined.

Benefits of technology

It improves the accuracy of network security risk assessment and provides more reasonable and accurate risk assessment results by incorporating assessment factors from multiple attack methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117544407B
    Figure CN117544407B
Patent Text Reader

Abstract

The present invention discloses a network security risk assessment method, system and storage medium, which relates to the field of network security technology, and includes the following steps: analyzing the collected traffic, determining the risk IP addresses that are attacked within a certain period of time, and i 、Risk IP address a i Number of SQL injections received i 、Number of XSS attacks c i , and the number of times the command is executed d i , and then inject SQL times b i 、Number of XSS attacks c i , and the number of times the command is executed d i , calculate the risk IP address a i SQL injection risk assessment coefficient SQL i , XSS attack risk assessment coefficient XSS i , Command execution risk assessment coefficient MLZX i , and the comprehensive risk assessment factor FXPG i , and finally the risky IP address a i Comprehensive risk assessment coefficient of FXPG i Compare with the risk assessment threshold to identify risky IP addressesa i The network security risk level of the present invention improves the accuracy of network security risk assessment by incorporating SQL injection, XSS attack, and command execution into the calculation factors of risk assessment.
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 risk assessment method, system and storage medium. Background Art

[0002] In recent years, the network security situation of my country's critical information infrastructure has become increasingly severe, and network attack incidents have increased day by day. The risk of the attacker's IP is usually assessed based on the number of security incidents launched by the attacker's Internet Protocol (IP). In the prior art, the risk of the attacker's IP is assessed by comparing the security incidents of each province in turn. The analysis basis is insufficient, and it is difficult to form an intuitive and effective analysis report, resulting in low efficiency and inaccurate judgment of network security risk assessment. In order to improve the rationality and accuracy of risk assessment, it is necessary to extract more features of the event and find a more reasonable method.

[0003] In the prior art, a network security risk assessment method, device, electronic device and storage medium with a publication number of "CN115412358A" are provided, which relate to the field of network security technology. The method includes obtaining security event information of multiple provinces to determine key data, the key data including multiple IP addresses, rule information, province information, hit count information, and response code information; according to the key data, determine the set of rule information, the set of province information, the set of hit count information and the set of response code information corresponding to each IP address; determine the risk sorting tree of IP addresses according to the set of rule information, the set of province information, the set of hit count information and the set of response code information corresponding to each IP address according to the preset sorting algorithm, and establish the risk sorting tree of IP addresses according to the four characteristics of the rule category, the province to which it belongs, the number of attacks and the attack response code of each IP, so as to accurately assess the network security risk.

[0004] However, the existing technology still has major defects. For example, when evaluating network security risks, the existing technology does not take into account the influencing factor of multiple attack methods. For the same IP address, the attack methods can be diverse, such as SQL injection, XSS attack, command execution and other attack methods. When evaluating network security risks, the above-mentioned existing technology does not take into account the impact of different attack methods (such as SQL injection, XSS attack, command execution and other attack methods) on risk assessment factors, and has certain limitations. Summary of the invention

[0005] The purpose of the present invention is to provide a network security risk assessment method, system and storage medium to solve the problems raised in the above background technology.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] A network security risk assessment method, comprising:

[0008] S1, analyze the collected traffic and determine the risk IP addresses that are attacked within a certain period of time. i 、Risk IP address a i Number of SQL injections received i 、Risk IP address a i Number of XSS attacks received c i , and risky IP addresses a i The number of times the command was executed i , where i represents the number of different risky IP addresses, i = 1, 2, 3, ..., n;

[0009] S2, number of SQL injections b i 、Number of XSS attacks c i , and the number of times the command is executed d i , calculate the risk IP address a i SQL injection risk assessment coefficient SQL i , XSS attack risk assessment coefficient XSS i , and command execution risk assessment coefficient MLZX i ;

[0010] S3, based on the SQL injection risk assessment coefficient SQL i , XSS attack risk assessment coefficient XSS i , and command execution risk assessment coefficient MLZX i , calculate the risk IP address a i Comprehensive risk assessment coefficient of FXPG i ;

[0011] S4, the risky IP address a i Comprehensive risk assessment coefficient of FXPG i Compare with the risk assessment threshold to identify risky IP addressesa i The network security risk level.

[0012] Preferably, S2, through SQL injection times b i 、Number of XSS attacks c i , and the number of times the command is executed d i , calculate the risk IP address a i SQL injection risk assessment coefficient SQL i , XSS attack risk assessment coefficient XSS i , and command execution risk assessment coefficient MLZX i , specifically including:

[0013] Number of SQL injections b i 、Number of XSS attacks c i , and the number of times the command is executed d i , calculate the first SQL injection risk assessment coefficient SQL1 i , the calculation formula is as follows:

[0014]

[0015] Number of SQL injections b i 、Number of XSS attacks c i , and the number of times the command is executed d i , calculate the second SQL injection risk assessment coefficient SQL2 i , the calculation formula is as follows:

[0016]

[0017] According to the first SQL injection risk assessment coefficient SQL1 i , and the second SQL injection risk assessment factor SQL2 i , calculate the comprehensive SQL injection risk assessment coefficient SQL i , the calculation formula is as follows:

[0018]

[0019] Among them, x1, x2, and x3 are SQL1 i , and ln(1+SQL1 i +SQL2 i ), and x1, x2, x3 are all greater than 0, and l is a natural constant.

[0020] Preferably, S2, through SQL injection times b i 、Number of XSS attacks c i , and the number of times the command is executed d i , calculate the risk IP address a i SQL injection risk assessment coefficient SQL i , XSS attack risk assessment coefficient XSS i , and command execution risk assessment coefficient MLZX i , specifically including:

[0021] Number of SQL injections b i 、Number of XSS attacks c i , and the number of times the command is executed d i , calculate the first XSS attack risk assessment coefficient XSS1 i, the calculation formula is as follows:

[0022]

[0023] Number of SQL injections b i 、Number of XSS attacks c i , and the number of times the command is executed d i , calculate the second XSS attack risk assessment coefficient XSS2 i , the calculation formula is as follows:

[0024]

[0025] According to the first XSS attack risk assessment coefficient XSS1 i , and the second XSS attack risk assessment coefficient XSS2 i , calculate the comprehensive XSS attack risk assessment coefficient XSS i , the calculation formula is as follows:

[0026]

[0027] Among them, y1, y2, and y3 are XSS1 i , And ln(1+XSS1 i +XSS2 i ), and y1, y2, y3 are all greater than 0, and l is a natural constant.

[0028] Preferably, S2, through SQL injection times b i 、Number of XSS attacks c i , and the number of times the command is executed d i , calculate the risk IP address a i SQL injection risk assessment coefficient SQL i , XSS attack risk assessment coefficient XSS i , and command execution risk assessment coefficient MLZX i , specifically including:

[0029] Number of SQL injections b i 、Number of XSS attacks c i , and the number of times the command is executed d i , calculate the first command execution risk assessment coefficient MLZX1 i , the calculation formula is as follows:

[0030]

[0031] Number of SQL injections b i 、Number of XSS attacks c i, and the number of times the command is executed d i , calculate the second command execution risk assessment coefficient MLZX2 i , the calculation formula is as follows:

[0032]

[0033] Execute the risk assessment coefficient MLZX1 according to the first command i , and the second command execution risk assessment coefficient MLZX2 i , calculate the comprehensive command execution risk assessment coefficient MLZX i , the calculation formula is as follows:

[0034]

[0035] Among them, z1, z2, and z3 are MLZX1 respectively. i , and ln(1+MLZX1 i +MLZX2 i ), and z1, z2, z3 are all greater than 0, and l is a natural constant.

[0036] Preferably, S3, based on the SQL injection risk assessment coefficient SQL i , XSS attack risk assessment coefficient XSS i , and command execution risk assessment coefficient MLZX i , calculate the risk IP address a i Comprehensive risk assessment coefficient of FXPG i , including:

[0037] Risky IP addressa i Comprehensive risk assessment coefficient of FXPG i The calculation formula is as follows:

[0038]

[0039] Among them, m1, m2, and m3 are SQL i 、XSS i ,as well as The preset proportional coefficient, and m1, m2, m3 are all greater than 0, and l is a natural constant.

[0040] Preferably, S4, the risk IP address a i Comprehensive risk assessment coefficient of FXPG i Compare with the risk assessment threshold to identify risky IP addressesa i The cybersecurity risk level includes:

[0041] The risk assessment threshold includes a first risk assessment threshold FXYZ1 and a second risk assessment threshold FXYZ2 which is greater than the first risk assessment threshold FXYZ1. When FXPG i ≤FXYZ1, risky IP address a i The cybersecurity risk level is low risk. When FXYZ1 is met <FXPG i ≤FXYZ2, risky IP address a i The cybersecurity risk level is medium risk. When FXYZ2 <FXPG i When the risk IP address a i The cybersecurity risk level is high.

[0042] A network security risk assessment system, used for the above network security risk assessment method, comprising:

[0043] The data collection unit is used to analyze the collected traffic and determine the risky IP addresses that are attacked within a certain period of time. i 、Risk IP address a i Number of SQL injections received i 、Risk IP address a i Number of XSS attacks received c i , and risky IP addresses a i The number of times the command was executed i , where i represents the number of different risky IP addresses, i = 1, 2, 3, ..., n;

[0044] The first data processing unit is used to inject the number of SQL injections b i 、Number of XSS attacks c i , and the number of times the command is executed d i , calculate the risk IP address a i SQL injection risk assessment coefficient SQL i , XSS attack risk assessment coefficient XSS i , and command execution risk assessment coefficient MLZX i ;

[0045] The second data processing unit is used to process the SQL injection risk assessment coefficient SQL i , XSS attack risk assessment coefficient XSS i , and command execution risk assessment coefficient MLZX i , calculate the risk IP address a i Comprehensive risk assessment coefficient of FXPG i ;

[0046] Risk assessment unit, used to identify risky IP addresses iComprehensive risk assessment coefficient of FXPG i Compare with the risk assessment threshold to identify risky IP addressesa i The network security risk level.

[0047] A storage medium stores a computer program, which implements the above-mentioned network security risk assessment method when executed by a processor.

[0048] Compared with the prior art, the present invention has the following beneficial effects:

[0049] The network security risk assessment method, system and storage medium of the present invention calculate the SQL injection risk assessment coefficient, XSS attack risk assessment coefficient, command execution risk assessment coefficient and comprehensive risk assessment coefficient of the risk IP address through the number of SQL injections, the number of XSS attacks and the number of command executions, thereby incorporating SQL injection, XSS attack and command execution into the calculation factors of risk assessment, thereby improving the accuracy of network security risk assessment. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only for the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0051] Figure 1 This is a flow chart of the network security risk assessment method of the present invention;

[0052] Figure 2 This is a module unit diagram of the network security risk assessment system of the present invention. DETAILED DESCRIPTION

[0053] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.

[0054] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0055] The present invention provides a network security assessment method according to an embodiment, comprising the following steps:

[0056] S1, analyze the collected traffic and determine the risk IP addresses that are attacked within a certain period of time. i 、Risk IP address a i Number of SQL injections received i 、Risk IP address a i Number of XSS attacks received c i , and risky IP addresses a i The number of times the command was executed i , where i represents the number of different risky IP addresses, i = 1, 2, 3, ..., n;

[0057] As an implementation method, the specific method of analyzing the collected traffic is: using WAF (website application-level intrusion prevention system) or IDPS (intrusion detection and prevention system) to collect traffic from the network. The collected traffic includes network data such as attack information, and the attack information includes SQL (Structured Query Language) injection, XSS (Cross Site Scripting) attack, command execution and other attack methods. By analyzing the collected traffic, the attack situation of each IP address can be obtained, so that the risk IP address a that is attacked within a certain period of time (it can be one day, one week, one month, etc., which is not limited here) can be obtained. i 、Risk IP address a i Number of SQL injections received i 、Risk IP address a i Number of XSS attacks received c i , and risky IP addresses a iThe number of times the command was executed i ;

[0058] SQL injection is a common network security vulnerability that allows attackers to access, modify, or delete data in a database by manipulating application input to execute malicious SQL queries. SQL injection usually occurs when user input is not properly validated and filtered, allowing attackers to insert malicious SQL code into the application's input fields. This can lead to data leakage, data corruption, or a complete crash of the application. Therefore, it is particularly important to include SQL injection as an assessment factor when evaluating network security risks.

[0059] Similarly, XSS (cross-site scripting) attacks are also a common network security vulnerability, which allows attackers to insert malicious script code into web pages and then execute these malicious scripts in the user's browser. This attack usually occurs when the application does not properly validate and filter user input, allowing attackers to inject malicious scripts into the application's web page content. XSS attacks can lead to malicious behaviors such as stealing user session information, tampering with web page content, and redirecting users to malicious websites. Therefore, when evaluating network security risks, it is also particularly important to include XSS attacks as an assessment factor;

[0060] Command execution refers to the process by which an attacker executes system commands or other malicious code through an application. This attack usually occurs when the application does not properly validate and filter user input. Attackers exploit this vulnerability to embed malicious commands into the application, which is then executed in the context of the application, usually on the server side. Therefore, when evaluating network security risks, it is necessary to incorporate command execution into the network security risk assessment method.

[0061] S2, number of SQL injections b i 、Number of XSS attacks c i , and the number of times the command is executed d i , calculate the risk IP address a i SQL injection risk assessment coefficient SQL i , XSS attack risk assessment coefficient XSS i , and command execution risk assessment coefficient MLZX i , as follows:

[0062] S21, SQL injection risk assessment coefficient SQL i The calculation method is as follows:

[0063] S211, number of SQL injections b i 、Number of XSS attacks ci , and the number of times the command is executed d i , calculate the first SQL injection risk assessment coefficient SQL1 i , the calculation formula is as follows:

[0064]

[0065] It should be noted that The larger the value, the higher the risk of IP address being attacked. i The greater the proportion of SQL injection attacks, the greater the risk of SQL injection to risky IP addresses. i The greater the risk assessment impact, the greater the risk assessment coefficient of SQL injection. i The bigger, the The larger the value, the greater the proportion of SQL injection attacks among the three attack methods, and the greater the impact of SQL injection on the risk assessment of risky IP addresses. i The bigger it is.

[0066] S212, number of SQL injections b i 、Number of XSS attacks c i , and the number of times the command is executed d i , calculate the second SQL injection risk assessment coefficient SQL2 i , the calculation formula is as follows:

[0067]

[0068] It should be noted that The larger the value, the higher the risk of IP address a in SQL injection attacks. i The greater the proportion of attacks, the greater the risk of SQL injection to the risky IP address. i The greater the risk assessment impact, the greater the risk assessment coefficient of SQL injection. i The bigger it is, The larger the value, the more risky IP addresses are among all the risky IP addresses that are attacked. i The greater the proportion of attacks received, the higher the second SQL injection risk assessment coefficient SQL2 i The bigger it is.

[0069] S213, based on the first SQL injection risk assessment coefficient SQL1 i , and the second SQL injection risk assessment factor SQL2 i , calculate the comprehensive SQL injection risk assessment coefficient SQL i , the calculation formula is as follows:

[0070]

[0071] It should be noted that the first SQL injection risk assessment coefficient SQL1 i , and the second SQL injection risk assessment factor SQL2 i The larger the value, the higher the comprehensive SQL injection risk assessment coefficient. i The larger the risk, the higher the IP address a i The greater the network risk;

[0072] It should be noted that x1, x2, and x3 are SQL1 i , and ln(1+SQL1 i +SQL2 i ), and x1, x2, x3 are all greater than 0, and l is a natural constant.

[0073] S22, XSS attack risk assessment coefficient XSS i The calculation method is as follows:

[0074] S221, number of SQL injections b i 、Number of XSS attacks c i , and the number of times the command is executed d i , calculate the first XSS attack risk assessment coefficient XSS1 i , the calculation formula is as follows:

[0075]

[0076] It should be noted that The larger the value, the higher the risk of IP address being attacked. i The greater the proportion of XSS attacks, the greater the risk of XSS attacks on risky IP addresses. i The greater the risk assessment impact, the greater the first XSS attack risk assessment coefficient XSS1 i The bigger, the The larger the value is, the greater the proportion of XSS attacks among the three attack methods, and the greater the impact of XSS attacks on the risk assessment of risky IP addresses. The first XSS attack risk assessment coefficient is XSS1 i The bigger it is.

[0077] S222, number of SQL injections b i 、Number of XSS attacks c i , and the number of times the command is executed d i , calculate the second XSS attack risk assessment coefficient XSS2i , the calculation formula is as follows:

[0078]

[0079] It should be noted that The larger the value, the higher the risk of IP address a in the attack method of XSS attack. i The greater the proportion of attacks, the greater the risk of XSS attacks on risky IP addresses. i The greater the risk assessment impact, the second XSS attack risk assessment coefficient is XSS2 i The bigger it is, The larger the value, the more risky IP addresses are among all the risky IP addresses that are attacked. i The greater the proportion of attacks received, the higher the second XSS attack risk assessment coefficient XSS2 i The bigger it is.

[0080] S223, based on the first XSS attack risk assessment coefficient XSS1 i , and the second XSS attack risk assessment coefficient XSS2 i , calculate the comprehensive XSS attack risk assessment coefficient XSS i , the calculation formula is as follows:

[0081]

[0082] It should be noted that the first XSS attack risk assessment coefficient XSS1 i , and the second XSS attack risk assessment coefficient XSS2 i The larger the value, the more comprehensive the XSS attack risk assessment coefficient XSS i The larger the risk, the higher the IP address a i The greater the network risk;

[0083] It should be noted that y1, y2, and y3 are XSS1 i , and ln(1+XSS1 i +XSS2 i ), and y1, y2, y3 are all greater than 0, and l is a natural constant.

[0084] S23, command execution risk assessment coefficient MLZX i The calculation method is as follows:

[0085] S231, number of SQL injections b i 、Number of XSS attacks c i , and the number of times the command is executed d i, calculate the first command execution risk assessment coefficient MLZX1 i , the calculation formula is as follows:

[0086]

[0087] It should be noted that The larger the value, the higher the risk of IP address being attacked. i The greater the proportion of attacks in which the attack method is command execution, the greater the risk of command execution on risky IP addresses. i The greater the risk assessment impact, the greater the risk assessment coefficient of the first command execution MLZX1 i The bigger, the The larger the value, the greater the proportion of the number of attacks by command execution among the three attack methods, and the greater the impact of command execution on the risk assessment of risky IP addresses. The first command execution risk assessment coefficient MLZX1 i The bigger it is.

[0088] S232, number of SQL injections b i 、Number of XSS attacks c i , and the number of times the command is executed d i , calculate the second command execution risk assessment coefficient MLZX2 i , the calculation formula is as follows:

[0089]

[0090] It should be noted that The larger the value, the higher the risk of IP address a in attacks where the attack method is command execution. i The greater the proportion of attacks received, the more likely the command execution is to affect the risky IP address. i The greater the risk assessment impact, the greater the risk assessment coefficient of the second command execution MLZX2 i The bigger it is, The larger the value, the more risky IP addresses are among all the risky IP addresses that are attacked. i The greater the proportion of the number of attacks received, the higher the risk assessment coefficient of the second command execution MLZX2 i The bigger it is.

[0091] S233, execute the risk assessment coefficient MLZX1 according to the first command i , and the second command execution risk assessment coefficient MLZX2 i , calculate the comprehensive command execution risk assessment coefficient MLZX i , the calculation formula is as follows:

[0092]

[0093] It should be noted that the first command execution risk assessment coefficient MLZX1 i , and the second command execution risk assessment coefficient MLZX2 i The larger the value, the higher the comprehensive command execution risk assessment coefficient MLZX i The larger the risk, the higher the IP address a i The greater the network risk;

[0094] It should be noted that z1, z2, and z3 are MLZX1 respectively. i , and ln(1+MLZX1 i +MLZX2 i ), and z1, z2, z3 are all greater than 0, and l is a natural constant.

[0095] S3, based on the SQL injection risk assessment coefficient SQL i , XSS attack risk assessment coefficient XSS i , and command execution risk assessment coefficient MLZX i , calculate the risk IP address a i Comprehensive risk assessment coefficient of FXPG i , the calculation formula is as follows:

[0096]

[0097] It should be noted that the SQL injection risk assessment coefficient SQL i , XSS attack risk assessment coefficient XSS i , and command execution risk assessment coefficient MLZX i The larger the comprehensive risk assessment coefficient FXPG i , indicating the risky IP address a i The greater the network risk;

[0098] It should be noted that m1, m2, and m3 are SQL i 、XSS i ,as well as The preset proportional coefficient, and m1, m2, m3 are all greater than 0, and l is a natural constant.

[0099] S4, the risky IP address a i Comprehensive risk assessment coefficient of FXPG i Compare with the risk assessment threshold to identify risky IP addressesa i The specific comparison method is as follows:

[0100] The risk assessment threshold includes a first risk assessment threshold FXYZ1 and a second risk assessment threshold FXYZ2 which is greater than the first risk assessment threshold FXYZ1. When FXPG i ≤FXYZ1, risky IP address a i The cybersecurity risk level is low risk. When FXYZ1 is met <FXPG i ≤FXYZ2, risky IP address a i The cybersecurity risk level is medium risk. When FXYZ2 <FXPG i When the risk IP address a i The cybersecurity risk level is high.

[0101] The present invention also provides a network security risk assessment system according to another embodiment, comprising:

[0102] The data collection unit is used to analyze the collected traffic and determine the risky IP addresses that are attacked within a certain period of time. i 、Risk IP address a i Number of SQL injections received i 、Risk IP address a i Number of XSS attacks received c i , and risky IP addresses a i The number of times the command was executed i , where i represents the number of different risky IP addresses, i = 1, 2, 3, ..., n;

[0103] The first data processing unit is used to inject the number of SQL injections b i 、Number of XSS attacks c i , and the number of times the command is executed d i , calculate the risk IP address a i SQL injection risk assessment coefficient SQL i , XSS attack risk assessment coefficient XSS i , and command execution risk assessment coefficient MLZX i ;

[0104] The second data processing unit is used to process the SQL injection risk assessment coefficient SQL i , XSS attack risk assessment coefficient XSS i , and command execution risk assessment coefficient MLZX i , calculate the risk IP address a i Comprehensive risk assessment coefficient of FXPG i ;

[0105] Risk assessment unit, used to identify risky IP addresses iComprehensive risk assessment coefficient of FXPG i Compare with the risk assessment threshold to identify risky IP addressesa i The network security risk level.

[0106] The present invention also provides a storage medium of another embodiment, in which a computer program for executing the above-mentioned network security risk assessment method is stored, and the storage medium has an electrical connection of one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0107] The storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than the storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.

[0108] The above embodiments can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0109] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

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

[0111] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division of a waterway underwater terrain change analysis system and method. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0112] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0113] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0114] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes 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 methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0115] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0116] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A network security risk assessment method, characterized in that: include: S1: Analyze the collected traffic and determine the risky IP addresses that are attacked within a certain period of time. , Risky IP addresses Number of SQL injections received , Risky IP addresses Number of XSS attacks received , and risky IP addresses The number of times the command was executed , where i represents the number of different risky IP addresses, i=1, 2, 3, ..., n; S2, number of SQL injections , Number of XSS attacks , and the number of times the command was executed , calculate the risk of IP address SQL injection risk assessment coefficient , XSS attack risk assessment coefficient , and command execution risk assessment coefficient ; S3, based on the SQL injection risk assessment coefficient , XSS attack risk assessment coefficient , and command execution risk assessment coefficient , calculate the risk of IP address Comprehensive risk assessment factor ; S4, the risky IP address Comprehensive risk assessment factor Compare with risk assessment threshold to identify risky IP addresses The cybersecurity risk level of The step S2 comprises: Number of SQL injections , Number of XSS attacks , and the number of times the command was executed , calculate the first SQL injection risk assessment coefficient , the calculation formula is as follows: ; Number of SQL injections , Number of XSS attacks , and the number of times the command was executed , calculate the second SQL injection risk assessment coefficient , the calculation formula is as follows: ; According to the first SQL injection risk assessment coefficient , and the second SQL injection risk assessment coefficient , calculate the comprehensive SQL injection risk assessment coefficient , the calculation formula is as follows: in, , , They are , ,as well as The preset scaling factor of , , are greater than 0, and is a natural constant; Number of SQL injections , Number of XSS attacks , and the number of times the command was executed , calculate the first XSS attack risk assessment coefficient , the calculation formula is as follows: ; Number of SQL injections , Number of XSS attacks , and the number of times the command was executed , calculate the second XSS attack risk assessment coefficient , the calculation formula is as follows: ; According to the first XSS attack risk assessment coefficient , and the second XSS attack risk assessment coefficient , calculate the comprehensive XSS attack risk assessment coefficient , the calculation formula is as follows: in, , , They are , ,as well as The preset scaling factor of , , are greater than 0, and is a natural constant; Number of SQL injections , Number of XSS attacks , and the number of times the command was executed , calculate the first command execution risk assessment coefficient , the calculation formula is as follows: ; Number of SQL injections , Number of XSS attacks , and the number of times the command was executed , calculate the second command execution risk assessment coefficient , the calculation formula is as follows: ; Execute risk assessment factor according to first order , and the second command execution risk assessment coefficient , calculate the comprehensive command execution risk assessment coefficient , the calculation formula is as follows: in, , , They are , ,as well as The preset scaling factor of , , are greater than 0, and is a natural constant; The step S3 specifically includes: Risky IP addresses Comprehensive risk assessment factor The calculation formula is as follows: in, , , They are , ,as well as The preset scaling factor of , , are greater than 0, and is a natural constant.

2. The network security risk assessment method according to claim 1, characterized in that: S4, the risky IP address Comprehensive risk assessment factor Compare with risk assessment threshold to identify risky IP addresses The cybersecurity risk level includes: The risk assessment threshold includes the first risk assessment threshold , and greater than the first risk assessment threshold The second risk assessment threshold , when satisfied When the risky IP address The network security risk level is low risk. When the risky IP address The network security risk level is medium risk. When the risky IP address The cybersecurity risk level is high.

3. A network security risk assessment system, used in the network security risk assessment method according to any one of claims 1 to 2, characterized in that: include: Data collection unit, used to analyze the collected traffic and determine the risky IP addresses that are attacked within a certain period of time , Risky IP addresses Number of SQL injections received , Risky IP addresses Number of XSS attacks received , and risky IP addresses The number of times the command was executed , where i represents the number of different risky IP addresses, i=1, 2, 3, ..., n; The first data processing unit is used to process the number of SQL injections. , Number of XSS attacks , and the number of times the command was executed , calculate the risk of IP address SQL injection risk assessment coefficient , XSS attack risk assessment coefficient , and command execution risk assessment coefficient ; The second data processing unit is used to evaluate the SQL injection risk coefficient , XSS attack risk assessment coefficient , and command execution risk assessment coefficient , calculate the risk of IP address Comprehensive risk assessment factor ; Risk Assessment Unit, used to identify risky IP addresses Comprehensive risk assessment factor Compare with risk assessment threshold to identify risky IP addresses The network security risk level.

4. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the network security risk assessment method described in any one of claims 1 to 2 is implemented.