Method and device for detecting application control strategy problem

By detecting the relationship between the new security policy and the historical policy, conflict problems during the configuration process are solved, policy matching speed and rationality are improved, and efficient security protection is achieved.

CN118921175APending Publication Date: 2024-11-08XIAN JIAODA JIEPU NETWORK SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310169073.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-06
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

When configuring security policies, there may be conflicts between the new policy and the historical policy, resulting in mixed permissions, intersection exceptions and increased management costs. It is necessary to analyze the relationship between the new policy and the existing policy when creating the new policy to avoid conflicts.

Method used

Provide a policy problem detection method and device, by matching the attribute information of the new policy with the attribute information of the historical policy, determine the relationship between the two, and judge whether new policies are allowed to be added based on the relationship, including judging complete conflicts and partial Conflict, complete redundancy, partial redundancy, shadow strategy, induction strategy and combination strategy.

Benefits of technology

By analyzing policy relationships, avoid conflicts between policies, improve the rationality of policy attributes, reduce resource waste, accelerate the speed of security policy matching, and achieve efficient security protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
Patent Text Reader

Abstract

The invention provides a policy problem inspection method and a detection device applying the method. When a new policy is established, attribute information of the new policy is extracted to be matched and compared with a historical policy, the relationship of each attribute is determined one by one, then a policy relationship is determined according to the attribute relationship, and when the policy relationship meets a preset response condition, a preset response action is executed. By arranging and analyzing the relationship between the strategies, the problems of conflicts and the like between the strategies are avoided, and the reasonability of the strategy attributes is improved; therefore, waste of resources needing conflict processing is reduced, the safety strategy matching speed is increased, and efficient safety protection can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of security policy management, and in particular relates to a method and device for detecting whether there is a problem when an application control policy is newly created. Background Art

[0002] The development of network technology has brought about increasingly serious network and information security issues. As one of the most commonly used security protection devices, firewalls are security management software installed in local area networks that integrate multiple security protection functions and enable filtering and threat protection functions. During operation, it is necessary to ensure the overall forwarding speed while fully enabling protection.

[0003] In order to improve the efficiency of the product's boundary access control and security detection scheduling, administrators usually need to configure various security policies in advance to control computer communications under the network. For data packets that need to be forwarded by the gateway, they will be matched with the security policy before deciding the destination of the data packet.

[0004] It can be seen that security policy configuration is an important operation of device management, but when configuring policies, there may be conflicts between policies. For example, some completely conflicting IP permissions are overwritten, resulting in mixed permissions; partial conflicts will cause matching anomalies in the intersection; and if policies can be combined, the management cost will increase due to the excessive number of policies. Therefore, it is necessary to analyze the relationship between the new policy and the existing policy when creating a new policy. Summary of the invention

[0005] Based on the above background, the present invention aims to propose a method for checking policy issues and a detection device using the method, which can timely detect whether there are conflicting historical policies when a security policy is newly created. The specific technical solution is as follows: In a first aspect, a method for detecting an application control policy problem is provided, comprising: Fill the attribute information of the newly created policy into the second policy information table, extract each attribute information, and sequentially match it with the corresponding attribute information of the historical policy in the preset first policy information table to determine the relationship between each attribute information in the two policy information tables; Determine the relationship between the new strategy and the historical strategy based on the attribute information relationship, and determine whether the new strategy has passed the test based on the strategy relationship; In response to the policy adding operation, it is determined whether the adding is allowed according to the policy relationship detection result.

[0006] Preferably, the above-mentioned policy attribute information includes: source area, destination area, source address, destination address, source port, destination port, service or application.

[0007] Furthermore, the attribute information matching includes: when creating a new strategy, each attribute information is added in sequence, and each time an attribute is added, the attribute information is matched and compared and the matching results are recorded. When all attributes are added, it is determined whether the attribute information of the new strategy and the historical strategy has the same, contained or intersected relationship based on all attribute matching results.

[0008] When creating a new policy, it also includes: configuring the policy priority and policy action; the policy action includes a permission or blocking operation when the application data feature successfully matches the policy.

[0009] On this basis, the new strategy passes the test, specifically including: the relationship between the new strategy and the historical strategy does not belong to any of the following: complete conflict, partial conflict, complete redundancy, partial redundancy, shadow strategy, inductive strategy, and combined strategy; in: The complete conflict includes that all the attribute information of strategy A and strategy B are the same but the policy actions are different; the partial conflict includes that part of the attribute information of strategy A and strategy B are the same but the policy actions are different; The complete redundancy includes that policy A includes policy B, policy A has a higher priority than policy B, and the policy actions are the same; the partial redundancy includes that policy A includes policy B, policy B has a higher priority than policy A, and the policy actions are the same; The shadow policy includes policy A including policy B, and policy A has a higher priority than policy B and has different policy actions; The inductive strategy includes that strategy A includes strategy B and strategy B has a higher priority than strategy A and the strategy actions are different; The combined strategy includes that strategy A and strategy B have the same partial attribute information and the same strategy actions.

[0010] Preferably, if the new policy detection passes, the attribute information of the second policy information table is added to the first policy information table, otherwise the second policy information table is cleared.

[0011] Preferably, the above-mentioned historical policies include effective policies and ineffective policies, and the ineffective policies include expired policies and policies to be effective.

[0012] In a second aspect, a security policy detection device is provided, the device comprising: The strategy information acquisition module is used to obtain the attribute information of historical strategies and new strategies; The policy relationship detection module is used to determine the relationship between attribute information through matching and comparison, and further determine the relationship between policies to determine whether the newly created policy has passed the detection; The detection result response module is used to perform preset operations according to the policy detection results.

[0013] Preferably, each attribute information of the policy is filled into the first policy information table. When a new policy is created, each attribute information is extracted and filled into the second policy information table. And when adding each attribute in turn, each time an attribute is added, a match comparison is performed on the attribute information and the matching result is recorded. When all attributes have been added, determine whether the attribute information of the new policy and the historical policy is identical, contained, or intersected based on all attribute matching results.

[0014] Furthermore, the above-mentioned policy relationship detection module determines the relationship between the new policy and the historical policy according to the attribute information relationship, and determines whether the new policy has passed the detection according to the policy relationship.

[0015] The embodiment of the present invention adopting the above technical solution has at least the following beneficial effects: when a new policy is created, its attribute information is extracted for matching and comparison with the historical policy, the relationship between each attribute is determined one by one, and then the policy relationship is determined based on the attribute relationship. When the policy relationship meets the preset response condition, the preset response action is executed. By sorting and analyzing the relationship between policies, conflicts between policies are avoided, and the rationality of the existence of policy attributes is improved; thereby reducing the waste of resources that need to handle conflicts, and then speeding up the matching speed of security policies, which is conducive to achieving efficient security protection. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 This is a schematic diagram of the overall process of an embodiment of the application control strategy problem detection method of the present invention; Figure 2 This is a schematic diagram of the module composition of an embodiment of the security policy detection device of the present invention. Implementation

[0017] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant contents of the present application, rather than to limit the application. It is also necessary to explain that, for ease of description, only the parts related to the application are shown in the accompanying drawings. Example

[0018] like Figure 1 As shown, a method for detecting an application control strategy problem includes: First, fill the attribute information of the newly created policy into the second policy information table, extract each attribute information, and match it with the corresponding attribute information of the historical policy in the preset first policy information table in turn to determine the relationship between each attribute information in the two policy information tables; Secondly, the relationship between the new strategy and the historical strategy is determined based on the attribute information relationship, and whether the new strategy has passed the test is determined based on the strategy relationship; Finally, in response to the policy adding operation, it is determined whether the adding is allowed according to the policy relationship detection result.

[0019] As a preferred implementation, the above-mentioned policy attribute information includes: source area, destination area, source address, destination address, source port, destination port, service or application.

[0020] Furthermore, the above-mentioned attribute information matching includes: when creating a new strategy, adding each attribute information in turn, and matching and comparing the attribute information after each attribute is added and recording the matching results. When all attributes are added, determine whether the attribute information of the new strategy and the historical strategy has the same, contained or intersected relationship based on all attribute matching results.

[0021] The service or application as the policy attribute information is represented by its corresponding ID in the preset database.

[0022] Furthermore, the above-mentioned new policy also includes: configuring the policy priority and policy action; the policy action includes a permission or blocking operation when the application data feature successfully matches the policy.

[0023] On this basis, the new strategy passes the test, specifically including: the relationship between the new strategy and the historical strategy does not belong to any of the following: complete conflict, partial conflict, complete redundancy, partial redundancy, shadow strategy, inductive strategy, and combined strategy; in: The complete conflict includes that all the attribute information of strategy A and strategy B are the same but the policy actions are different; the partial conflict includes that part of the attribute information of strategy A and strategy B are the same but the policy actions are different; The complete redundancy includes that policy A includes policy B, policy A has a higher priority than policy B, and the policy actions are the same; the partial redundancy includes that policy A includes policy B, policy B has a higher priority than policy A, and the policy actions are the same; The shadow policy includes policy A including policy B, and policy A has a higher priority than policy B and has different policy actions; The inductive strategy (or "subset relationship strategy") includes that strategy A contains strategy B and strategy B has a higher priority than strategy A and the strategy actions are different; The combination strategy (or "intersection relationship strategy") includes that strategy A and strategy B have the same partial attribute information and the same strategy actions.

[0024] As a preferred implementation, if the new policy detection passes, the attribute information of the second policy information table is added to the first policy information table, otherwise the second policy information table is cleared.

[0025] As a preferred implementation, the above historical policies include effective policies and ineffective policies, and the ineffective policies include expired policies and policies to be effective.

[0026] It should be noted that the matching and comparison of attribute information described in this embodiment involves matching between multiple strategies. In order to improve the matching efficiency, a suitable mathematical algorithm can be used for implementation. The specific implementation method is not within the scope of the embodiment of the present invention and will not be described in detail here. Example

[0027] like Figure 2 As shown, a security policy detection device comprises: The strategy information acquisition module is used to obtain the attribute information of historical strategies and new strategies; The policy relationship detection module is used to determine the relationship between attribute information through matching and comparison, and further determine the relationship between policies to determine whether the newly created policy has passed the detection; The detection result response module is used to perform preset operations according to the policy detection results.

[0028] Preferably, each attribute information of the policy is filled into the first policy information table. When a new policy is created, each attribute information is extracted and filled into the second policy information table. And when adding each attribute in turn, each time an attribute is added, a match comparison is performed on the attribute information and the matching result is recorded. When all attributes have been added, determine whether the attribute information of the new policy and the historical policy is identical, contained, or intersected based on all attribute matching results.

[0029] Furthermore, the above-mentioned policy relationship detection module determines the relationship between the new policy and the historical policy according to the attribute information relationship, and determines whether the new policy has passed the detection according to the policy relationship.

[0030] As described above, in the technical solution of the embodiment of the present invention, when a new policy is created, its attribute information is extracted for matching and comparison with the historical policy, the relationship between each attribute is determined one by one, and then the policy relationship is determined based on the attribute relationship. When the policy relationship meets the preset response conditions, the preset response action is executed. By sorting out and analyzing the relationship between policies, conflicts between policies are avoided, and the rationality of the existence of policy attributes is improved; thereby reducing the waste of resources that need to handle conflicts, and then speeding up the matching speed of security policies, which is conducive to achieving efficient security protection.

[0031] A person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc.

[0032] The above description of the above disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but will conform to the broadest scope consistent with the principles disclosed herein.

Claims

1. A method for detecting application control strategy problems, characterized in that: include: Fill the attribute information of the newly created policy into the second policy information table, extract each attribute information, and sequentially match it with the corresponding attribute information of the historical policy in the preset first policy information table to determine the relationship between each attribute information in the two policy information tables; Determine the relationship between the new strategy and the historical strategy based on the attribute information relationship, and determine whether the new strategy has passed the test based on the strategy relationship; In response to the policy adding operation, it is determined whether the adding is allowed according to the policy relationship detection result.

2. The method according to claim 1, characterized in that The attribute information of the policy includes: source area, destination area, source address, destination address, source port, destination port, service or application.

3. The method according to claim 2, characterized in that Attribute information matching includes: when creating a new strategy, each attribute information is added in turn, and each time an attribute is added, the attribute information is matched and compared and the matching results are recorded. When all attributes are added, it is determined whether the attribute information of the new strategy and the historical strategy is the same, contained or intersected based on all attribute matching results.

4. The method according to claim 3, characterized in that When creating a new policy, the priority and policy action of the policy are also configured; the policy action includes a permission or blocking operation when the application data feature successfully matches the policy.

5. The method according to any one of claims 1 to 4, characterized in that: The new strategy passes the test, including: the relationship between the new strategy and the historical strategy does not belong to any of the following: complete conflict, partial conflict, complete redundancy, partial redundancy, shadow strategy, inductive strategy, combined strategy; in: The complete conflict includes that all the attribute information of strategy A and strategy B are the same but the policy actions are different; the partial conflict includes that part of the attribute information of strategy A and strategy B are the same but the policy actions are different; The complete redundancy includes that policy A includes policy B, policy A has a higher priority than policy B, and the policy actions are the same; the partial redundancy includes that policy A includes policy B, policy B has a higher priority than policy A, and the policy actions are the same; The shadow policy includes policy A including policy B, and policy A has a higher priority than policy B and has different policy actions; The inductive strategy includes that strategy A includes strategy B and strategy B has a higher priority than strategy A and the strategy actions are different; The combined strategy includes that strategy A and strategy B have the same partial attribute information and the same strategy actions.

6. The method according to claim 5, characterized in that If the new policy detection passes, the attribute information of the second policy information table is added to the first policy information table, otherwise the second policy information table is cleared.

7. The method according to claim 1, characterized in that The historical policies include effective policies and ineffective policies, and the ineffective policies include expired policies and policies to be effective.

8. A security policy detection device, characterized in that: The device comprises: The strategy information acquisition module is used to obtain the attribute information of historical strategies and new strategies; The policy relationship detection module is used to determine the relationship between attribute information through matching and comparison, and further determine the relationship between policies to determine whether the newly created policy has passed the detection; The detection result response module is used to perform preset operations according to the policy detection results.

9. The device according to claim 8, characterized in that Fill each attribute information of the strategy into the first strategy information table. When creating a new strategy, extract each attribute information and fill it into the second strategy information table. When adding each attribute in turn, perform a match comparison on the attribute information each time an attribute is added and record the matching result. When all attributes have been added, determine whether the attribute information of the new strategy and the historical strategy is identical, contained, or intersected based on all attribute matching results.

10. The device according to claim 8, characterized in that The policy relationship detection module determines the relationship between the new policy and the historical policy according to the attribute information relationship, and determines whether the new policy has passed the detection according to the policy relationship.