Security policy effectiveness detection method and device, equipment and medium

By detecting the effectiveness of the security policy between the micro-isolation management module and the agent, identifying abnormal traffic and conducting periodic inspections, the problem of inconsistent understanding of the effectiveness of the security policy between the micro-isolation management module and the agent is solved, and the risk of network attacks is reduced. .

CN118802253APending Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410028003.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-08
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The micro-isolation management module and the micro-isolation agent have inconsistent understanding of the effectiveness of security policies, resulting in a higher risk of the network being attacked by east-west traffic.

Method used

Ensure policy consistency by obtaining and sending security policy lists, receiving conflict feedback for updates, including detecting the effectiveness of security policies between the micro-isolation management module and agents, identifying abnormal traffic and generating alarm logs, and periodically checking policy effectiveness. .

Benefits of technology

It achieves accurate consistency detection of security policies on micro-isolation management modules and agents, reducing the risk of the network being attacked by east-west traffic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802253A_ABST
    Figure CN118802253A_ABST
Patent Text Reader

Abstract

The invention provides a security policy effectiveness detection method and device, equipment and a medium, and aims to solve the problem that the risk that a network is attacked by east-west traffic is high due to inconsistent cognition of a micro-isolation management module and a micro-isolation agent on the effectiveness condition of a security policy in the prior art. The method comprises the following steps: acquiring a first security policy list, wherein the first security policy list is a security policy which is currently stored by first equipment and corresponds to second equipment; the first security policy list is sent to the second device; receiving a conflict feedback sent by the second device in response to the first security policy list, wherein the conflict feedback is used for indicating whether the first security policy list conflicts with an existing policy of the second device; and updating the first security policy list according to the conflict feedback. The method can reduce the risk that the network suffers from east-west traffic attacks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network security technology, and in particular to a security policy effectiveness detection method, device, equipment and medium. Background Art

[0002] Micro-segmentation is used to provide secure access control between hosts (virtual machines, containers) in the data center resource pool and to visually manage east-west traffic. The typical micro-segmentation solution is based on the host agent, that is, installing an agent in the server or virtual machine to collect traffic information, report it to the micro-segmentation management end for analysis, generate security policies and send them to the agent, which then performs security control on the received traffic according to the security policy.

[0003] The accurate generation, secure distribution and effectiveness of security policies are the key to fine-grained access control in micro-segmentation. The accurate generation of security policies depends on the input of traffic five-tuple information and the accuracy of the learning algorithm or the traffic access whitelist provided by the network element manufacturer; the secure distribution of security policies can rely on existing mechanisms, such as certificate authentication between the micro-segmentation agent and the micro-segmentation management module, and the confidentiality and integrity protection of the transmitted security policies by establishing a secure channel; however, due to reasons such as distribution failure, the security policy distributed by the micro-segmentation management module may be inconsistent with the security policy actually in effect in the micro-segmentation agent, that is, due to the inconsistent understanding of the effectiveness of the security policy between the micro-segmentation management module and the micro-segmentation agent, the network is at high risk of east-west traffic attacks. Summary of the invention

[0004] The embodiments of the present application provide a security policy effectiveness detection method, device, equipment and medium to solve the problem in the prior art that the network is at high risk of being attacked by east-west traffic due to inconsistent understanding of the effectiveness of the security policy by the micro-isolation management module and the micro-isolation agent.

[0005] To solve the above technical problems, this application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a security policy effectiveness detection method, which is applied to a first device, and the method includes:

[0007] Obtain a first security policy list, where the first security policy list is a security policy currently stored by the first device and corresponding to the second device;

[0008] Sending the first security policy list to the second device;

[0009] receiving conflict feedback sent by the second device in response to the first security policy list, the conflict feedback being used to indicate whether the first security policy list conflicts with an existing policy of the second device;

[0010] The first security policy list is updated according to the conflict feedback.

[0011] Optionally, the first security policy list includes any one of the following:

[0012] a second security policy list generated by the first device and corresponding to the second device;

[0013] The second security policy list contains security policies other than those in the third security policy list;

[0014] the first security policy list after being updated according to the previous conflict feedback;

[0015] The first security policy list is updated according to the previous conflict feedback, except for the security policies in the third security policy list;

[0016] The third security policy list is the security policy reported by the second device.

[0017] Optionally, the security policy reported by the second device includes:

[0018] A security policy corresponding to a second alarm log generated by the first device according to the abnormal traffic reported by the second device and the first alarm log;

[0019] Alternatively, the second device responds to the security policy reported by the first device in response to the request.

[0020] Optionally, obtaining the first security policy list includes:

[0021] In a case where a second security policy list generated by the first device and corresponding to the second device is sent to the second device, starting a validity check timing of the second security policy list;

[0022] When the effectiveness check timing is equal to the preset check period, a first security policy list is obtained.

[0023] In a second aspect, a security policy effectiveness detection method is applied to a second device, the method comprising:

[0024] Receiving a first security policy list sent by a first device, where the first security policy list is a security policy currently stored by the first device and corresponding to the second device;

[0025] In response to the first security policy list, conflict feedback is sent to the first device, where the conflict feedback is used to indicate whether the first security policy list conflicts with an existing policy of the second device.

[0026] Optionally, the method further comprises:

[0027] When the conflict feedback indicates that there is a security policy in the first security policy list that does not conflict with the existing policy, the security policy that does not conflict with the existing policy is updated locally.

[0028] Optionally, the first security policy list includes any one of the following:

[0029] a second security policy list generated by the first device and corresponding to the second device;

[0030] The second security policy list contains security policies other than those in the third security policy list;

[0031] the first security policy list after being updated according to the previous conflict feedback;

[0032] The first security policy list is updated according to the previous conflict feedback, except for the security policies in the third security policy list;

[0033] The third security policy list is the security policy reported by the second device.

[0034] Optionally, the security policy reported by the second device includes:

[0035] A security policy corresponding to a second alarm log generated by the first device according to the abnormal traffic reported by the second device and the first alarm log;

[0036] Alternatively, the second device responds to the security policy reported by the first device in response to the request.

[0037] Optionally, before receiving the first security policy list sent by the first device, the method further includes:

[0038] Identify abnormal traffic according to the security policy in the second security policy list generated by the first device and corresponding to the second device;

[0039] When abnormal traffic is identified, a first alarm log is generated;

[0040] The abnormal traffic and the first alarm log are sent to the first device.

[0041] Optionally, after generating the first alarm log, the method further includes:

[0042] Marking the security policy corresponding to the first alarm log;

[0043] In response to the reporting request of the first device, the marked security policy is sent to the first device.

[0044] In a third aspect, an embodiment of the present application provides a security policy effectiveness detection device, which is applied to a first device, and the device includes:

[0045] A first acquisition module, configured to acquire a first security policy list, where the first security policy list is a security policy currently stored by the first device and corresponding to the second device;

[0046] A first sending module, used to send the first security policy list to the second device;

[0047] A first receiving module, configured to receive conflict feedback sent by the second device in response to the first security policy list, wherein the conflict feedback is used to indicate whether the first security policy list conflicts with an existing policy of the second device;

[0048] A first updating module is used to update the first security policy list according to the conflict feedback.

[0049] In a fourth aspect, an embodiment of the present application provides a security policy effectiveness detection device, which is applied to a second device, and the device includes:

[0050] A second receiving module, configured to receive a first security policy list sent by a first device, where the first security policy list is a security policy currently stored by the first device and corresponding to the second device;

[0051] The second sending module is used to send conflict feedback to the first device in response to the first security policy list, where the conflict feedback is used to indicate whether the first security policy list conflicts with an existing policy of the second device.

[0052] In a fifth aspect, an embodiment of the present application provides a first device, including a transceiver and a processor.

[0053] The transceiver is used to obtain a first security policy list, where the first security policy list is a security policy currently stored by the first device and corresponding to the second device;

[0054] Sending the first security policy list to the second device;

[0055] receiving conflict feedback sent by the second device in response to the first security policy list, the conflict feedback being used to indicate whether the first security policy list conflicts with an existing policy of the second device;

[0056] The processor is configured to update the first security policy list according to the conflict feedback.

[0057] In a sixth aspect, an embodiment of the present application provides a second device, including a transceiver, wherein the transceiver is used to:

[0058] Receiving a first security policy list sent by a first device, where the first security policy list is a security policy currently stored by the first device and corresponding to the second device;

[0059] In response to the first security policy list, conflict feedback is sent to the first device, where the conflict feedback is used to indicate whether the first security policy list conflicts with an existing policy of the second device.

[0060] In the seventh aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the security policy effectiveness detection method as described in the first aspect are implemented; or, when the program is executed by the processor, the steps of the security policy effectiveness detection method as described in the second aspect are implemented.

[0061] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the security policy effectiveness detection method as described in the first aspect above are implemented; or, when the computer program is executed by a processor, the steps of the security policy effectiveness detection method as described in the second aspect above are implemented.

[0062] In an embodiment of the present application, the above-mentioned security policy effectiveness detection method is applied to a first device, and can be achieved by obtaining a first security policy list, where the first security policy list is the security policy currently stored in the first device and corresponding to the second device, sending the first security policy list to the second device, and receiving conflict feedback sent by the second device in response to the first security policy list, where the conflict feedback is used to indicate whether the first security policy list conflicts with the existing policy of the second device, and updating the first security policy list based on the conflict feedback, so that the first device, i.e., the micro-isolation management module, can accurately detect the effectiveness of the security policy on the second device, i.e., the micro-isolation agent, and can also detect to a certain extent whether the security policies on the host where the micro-isolation management module and the agent are located are consistent, thereby reducing the risk of the network being attacked by east-west traffic. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0064] Figure 1 This is one of the flow charts of a security policy effectiveness detection method provided in an embodiment of the present application;

[0065] Figure 2 It is one of the interaction diagrams of a security policy effectiveness detection method provided in an embodiment of the present application;

[0066] Figure 3 This is the second interactive diagram of a security policy effectiveness detection method provided in an embodiment of the present application;

[0067] Figure 4 This is the second flowchart of a security policy effectiveness detection method provided in an embodiment of the present application;

[0068] Figure 5 This is one of the structural schematic diagrams of a security policy effectiveness detection device provided in an embodiment of the present application;

[0069] Figure 6 This is the second structural diagram of a security policy effectiveness detection device provided in an embodiment of the present application;

[0070] Figure 7 This is one of the structural schematic diagrams of an electronic device provided in an embodiment of the present application;

[0071] Figure 8 This is the second structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0073] For ease of understanding, some contents involved in the embodiments of the present application are described below:

[0074] In the public cloud scenario, the micro-isolation agent on the host and the micro-isolation management module and micro-isolation management center used to manage the host agent are generally provided by a third party. For the deployment of the core network element function (NF) in the cloud telecom network, the Guest OS of the virtual machine has the characteristics of manufacturer privatization. The Host OS is bound to the virtual layer and also has the characteristics of manufacturer privatization. Installing third-party micro-isolation agent software has poor compatibility problems. Therefore, the mechanism of micro-isolation agent and micro-isolation management module provided by the network element manufacturer is generally adopted, and the micro-isolation agent is built into the network element.

[0075] Whether it is a micro-isolation solution based on a third-party agent or a micro-isolation solution based on a network element built-in agent in a telecommunications network, the virtual machine needs to collect traffic quintuple information in real time, and the micro-isolation agent reports it periodically. The micro-isolation management module generates the network topology and traffic access whitelist based on learning, forms a security policy for network element traffic based on the whitelist, and sends the security policy to the micro-isolation agent. The micro-isolation agent controls the received traffic according to the security policy, and reports the identified abnormal traffic to various management modules. The micro-isolation management module generates an alarm after identifying abnormal traffic attacks. Therefore, the accurate generation, safe distribution and effectiveness of security policies are the key to fine-grained access control in micro-isolation.

[0076] The accurate generation of security policies depends on the input of traffic quintuple information and the accuracy of the learning algorithm or the traffic access whitelist provided by the network element manufacturer. The security delivery can rely on existing mechanisms, such as certificate authentication between the micro-isolation agent and the micro-isolation management module, the recommendation of secure channels, and the confidentiality and integrity protection of the transmitted security policies. There is currently no relevant mechanism for whether the security policy is effective.

[0077] In an embodiment of the present application, a security policy effectiveness detection method, device, equipment and medium are proposed to solve the problem in the prior art that the network is at high risk of being attacked by east-west traffic due to inconsistent understanding of the effectiveness of the security policy by the micro-isolation management module and the micro-isolation agent.

[0078] See also Figure 1 , Figure 1 is one of the flowcharts of a security policy effectiveness detection method provided in an embodiment of the present application, which is applied to a first device, such as Figure 1 As shown, the method comprises the following steps:

[0079] Step 101: Obtain a first security policy list, where the first security policy list is a security policy currently stored in the first device and corresponding to the second device.

[0080] The above-mentioned first security policy list can be used to check the effectiveness of the security policy of the second device, and specifically may include the security policy generated by the first device corresponding to the second device, or may include other policies generated by the first device corresponding to the second device except the security policy that has been confirmed to be effective.

[0081] Step 102: Send the first security policy list to the second device.

[0082] Step 103: Receive conflict feedback sent by the second device in response to the first security policy list, where the conflict feedback is used to indicate whether the first security policy list conflicts with an existing policy of the second device.

[0083] Specifically, in the case where the first security policy list conflicts with an existing policy of the second device, the conflict feedback may indicate a security policy in the first security policy list that conflicts with the existing policy of the second device.

[0084] Step 104: Update the first security policy list according to the conflict feedback.

[0085] Specifically, updating the first security policy list may be deleting, from the first security policy list, a security policy that conflicts with an existing policy of the second device.

[0086] It should be noted that the above-mentioned first device can be a micro-isolation management module for managing the micro-isolation host agent, and the above-mentioned second device can be a micro-isolation agent on a micro-isolation host (such as a network element virtual machine, container, etc.).

[0087] In an embodiment of the present application, the above-mentioned security policy effectiveness detection method is applied to a first device, and can be achieved by obtaining a first security policy list, where the first security policy list is the security policy currently stored in the first device and corresponding to the second device, sending the first security policy list to the second device, and receiving conflict feedback sent by the second device in response to the first security policy list, where the conflict feedback is used to indicate whether the first security policy list conflicts with the existing policy of the second device, and updating the first security policy list based on the conflict feedback, so that the first device, i.e., the micro-isolation management module, can accurately detect the effectiveness of the security policy on the second device, i.e., the micro-isolation agent, and can also detect to a certain extent whether the security policies on the host where the micro-isolation management module and the agent are located are consistent, thereby reducing the risk of the network being attacked by east-west traffic.

[0088] Optionally, the first security policy list includes any one of the following:

[0089] a second security policy list generated by the first device and corresponding to the second device;

[0090] The second security policy list contains security policies other than those in the third security policy list;

[0091] the first security policy list after being updated according to the previous conflict feedback;

[0092] The first security policy list is updated according to the previous conflict feedback, except for the security policies in the third security policy list;

[0093] The third security policy list is the security policy reported by the second device.

[0094] Specifically, the second security policy list may be a security policy that the first device receives traffic information reported by the second device and generates traffic access based on flow learning or a network element manufacturer's traffic access whitelist. The third security policy list may be a security policy that has been confirmed to be effective in the second device.

[0095] In some embodiments, the security policies corresponding to the second device currently stored in the first device include a second security policy list corresponding to the second device generated by the first device, that is, the first device resends all the generated security policies corresponding to the second device as the first security policy list to the second device, and then determines the effective security policies among all the security policies generated by the first device based on the conflict feedback, and updates the first security policy list based on the conflict feedback. The updated first security policy list is the ineffective security policies in the second device.

[0096] In some embodiments, the security policies currently stored in the first device corresponding to the second device include the security policies in the second security policy list excluding the third security policy list, that is, the first device resends the security policies that have not been confirmed to be effective to the second device as the first security policy list, and then determines whether there are actually effective security policies among the security policies that have not been confirmed to be effective based on conflict feedback.

[0097] In some embodiments, the security policy currently stored in the first device corresponding to the second device includes the first security policy list after being updated according to the previous conflict feedback, or the security policy excluding the third security policy list in the first security policy list after being updated according to the previous conflict feedback, that is, the first security policy list after the last update can be updated again based on the previous security policy effectiveness detection, so as to achieve periodic detection of the effectiveness of the security policy.

[0098] In this implementation, the above-mentioned security policy effectiveness detection method is applied to the first device. By sending part or all of the security policies to the second device again and updating the first security policy list according to the conflict feedback, the accuracy of security policy effectiveness detection can be further improved.

[0099] Optionally, the security policy reported by the second device includes:

[0100] A security policy corresponding to a second alarm log generated by the first device according to the abnormal traffic reported by the second device and the first alarm log;

[0101] Alternatively, the second device responds to the security policy reported by the first device in response to the request.

[0102] It should be understood that the first alarm log may be a first alarm log generated by the second device when identifying abnormal traffic according to the security policy in the second security policy list. The second alarm log may be used to indicate the security policy corresponding to the abnormal traffic, and the second device may obtain the second alarm log by analyzing the first alarm log and the abnormal traffic.

[0103] Specifically, the first device can use the first alarm log and abnormal traffic information (such as five-tuple information) to match the security policy that the first device has sent to the second device, identify the security policy that has been hit by the abnormal traffic, and obtain the second alarm log.

[0104] For example, Figure 2 is one of the interaction diagrams of a security policy effectiveness detection method provided in an embodiment of the present application. The first device provided in an embodiment of the present application is Figure 2 The micro-isolation agent of the micro-isolation host shown, the second device is Figure 2 The micro-isolation management module shown in the figure includes a security policy management module and an alarm module. The security policy management module includes a security policy generation, distribution and update submodule and a security policy effectiveness detection submodule, such as Figure 2 As shown in the figure, the specific interaction process includes:

[0105] Step 1: The micro-isolation agent collects traffic information and reports it to the micro-isolation management module. The micro-isolation management module generates a traffic access security policy based on flow learning or the network element manufacturer's traffic access whitelist, and sends it to the micro-isolation agent to achieve refined access control of the traffic.

[0106] Step 2: After the security policy is issued, the security policy generation, issuance and update submodule of the security policy management module in the micro-isolation management module informs the security policy effectiveness detection submodule of the security policy issuance information through the security policy issuance notification.

[0107] Step 3: The security policy effectiveness check submodule starts the security policy effectiveness check timer to count the security policy execution time.

[0108] Step 4: The security policy effectiveness check submodule recognizes that the security policy execution time has reached the security policy effectiveness check cycle time, and queries the alarm module for abnormal traffic alarm logs.

[0109] Step 5: The security policy effectiveness check submodule extracts abnormal traffic information based on the queried abnormal traffic alarm log, matches the issued security policy (the issued security policy can be obtained by the security policy effectiveness module from the database of the first device), identifies the security policy hit by the abnormal traffic, and generates a security policy effectiveness list.

[0110] Step 6: The security policy effectiveness checking submodule sends a security policy effectiveness checking request to the security policy generation, issuance and update submodule, and the request carries a security policy effectiveness list.

[0111] Step 7, the security policy generation, issuance and update submodule identifies the potential ineffective security policy according to the security policy effectiveness check request; it should be noted that the security policy effectiveness list generated by the security policy effectiveness check submodule according to the queried abnormal traffic alarm log may include all security policies that have been confirmed to be effective, and may also include security policies that have not been confirmed to be effective, and they are marked separately, such as being effective and potentially ineffective. In the case where the security policy effectiveness list includes the potential ineffective security policy, the security policy generation, issuance and update submodule issues the potential ineffective security policy to the corresponding micro-isolation agent according to the security policy update request; in the case where the security policy hit list does not include the potential ineffective security policy, the security policy generation, issuance and update submodule identifies the potential ineffective security policy according to the security policy list and the security policy effectiveness list, and issues the potential ineffective security policy to the corresponding micro-isolation agent through the security policy update request.

[0112] Step 8: After receiving the security policy update request, the micro-isolation agent checks whether it conflicts with the existing local security policy. If there is no conflict, the security policy is updated.

[0113] Step 9: If there is a conflict, the micro-isolation agent sends a security policy update response to the security policy generation, issuance and update sub-function, and the response at least includes the detected conflicting security policy.

[0114] Step 10: The security policy generation, issuance and update submodule sends the conflicting security policies in the security policy update response to the security policy effectiveness check submodule via a security policy effectiveness check response.

[0115] Step 11: The security policy effectiveness check submodule updates the security policy effectiveness list according to the conflicting security policies in the security policy effectiveness check response, that is, marks the received conflicting security policies as effective in the security policy effectiveness list.

[0116] Step 12: The security policy effectiveness check sub-function sends the remaining potential ineffective security policies to the alarm module. The alarm module may not process them temporarily, and the administrator decides how to process them, such as recording the remaining potential ineffective security policies.

[0117] Step 13: When the security policy effectiveness check submodule identifies a new security policy effectiveness check cycle, a new security policy effectiveness check is started, the alarm function is queried for abnormal traffic alarm logs, and the above steps 5 to 12 are repeated.

[0118] It should be noted that the alarm module can generate a prompt to be handled by the administrator if it identifies some security policies as potential ineffective security policies during the two security policy effectiveness check cycles. After the second security policy effectiveness check is executed, it is continuously executed according to the security policy effectiveness check cycle to achieve continuous inspection of whether the security policy is effective, and also to achieve consistency of security policies.

[0119] It should be understood that the security policy reported by the second device in response to the request of the first device may be that the first device sends a request for obtaining an effective security policy to the second device, and the second device sends a security policy marked as effective by the second device to the first device in response to the request for obtaining the effective security policy.

[0120] For example, Figure 3 is the second interactive diagram of a security policy effectiveness detection method provided in an embodiment of the present application. The first device provided in an embodiment of the present application is Figure 3 The micro-isolation agent of the micro-isolation host shown, the second device is Figure 3 The micro-isolation management module shown in the figure includes a security policy management module and an alarm module. The security policy management module includes a security policy generation, distribution and update submodule and a security policy effectiveness detection submodule, such as Figure 3 As shown in the figure, the specific interaction process includes:

[0121] Step 1: The micro-isolation agent collects traffic information and reports it to the micro-isolation management module. The micro-isolation management module generates a traffic access security policy based on flow learning or the network element manufacturer's traffic access whitelist, and sends it to the micro-isolation agent to achieve refined access control of the traffic.

[0122] Step 2: After the security policy is issued, the security policy generation, issuance and update submodule of the security policy management module in the micro-isolation management module informs the security policy effectiveness detection submodule of the security policy issuance information through the security policy issuance notification.

[0123] Step 3: The security policy effectiveness check submodule starts the security policy effectiveness check timer to count the security policy execution time.

[0124] Step 4: In addition to filtering the received traffic according to the security policy, identifying abnormal traffic, and reporting the abnormal traffic and alarm logs to the micro-isolation management module, the micro-isolation agent also marks the security policy associated with the identified abnormal traffic, such as marking it as effective.

[0125] Step 5: The security policy effectiveness check submodule recognizes that the security policy execution time has reached the security policy effectiveness check cycle time, and sends a security policy effectiveness check request to the micro-isolation agent. The request at least includes the security policy effectiveness check cycle.

[0126] Step 6: The micro-isolation agent responds to the security policy effectiveness check request and generates a security policy effectiveness list based on the security policies marked as effective within the security policy effectiveness check period.

[0127] Step 7: The micro-isolation agent sends a security policy effectiveness check response to the security policy effectiveness check sub-module, and the response includes at least a security policy effectiveness list.

[0128] Step 8. The security policy effectiveness check submodule matches the issued security policies according to the security policy effectiveness list in the security policy effectiveness check response, identifies the potential ineffective security policies, and sends a security policy update request to the security policy generation, issuance and update submodule, which at least includes the potential ineffective security policy list.

[0129] Step 9: The security policy generation, issuance and update submodule sends a security policy update request to the micro-isolation agent, which at least includes a list of potential ineffective security policies.

[0130] Step 10: After receiving the security policy update request, the micro-isolation agent checks whether it conflicts with the existing local security policy. If there is no conflict, the security policy is updated.

[0131] Step 11: If there is a conflict, the micro-isolation agent sends a security policy update response to the security policy generation, issuance and update submodule, and the response at least includes the detected conflicting security policy.

[0132] Step 12: The security policy generation, issuance and update submodule sends the conflicting security policies to the security policy effectiveness check submodule via a security policy update response.

[0133] Step 13: The security policy effectiveness check submodule updates the security policy effectiveness list according to the conflicting security policies in the security policy update response, that is, marks the conflicting security policies as effective in the security policy effectiveness list.

[0134] Step 14: The security policy effectiveness check submodule includes the remaining potential ineffective security policies in the security policy effectiveness check alarm and sends it to the alarm module. The alarm module may not process it temporarily, and the administrator decides how to process it.

[0135] Step 15: The security policy effectiveness check submodule identifies the next security policy effectiveness check cycle, starts a new security policy effectiveness check, sends a security policy effectiveness check request to the micro-isolation agent, and repeats the above steps 6 to 14.

[0136] It should be noted that the alarm module can generate a prompt to be handled by the administrator if it identifies some security policies as potential ineffective security policies during the two security policy effectiveness check cycles. After the second security policy effectiveness check is executed, it will continue to be executed according to the security policy effectiveness check cycle to achieve continuous inspection of whether the security policy is effective, and also to achieve consistency of security policies.

[0137] In this implementation, the security policy effectiveness detection method is applied to the first device, and the security policy reported by the second device may include the security policy corresponding to the second alarm log generated by the first device based on the abnormal traffic reported by the second device and the first alarm log, or the second device may respond to the security policy requested to be reported by the first device, so that the first device may determine part of the effective security policies based on the first alarm log reported by the second device, or the second device itself may mark part of the effective security policies, thereby further improving the efficiency of security policy effectiveness detection.

[0138] Optionally, the acquiring the first security policy list includes: when a second security policy list generated by the first device and corresponding to the second device is sent to the second device, starting a validity check timing of the second security policy list;

[0139] When the effectiveness check timing is equal to the preset check period, a first security policy list is obtained.

[0140] Specifically, the above-mentioned effectiveness check timing can be started after the first device sends the generated second security policy list corresponding to the second device to the second device. When the effectiveness check timing reaches a preset check period, the first security policy list is obtained and the effectiveness of the second security policy list is checked.

[0141] In this implementation, the security policy effectiveness detection method is applied to the first device. By starting the effectiveness check timing of the second security policy list, when the effectiveness check timing is equal to the preset check period, the first security policy list is obtained, and then the effectiveness of the security policy can be periodically detected, thereby further reducing the risk of the network being attacked by east-west traffic.

[0142] See also Figure 4 , Figure 4 This is a second flowchart of a security policy effectiveness detection method provided in an embodiment of the present application, which is applied to a second device, such as Figure 4 As shown, the method comprises the following steps:

[0143] Step 401: Receive a first security policy list sent by a first device, where the first security policy list is a security policy currently stored by the first device and corresponding to the second device;

[0144] Step 402: Send conflict feedback to the first device in response to the first security policy list, where the conflict feedback is used to indicate whether the first security policy list conflicts with an existing policy of the second device.

[0145] It should be noted that this embodiment is Figure 1 The implementation of the second device corresponding to the embodiment shown in the figure can be found in the specific implementation of the second device. Figure 1 To avoid repeated description, the relevant descriptions in the illustrated embodiment will not be repeated in this embodiment.

[0146] Optionally, the method further comprises:

[0147] When the conflict feedback indicates that there is a security policy in the first security policy list that does not conflict with the existing policy, the security policy that does not conflict with the existing policy is updated locally.

[0148] It should be understood that the security policy that does not conflict with the existing policy can be understood as the security policy sent from the first device to the second device but not successfully received by the second device.

[0149] In this embodiment, the above-mentioned security policy effectiveness detection method is applied to the second device. By updating the security policy that does not conflict with the existing policy locally, the second security policy list corresponding to the second device generated by the first device can be consistent with the effective security policy of the second device.

[0150] Optionally, the first security policy list includes any one of the following:

[0151] a second security policy list generated by the first device and corresponding to the second device;

[0152] The second security policy list contains security policies other than those in the third security policy list;

[0153] the first security policy list after being updated according to the previous conflict feedback;

[0154] The first security policy list is updated according to the previous conflict feedback, except for the security policies in the third security policy list;

[0155] The third security policy list is the security policy reported by the second device.

[0156] The above optional implementations can be found in Figure 1 To avoid repeated description, the relevant descriptions in the illustrated embodiment will not be repeated in this embodiment.

[0157] Optionally, the security policy reported by the second device includes:

[0158] A security policy corresponding to a second alarm log generated by the first device according to the abnormal traffic reported by the second device and the first alarm log;

[0159] Alternatively, the second device responds to the security policy reported by the first device in response to the request.

[0160] The above optional implementations can be found in Figure 1 To avoid repeated description, the relevant descriptions in the illustrated embodiment will not be repeated in this embodiment.

[0161] Optionally, before receiving the first security policy list sent by the first device, the method further includes:

[0162] Identify abnormal traffic according to the security policy in the second security policy list generated by the first device and corresponding to the second device;

[0163] When abnormal traffic is identified, a first alarm log is generated;

[0164] The abnormal traffic and the first alarm log are sent to the first device.

[0165] The above optional implementations can be found in Figure 2 and Figure 3 To avoid repeated description, the relevant descriptions in the illustrated embodiment will not be repeated in this embodiment.

[0166] Optionally, after generating the alarm log, the method further includes:

[0167] Marking the security policy corresponding to the first alarm log;

[0168] In response to the reporting request of the first device, the marked security policy is sent to the first device.

[0169] The above optional implementations can be found in Figure 3 To avoid repeated description, the relevant descriptions in the illustrated embodiment will not be repeated in this embodiment.

[0170] See also Figure 5 , Figure 5 is one of the structural diagrams of a security policy effectiveness detection device provided in an embodiment of the present application, which is applied to a first device, such as Figure 5 As shown, the security policy effectiveness detection device 500 includes:

[0171] A first acquisition module 501 is used to acquire a first security policy list, where the first security policy list is a security policy currently stored by the first device and corresponding to the second device;

[0172] A first sending module 502, configured to send the first security policy list to the second device;

[0173] A first receiving module 503 is used to receive conflict feedback sent by the second device in response to the first security policy list, where the conflict feedback is used to indicate whether the first security policy list conflicts with an existing policy of the second device;

[0174] The first updating module 504 is configured to update the first security policy list according to the conflict feedback.

[0175] Optionally, the first security policy list includes any one of the following:

[0176] a second security policy list generated by the first device and corresponding to the second device;

[0177] The second security policy list contains security policies other than those in the third security policy list;

[0178] the first security policy list after being updated according to the previous conflict feedback;

[0179] The first security policy list is updated according to the previous conflict feedback, except for the security policies in the third security policy list;

[0180] The third security policy list is the security policy reported by the second device.

[0181] Optionally, the security policy reported by the second device includes:

[0182] A security policy corresponding to a second alarm log generated by the first device according to the abnormal traffic reported by the second device and the first alarm log;

[0183] Alternatively, the second device responds to the security policy reported by the first device in response to the request.

[0184] Optionally, the security policy effectiveness detection device 500 further includes:

[0185] a starting module, configured to start a validity check timing of the second security policy list when the second security policy list generated by the first device and corresponding to the second device is sent to the second device;

[0186] The second acquisition module is used to acquire the first security policy list when the effectiveness check timing is equal to the preset check period.

[0187] It should be noted that the security policy effectiveness detection device provided in the embodiment of the present application is a device capable of executing the above-mentioned security policy effectiveness detection method, and all implementation methods in the above-mentioned security policy effectiveness detection method embodiment are applicable to the device and can achieve the same or similar beneficial effects. To avoid repeated description, this embodiment will not be repeated.

[0188] See also Figure 6 , Figure 6 2 is a schematic diagram of a security policy effectiveness detection device provided in an embodiment of the present application, which is applied to a second device, such as Figure 6 As shown, the security policy effectiveness detection device 600 includes:

[0189] The second receiving module 601 is used to receive a first security policy list sent by a first device, where the first security policy list is a security policy currently stored by the first device and corresponding to the second device;

[0190] The second sending module 602 is used to send conflict feedback to the first device in response to the first security policy list, where the conflict feedback is used to indicate whether the first security policy list conflicts with an existing policy of the second device.

[0191] Optionally, the security policy effectiveness detection device 600 further includes:

[0192] The second updating module is configured to locally update the security policy that does not conflict with the existing policy if the conflict feedback indicates that there is a security policy in the first security policy list that does not conflict with the existing policy.

[0193] Optionally, the first security policy list includes any one of the following:

[0194] a second security policy list generated by the first device and corresponding to the second device;

[0195] The second security policy list contains security policies other than those in the third security policy list;

[0196] the first security policy list after being updated according to the previous conflict feedback;

[0197] The first security policy list is updated according to the previous conflict feedback, except for the security policies in the third security policy list;

[0198] The third security policy list is the security policy reported by the second device.

[0199] Optionally, the security policy reported by the second device includes:

[0200] A security policy corresponding to a second alarm log generated by the first device according to the abnormal traffic reported by the second device and the first alarm log;

[0201] Alternatively, the second device responds to the security policy reported by the first device in response to the request.

[0202] Optionally, the security policy effectiveness detection device 600 further includes:

[0203] An identification module, configured to identify abnormal traffic according to a security policy in a second security policy list generated by the first device and corresponding to the second device;

[0204] A generating module, used for generating a first alarm log when abnormal traffic is identified;

[0205] The third sending module is used to send the abnormal traffic and the first alarm log to the first device.

[0206] Optionally, the security policy effectiveness detection device 600 further includes:

[0207] A marking module, used to mark the security policy corresponding to the first alarm log;

[0208] The fourth sending module is used to send the marked security policy to the first device in response to the reporting request of the first device.

[0209] It should be noted that the security policy effectiveness detection device provided in the embodiment of the present application is a device capable of executing the above-mentioned security policy effectiveness detection method, and all implementation methods in the above-mentioned security policy effectiveness detection method embodiment are applicable to the device and can achieve the same or similar beneficial effects. To avoid repeated description, this embodiment will not be repeated.

[0210] For details, see Figure 7 As shown, an embodiment of the present application further provides an electronic device, including a bus 701, a transceiver 702, an antenna 703, a bus interface 704, a processor 705 and a memory 706.

[0211] The transceiver 702 is configured to obtain a first security policy list, where the first security policy list is a security policy currently stored by the first device and corresponding to the second device;

[0212] Sending the first security policy list to the second device;

[0213] Receive conflict feedback sent by the second device in response to the first security policy list, where the conflict feedback is used to indicate whether the first security policy list conflicts with an existing policy of the second device.

[0214] Further, the processor 705 is configured to update the first security policy list according to the conflict feedback.

[0215] exist Figure 7 In the embodiment, the bus architecture (represented by bus 701) may include any number of interconnected buses and bridges, and bus 701 links various circuits including one or more processors represented by processor 705 and memory represented by memory 706. Bus 701 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 704 provides an interface between bus 701 and transceiver 702. Transceiver 702 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 705 is transmitted on a wireless medium via antenna 703, and further, antenna 703 also receives data and transmits the data to processor 705.

[0216] The processor 705 is responsible for managing the bus 701 and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 706 can be used to store data used by the processor 705 when performing operations.

[0217] Optionally, the processor 705 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD).

[0218] Optionally, the first security policy list includes any one of the following:

[0219] a second security policy list generated by the first device and corresponding to the second device;

[0220] The second security policy list contains security policies other than those in the third security policy list;

[0221] the first security policy list after being updated according to the previous conflict feedback;

[0222] The first security policy list is updated according to the previous conflict feedback, except for the security policies in the third security policy list;

[0223] The third security policy list is the security policy reported by the second device.

[0224] Optionally, the security policy reported by the second device includes:

[0225] A security policy corresponding to a second alarm log generated by the first device according to the abnormal traffic reported by the second device and the first alarm log;

[0226] Alternatively, the second device responds to the security policy reported by the first device in response to the request.

[0227] Optionally, the processor 705 is further configured to:

[0228] In a case where a second security policy list generated by the first device and corresponding to the second device is sent to the second device, starting a validity check timing of the second security policy list;

[0229] When the effectiveness check timing is equal to the preset check period, a first security policy list is obtained.

[0230] It should be noted that the electronic device provided in the embodiment of the present application is a device capable of executing the above-mentioned security policy effectiveness detection method, and all implementation methods in the above-mentioned security policy effectiveness detection method embodiment are applicable to the electronic device and can achieve the same or similar beneficial effects. To avoid repeated description, this embodiment will not be repeated.

[0231] For details, see Figure 8 As shown, an embodiment of the present application further provides an electronic device, including a bus 801, a transceiver 802, an antenna 803, a bus interface 804, a processor 805 and a memory 806.

[0232] The transceiver 802 is configured to receive a first security policy list sent by a first device, where the first security policy list is a security policy currently stored by the first device and corresponding to the second device;

[0233] In response to the first security policy list, conflict feedback is sent to the first device, where the conflict feedback is used to indicate whether the first security policy list conflicts with an existing policy of the second device.

[0234] exist Figure 8 In the embodiment, the bus architecture (represented by bus 801) is shown, and bus 801 may include any number of interconnected buses and bridges, and bus 801 links various circuits including one or more processors represented by processor 805 and memory represented by memory 806. Bus 801 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 804 provides an interface between bus 801 and transceiver 802. Transceiver 802 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 805 is transmitted on a wireless medium via antenna 803, and further, antenna 803 also receives data and transmits the data to processor 805.

[0235] The processor 805 is responsible for managing the bus 801 and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 806 can be used to store data used by the processor 805 when performing operations.

[0236] Optionally, the processor 805 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD).

[0237] Optionally, the processor 805 is further configured to:

[0238] When the conflict feedback indicates that there is a security policy in the first security policy list that does not conflict with the existing policy, the security policy that does not conflict with the existing policy is updated locally.

[0239] Optionally, the first security policy list includes any one of the following:

[0240] a second security policy list generated by the first device and corresponding to the second device;

[0241] The second security policy list contains security policies other than those in the third security policy list;

[0242] the first security policy list after being updated according to the previous conflict feedback;

[0243] The first security policy list is updated according to the previous conflict feedback, except for the security policies in the third security policy list;

[0244] The third security policy list is the security policy reported by the second device.

[0245] Optionally, the security policy reported by the second device includes:

[0246] A security policy corresponding to a second alarm log generated by the first device according to the abnormal traffic reported by the second device and the first alarm log;

[0247] Alternatively, the second device responds to the security policy reported by the first device in response to the request.

[0248] Optionally, the processor 805 is further configured to:

[0249] Identify abnormal traffic according to the security policy in the second security policy list generated by the first device and corresponding to the second device;

[0250] When abnormal traffic is identified, a first alarm log is generated;

[0251] The transceiver 802 is also used for:

[0252] The abnormal traffic and the first alarm log are sent to the first device.

[0253] Optionally, the processor 805 is further configured to:

[0254] Marking the security policy corresponding to the first alarm log;

[0255] The transceiver 802 is also used for:

[0256] In response to the reporting request of the first device, the marked security policy is sent to the first device.

[0257] It should be noted that the electronic device provided in the embodiment of the present application is a device capable of executing the above-mentioned security policy effectiveness detection method, and all implementation methods in the above-mentioned security policy effectiveness detection method embodiment are applicable to the electronic device and can achieve the same or similar beneficial effects. To avoid repeated description, this embodiment will not be repeated.

[0258] An embodiment of the present application also provides an electronic device, including: a processor, a memory, and a program stored in the memory and executable on the processor. When the program is executed by the processor, each process of the above-mentioned security policy effectiveness detection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0259] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned security policy effectiveness detection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0260] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0261] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0262] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A security policy effectiveness detection method, characterized in that: Applied to a first device, the method includes: Obtain a first security policy list, where the first security policy list is a security policy currently stored by the first device and corresponding to the second device; Sending the first security policy list to the second device; receiving conflict feedback sent by the second device in response to the first security policy list, the conflict feedback being used to indicate whether the first security policy list conflicts with an existing policy of the second device; The first security policy list is updated according to the conflict feedback.

2. The method according to claim 1, characterized in that The first security policy list includes any of the following: a second security policy list generated by the first device and corresponding to the second device; The second security policy list contains security policies other than those in the third security policy list; the first security policy list after being updated according to the previous conflict feedback; The first security policy list is updated according to the previous conflict feedback, except for the security policies in the third security policy list; The third security policy list is the security policy reported by the second device.

3. The method according to claim 2, characterized in that The security policy reported by the second device includes: A security policy corresponding to a second alarm log generated by the first device according to the abnormal traffic reported by the second device and the first alarm log; Alternatively, the second device responds to the security policy reported by the first device in response to the request.

4. The method according to claim 1, characterized in that: The obtaining of the first security policy list comprises: In a case where a second security policy list generated by the first device and corresponding to the second device is sent to the second device, starting a validity check timing of the second security policy list; When the effectiveness check timing is equal to the preset check period, a first security policy list is obtained.

5. A security policy effectiveness detection method, characterized in that: Applied to the second device, the method includes: Receiving a first security policy list sent by a first device, where the first security policy list is a security policy currently stored by the first device and corresponding to the second device; In response to the first security policy list, conflict feedback is sent to the first device, where the conflict feedback is used to indicate whether the first security policy list conflicts with an existing policy of the second device.

6. The method according to claim 5, characterized in that The method further comprises: When the conflict feedback indicates that there is a security policy in the first security policy list that does not conflict with the existing policy, the security policy that does not conflict with the existing policy is updated locally.

7. The method according to claim 5, characterized in that The first security policy list includes any of the following: a second security policy list generated by the first device and corresponding to the second device; The second security policy list contains security policies other than those in the third security policy list; the first security policy list after being updated according to the previous conflict feedback; The first security policy list is updated according to the previous conflict feedback, except for the security policies in the third security policy list; The third security policy list is the security policy reported by the second device.

8. The method according to claim 7, characterized in that The security policy reported by the second device includes: A security policy corresponding to a second alarm log generated by the first device according to the abnormal traffic reported by the second device and the first alarm log; Alternatively, the second device responds to the security policy reported by the first device in response to the request.

9. The method according to claim 5, characterized in that Before receiving the first security policy list sent by the first device, the method further includes: Identify abnormal traffic according to the security policy in the second security policy list generated by the first device and corresponding to the second device; When abnormal traffic is identified, a first alarm log is generated; The abnormal traffic and the first alarm log are sent to the first device.

10. The method according to claim 9, characterized in that After generating the first alarm log, the method further includes: Marking the security policy corresponding to the first alarm log; In response to the reporting request of the first device, the marked security policy is sent to the first device.

11. A security policy effectiveness detection device, characterized in that: Applied to a first device, the apparatus comprises: A first acquisition module, configured to acquire a first security policy list, where the first security policy list is a security policy currently stored by the first device and corresponding to the second device; A first sending module, used to send the first security policy list to the second device; A first receiving module, configured to receive conflict feedback sent by the second device in response to the first security policy list, wherein the conflict feedback is used to indicate whether the first security policy list conflicts with an existing policy of the second device; A first updating module is used to update the first security policy list according to the conflict feedback.

12. A security policy effectiveness detection device, characterized in that: Applied to a second device, the apparatus comprises: A second receiving module, configured to receive a first security policy list sent by a first device, where the first security policy list is a security policy currently stored by the first device and corresponding to the second device; The second sending module is used to send conflict feedback to the first device in response to the first security policy list, where the conflict feedback is used to indicate whether the first security policy list conflicts with an existing policy of the second device.

13. A first device, characterized in that: Including transceiver and processor, The transceiver is used to obtain a first security policy list, where the first security policy list is a security policy currently stored by the first device and corresponding to the second device; Sending the first security policy list to the second device; receiving conflict feedback sent by the second device in response to the first security policy list, the conflict feedback being used to indicate whether the first security policy list conflicts with an existing policy of the second device; The processor is configured to update the first security policy list according to the conflict feedback.

14. A second device, characterized in that: The invention comprises a transceiver, wherein the transceiver is used for: Receiving a first security policy list sent by a first device, where the first security policy list is a security policy currently stored by the first device and corresponding to the second device; In response to the first security policy list, conflict feedback is sent to the first device, where the conflict feedback is used to indicate whether the first security policy list conflicts with an existing policy of the second device.

15. An electronic device, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the security policy effectiveness detection method as described in any one of claims 1 to 4; or, the program, when executed by the processor, implements the steps of the security policy effectiveness detection method as described in any one of claims 5 to 10.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the security policy effectiveness detection method as described in any one of claims 1 to 4; or, when executed by a processor, implements the steps of the security policy effectiveness detection method as described in any one of claims 5 to 10.