Defense rule checking method and device, storage medium and electronic equipment

By automatically matching the unique identifier data of the attack flow with the defense rule number, the problem of time-consuming and labor-intensive verification of traditional BPS attack defense is solved, and fast and accurate defense rule verification is achieved.

CN115695259BActive Publication Date: 2026-11-24BEIJING TOPSEC NETWORK SECURITY TECH +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211067544.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-01
Publication Date
2026-11-24
Estimated Expiration
2042-09-01

AI Technical Summary

Technical Problem

Existing technologies consume a lot of time in the attack defense verification process for nearly 10,000 vulnerability attacks. Traditional BPS attack defense verification requires manual testing and verification, which is inconvenient to operate and has a large workload.

Method used

By obtaining the unique identifier data of the attack flow and the defense rule number, the system automatically matches and detects log reports to determine the accuracy of the defense rules and simplify the verification process.

Benefits of technology

It enables rapid and accurate verification without manual intervention, improving user experience and work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695259B_ABST
    Figure CN115695259B_ABST
Patent Text Reader

Abstract

The method comprises the following steps: acquiring unique identification data corresponding to an attack flow according to the name of the attack flow, wherein the unique identification data at least comprises a data 5-tuple; acquiring a first number of a defense rule executed for the attack flow; matching the unique identification data and the first number with each defense rule in a detection log report, wherein the defense rule at least comprises unique identification data of the attack flow and a second number of the defense rule corresponding to the unique identification data; and determining the accuracy of the defense rule in the detection log report according to a matching result. The scheme of the embodiment of the present disclosure has a simple verification process, does not require manual operation, is accurate in detection, and has a good user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of network security, and in particular to a method, apparatus, storage medium, and electronic device for verifying defense rules. Background Technology

[0002] With the rapid development of Internet technology, network security has become an increasingly important issue of concern. After a vulnerability security incident occurs, the attack and defense verification of the vulnerability is very important. BPS (BreakingPoint Systems), as a security testing instrument, has simulated attack traffic for nearly 10,000 vulnerabilities. However, the attack and defense verification process for these nearly 10,000 vulnerabilities often takes a lot of time. Traditional BPS attack and defense verification can only be done manually, one by one, which is very inconvenient and has a large workload. Summary of the Invention

[0003] In view of this, the present disclosure proposes a method, apparatus, storage medium and electronic device for verifying defense rules, in order to solve the following problems of the prior art: the attack defense verification process of the prior art for nearly 10,000 vulnerability attacks often takes a lot of time. Traditional BPS attack defense verification can only be done manually to test and verify the detection status one by one, which is very inconvenient and has a large workload.

[0004] On one hand, this disclosure proposes a method for verifying defense rules, including: obtaining unique identifier data corresponding to the attack flow based on the name of the attack flow, wherein the unique identifier data includes at least a data 5-tuple; obtaining a first number of the defense rule executed against the attack flow; matching the unique identifier data and the first number with each defense rule in the detection log report, wherein the defense rule includes at least the unique identifier data of the attack flow and a second number of the defense rule corresponding to the unique identifier data; and determining the accuracy of the defense rules in the detection log report based on the matching result.

[0005] In some embodiments, obtaining the unique identifier data corresponding to the attack flow based on the name of the attack flow includes: obtaining the name of the attack flow received by the security detection device; matching the name with an attack test report stored by the security detection device to determine the unique identifier data corresponding to the name, wherein the attack test report includes at least: the name of the attack flow and the unique identifier data corresponding to the name.

[0006] In some embodiments, matching the unique identifier data and the number with the detection log report in the security detection device includes: detecting whether there is unique identifier data in the detection log report that is the same as the unique identifier data; if there is the same unique identifier data, detecting whether the second number of the defense rule corresponding to the unique identifier data is the same as the first number.

[0007] In some embodiments, determining the accuracy of the defense rules in the detection log report based on the matching results includes: determining that the defense rules in the detection log report have missed detections when there is no identical unique identifier data; determining that the defense rules corresponding to the unique identifier data have false positives when the second number is different from the first number; and determining that the defense rules corresponding to the unique identifier data are accurate when the second number is the same as the first number.

[0008] On the other hand, this disclosure proposes a verification device for defense rules, comprising: a first acquisition module, configured to acquire unique identifier data corresponding to the attack flow based on the name of the attack flow, wherein the unique identifier data includes at least a data 5-tuple; a second acquisition module, configured to acquire a first number of the defense rule executed against the attack flow; a matching module, configured to match the unique identifier data and the first number with each defense rule in a detection log report, wherein the defense rule includes at least the unique identifier data of the attack flow and a second number of the defense rule corresponding to the unique identifier data; and a determination module, configured to determine the accuracy of the defense rules in the detection log report based on the matching result.

[0009] In some embodiments, the first acquisition module is specifically used to: acquire the name of the attack flow received by the security detection device; match the name with the attack test report stored by the security detection device to determine the unique identification data corresponding to the name, wherein the attack test report includes at least: the name of the attack flow and the unique identification data corresponding to the name.

[0010] In some embodiments, the matching module is specifically used to: detect whether there is unique identifier data in the detection log report that is the same as the unique identifier data; if there is the same unique identifier data, detect whether the second number of the defense rule corresponding to the unique identifier data is the same as the first number.

[0011] In some embodiments, the determining module is specifically configured to: determine that the defense rules of the detection log report have a missed detection when there is no identical unique identifier data; determine that the defense rules corresponding to the unique identifier data have a false detection when the second number is different from the first number; and determine that the defense rules corresponding to the unique identifier data are accurate when the second number is the same as the first number.

[0012] On the other hand, embodiments of this disclosure provide a storage medium storing a computer program that, when executed by a processor, implements the methods provided in any embodiment of this disclosure.

[0013] On the other hand, embodiments of this disclosure provide an electronic device, including at least a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the method provided in any embodiment of this disclosure when executing the computer program in the memory.

[0014] This embodiment of the disclosure determines the unique identifier data corresponding to the attack flow based on the name of the attack flow, and uses the unique identifier data and the first number of the defense rule executed against the attack flow to match the detection log report. Then, based on the matching result, it can be determined which attack flows have defense rules that are not written in the detection log report. The verification process of this solution is simple, requires no manual operation, has accurate detection, and provides a good user experience. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1 A flowchart of the method for verifying defense rules provided in the first embodiment of this disclosure;

[0017] Figure 2 A schematic diagram of the structure of the defense rule verification device provided in the second embodiment of this disclosure;

[0018] Figure 3 This is a schematic diagram of the structure of an electronic device provided in the fourth embodiment of this disclosure. Detailed Implementation

[0019] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this disclosure. All other embodiments obtained by those skilled in the art based on the described embodiments of this disclosure without creative effort are within the scope of protection of this disclosure.

[0020] Unless otherwise defined, the technical or scientific terms used in this disclosure shall have the ordinary meaning understood by one of ordinary skill in the art to which this disclosure pertains. The terms “first,” “second,” and similar terms used in this disclosure do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as “comprising” or “including” mean that the element or object preceding the word encompasses the elements or objects listed following the word and their equivalents, without excluding other elements or objects. Terms such as “connected” or “linked” are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as “upper,” “lower,” “left,” and “right” are used only to indicate relative positional relationships, and these relative positional relationships may change accordingly when the absolute position of the described objects changes.

[0021] To keep the following description of the embodiments of this disclosure clear and concise, detailed descriptions of known functions and known components are omitted.

[0022] The first embodiment of this disclosure provides a method for verifying defense rules, the process of which is as follows: Figure 1 As shown, steps S101 to S104 are included:

[0023] S101. Obtain the unique identifier data corresponding to the attack flow based on the name of the attack flow. The unique identifier data includes at least the following: a data quintuple.

[0024] A data quintuple typically includes the source IP address, destination IP address, protocol number, source port, and destination port. The aforementioned unique identifier data, the data quintuple, is only one example. Any other data that can uniquely identify the attack flow is also acceptable, such as data triples, data quadruples, data heptatules, etc. They are all within the scope of protection of this disclosure and have the same scope of protection as data quintuples.

[0025] In specific implementation, since there is an attack testing device (BPS) that performs the attack, and the attack testing device contains an attack test report, which records at least the name of the attack flow and the unique identifier data corresponding to the name, the unique identifier data corresponding to the attack flow with the predetermined name can be known simply by obtaining the attack test report. Therefore, the security detection device of this embodiment obtains the attack test report stored in the attack testing device in advance, and then can directly determine the unique identifier data according to the name of the attack flow when the attack testing device performs a simulated attack.

[0026] In practice, the security detection device (IDP) first obtains the name of the received attack flow, which could be an attack flow name automatically entered by the system or entered by the user on a predetermined interface. Then, it matches the name with attack test reports stored in the security detection device to determine the unique identifier data corresponding to the name. These attack test reports, stored in the security detection device, are tables containing stored defense rules set for attack flows, and at least include the name of the attack flow and the unique identifier data corresponding to that name.

[0027] S102, obtain the first number of the defense rule to be executed against the attack flow.

[0028] In the presence of an attack flow, the attack flow will execute a defense rule. At this time, obtain the first number of the defense rule executed against the attack flow for later use.

[0029] S103, match the unique identifier data and the first number with each defense rule in the detection log report, wherein the defense rule includes at least: the unique identifier data of the attack flow and the second number of the defense rule corresponding to the unique identifier data.

[0030] During matching, the system can first check if there is any unique identifier data in the detection log report that is the same as the unique identifier data. If there is any unique identifier data, the system can then check if the second number of the defense rule corresponding to the unique identifier data is the same as the first number, in order to determine whether there is a completely consistent defense rule in the detection log report.

[0031] S104. Determine the accuracy of the defense rules in the detection log report based on the matching results.

[0032] Different matching results may occur during the above matching process. If no identical unique identifier data exists, it can be determined that the defense rules in the detection log report have missed detections; if the second number is different from the first number, it can be determined that the defense rules corresponding to the unique identifier data have false positives; if the second number is the same as the first number, it can be determined that the defense rules corresponding to the unique identifier data are accurate.

[0033] To address cases of missed or false alarms, the first number of the defense rule can be written into a database, such as a missed alarm pool or a false alarm pool, which can then optimize the detection log reports.

[0034] This embodiment of the disclosure determines the unique identifier data corresponding to the attack flow based on the name of the attack flow, and uses the unique identifier data and the first number of the defense rule executed against the attack flow to match the detection log report. Then, based on the matching result, it can be determined which attack flows have defense rules that are not written in the detection log report. The verification process of this solution is simple, requires no manual operation, has accurate detection, and provides a good user experience.

[0035] The above process will be illustrated with specific examples below.

[0036] The defense rule verification method provided in this embodiment can be implemented through an automated testing script file. Specifically, during the simulated attack process, the script file can match the attack name of the BPS input at a predetermined access point (e.g., a predetermined interface or node) with the BPS attack test report to obtain the 5-tuple data packet for this attack name in the attack test report. Then, the matched 5-tuple (the 5-tuple corresponding to the attack flow) and the IDP defense rule number (the defense rule executed during the attack) are matched against the 5-tuple of the alarm and the defense rule number in the security detection log report generated by the IDP to obtain the test result of the defense rule corresponding to the BPS attack name. The test result includes a one-to-one correct alarm, missed alarm, and false alarm between the tester and the defense rule. This method simplifies the IDP defense rule verification process and saves significant manpower and time compared to traditional tester testing methods.

[0037] The above testing method mainly includes the following three steps:

[0038] (1) Enter the name of the attack to be verified and the event number of the defense rule written for this attack in the XLS file;

[0039] (2) Obtain the attack test report of BPS and the IDP detection log report during this test;

[0040] (3) Run the automated test script to obtain the test results of the defense rules corresponding to the attack name of the tester (1-to-1 correct alarm, missed alarm, false alarm) and save the test results.

[0041] If the 5-tuples are equal but the defense rule numbers are not equal, it is determined to be a false alarm and the defense rule number is added to the false alarm pool; if the 5-tuple cannot be matched in the detection log report generated by IDP, it is determined to be a missed alarm and the defense rule number is added to the missed alarm pool; if the 5-tuples are equal, the defense rule numbers are equal, and the defense rule number is not in the false alarm pool, it is determined to be the correct test result of the rule corresponding to attack 1.

[0042] This disclosure can be applied to the detection and identification of attacks on operating systems and testing equipment on the Internet. The embodiments of this disclosure can quickly and accurately obtain the test results of the defense rules corresponding to the attack name of the testing instrument (1 to 1 correct alarm, missed alarm, false alarm). The operation is simple and convenient, saving costs and improving work efficiency.

[0043] The second embodiment of this disclosure provides a verification device for defense rules, the structure of which is shown in the figure below. Figure 2 As shown, it includes:

[0044] The first acquisition module 10 is used to acquire unique identifier data corresponding to the attack flow based on the name of the attack flow, wherein the unique identifier data includes at least a 5-tuple; the second acquisition module 20, coupled to the first acquisition module 10, is used to acquire the first number of the defense rule executed against the attack flow; the matching module 30, coupled to the second acquisition module 20, is used to match the unique identifier data and the first number with each defense rule in the detection log report, wherein the defense rule includes at least the unique identifier data of the attack flow and the second number of the defense rule corresponding to the unique identifier data; the determination module 40, coupled to the matching module 30, is used to determine the accuracy of the defense rule in the detection log report based on the matching result.

[0045] A data quintuple typically includes the source IP address, destination IP address, protocol number, source port, and destination port. The aforementioned unique identifier data, the data quintuple, is only one example. Any other data that can uniquely identify the attack flow is also acceptable, such as data triples, data quadruples, data heptatules, etc. They are all within the scope of protection of this disclosure and have the same scope of protection as data quintuples.

[0046] In specific implementation, since there is an attack testing device (BPS) that performs the attack, and the attack testing device contains an attack test report, which at least records the name of the attack flow and the unique identifier data corresponding to the name, the unique identifier data corresponding to the attack flow with the predetermined name can be known simply by obtaining the attack test report. Therefore, the security detection device of this embodiment obtains the attack test report stored in the attack testing device in advance, and can directly determine the unique identifier data based on the name of the attack flow when the attack testing device performs a simulated attack.

[0047] In practice, the security detection device (IDP) first obtains the name of the received attack flow, which could be an attack flow name automatically entered by the system or entered by the user on a predetermined interface. Then, it matches the name with attack test reports stored in the security detection device to determine the unique identifier data corresponding to the name. These attack test reports, stored in the security detection device, are tables containing stored defense rules set for attack flows, and at least include the name of the attack flow and the unique identifier data corresponding to that name.

[0048] Therefore, the first acquisition module is specifically used to: acquire the name of the attack stream received by the security detection device; match the name with the attack test report stored by the security detection device to determine the unique identification data corresponding to the name, wherein the attack test report includes at least: the name of the attack stream and the unique identification data corresponding to the name.

[0049] In the presence of an attack flow, the attack flow will execute a defense rule. At this time, obtain the first number of the defense rule executed against the attack flow for later use.

[0050] The matching module described above is specifically used to: detect whether there is unique identifier data in the detection log report that is the same as the unique identifier data; if there is the same unique identifier data, detect whether the second number of the defense rule corresponding to the unique identifier data is the same as the first number, so as to determine whether there is a completely consistent defense rule in the detection log report.

[0051] The aforementioned determination module is specifically used to: determine if there are missed reports in the defense rules of the detection log report when there is no identical unique identifier data; determine if there are false reports in the defense rules corresponding to the unique identifier data when the second number is different from the first number; and determine if the defense rules corresponding to the unique identifier data are accurate when the second number is the same as the first number.

[0052] Different matching results may occur during the above matching process. If no identical unique identifier data exists, it can be determined that the defense rules in the detection log report have missed detections; if the second number is different from the first number, it can be determined that the defense rules corresponding to the unique identifier data have false positives; if the second number is the same as the first number, it can be determined that the defense rules corresponding to the unique identifier data are accurate.

[0053] To address cases of missed or false alarms, the first number of the defense rule can be written into a database, such as a missed alarm pool or a false alarm pool, which can then optimize the detection log reports.

[0054] This embodiment of the disclosure determines the unique identifier data corresponding to the attack flow based on the name of the attack flow, and uses the unique identifier data and the first number of the defense rule executed against the attack flow to match the detection log report. Then, based on the matching result, it can be determined which attack flows have defense rules that are not written in the detection log report. The verification process of this solution is simple, requires no manual operation, has accurate detection, and provides a good user experience.

[0055] A third embodiment of this disclosure provides a storage medium, which is a computer-readable medium storing a computer program. When executed by a processor, the computer program implements the method provided in any embodiment of this disclosure, including the following steps S11 to S14:

[0056] S11. Obtain the unique identifier data corresponding to the attack flow based on the name of the attack flow. The unique identifier data shall include at least a 5-tuple.

[0057] S12, obtain the first number of the defense rule to be executed against the attack flow;

[0058] S13, match the unique identifier data and the first number with each defense rule in the detection log report, wherein the defense rule includes at least: the unique identifier data of the attack flow and the second number of the defense rule corresponding to the unique identifier data;

[0059] S14, Determine the accuracy of the defense rules in the detection log report based on the matching results.

[0060] When a computer program is executed by a processor to obtain the unique identifier data corresponding to an attack flow based on the name of the attack flow, the processor specifically performs the following steps: obtaining the name of the attack flow received by the security detection device; matching the name with the attack test report stored by the security detection device to determine the unique identifier data corresponding to the name, wherein the attack test report includes at least: the name of the attack flow and the unique identifier data corresponding to the name.

[0061] When the computer program is executed by the processor to match the unique identifier data and number with the detection log report in the security detection device, the processor specifically performs the following steps: detecting whether there is unique identifier data in the detection log report that is the same as the unique identifier data; if there is unique identifier data that is the same, detecting whether the second number of the defense rule corresponding to the unique identifier data is the same as the first number.

[0062] When the computer program is executed by the processor to determine the accuracy of the defense rules in the detection log report based on the matching results, the processor specifically performs the following steps: if there is no identical unique identifier data, determine that there is a missed detection in the defense rules of the detection log report; if the second number is different from the first number, determine that there is a false detection in the defense rules corresponding to the unique identifier data; if the second number is the same as the first number, determine that the defense rules corresponding to the unique identifier data are accurate.

[0063] This embodiment of the disclosure determines the unique identifier data corresponding to the attack flow based on the name of the attack flow, and uses the unique identifier data and the first number of the defense rule executed against the attack flow to match the detection log report. Then, based on the matching result, it can be determined which attack flows have defense rules that are not written in the detection log report. The verification process of this solution is simple, requires no manual operation, has accurate detection, and provides a good user experience.

[0064] Optionally, in this embodiment, the storage medium may include, but is not limited to, various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk. Optionally, in this embodiment, the processor executes the method steps described in the above embodiments according to the program code stored in the storage medium. Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementations, which will not be repeated here. Obviously, those skilled in the art should understand that the modules or steps of this disclosure described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed on a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be executed in a different order than those described here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this disclosure is not limited to any particular hardware and software combination.

[0065] The fourth embodiment of this disclosure provides an electronic device, the structural schematic diagram of which is shown below. Figure 3 As shown, the device includes at least a memory 901 and a processor 902. The memory 901 stores a computer program, and the processor 902 implements the methods provided in any embodiment of this disclosure when executing the computer program in the memory 901. Exemplarily, the steps of the electronic device computer program are as follows: S21 to S24:

[0066] S21. Obtain the unique identifier data corresponding to the attack flow based on the name of the attack flow. The unique identifier data shall include at least a 5-tuple.

[0067] S22, obtain the first number of the defense rule to be executed against the attack flow;

[0068] S23, match the unique identifier data and the first number with each defense rule in the detection log report, wherein the defense rule includes at least: the unique identifier data of the attack flow and the second number of the defense rule corresponding to the unique identifier data;

[0069] S24. Determine the accuracy of the defense rules in the detection log report based on the matching results.

[0070] When the processor executes a computer program stored in memory that retrieves the unique identifier data corresponding to an attack flow based on the name of the attack flow, it specifically executes the following computer program: retrieves the name of the attack flow received by the security detection device; matches the name with an attack test report stored in the security detection device to determine the unique identifier data corresponding to the name, wherein the attack test report includes at least: the name of the attack flow and the unique identifier data corresponding to the name.

[0071] When the processor executes a computer program stored in memory that matches unique identification data and numbers with the detection log reports in the security detection device, it specifically executes the following computer program: detects whether there is unique identification data in the detection log reports that is the same as the unique identification data; if there is the same unique identification data, it detects whether the second number of the defense rule corresponding to the unique identification data is the same as the first number.

[0072] When the processor executes a computer program stored in memory that determines the accuracy of defense rules in the detection log report based on the matching results, it specifically executes the following computer program: if there is no identical unique identifier data, it determines that there is a missed detection in the defense rules of the detection log report; if the second number is different from the first number, it determines that there is a false detection in the defense rules corresponding to the unique identifier data; if the second number is the same as the first number, it determines that the defense rules corresponding to the unique identifier data are accurate.

[0073] This embodiment of the disclosure determines the unique identifier data corresponding to the attack flow based on the name of the attack flow, and uses the unique identifier data and the first number of the defense rule executed against the attack flow to match the detection log report. Then, based on the matching result, it can be determined which attack flows have defense rules that are not written in the detection log report. The verification process of this solution is simple, requires no manual operation, has accurate detection, and provides a good user experience.

[0074] Furthermore, although exemplary embodiments have been described herein, their scope includes any and all embodiments based on this disclosure that have equivalent elements, modifications, omissions, combinations (e.g., schemes involving intersections of various embodiments), adaptations, or alterations. Elements in the claims will be interpreted broadly based on the language used in the claims and are not limited to the examples described in this specification or during the implementation of this application, and such examples will be interpreted as non-exclusive. Therefore, this specification and examples are intended to be considered illustrative only, and the true scope and spirit are indicated by the full scope of the following claims and their equivalents.

[0075] The above description is intended to be illustrative and not restrictive. For example, the above examples (or one or more thereof) can be used in combination with each other. Other embodiments may be used by those skilled in the art upon reading the above description. Furthermore, in the above detailed description, various features may be grouped together to simplify the disclosure. This should not be construed as an intention that a feature of the disclosure that is not claimed is necessary for any claim. Rather, the subject matter of this disclosure may be less than all the features of a particular disclosed embodiment. Thus, the following claims are incorporated herein by reference as examples or embodiments, wherein each claim is an independent, separate embodiment, and these embodiments are contemplated to be combined with each other in various combinations or arrangements. The scope of this disclosure should be determined by reference to the appended claims and the full scope of their equivalents.

[0076] The foregoing has provided a detailed description of several embodiments of this disclosure. However, this disclosure is not limited to these specific embodiments. Those skilled in the art can make various variations and modifications based on the concept of this disclosure, and all such variations and modifications should fall within the scope of protection claimed by this disclosure.

Claims

1. A method for verifying defense rules, characterized in that, include: Obtain the unique identifier data corresponding to the attack flow based on the name of the attack flow, wherein the unique identifier data includes at least: a data 5-tuple; Obtain the first number of the defense rule to be executed against the attack flow; The unique identifier data and the first number are matched with each defense rule in the detection log report, wherein the defense rule includes at least: the unique identifier data of the attack flow and the second number of the defense rule corresponding to the unique identifier data; The accuracy of the defense rules in the detection log report is determined based on the matching results; The step of matching the unique identifier data and the number with the detection log report in the security detection equipment includes: Check if there is any unique identifier data in the detection log report that is identical to the unique identifier data; In the case of identical unique identifier data, check whether the second number of the defense rule corresponding to the unique identifier data is the same as the first number.

2. The method as described in claim 1, characterized in that, The step of obtaining the unique identifier data corresponding to the attack flow based on the name of the attack flow includes: Obtain the name of the attack stream received by the security detection device; The name is matched with the attack test report stored in the security detection device to determine the unique identification data corresponding to the name, wherein the attack test report includes at least: the name of the attack flow and the unique identification data corresponding to the name.

3. The method as described in claim 1, characterized in that, Determining the accuracy of the defense rules in the detection log report based on the matching results includes: If no identical unique identifier data exists, it is determined that the defense rules in the detection log report have a false negative situation. If the second number is different from the first number, it is determined that the defense rule corresponding to the unique identifier data has a false alarm. If the second number is the same as the first number, the defense rule corresponding to the unique identifier data is determined to be accurate.

4. A device for verifying defense rules, characterized in that, include: The first acquisition module is used to acquire unique identifier data corresponding to the attack flow based on the name of the attack flow, wherein the unique identifier data includes at least: a data 5-tuple; The second acquisition module is used to acquire the first number of the defense rule executed against the attack flow; The matching module is used to match the unique identifier data and the first number with each defense rule in the detection log report, wherein the defense rule includes at least: the unique identifier data of the attack flow and the second number of the defense rule corresponding to the unique identifier data; The determination module is used to determine the accuracy of the defense rules in the detection log report based on the matching results; The matching module is specifically used for: Check if there is any unique identifier data in the detection log report that is identical to the unique identifier data; In the case of identical unique identifier data, check whether the second number of the defense rule corresponding to the unique identifier data is the same as the first number.

5. The apparatus as described in claim 4, characterized in that, The first acquisition module is specifically used for: Obtain the name of the attack stream received by the security detection device; The name is matched with the attack test report stored in the security detection device to determine the unique identification data corresponding to the name, wherein the attack test report includes at least: the name of the attack flow and the unique identification data corresponding to the name.

6. The apparatus as claimed in claim 4, characterized in that, The determining module is specifically used for: If no identical unique identifier data exists, it is determined that the defense rules in the detection log report have a false negative situation. If the second number is different from the first number, it is determined that the defense rule corresponding to the unique identifier data has a false alarm. If the second number is the same as the first number, the defense rule corresponding to the unique identifier data is determined to be accurate.

7. A storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 3.

8. An electronic device, comprising at least a memory and a processor, wherein the memory stores a computer program, characterized in that, The processor implements the steps of the method according to any one of claims 1 to 3 when executing a computer program on the memory.

Citation Information

Patent Citations

  • Method and device for testing intrusion prevention system

    CN114553551A

  • Method and apparatus for checking firewall policy

    KR1020090065423A