Multi-level collaborative security policy deployment method, system, equipment and medium

Through the multi-level collaborative security policy deployment method, the problem of consistency in the execution of traditional cloud security policies in multi-level environments is solved. Cross-layer security services and Merkel tree verification mechanisms are used to achieve security in the cloud-edge-end environment. Policy consistency management and policy execution verification.

CN118551385APending Publication Date: 2024-08-27GLOBAL ENERGY INTERCONNECTION RES INST CO LTD +4
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410659874.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Traditional cloud security policies are based on a single-level deployment, making it difficult to ensure the consistency of security policies when executed at multiple different levels. Especially in cloud-edge-end environments, it is difficult to achieve cross-level security policy collaborative management.

Method used

Adopting a multi-level collaborative security policy deployment method, security policies are delivered layer by layer from the cloud layer through cross-layer security services, and monitoring items are fed back after each layer is executed to generate a Merkel monitoring tree for policy collaborative management and control to ensure that the policy is deployed in the cloud, Execution consistency at the edge and terminal layers.

Benefits of technology

It realizes the collaborative management of cross-level security policies, ensuring the consistency of security policy execution at the cloud, edge and terminal layers, and facilitates the verification and management of policy execution through the Merkel tree verification mechanism to ensure the correct execution of security policies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118551385A
    Figure CN118551385A
Patent Text Reader

Abstract

The invention provides a multi-level collaborative security policy deployment method, system and device and a medium, and the method comprises the steps: deploying security policies layer by layer from an upper layer to a lower layer according to the hierarchical relation of all layers in a cross-layer security service; after the security strategies corresponding to the layers are executed on the layers, monitoring items of execution conditions of the layers are obtained, the monitoring items of the layers are fed back layer by layer from the lower layer to the upper layer, and calculation is carried out according to the feedback of the layers to obtain monitoring data; generating a Merkel monitoring tree according to the monitoring data and the issuing sequence of the security policies, and performing collaborative security policy management and control on each layer by verifying the Merkel monitoring tree; the invention provides a method for deploying security policies layer by layer from the upper layer to the lower layer according to the hierarchical relationship of each layer in the cross-layer security service, so that the consistency of the security policies is ensured, and a policy execution condition feedback verification mechanism of the Merkel tree is adopted, so that the verification and management of the policy execution condition can be more conveniently carried out, and the security of the cross-layer security service is ensured. And correct execution of the security policy is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The patent application of this invention belongs to the field of cross-layer security of edge computing, and specifically relates to a multi-level collaborative security policy deployment method, system, device and medium. Background Art

[0002] With the continuous development of cloud computing and edge computing, cloud-based applications are becoming more and more widespread, network structures are becoming more complex, system boundaries are becoming more blurred, various types of security risks are gathering, and new risks and vulnerabilities are also increasing, which brings great challenges to edge-cloud-end security protection. Cloud computing security strategy is an important means to ensure the security of the cloud environment. The so-called cloud computing security strategy is a complete set of plans and safeguards to ensure the safe operation of the cloud computing environment. Generally, the system captures security incidents and executes corresponding disposal actions.

[0003] Traditional cloud security policies are often deployed and executed based on a specific application level. For example, the patent "A Cloud Platform Component Security Policy Implementation Method" (CN201811526836.X) discloses a cloud platform security policy management and its implementation method, including security policy rule templates, countermeasure modules and data packet verification, policy storage and execution methods. The patent "Container Cloud Policy Scheduling Method and Device" (CN114253654B) discloses a container cloud policy scheduling method and device, which involves the field of network security. The security log data of each node and container in the container cloud is analyzed to obtain the security level of each node; according to the security level of each node, a security label value is set for each node; according to the container application deployment requirements, a matching security label value is selected, and the container application is deployed to the node corresponding to the matching security label value.

[0004] Traditional cloud security policies are deployed based on a single layer in the cloud or container cloud. When security policies need to be deployed at multiple different layers, each layer needs to be deployed separately, which makes it difficult to ensure the consistency of security policies when they are executed at each layer. Summary of the invention

[0005] In order to overcome the above-mentioned deficiencies of the prior art, the present invention patent application proposes a multi-level collaborative security policy deployment method, including:

[0006] According to the hierarchical relationship of each layer in the cross-layer security service, security policies are deployed layer by layer from the upper layer to the lower layer; the layers in the cross-layer security service include, from the upper layer to the lower layer, the cloud layer, the edge layer and the terminal layer;

[0007] After each layer executes the security policy corresponding to the layer respectively, the monitoring items of the execution status of each layer are obtained, and the monitoring items of each layer are fed back from the lower layer to the upper layer layer by layer, and the monitoring data are calculated according to the feedback of each layer;

[0008] A Merkel monitoring tree is generated according to the order in which the monitoring data and security policies are issued, and collaborative security policy management and control of each layer is performed by verifying the Merkel monitoring tree.

[0009] Preferably, the security policy includes: a primary policy and a secondary policy; the security policy is deployed layer by layer from the upper layer to the lower layer according to the hierarchical relationship of each layer in the cross-layer security service, including:

[0010] According to the hierarchical relationship of each layer in the cross-layer security service, the encapsulation package of the primary policy generated by the cloud layer is sent to the edge layer through the cross-layer security service, and the secondary policy generated by the edge layer according to the encapsulation package of the primary policy is obtained;

[0011] The secondary policy is sent to the terminal layer through the cross-layer security service.

[0012] Preferably, the cloud layer includes a plurality of cloud nodes, the edge layer includes a plurality of edge nodes, and the terminal layer includes a plurality of terminal nodes.

[0013] Preferably, the step of sending the encapsulated package of the primary policy generated by the cloud layer to the edge layer through the cross-layer security service according to the hierarchical relationship of each layer in the cross-layer security service includes:

[0014] According to the hierarchical relationship of each layer in the cross-layer security service, the policy metadata of each first-level policy generated by the cloud layer is encapsulated to generate an encapsulation package of the first-level policy;

[0015] The first-level policy encapsulation package is sent to the edge node in the edge end layer within the edge scope according to the edge scope in the encapsulation package of the first-level policy by the cross-layer security service;

[0016] The policy metadata includes: policy number, policy name, terminal scope, trigger event, action pointer and meta-verification item; the first-level policy encapsulation package includes: policy encapsulation number, timestamp, edge scope, policy data, second-level policy index and first-level verification item, and the first-level verification item records the first-level policy delivery content and the first-level policy execution status;

[0017] Preferably, the sending the secondary policy to the terminal layer through the cross-layer security service includes:

[0018] Parsing the encapsulation package of the primary policy by the edge node to obtain corresponding policy metadata, and generating a secondary policy that meets the requirements according to the policy metadata;

[0019] The second-level policy is issued to the terminal nodes in the terminal layer within the terminal scope according to the terminal scope in the second-level policy through the cross-layer security service;

[0020] The secondary policy includes: policy number, policy name, terminal scope, trigger event, action pointer, and verification item. The verification item records the secondary policy delivery content and secondary policy execution status.

[0021] Preferably, after executing the security policy corresponding to each layer respectively at each layer, the monitoring items of the execution status of each layer are obtained, and the monitoring items of each layer are fed back layer by layer from the lower layer to the upper layer, and the monitoring data are calculated according to the feedback of each layer, including:

[0022] After executing the secondary strategy through the terminal layer, generating secondary monitoring items of the secondary strategy execution status, and feeding back the secondary monitoring items to the edge terminal layer;

[0023] The second-level monitoring items are merged through the edge layer to generate first-level monitoring items, and the first-level monitoring items are fed back to the cloud layer;

[0024] The cloud layer calculates the monitoring data based on the primary monitoring items.

[0025] Preferably, the secondary monitoring items are as follows:

[0026] I x =Hash(strategy number||execution status||timestamp, null)

[0027] Among them, I x is the xth secondary monitoring item, x is a positive integer and does not exceed the number of secondary strategies.

[0028] Preferably, generating a Merkel monitoring tree according to the order in which the monitoring data and the security policy are issued, and performing collaborative security policy management and control on each layer by verifying the Merkel monitoring tree includes:

[0029] The monitoring data is stored in the root record of the Merkle tree through the cross-layer security service, and the order of issuing the security policy is associated to generate a one-way linked list structure as a Merkle monitoring tree;

[0030] The cross-layer security service calculates the secondary monitoring verification item according to the secondary policy delivery content and the secondary policy execution status of the terminal layer, and compares the secondary monitoring verification item with the secondary monitoring item generated by the terminal layer. If the two values ​​are different, after reporting the execution error of the terminal layer, the secondary policy is modified or the primary policy is delivered again until the two values ​​are the same;

[0031] If the two values ​​are the same, the cross-layer security service calculates the first-level monitoring verification item according to the first-level policy delivery content and the first-level policy execution status of the edge end layer, and compares the first-level monitoring verification item with the first-level monitoring item generated by the edge end layer. If the two values ​​are different, after reporting the edge end layer execution error, modify the first-level policy and deliver it again until the two values ​​are the same;

[0032] If the two values ​​are the same, the root record verification item is calculated based on the monitoring data through the cross-layer security service, and the root record verification item is compared with the root record of the Merkle tree. If the two values ​​are different, a root record error is reported, and the security policy is resent to the cloud layer, edge layer and terminal layer in sequence to compare the root record verification item of the re-issued security policy with the root record until the two values ​​are the same.

[0033] Based on the same inventive concept, the patent application of the present invention also provides a multi-level collaborative security policy deployment system, including: a policy deployment module, a deployment feedback module and a policy verification module;

[0034] The policy deployment module is used to deploy security policies layer by layer from the upper layer to the lower layer according to the hierarchical relationship of each layer in the cross-layer security service; the layers in the cross-layer security service include, from the upper layer to the lower layer, the cloud layer, the edge layer and the terminal layer;

[0035] The deployment feedback module is used to obtain monitoring items of the execution status of each layer after each layer executes the security policy corresponding to the layer, and to feed back the monitoring items of each layer from the lower layer to the upper layer layer by layer, and to calculate and obtain monitoring data based on the feedback of each layer;

[0036] The policy verification module is used to generate a Merkel monitoring tree according to the order in which the monitoring data and security policies are issued, and to perform collaborative security policy management and control on each layer by verifying the Merkel monitoring tree.

[0037] Preferably, the strategy deployment module includes:

[0038] A primary policy sending submodule is used to send the encapsulation package of the primary policy generated by the cloud layer to the edge layer through the cross-layer security service according to the hierarchical relationship of each layer in the cross-layer security service, so as to obtain the secondary policy generated by the edge layer according to the encapsulation package of the primary policy;

[0039] The secondary policy sending submodule is used to send the secondary policy to the terminal layer through the cross-layer security service.

[0040] Preferably, the cloud layer of the policy deployment module includes a plurality of cloud nodes, the edge layer includes a plurality of edge nodes, and the terminal layer includes a plurality of terminal nodes.

[0041] Preferably, the first-level policy delivery submodule includes:

[0042] A first-level policy encapsulation unit, used to encapsulate the policy metadata of each first-level policy generated by the cloud layer according to the hierarchical relationship of each layer in the cross-layer security service, and generate an encapsulation package of the first-level policy;

[0043] A first-level policy encapsulation package sending unit is used to send the first-level policy encapsulation package to the edge node in the edge end layer located within the edge scope through the cross-layer security service according to the edge scope in the first-level policy encapsulation package, so as to obtain the second-level policy generated by the edge end layer according to the first-level policy encapsulation package;

[0044] Among them, the policy metadata includes: policy number, policy name, terminal scope, trigger event, action pointer and meta-verification item; the first-level policy encapsulation package includes: policy encapsulation number, timestamp, edge scope, policy data, second-level policy index and first-level verification item, and the first-level verification item records the first-level policy distribution content and the first-level policy execution status.

[0045] Preferably, the secondary strategy delivery submodule includes:

[0046] A secondary policy generating unit, configured to parse the encapsulation package of the primary policy through the edge node to obtain corresponding policy metadata, and generate a secondary policy that meets the requirements according to the policy metadata;

[0047] A secondary policy issuing unit, configured to issue the secondary policy to a terminal node in the terminal layer within the terminal scope according to the terminal scope in the secondary policy through the cross-layer security service;

[0048] The secondary policy includes: policy number, policy name, terminal scope, trigger event, action pointer, and verification item. The verification item records the secondary policy delivery content and secondary policy execution status.

[0049] Preferably, the deployment feedback module includes:

[0050] A secondary monitoring item feedback submodule, used for generating secondary monitoring items of secondary strategy execution status after executing the secondary strategy through the terminal layer, and feeding back the secondary monitoring items to the edge terminal layer;

[0051] A first-level monitoring item feedback submodule, used to merge the second-level monitoring items through the edge terminal layer to generate first-level monitoring items, and feed back the first-level monitoring items to the cloud layer;

[0052] The monitoring data submodule is used to calculate the monitoring data according to the first-level monitoring items through the cloud layer.

[0053] Preferably, the secondary monitoring items are as follows:

[0054] I x =Hash(strategy number||execution status||timestamp, null)

[0055] Among them, I x is the xth secondary monitoring item, x is a positive integer and does not exceed the number of secondary strategies.

[0056] Preferably, the policy verification module includes:

[0057] A Merkel monitoring tree generation submodule, used to store the monitoring data in the root record of the Merkel tree through the cross-layer security service, and associate the issuance order of the security policy to generate a one-way linked list structure as a Merkel monitoring tree;

[0058] The secondary monitoring item verification submodule is used to calculate the secondary monitoring verification item according to the secondary policy delivery content and the secondary policy execution status of the terminal layer through the cross-layer security service, and compare the secondary monitoring verification item with the secondary monitoring item generated by the terminal layer. If the two values ​​are different, after reporting the execution error of the terminal layer, modify the secondary policy or send the primary policy again until the two values ​​are the same;

[0059] The first-level monitoring item verification submodule is used to calculate the first-level monitoring verification item according to the first-level policy delivery content and the first-level policy execution status of the edge end layer through the cross-layer security service if the two values ​​are the same, and compare the first-level monitoring verification item with the first-level monitoring item generated by the edge end layer. If the two values ​​are different, after reporting the execution error of the edge end layer, modify the first-level policy and deliver it again until the two values ​​are the same;

[0060] The root record verification submodule is used to calculate the root record verification item based on the monitoring data through the cross-layer security service if the two values ​​are the same, and compare the root record verification item with the root record of the Merkle tree. If the two values ​​are different, after reporting a root record error, the security policy is re-sent to the cloud layer, edge layer and terminal layer in sequence, and the root record verification item of the re-issued security policy is compared with the root record until the two values ​​are the same.

[0061] Based on the same inventive concept, the present patent application also provides a computer device, including: one or more processors;

[0062] A memory for storing one or more programs;

[0063] When the one or more programs are executed by the one or more processors, a multi-level collaborative security policy deployment method as described above is implemented.

[0064] Based on the same inventive concept, the patent application of the present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed, a multi-level collaborative security policy deployment method as described above is implemented.

[0065] Compared with the closest prior art, the patent application of this invention has the following beneficial effects:

[0066] The patent application of the present invention provides a multi-level collaborative security policy deployment method, system, device and medium, including: deploying security policies layer by layer from the upper layer to the lower layer according to the hierarchical relationship of each layer in the cross-layer security service; the layers in the cross-layer security service include, from the upper layer to the lower layer, in sequence: cloud layer, edge end layer and terminal layer; after each layer executes the security policy corresponding to the layer respectively, the monitoring items of the execution status of each layer are obtained, and the monitoring items of each layer are fed back layer by layer from the lower layer to the upper layer, and the monitoring data is obtained by calculation according to the feedback of each layer; according to the issuance order of the monitoring data and the security policy, a Merkel monitoring tree is generated, and the collaborative security policy management of the layers is performed by verifying the Merkel monitoring tree; for the multi-level security issues of the cloud layer, edge end layer and terminal layer, the present invention proposes a method for deploying security policies layer by layer from the upper layer to the lower layer according to the hierarchical relationship of each layer in the cross-layer security service, thereby ensuring the consistency of the security policy, and adopting the policy execution feedback verification mechanism of the Merkel tree, which can more conveniently verify and manage the policy execution status and ensure that the security policy can be correctly executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 A schematic diagram of a multi-level collaborative security policy deployment method flow provided for the patent application of the present invention;

[0068] Figure 2 A security policy relationship diagram provided for the patent application of the present invention;

[0069] Figure 3 Merkle tree structure diagram provided for the patent application of the present invention;

[0070] Figure 4 A schematic diagram of a multi-level collaborative security strategy deployment structure provided for the patent application of the present invention;

[0071] Figure 5 A schematic diagram of a multi-level collaborative security policy deployment system provided for the patent application of the present invention;

[0072] Figure 6 A schematic diagram of an electronic device provided for the patent application of the present invention. DETAILED DESCRIPTION

[0073] The specific implementation methods of the patent application of the present invention are further described in detail below in conjunction with the accompanying drawings.

[0074] Embodiment 1:

[0075] The present invention patent application provides a multi-level collaborative security strategy deployment method such as Figure 1 As shown, including:

[0076] Step 1: Deploy security policies layer by layer from the upper layer to the lower layer according to the hierarchical relationship of each layer in the cross-layer security service; the layers in the cross-layer security service include, from the upper layer to the lower layer, a cloud layer, an edge layer, and a terminal layer;

[0077] Step 2: After executing the security policy corresponding to each layer respectively, the monitoring items of the execution status of each layer are obtained, and the monitoring items of each layer are fed back layer by layer from the lower layer to the upper layer, and the monitoring data are calculated according to the feedback of each layer;

[0078] Step 3: Generate a Merkel monitoring tree according to the order in which the monitoring data and security policies are issued, and perform collaborative security policy management and control on each layer by verifying the Merkel monitoring tree.

[0079] In the above step 1, the security policy includes: a primary policy and a secondary policy; the security policy is deployed layer by layer from the upper layer to the lower layer according to the hierarchical relationship of each layer in the cross-layer security service, including:

[0080] According to the hierarchical relationship of each layer in the cross-layer security service, the encapsulation package of the primary policy generated by the cloud layer is sent to the edge layer through the cross-layer security service, and the secondary policy generated by the edge layer according to the encapsulation package of the primary policy is obtained;

[0081] The secondary policy is sent to the terminal layer through the cross-layer security service.

[0082] For example, security policy delivery is managed by cross-layer security services.

[0083] In one implementation, the cloud layer includes a plurality of cloud nodes, the edge layer includes a plurality of edge nodes, and the terminal layer includes a plurality of terminal nodes.

[0084] In one implementation, according to the hierarchical relationship of each layer in the cross-layer security service, the encapsulation package of the first-level policy generated by the cloud layer is sent to the edge layer through the cross-layer security service, including:

[0085] According to the hierarchical relationship of each layer in the cross-layer security service, the policy metadata of each first-level policy generated by the cloud layer is encapsulated to generate an encapsulation package of the first-level policy;

[0086] For example, the security administrator configures policy metadata in the cloud, as shown in Table 1 below:

[0087] Table 1

[0088]

[0089] in:

[0090] Policy ID: defines the unique identifier of the primary policy.

[0091] Policy name: stored as a string that briefly describes the policy content for easy retrieval by administrators.

[0092] Endpoint scope: indicates that the first-level policy is effective for the endpoints in this scope. The scope of the first-level policy is as follows:

[0093] {T1,T2,…,T n}

[0094] Among them, T n For the nth terminal scope.

[0095] Trigger event: The condition for policy triggering. If the trigger event is matched, the edge node performs the corresponding action, otherwise no action is taken.

[0096] Action: A set of executable instructions with security protection functions.

[0097] Meta-verification item: implements the Merkle tree verification function.

[0098] The first-level policy encapsulation package is sent to the edge node in the edge end layer within the edge scope according to the edge scope in the encapsulation package of the first-level policy by the cross-layer security service;

[0099] For example, the first-level policy encapsulation package is shown in Table 2 below:

[0100]

[0101] in,

[0102] Policy package number: defines the package ID.

[0103] Timestamp: records the time when the first-level policy is issued, so as to determine the effective period of the first-level policy.

[0104] Edge scope: indicates that the first-level policy is effective on edge nodes in this range. The scope of the first-level policy is as follows:

[0105] {Edge1,Edge2,…,Edge m}

[0106] Among them, Edge m There are m edge scopes.

[0107] Policy data: Save the policy metadata from step 1 in this field.

[0108] Secondary policy index: saves index information.

[0109] Level 1 verification item: records the content of the level 1 policy issued and the execution of the level 1 policy, and implements the Merkle tree verification function.

[0110] For example, the first-level policy is sent from the cloud to the edge node, specifying the security protection deployment mode of the edge; the cloud sends the first-level policy to the edge node within the scope through a secure network communication transmission protocol (which can be implemented through an encrypted channel).

[0111] The policy metadata includes: policy number, policy name, terminal scope, trigger event, action pointer and meta-verification item; the first-level policy encapsulation package includes: policy encapsulation number, timestamp, edge scope, policy data, second-level policy index and first-level verification item, and the first-level verification item records the first-level policy delivery content and the first-level policy execution status;

[0112] In one implementation, delivering the secondary policy to the terminal layer through the cross-layer security service includes:

[0113] Parsing the encapsulation package of the primary policy by the edge node to obtain corresponding policy metadata, and generating a secondary policy that meets the requirements according to the policy metadata;

[0114] The second-level policy is issued to the terminal nodes in the terminal layer within the terminal scope according to the terminal scope in the second-level policy through the cross-layer security service;

[0115] For example, the edge node parses the encapsulation package of the first-level policy to obtain the corresponding 320-bit policy metadata; the edge end sends the second-level policy through a secure network communication transmission protocol (which can be implemented by an encrypted channel) according to the terminal scope;

[0116] The secondary policy includes: policy number, policy name, terminal scope, trigger event, action pointer, and verification item. The verification item records the secondary policy delivery content and secondary policy execution status.

[0117] For example, policy number: generates a unique policy identification number within the current edge area.

[0118] Policy Name: Name the policy according to its content.

[0119] Terminal scope: Generates the scope of policy effectiveness, that is, a list of terminals.

[0120] Trigger event: A security event that triggers a policy, such as unauthorized access, illegal address, etc.

[0121] Action pointer: points to the handler of the corresponding event.

[0122] Verification items: record the content of secondary policy delivery and the execution status of secondary policy.

[0123] The cross-layer security service of the present invention implements hierarchical deployment and dynamic monitoring of cloud, edge, and terminal security by issuing security policies layer by layer and monitoring the execution of policies; and adopts Figure 2 The security policy relationship diagram shown in the figure implements cross-layer policy deployment and execution methods to ensure the consistency of security policies as a whole. The coordinated deployment of primary and secondary policies is achieved through two methods: cloud-to-edge policy deployment and edge-to-terminal policy deployment.

[0124] In the above step 2, after executing the security policy corresponding to each layer respectively, the monitoring items of the execution status of each layer are obtained, and the monitoring items of each layer are fed back layer by layer from the lower layer to the upper layer, and the monitoring data is calculated according to the feedback of each layer, including:

[0125] After executing the secondary strategy through the terminal layer, generating secondary monitoring items of the secondary strategy execution status, and feeding back the secondary monitoring items to the edge terminal layer;

[0126] For example, the terminal generates an execution result according to the second-level monitoring item of the received second-level policy execution status, and generates a second-level monitoring item according to the execution result; wherein, the second-level policy execution status is the return value after the policy is successfully executed, which is specified by the policy compiler;

[0127] The second-level monitoring items are merged through the edge layer to generate first-level monitoring items, and the first-level monitoring items are fed back to the cloud layer;

[0128] For example, the feedback of security policies is managed by cross-layer security services;

[0129] For example, the edge node combines the secondary monitoring items collected by the terminals within the edge computing range into four groups, and calculates the hash value of the four groups of data in pairs as the primary monitoring items, as follows:

[0130] E1=Hash(I1,I2)

[0131] E2=Hash(I3,I4)

[0132] Among them, E1 is the first first-level monitoring item, E2 is the second first-level monitoring item, I1 is the first second-level monitoring item, I2 is the second second-level monitoring item, I3 is the third second-level monitoring item, and I4 is the fourth second-level monitoring item.

[0133] Send the above E1 and E2 to the cloud node and store the copy in the first-level verification item.

[0134] For example, when constructing verification items, the secondary policy monitoring items are encapsulated through hash functions to form four groups (divided into four groups to adapt to the Merkle tree structure). The merging algorithm can be a variety of methods such as grouping by number, grouping by type, and grouping by the upper-level nodes, which are specifically formulated by the implementers.

[0135] The cloud layer calculates the monitoring data based on the primary monitoring items.

[0136] In one implementation, the secondary monitoring items are as follows:

[0137] I x =Hash(strategy number||execution status||timestamp, null)

[0138] Among them, I x is the xth secondary monitoring item, x is a positive integer and does not exceed the number of secondary strategies.

[0139] For example, the I value is submitted to the edge node and a copy is stored in the meta-verification item; the present invention generates monitoring items based on the execution results of the security policy and performs layer-by-layer feedback, which is conducive to timely obtaining the execution status of each policy, and subsequently generating a Merkel monitoring tree based on the execution status of each policy.

[0140] In the above step 3, according to the order of issuing the monitoring data and the security policy, a Merkel monitoring tree is generated, and the collaborative security policy management of each layer is performed by verifying the Merkel monitoring tree, including:

[0141] The monitoring data is stored in the root record of the Merkle tree through the cross-layer security service, and the order of issuing the security policy is associated to generate a one-way linked list structure as a Merkle monitoring tree; Figure 3 The figure shows the Merkel monitoring tree structure diagram;

[0142] For example, the cloud computes and stores the monitoring data at the edge, as follows:

[0143] Root record = Hash(E1, E2)

[0144] The cross-layer security service calculates the secondary monitoring verification item according to the secondary policy delivery content and the secondary policy execution status of the terminal layer, and compares the secondary monitoring verification item with the secondary monitoring item generated by the terminal layer. If the two values ​​are different, after reporting the execution error of the terminal layer, the secondary policy is modified or the primary policy is delivered again until the two values ​​are the same;

[0145] For example, the secondary monitoring item generated by the terminal layer is a copy stored in the meta-verification item;

[0146] If the two values ​​are the same, the cross-layer security service calculates the first-level monitoring verification item according to the first-level policy delivery content and the first-level policy execution status of the edge end layer, and compares the first-level monitoring verification item with the first-level monitoring item generated by the edge end layer. If the two values ​​are different, after reporting the edge end layer execution error, modify the first-level policy and deliver it again until the two values ​​are the same;

[0147] For example, the first-level monitoring item generated by the edge terminal layer is a copy stored in the first-level verification item;

[0148] If the two values ​​are the same, the root record verification item is calculated according to the monitoring data through the cross-layer security service, and the root record verification item is compared with the root record of the Merkle tree. If the two values ​​are different, after reporting the root record error, the security policy is re-sent to the cloud layer, edge layer and terminal layer in sequence, and the root record verification item of the security policy sent again is compared with the root record until the two values ​​are the same; the present invention adopts a policy execution feedback verification mechanism based on the Merkle tree, which can facilitate the verification of policy execution, and then realize active defense against security incidents, such as Figure 4 The multi-level collaborative security policy deployment structure diagram shown can deploy security policy methods layer by layer from the upper layer to the lower layer according to the hierarchical relationship of each layer in the cross-layer security service, thereby ensuring the consistency of the security policy. It also adopts the policy execution feedback verification mechanism of the Merkle tree, which makes it easier to verify and manage the policy execution and ensure that the security policy can be correctly executed.

[0149] The embodiment of the present invention uses a "cloud-edge-end" multi-level collaborative security policy deployment process based on the Merkle tree. The cross-layer security service constructs a policy data packet, distributes security policies layer by layer, records the policy execution status and constructs a Merkle tree for verification, thereby realizing hierarchical deployment and consistency management of cloud, edge and terminal security.

[0150] Embodiment 2:

[0151] Based on the same inventive concept, the present invention patent application also provides a multi-level collaborative security policy deployment system such as Figure 5 As shown, including:

[0152] Strategy deployment module, deployment feedback module and strategy verification module;

[0153] The policy deployment module is used to deploy security policies layer by layer from the upper layer to the lower layer according to the hierarchical relationship of each layer in the cross-layer security service; the layers in the cross-layer security service include, from the upper layer to the lower layer, the cloud layer, the edge layer and the terminal layer;

[0154] The deployment feedback module is used to obtain monitoring items of the execution status of each layer after each layer executes the security policy corresponding to the layer, and to feed back the monitoring items of each layer from the lower layer to the upper layer layer by layer, and to calculate and obtain monitoring data based on the feedback of each layer;

[0155] The policy verification module is used to generate a Merkel monitoring tree according to the order in which the monitoring data and security policies are issued, and to perform collaborative security policy management and control on each layer by verifying the Merkel monitoring tree.

[0156] Preferably, the strategy deployment module includes:

[0157] A primary policy sending submodule is used to send the encapsulation package of the primary policy generated by the cloud layer to the edge layer through the cross-layer security service according to the hierarchical relationship of each layer in the cross-layer security service, so as to obtain the secondary policy generated by the edge layer according to the encapsulation package of the primary policy;

[0158] The secondary policy sending submodule is used to send the secondary policy to the terminal layer through the cross-layer security service.

[0159] Preferably, the cloud layer of the policy deployment module includes a plurality of cloud nodes, the edge layer includes a plurality of edge nodes, and the terminal layer includes a plurality of terminal nodes.

[0160] Preferably, the first-level policy delivery submodule includes:

[0161] A first-level policy encapsulation unit, used to encapsulate the policy metadata of each first-level policy generated by the cloud layer according to the hierarchical relationship of each layer in the cross-layer security service, and generate an encapsulation package of the first-level policy;

[0162] A first-level policy encapsulation package sending unit is used to send the first-level policy encapsulation package to the edge node in the edge end layer located within the edge scope through the cross-layer security service according to the edge scope in the first-level policy encapsulation package, so as to obtain the second-level policy generated by the edge end layer according to the first-level policy encapsulation package;

[0163] Among them, the policy metadata includes: policy number, policy name, terminal scope, trigger event, action pointer and meta-verification item; the first-level policy encapsulation package includes: policy encapsulation number, timestamp, edge scope, policy data, second-level policy index and first-level verification item, and the first-level verification item records the first-level policy distribution content and the first-level policy execution status.

[0164] Preferably, the secondary strategy delivery submodule includes:

[0165] A secondary policy generating unit, configured to parse the encapsulation package of the primary policy through the edge node to obtain corresponding policy metadata, and generate a secondary policy that meets the requirements according to the policy metadata;

[0166] A secondary policy issuing unit, configured to issue the secondary policy to a terminal node in the terminal layer within the terminal scope according to the terminal scope in the secondary policy through the cross-layer security service;

[0167] The secondary policy includes: policy number, policy name, terminal scope, trigger event, action pointer, and verification item. The verification item records the secondary policy delivery content and secondary policy execution status.

[0168] Preferably, the deployment feedback module includes:

[0169] A secondary monitoring item feedback submodule, used for generating secondary monitoring items of secondary strategy execution status after executing the secondary strategy through the terminal layer, and feeding back the secondary monitoring items to the edge terminal layer;

[0170] A first-level monitoring item feedback submodule, used to merge the second-level monitoring items through the edge terminal layer to generate first-level monitoring items, and feed back the first-level monitoring items to the cloud layer;

[0171] The monitoring data submodule is used to calculate the monitoring data according to the first-level monitoring items through the cloud layer.

[0172] Preferably, the secondary monitoring items are as follows:

[0173] I x =Hash(strategy number||execution status||timestamp, null)

[0174] Among them, I x is the xth secondary monitoring item, x is a positive integer and does not exceed the number of secondary strategies.

[0175] Preferably, the policy verification module includes:

[0176] A Merkel monitoring tree generation submodule, used to store the monitoring data in the root record of the Merkel tree through the cross-layer security service, and associate the issuance order of the security policy to generate a one-way linked list structure as a Merkel monitoring tree;

[0177] The secondary monitoring item verification submodule is used to calculate the secondary monitoring verification item according to the secondary policy delivery content and the secondary policy execution status of the terminal layer through the cross-layer security service, and compare the secondary monitoring verification item with the secondary monitoring item generated by the terminal layer. If the two values ​​are different, after reporting the execution error of the terminal layer, modify the secondary policy or send the primary policy again until the two values ​​are the same;

[0178] The first-level monitoring item verification submodule is used to calculate the first-level monitoring verification item according to the first-level policy delivery content and the first-level policy execution status of the edge end layer through the cross-layer security service if the two values ​​are the same, and compare the first-level monitoring verification item with the first-level monitoring item generated by the edge end layer. If the two values ​​are different, after reporting the execution error of the edge end layer, modify the first-level policy and deliver it again until the two values ​​are the same;

[0179] The root record verification submodule is used to calculate the root record verification item based on the monitoring data through the cross-layer security service if the two values ​​are the same, and compare the root record verification item with the root record of the Merkle tree. If the two values ​​are different, after reporting a root record error, the security policy is re-sent to the cloud layer, edge layer and terminal layer in sequence, and the root record verification item of the re-issued security policy is compared with the root record until the two values ​​are the same.

[0180] Example 3

[0181] like Figure 6 As shown, the present invention also provides an electronic device, which may be a computer device, a single-chip device, an intelligent mobile device, etc. The electronic device in this embodiment may include a processor, a memory, a transceiver component, etc. The memory, the processor, and the transceiver component are connected via a bus; the memory may be used to store an execution program, and an exemplary execution program may include instructions; the processor is used to execute the instructions stored in the memory. The memory may also be used to store data, which may be called and / or modified when the instructions are executed.

[0182] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. It is the computing core and control core of the terminal, which is suitable for implementing one or more instructions, specifically suitable for loading and executing one or more instructions in a storage medium to implement the corresponding method flow or corresponding functions, so as to implement the steps of a multi-level collaborative security policy deployment method in the above-mentioned embodiment.

[0183] Example 4

[0184] Based on the same inventive concept, the present invention also provides a readable storage medium, specifically an electronic device readable storage medium (Memory), which is a memory device in an electronic device for storing programs and data. It can be understood that the storage medium here can include both built-in storage media in electronic devices and, of course, extended storage media supported by electronic devices. The storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by a processor are also stored in the storage space, and these instructions can be one or more execution programs (including program codes). It should be noted that the storage medium here can be a high-speed RAM memory or a non-volatile memory, such as at least one disk storage. The processor loads and executes one or more instructions stored in the storage medium, which can implement the steps of a multi-level collaborative security policy deployment method in the above embodiment.

[0185] It should be understood by those skilled in the art that the embodiments of the present invention patent application can be provided as methods, systems, or computer program products. Therefore, the present invention patent application can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention patent application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0186] The present invention patent application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present invention patent application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0187] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0188] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0189] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the patent application of the present invention rather than to limit its protection scope. Although the patent application of the present invention is described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that after reading the patent application of the present invention, those skilled in the art can still make various changes, modifications or equivalent substitutions to the specific implementation methods of the application, but these changes, modifications or equivalent substitutions are all within the protection scope of the claims to be approved.

Claims

1. A multi-level collaborative security policy deployment method, It is characterized in that include: According to the hierarchical relationship of each layer in the cross-layer security service, security policies are deployed layer by layer from the upper layer to the lower layer; The layers in the cross-layer security service include, from the upper layer to the lower layer: a cloud layer, an edge layer, and a terminal layer; After each layer executes the security policy corresponding to the layer respectively, the monitoring items of the execution status of each layer are obtained, and the monitoring items of each layer are fed back from the lower layer to the upper layer layer by layer, and the monitoring data are calculated according to the feedback of each layer; A Merkel monitoring tree is generated according to the order in which the monitoring data and security policies are issued, and collaborative security policy management and control of each layer is performed by verifying the Merkel monitoring tree.

2. The method according to claim 1, It is characterized in that The security policy includes: a primary policy and a secondary policy; the security policy is deployed layer by layer from the upper layer to the lower layer according to the hierarchical relationship of each layer in the cross-layer security service, including: According to the hierarchical relationship of each layer in the cross-layer security service, the encapsulation package of the primary policy generated by the cloud layer is sent to the edge layer through the cross-layer security service, and the secondary policy generated by the edge layer according to the encapsulation package of the primary policy is obtained; The secondary policy is sent to the terminal layer through the cross-layer security service.

3. The method according to claim 2, It is characterized in that The cloud layer includes a plurality of cloud nodes, the edge layer includes a plurality of edge nodes, and the terminal layer includes a plurality of terminal nodes.

4. The method according to claim 3, It is characterized in that The method of sending the encapsulated package of the primary policy generated by the cloud layer to the edge layer through the cross-layer security service according to the hierarchical relationship of each layer in the cross-layer security service includes: According to the hierarchical relationship of each layer in the cross-layer security service, the policy metadata of each first-level policy generated by the cloud layer is encapsulated to generate an encapsulation package of the first-level policy; The first-level policy encapsulation package is sent to the edge node in the edge end layer within the edge scope according to the edge scope in the encapsulation package of the first-level policy by the cross-layer security service; Among them, the policy metadata includes: policy number, policy name, terminal scope, trigger event, action pointer and meta-verification item; the first-level policy encapsulation package includes: policy encapsulation number, timestamp, edge scope, policy data, second-level policy index and first-level verification item, and the first-level verification item records the first-level policy distribution content and the first-level policy execution status.

5. The method according to claim 4, It is characterized in that The sending the secondary policy to the terminal layer through the cross-layer security service includes: Parsing the encapsulation package of the primary policy by the edge node to obtain corresponding policy metadata, and generating a secondary policy that meets the requirements according to the policy metadata; The second-level policy is issued to the terminal nodes in the terminal layer within the terminal scope according to the terminal scope in the second-level policy through the cross-layer security service; The secondary policy includes: policy number, policy name, terminal scope, trigger event, action pointer, and verification item. The verification item records the secondary policy delivery content and secondary policy execution status.

6. The method according to claim 5, It is characterized in that After executing the security policy corresponding to each layer respectively at each layer, the monitoring items of the execution status of each layer are obtained, and the monitoring items of each layer are fed back layer by layer from the lower layer to the upper layer, and the monitoring data are calculated according to the feedback of each layer, including: After executing the secondary strategy through the terminal layer, generating secondary monitoring items of the secondary strategy execution status, and feeding back the secondary monitoring items to the edge terminal layer; The second-level monitoring items are merged through the edge layer to generate first-level monitoring items, and the first-level monitoring items are fed back to the cloud layer; The cloud layer calculates the monitoring data based on the primary monitoring items.

7. The method according to claim 6, It is characterized in that The secondary monitoring items are as follows: I x =Hash(strategy number||execution status||timestamp, null) Among them, I x is the xth secondary monitoring item, x is a positive integer and does not exceed the number of secondary strategies.

8. The method according to claim 6, It is characterized in that The generating of a Merkel monitoring tree according to the order of issuing the monitoring data and the security policy, and performing collaborative security policy management and control on each layer by verifying the Merkel monitoring tree, includes: The monitoring data is stored in the root record of the Merkle tree through the cross-layer security service, and the order of issuing the security policy is associated to generate a one-way linked list structure as a Merkle monitoring tree; The cross-layer security service calculates the secondary monitoring verification item according to the secondary policy delivery content and the secondary policy execution status of the terminal layer, and compares the secondary monitoring verification item with the secondary monitoring item generated by the terminal layer. If the two values ​​are different, after reporting the execution error of the terminal layer, the secondary policy is modified or the primary policy is delivered again until the two values ​​are the same; If the two values ​​are the same, the cross-layer security service calculates the first-level monitoring verification item according to the first-level policy delivery content and the first-level policy execution status of the edge end layer, and compares the first-level monitoring verification item with the first-level monitoring item generated by the edge end layer. If the two values ​​are different, after reporting the edge end layer execution error, modify the first-level policy and deliver it again until the two values ​​are the same; If the two values ​​are the same, the root record verification item is calculated based on the monitoring data through the cross-layer security service, and the root record verification item is compared with the root record of the Merkle tree. If the two values ​​are different, a root record error is reported, and the security policy is resent to the cloud layer, edge layer and terminal layer in sequence to compare the root record verification item of the re-issued security policy with the root record until the two values ​​are the same.

9. A multi-level collaborative security policy deployment system, It is characterized in that include: Strategy deployment module, deployment feedback module and strategy verification module; The policy deployment module is used to deploy security policies layer by layer from the upper layer to the lower layer according to the hierarchical relationship of each layer in the cross-layer security service; The layers in the cross-layer security service include, from the upper layer to the lower layer: a cloud layer, an edge layer, and a terminal layer; The deployment feedback module is used to obtain monitoring items of the execution status of each layer after each layer executes the security policy corresponding to the layer, and to feed back the monitoring items of each layer from the lower layer to the upper layer layer by layer, and to calculate and obtain monitoring data based on the feedback of each layer; The policy verification module is used to generate a Merkel monitoring tree according to the order in which the monitoring data and security policies are issued, and to perform collaborative security policy management and control on each layer by verifying the Merkel monitoring tree.

10. The system of claim 9, It is characterized in that The strategy deployment module includes: A primary policy sending submodule is used to send the encapsulation package of the primary policy generated by the cloud layer to the edge layer through the cross-layer security service according to the hierarchical relationship of each layer in the cross-layer security service, so as to obtain the secondary policy generated by the edge layer according to the encapsulation package of the primary policy; The secondary policy sending submodule is used to send the secondary policy to the terminal layer through the cross-layer security service.

11. The system of claim 10, It is characterized in that The cloud layer of the policy deployment module includes a plurality of cloud nodes, the edge layer includes a plurality of edge nodes, and the terminal layer includes a plurality of terminal nodes.

12. The system according to claim 11, It is characterized in that The first-level policy delivery submodule includes: A first-level policy encapsulation unit, used to encapsulate the policy metadata of each first-level policy generated by the cloud layer according to the hierarchical relationship of each layer in the cross-layer security service, and generate an encapsulation package of the first-level policy; A first-level policy encapsulation package sending unit is used to send the first-level policy encapsulation package to the edge node in the edge end layer located within the edge scope through the cross-layer security service according to the edge scope in the first-level policy encapsulation package, so as to obtain the second-level policy generated by the edge end layer according to the first-level policy encapsulation package; Among them, the policy metadata includes: policy number, policy name, terminal scope, trigger event, action pointer and meta-verification item; the first-level policy encapsulation package includes: policy encapsulation number, timestamp, edge scope, policy data, second-level policy index and first-level verification item, and the first-level verification item records the first-level policy distribution content and the first-level policy execution status.

13. The system of claim 12, It is characterized in that The secondary strategy issuing submodule includes: A secondary policy generating unit, configured to parse the encapsulation package of the primary policy through the edge node to obtain corresponding policy metadata, and generate a secondary policy that meets the requirements according to the policy metadata; A secondary policy issuing unit, configured to issue the secondary policy to a terminal node in the terminal layer within the terminal scope according to the terminal scope in the secondary policy through the cross-layer security service; The secondary policy includes: policy number, policy name, terminal scope, trigger event, action pointer, and verification item. The verification item records the secondary policy delivery content and secondary policy execution status.

14. The system of claim 13, It is characterized in that The deployment feedback module includes: A secondary monitoring item feedback submodule, used for generating secondary monitoring items of secondary strategy execution status after executing the secondary strategy through the terminal layer, and feeding back the secondary monitoring items to the edge terminal layer; A first-level monitoring item feedback submodule, used to merge the second-level monitoring items through the edge terminal layer to generate first-level monitoring items, and feed back the first-level monitoring items to the cloud layer; The monitoring data submodule is used to calculate the monitoring data according to the first-level monitoring items through the cloud layer.

15. An electronic device, It is characterized in that include: at least one processor and memory; The memory and the processor are connected via a bus; The memory is used to store one or more programs; When the one or more programs are executed by the at least one processor, a multi-level collaborative security policy deployment method as described in any one of claims 1 to 8 is implemented.

16. A readable storage medium, It is characterized in that An execution program is stored thereon, and when the execution program is executed, a multi-level collaborative security policy deployment method as described in any one of claims 1 to 8 is implemented.

Citation Information

Cited By

  • Basin information security architecture construction method and device, computer equipment and product

    CN119484154A

  • Basin information security architecture construction method and device, computer equipment and product

    CN119484154B