Method and system for secure processing of communication data

By dynamically adjusting the security protection level and modular policy execution of IoT communication activities, the problems of static security policies and lack of modular design in traditional methods are solved, achieving more efficient communication data protection and system security improvement.

CN118509253BActive Publication Date: 2024-09-27CHENGDU LECHAOREN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410941588.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-27
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

Traditional IoT communication data processing methods lack dynamics and cannot adjust security protection strategies based on the real-time communication environment and encryption parameters, leading to resource waste or data leakage risks. They also lack modular design, increasing maintenance costs and security risks.

Method used

By obtaining the security processing instructions and current encryption parameters of the target IoT communication activities, the security protection level is dynamically determined, and the modular design is used to formulate and execute the corresponding security protection strategy, including the layer-by-layer strategy formulation and execution of the multi-layer security processing module. Ensure the security of communication data.

Benefits of technology

It achieves more flexible and accurate security protection, improves the overall security of the Internet of Things system, reduces the risk of data leakage and attack, and improves the stability and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118509253B
    Figure CN118509253B
Patent Text Reader

Abstract

The present application provides a security processing method and system for communication data, which obtains the current encryption parameters according to the security processing instructions of the target Internet of Things communication activity, and then uses the first security processing module to determine the target security protection level, and loads this level into the second security processing module. Subsequently, the second security processing module determines the corresponding security protection strategy according to the target security protection level, and enables the strategy for the target Internet of Things communication activity. In this method, the target security protection level refers to the security standard that must be met when performing communication transmission, and the target security protection strategy represents the security behavior that needs to be performed to convert from the current security protection level to the target security protection level. Through this method, flexible and efficient security protection of communication data can be achieved, effectively improving the security of Internet of Things communications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet of Things technology, and more specifically, to a method and system for securely processing communication data. Background Art

[0002] With the rapid development and widespread application of IoT technology, the amount of communication data between IoT devices has exploded. However, this growth has not only brought convenience and efficiency, but also caused serious security issues. Due to the diversity of IoT devices and the complexity of communication data, how to ensure the security of communication data has become an urgent problem to be solved.

[0003] In traditional communication data processing methods, security protection strategies are often static and cannot be dynamically adjusted according to the real-time communication environment and data encryption parameters. This results in security protection being too strict in some cases, resulting in a waste of resources, while in other cases, it may be too loose and unable to effectively prevent data leakage or attacks.

[0004] In addition, traditional security protection methods often lack modular design, making the formulation and implementation of security policies unclear and inefficient. When security policies need to be adjusted, large-scale modifications to the entire system are often required, which not only increases maintenance costs but may also introduce new security risks. Summary of the invention

[0005] In view of this, the purpose of this application is to provide a method and system for secure processing of communication data, which can dynamically determine the target security protection level according to the security processing instructions of the target IoT communication activity and the current encryption parameters, and formulate and implement corresponding security protection strategies accordingly. Through this method, the security of communication data can be protected more flexibly and accurately, and the overall security of the IoT system can be improved.

[0006] According to a first aspect of the present application, a method for securely processing communication data is provided, the method comprising:

[0007] Obtaining current encryption parameters according to a security processing instruction of a target IoT communication activity, wherein the security processing instruction is configured to determine a target security protection strategy to be performed for the target IoT communication activity;

[0008] Determine, using the first security processing module, a target security protection level of the target IoT communication activity according to the encryption parameter, and load the target security protection level into the second security processing module;

[0009] Utilizing the second security processing module, the target security protection strategy is determined according to the target security protection level, and the target security protection strategy is enabled for the target Internet of Things communication activity. The target security protection level is the security protection level that the target Internet of Things communication activity must meet during communication transmission, and the target security protection strategy is the security protection behavior corresponding to the conversion of the target Internet of Things communication activity from the current security protection level to the target security protection level.

[0010] In a possible implementation manner of the first aspect, the second security processing module includes M layers of security processing instances, where M is a positive integer; and using the second security processing module to determine the target security protection strategy according to the target security protection level, and enabling the target security protection strategy for the target IoT communication activity, includes:

[0011] Determine the first layer target security protection strategy of the target IoT communication activity according to the target security protection level by using the first layer security processing instance, and transmit the first layer target security protection strategy to the second layer security processing instance;

[0012] Using the x-th layer security processing instance, determine the x-th layer target security protection strategy according to the obtained x-1-th layer target security protection strategy, and the x-th layer target security protection strategy is the security protection behavior corresponding to the activation of the x-1-th layer target security protection strategy, and x is an integer greater than 1 and not greater than M;

[0013] After determining the Mth layer target security protection strategy using the Mth layer security processing instance, the Mth layer target security protection strategy is enabled for the target Internet of Things communication activity.

[0014] In a possible implementation manner of the first aspect, the transmitting the first-layer target security protection policy to the second-layer security processing instance includes:

[0015] Using the first layer security processing instance, delivering a first first layer target security protection strategy to the second layer security processing instance;

[0016] After determining that the first first-layer target security protection strategy has finished running by using the first-layer security processing instance, the second first-layer target security protection strategy is passed to the second-layer security processing instance until it is determined that the last first-layer target security protection strategy has finished running.

[0017] In a possible implementation of the first aspect, after determining the M-th layer target security protection strategy by using the M-th layer security processing instance, enabling the M-th layer target security protection strategy for the target Internet of Things communication activity includes:

[0018] After determining a plurality of layer M target security protection strategies using the layer M security processing instance, executing a first layer M target security protection strategy for the target IoT communication activity;

[0019] After determining that the first M-th layer target security protection strategy has completed operation by using the M-th layer security processing instance, a second M-th layer target security protection strategy is executed for the target Internet of Things communication activity until the last M-th layer target security protection strategy is completed, and status data is generated for the M-1-th layer security processing instance. The status data is used to characterize the completion of the operation of the M-1-th layer target security protection strategy corresponding to the multiple M-th layer target security protection strategies.

[0020] In a possible implementation manner of the first aspect, x is less than M, and after determining the x-th layer target security protection strategy according to the acquired x-1-th layer target security protection strategy by using the x-th layer security processing instance, the method further includes:

[0021] Using the x-th layer security processing instance, delivering the first x-th layer target security protection strategy to the x+1-th layer security processing instance;

[0022] After using the x-th layer security processing instance to determine that the first x-th layer target security protection strategy has finished running, pass the second x-th layer target security protection strategy to the x+1-th layer security processing instance until it is determined that the last x-th layer target security protection strategy has finished running, and generate status data for the x-1-th layer security processing instance, and the status data is used to characterize the completion of the operation of the x-1-th layer target security protection strategy.

[0023] In a possible implementation manner of the first aspect, the instance data of the first-layer security processing instance includes multiple security encryption nodes and security encryption execution instructions corresponding to each security encryption node, the security encryption execution instructions include an enabling precondition, an enabling cost parameter, and a security impact description, the enabling cost parameter is used to characterize the size of the operating cost required to enable the security encryption node, and the security impact description is used to characterize the linkage information of the security protection level after the security encryption node is enabled;

[0024] The first-layer security processing instance is used to determine the first-layer target security protection strategy of the target Internet of Things communication activity according to the target security protection level, including:

[0025] Using the first layer of security processing instance, according to the target security protection level and the instance data, determine a plurality of reference security protection behavior sets that match the target security protection level, each reference security protection behavior set including one or more reference security protection behaviors;

[0026] Determine activation cost parameters for each reference security protection behavior set;

[0027] The reference security protection behavior in the reference security protection behavior set with the smallest enabling cost parameter is output as the first-layer target security protection strategy.

[0028] In a possible implementation manner of the first aspect, the x-th layer security processing instance is configured with a policy network diagram; and the using the x-th layer security processing instance to determine the x-th layer target security protection strategy according to the acquired x-1-th layer target security protection strategy includes:

[0029] Using the x-th layer security processing instance, selecting a policy network subgraph corresponding to the x-1th layer target security protection strategy from the policy network graph, wherein the policy network subgraph is used to implement the x-1th layer target security protection strategy;

[0030] Starting from the starting graph member of the policy network subgraph, searching is performed according to the guidance of the guide path in the policy network subgraph until the security protection strategy located in the terminal graph member of the policy network subgraph is retrieved, and the retrieved security protection strategy is output as the target security protection strategy of the xth layer;

[0031] In a possible implementation of the first aspect, the step of selecting, from the policy network graph, a policy network subgraph corresponding to the x-1 layer target security protection policy using the x-th layer security processing instance includes:

[0032] Receiving the x-1th layer target security protection policy through the xth layer security processing instance, parsing the x-1th layer target security protection policy, and extracting the key identifier or feature of the target security protection policy;

[0033] Using the key identifier or feature, searching for a matching start graph member in the policy network graph configured for the x-th layer security processing instance, the start graph member being an entry to the policy network subgraph corresponding to a start execution point of the x-1th layer target security protection policy;

[0034] Starting from the starting graph member, traverse the policy network graph to find nodes and edges related to the x-1th layer target security protection strategy;

[0035] According to the logic and dependency of the target security protection strategy, determine the target nodes and target edges that need to be included in the policy network subgraph from the nodes and edges related to the target security protection strategy of the x-1th layer found;

[0036] Constructing a policy network subgraph including the target node and the target edge, and verifying the constructed policy network subgraph. During the verification process, if it is detected that the policy network subgraph has redundant nodes or edges, optimizing the redundant nodes or redundant edges in the policy network subgraph;

[0037] Load the verified and optimized policy network subgraph into the x-th layer security processing instance, so that when the x-th layer security processing instance receives the execution instruction, it starts to execute the x-1 layer target security protection policy according to the logic of the policy network subgraph;

[0038] In a possible implementation manner of the first aspect, the step of starting from the starting graph member of the policy network subgraph, searching according to the guidance of the guide path in the policy network subgraph, until the security protection policy located in the end graph member of the policy network subgraph is retrieved, and outputting the retrieved security protection policy as the x-th layer target security protection policy includes:

[0039] Determine a starting graph member of the policy network subgraph, wherein the starting graph member represents an entry point in the policy network graph based on the x-1th layer target security protection strategy;

[0040] Generate a strategy path stack, wherein the strategy path stack is used to record a path from a starting graph member to an ending graph member;

[0041] Pushing the starting graph member into the strategy path stack and setting it as the current graph member;

[0042] Traverse the policy network subgraph, check whether the current graph member is a terminal graph member, if the current graph member is not a terminal graph member, retrieve all pointing paths of the current graph member pointing to other graph members, sort the pointing paths according to priority, traverse the sorted pointing path sequence in turn, and push the target graph member pointed by each pointing path into the policy path stack, and use the target graph member as the new current graph member for the next step of traversal, until the terminal graph member is retrieved or all possible pointing paths are traversed;

[0043] If the current graph member is a terminal graph member, check whether the current graph member contains a security protection strategy, and if so, record the security protection strategy as a candidate security protection strategy; and, if there are multiple pointing paths to the terminal graph member, and each pointing path corresponds to a candidate security protection strategy, select the best candidate security protection strategy from each candidate security protection strategy as the x-th layer target security protection strategy according to a preset evaluation criterion;

[0044] The selected candidate security protection strategy is output as the x-th layer target security protection strategy.

[0045] In a possible implementation of the first aspect, the using the first security processing module to determine the target security protection level of the target IoT communication activity according to the encryption parameter includes:

[0046] Using the first security processing module, determining matching indicators corresponding to a plurality of predefined security protection levels according to the encryption parameters, wherein the matching indicators are used to characterize the correlation between the predefined security protection levels and the encryption parameters;

[0047] The target security protection level is selected from the multiple predefined security protection levels according to the matching indicators corresponding to the multiple predefined security protection levels.

[0048] In a possible implementation manner of the first aspect, the evaluation model of the predefined security protection level is: a model composed of a matching index of the predefined security protection level and one or more target security protection level parameters in the encryption parameters;

[0049] The using the first security processing module to determine the matching indicators corresponding to a plurality of predefined security protection levels according to the encryption parameters includes:

[0050] The first security processing module is used to respectively adopt the evaluation model of each predefined security protection level to evaluate one or more target security protection level parameters associated with each predefined security protection level, and generate a matching index for each predefined security protection level.

[0051] According to a second aspect of the present application, a security processing system for communication data is provided, the security processing system for communication data comprising a machine-readable storage medium and a processor, the machine-readable storage medium storing machine-executable instructions, and when the processor executes the machine-executable instructions, the security processing system for communication data implements the aforementioned security processing method for communication data.

[0052] According to a third aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed, the aforementioned method for securely processing communication data is implemented.

[0053] According to any one of the above aspects, the technical effect of the present application is:

[0054] The present application can dynamically obtain the current encryption parameters according to the security processing instructions of the target Internet of Things communication activities, and use these encryption parameters to determine the target security protection level of the target Internet of Things communication activities. This dynamic adjustment method can more flexibly respond to different security requirements and improve the security protection capabilities of the system. By using the first security processing module to determine the target security protection level and loading the level to the second security processing module, the present invention realizes the modularization of security processing, making the formulation and execution of security policies clearer and more efficient. At the same time, the modular processing method also helps to improve the stability and reliability of the system. The second security processing module can accurately determine the target security protection strategy according to the target security protection level, and enable the strategy for the target Internet of Things communication activities. This precise security protection strategy formulation and execution method can more effectively protect the security of communication data and reduce the risk of data leakage and attack. By setting the target security protection level and the corresponding security protection strategy, it is ensured that the Internet of Things communication activities can meet the necessary security protection requirements when performing communication transmission, which can not only improve the overall security of the Internet of Things system, but also provide users with safer and more reliable communication services. Therefore, the present application can dynamically adjust, modularize, accurately formulate and execute security protection strategies, and strengthen the security of Internet of Things communication activities. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0056] Figure 1 A flowchart of a method for securely processing communication data provided in an embodiment of the present application.

[0057] Figure 2 A schematic diagram of the component structure of a system for securely processing communication data provided in an embodiment of the present application. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical scheme and advantages of the embodiment of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below according to the drawings in the embodiment of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description, and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the embodiment of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add multiple other operations to the flowchart under the guidance of the content of the present application, and can also destroy multiple operations from the flowchart.

[0059] Figure 1 The flowchart of the method for securely processing communication data provided by the embodiment of the present application is shown. It should be understood that in other embodiments, the order of some steps in the method for securely processing communication data of this embodiment can be shared with each other according to actual needs, or some steps can be omitted or maintained. The detailed steps of the method for securely processing communication data include:

[0060] Step S110, obtaining current encryption parameters according to the security processing instruction of the target IoT communication activity, wherein the security processing instruction is configured to determine the target security protection strategy to be performed for the target IoT communication activity.

[0061] In this embodiment, as a server for secure processing of communication data, a communication request is received from an IoT device. The communication request may be a video stream transmission request, and the security of the transmission process needs to be guaranteed. The server first recognizes that the communication request belongs to a specific IoT communication activity, namely, a real-time video stream transmission activity. The server then retrieves the security processing instructions preset for this IoT communication activity. These security processing instructions contain rules on how to protect the security of video stream transmission. According to these security processing instructions, the server obtains the encryption parameters currently required, such as the encryption algorithm type, key length, etc., all of which are to ensure the security of the video stream during transmission.

[0062] Step S120, using the first security processing module, determining the target security protection level of the target IoT communication activity according to the encryption parameter, and loading the target security protection level into the second security processing module.

[0063] In this embodiment, the server then calls the first security processing module, which is responsible for determining the security protection level of the video stream transmission activity based on the obtained encryption parameters. For example, if the encryption parameters show that a high-level encryption algorithm and a sufficiently long key are used, the first security processing module can determine that the security protection level of this communication activity is high. Once the target security protection level is determined, the server will load the level information of the target security protection level into the second security processing module to prepare for the next step of security policy formulation.

[0064] Step S130, using the second security processing module, determine the target security protection strategy according to the target security protection level, and enable the target security protection strategy for the target Internet of Things communication activity, the target security protection level is the security protection level that the target Internet of Things communication activity must meet when performing communication transmission, and the target security protection strategy is the security protection behavior corresponding to the conversion of the target Internet of Things communication activity from the current security protection level to the target security protection level.

[0065] In this embodiment, after receiving the target security protection level, the second security processing module begins to formulate a specific security protection strategy based on the target security protection level. If the target security protection level is high, the second security processing module can select a series of strict security measures, such as increasing the frequency of data encryption during transmission, using a dual authentication mechanism to verify the identities of both parties in communication, and performing integrity checks on transmitted data packets, etc. These measures are all to ensure that the video stream will not be stolen or tampered with during transmission. Once the security protection strategy is formulated, the server will immediately enable these strategies for this IoT communication activity to ensure the security of communication.

[0066] In the above scenario, the server ensures that IoT communication activities can be carried out under the premise of meeting a specific security protection level through a series of logical judgments and module processing, effectively preventing potential security threats.

[0067] Based on the above steps, the embodiment of the present application can dynamically obtain the current encryption parameters according to the security processing instructions of the target Internet of Things communication activity, and use these encryption parameters to determine the target security protection level of the target Internet of Things communication activity. This dynamic adjustment method can more flexibly respond to different security requirements and improve the security protection capability of the system. By using the first security processing module to determine the target security protection level and loading the level to the second security processing module, the present invention realizes the modularization of security processing, making the formulation and execution of security policies clearer and more efficient. At the same time, the modular processing method also helps to improve the stability and reliability of the system. The second security processing module can accurately determine the target security protection strategy according to the target security protection level, and enable the strategy for the target Internet of Things communication activity. This accurate security protection strategy formulation and execution method can more effectively protect the security of communication data and reduce the risk of data leakage and attack. By setting the target security protection level and the corresponding security protection strategy, it is ensured that the Internet of Things communication activity can meet the necessary security protection requirements when performing communication transmission, which can not only improve the overall security of the Internet of Things system, but also provide users with more secure and reliable communication services. Therefore, the embodiment of the present application can dynamically adjust, modularize, accurately formulate and execute security protection strategies, and strengthen the security of Internet of Things communication activities.

[0068] In a possible implementation, the second security processing module includes M layers of security processing instances, where M is a positive integer. Step S130 may include:

[0069] Step S131, using the first-layer security processing instance, determining the first-layer target security protection strategy of the target IoT communication activity according to the target security protection level, and transferring the first-layer target security protection strategy to the second-layer security processing instance.

[0070] In this embodiment, when the server processes the security protection of a target IoT communication activity, it will use a multi-level security processing module, namely the second security processing module. This second security processing module is composed of M layers of security processing instances, and each layer has its specific functions and tasks.

[0071] In detail, once the server determines the target security protection level of the target IoT communication activity, it will first use the first-layer security processing instance to determine the first-layer target security protection strategy, which mainly focuses on basic security protection measures. For example, if the target security protection level is high, the first-layer security processing instance can determine basic but important security protection measures such as adopting a strong password policy and regularly changing keys. Once the first-layer target security protection strategy is determined, this information will be passed to the second-layer security processing instance for further processing.

[0072] Step S132, using the x-th layer security processing instance, determine the x-th layer target security protection strategy based on the obtained x-1-th layer target security protection strategy, and the x-th layer target security protection strategy is to enable the security protection behavior corresponding to the x-1-th layer target security protection strategy, and x is an integer greater than 1 and not greater than M.

[0073] In this embodiment, after receiving the security protection policies transmitted by the first layer, the second layer security processing instance will formulate the second layer security protection measures based on these security protection policies. This layer can focus on more detailed security settings, such as optimizing specific data transmission protocols, adding encryption checks for data packets, etc. After determining its own security protection policies, the second layer security processing instance will pass these policies to the next layer (if any), and will also prepare for the implementation of these security protection policies.

[0074] When x is greater than 2, each layer of security processing instance will formulate its own strategy based on the security protection strategy passed from the previous layer, and proceed layer by layer until the last layer is reached.

[0075] Step S133, after determining the Mth layer target security protection strategy using the Mth layer security processing instance, enable the Mth layer target security protection strategy for the target Internet of Things communication activity.

[0076] When reaching the last layer, the Mth layer security processing instance, this layer will formulate the final security protection measures based on the security protection strategies passed by all previous layers. These security protection measures may be the most specific and detailed security settings, such as encryption methods for specific data transmission, data integrity verification methods, etc. Once the Mth layer security processing instance determines its own security protection strategy, the server will enable these strategies for the target IoT communication activities to ensure the security of the communication activities.

[0077] Through such a multi-level security processing module, the server can formulate detailed and comprehensive security protection strategies for different security protection levels, effectively protecting the security of IoT communication activities.

[0078] In a possible implementation, step S131 may include:

[0079] Step S1311: using the first layer security processing instance, transfer the first first layer target security protection strategy to the second layer security processing instance.

[0080] Step S1312: after determining that the first first-layer target security protection strategy has finished running by using the first-layer security processing instance, the second first-layer target security protection strategy is passed to the second-layer security processing instance until it is determined that the last first-layer target security protection strategy has finished running.

[0081] In this embodiment, when the server processes the security protection of the IoT communication activities, it will gradually strengthen the security policy through each layer of security processing instance in sequence. In the process of passing the first layer of target security protection policy to the second layer of security processing instance, there are clear steps and logic.

[0082] Specifically, the server will first use the first-layer security processing instance to determine and enable the first first-layer target security protection strategy, which may involve preliminary security checks, access controls, or basic defense mechanisms. Once the target security protection strategy is determined and starts running, the first-layer security processing instance will pass the specific content and implementation details of the target security protection strategy to the second-layer security processing instance, so that the second-layer security processing instance can formulate a more sophisticated security strategy based on this information.

[0083] When the first first-tier target security protection strategy is finished running, the first-tier security processing instance will evaluate its effect and may need to adjust or optimize the strategy according to the actual situation. Subsequently, the first-tier security processing instance will determine and enable the second first-tier target security protection strategy, which may be a further enhancement of the first target security protection strategy or a response to new security threats. Similarly, once the second target security protection strategy starts running, the relevant information will be passed to the second-tier security processing instance.

[0084] This process will continue until the first-layer security processing instance determines and activates the last first-layer target security protection strategy, which may be the last line of defense for the entire security protection system, or a comprehensive strategy formulated after summarizing the experience of all previous strategies. When the last target security protection strategy is completed, it means that the work of the first-layer security processing instance is completed, and all related first-layer target security protection strategies have been passed to the second-layer security processing instance and have been completed according to the predetermined order and logic.

[0085] Through such a layered and policy delivery mechanism, the server can build a multi-level, comprehensive security protection system to deal with various security threats that may arise in IoT communication activities.

[0086] In a possible implementation, step S133 may include:

[0087] Step S1331, after determining multiple M-th layer target security protection strategies using the M-th layer security processing instance, execute the first M-th layer target security protection strategy for the target Internet of Things communication activity.

[0088] Step S1332, after determining by using the Mth layer security processing instance that the first Mth layer target security protection strategy has finished running, execute the second Mth layer target security protection strategy for the target IoT communication activity until the last Mth layer target security protection strategy has finished running, and generate status data for the M-1th layer security processing instance, wherein the status data is used to characterize the completion of the running of the M-1th layer target security protection strategy corresponding to the multiple Mth layer target security protection strategies.

[0089] In this embodiment, after the server determines multiple M-th layer target security protection strategies using the M-th layer security processing instance, it begins to gradually execute these strategies to protect the target Internet of Things communication activities.

[0090] Specifically, the server first executes the first layer M target security protection strategy for the target IoT communication activity, which may be about deep inspection of data packets, real-time monitoring of abnormal behavior, or defense mechanisms against specific threats. For example, if the first target security protection strategy is deep inspection of data packets, the server can carefully check all data packets entering and leaving the IoT device to ensure that they do not carry malicious code or attempt to perform unauthorized operations.

[0091] Once the first M-th layer of targeted security protection strategy has finished running, the server can evaluate its effectiveness and make adjustments as needed. The server can then use the M-th layer of security processing instance to determine and execute a second M-th layer of targeted security protection strategy, which may be a further reinforcement based on the first targeted security protection strategy, or a response to a newly discovered potential threat.

[0092] The server can execute each Mth layer of target security protection strategy in turn until the last target security protection strategy is completed. The execution of each target security protection strategy will enhance the security of IoT communication activities and reduce potential risks.

[0093] When all the target security protection policies of the Mth layer have finished running, the server can generate status data to the security processing instance of the M-1th layer. These data are used to indicate that the target security protection policies of the M-1th layer corresponding to multiple target security protection policies of the Mth layer have finished running. This is done to keep the information synchronization between the security processing instances of each layer and ensure that each layer can make appropriate responses according to the security status of the previous layer. For example, if the Mth layer has discovered a serious security threat and has successfully handled it, then after receiving the status data, the M-1th layer can adjust its own security policy to better cooperate with the work of the Mth layer, thereby forming a more compact and efficient security protection system.

[0094] In a possible implementation manner, x is less than M, and after step S132, the method further includes:

[0095] Step A110: using the x-th layer security processing instance, transfer the first x-th layer target security protection strategy to the x+1-th layer security processing instance.

[0096] Step A110, after using the x-th layer security processing instance to determine that the first x-th layer target security protection strategy has finished running, pass the second x-th layer target security protection strategy to the x+1-th layer security processing instance, until it is determined that the last x-th layer target security protection strategy has finished running, and generate status data to the x-1-th layer security processing instance, the status data is used to characterize the completion of the x-1-th layer target security protection strategy.

[0097] In this embodiment, when the server processes the security protection of IoT communication activities, each layer of security processing instance will determine and execute its own security protection strategy based on the previous layer's strategy. Now, the scenario of how the x-th layer security processing instance interacts with the upper and lower layers after determining and executing its security protection strategy will be described in detail.

[0098] After the server determines the first target security protection strategy of layer x using the security processing instance of layer x, it will immediately pass this target security protection strategy to the security processing instance of layer x+1. This process is to ensure the consistency and progressiveness of security protection. For example, if layer x determines a security protection strategy for data encryption, the specific implementation details and methods of this target security protection strategy can be passed to layer x+1 so that layer x+1 can further strengthen the security of data on this basis, such as by adding more complex encryption algorithms or key management mechanisms.

[0099] When the first x-th target security protection strategy is completed, the x-th security processing instance will evaluate its execution effect and adjust or optimize the subsequent strategy as needed. Subsequently, the second x-th target security protection strategy can be determined and executed. This target security protection strategy may be an improvement on the first target security protection strategy or a response to a new security threat. Similarly, this new strategy will also be passed to the x+1th security processing instance so that it can make corresponding adjustments and enhancements.

[0100] This process will continue until the x-th layer security processing instance determines and executes the last x-th layer target security protection strategy. Once the last target security protection strategy is completed, it means that the work of the x-th layer security processing instance has been completed. At this time, the x-th layer will generate status data to the x-1 layer security processing instance. This data is used to indicate that all x-th layer target security protection strategies have been completed and the final security status has been fed back to the x-1 layer. In this way, the x-1 layer can evaluate the effectiveness of its own security protection strategy based on this information and may make adjustments as needed.

[0101] Through such a layer-by-layer transmission and feedback mechanism, the server can ensure that each layer of security processing instance provides effective security protection based on the previous layer, thereby building a closely coordinated and efficiently operating security protection system.

[0102] In one possible implementation, the instance data of the first-layer security processing instance includes multiple security encryption nodes and security encryption execution instructions corresponding to each security encryption node, the security encryption execution instructions include enabling preconditions, enabling cost parameters and security impact descriptions, the enabling cost parameters are used to characterize the size of the operating cost required to enable the security encryption node, and the security impact description is used to characterize the linkage information on the security protection level after the security encryption node is enabled.

[0103] Step S131 may further include:

[0104] Step S1313, using the first layer security processing instance, according to the target security protection level and the instance data, determine multiple reference security protection behavior sets that match the target security protection level, each reference security protection behavior set including one or more reference security protection behaviors.

[0105] In this embodiment, the first-layer security processing instance in the server holds a set of specific instance data, which constitutes the basis of the security protection strategy, and includes multiple security encryption nodes and security encryption execution instructions corresponding to each security encryption node. Each security encryption execution instruction details the preconditions for enabling the node, the cost required for enabling, and the impact on the overall security protection level after enabling.

[0106] Now, the server needs to determine the first-layer target security protection strategy based on the target security protection level. The server will first use the first-layer security processing instance, combined with the target security protection level and instance data, to screen out multiple possible security protection behavior combinations, namely reference security protection behavior sets. Each reference security protection behavior set contains one or more reference security protection behaviors that can improve the security protection level.

[0107] For example, assuming the target security protection level is "high", the first-layer security processing instance will analyze the security encryption nodes it has and find those nodes that can provide high-intensity security protection. For example, some nodes may provide data encryption services, and some nodes may provide access control functions. According to the requirements of the target security protection level, the server can combine these nodes that can provide effective protection into different reference security protection behavior sets.

[0108] Step S1314, determining the activation cost parameters of each reference security protection behavior set.

[0109] Step S1315: outputting the reference security protection behavior in the reference security protection behavior set with the smallest activation cost parameter as the first-layer target security protection strategy.

[0110] Next, the server can calculate the activation cost of each reference security protection behavior set, which may include computing resource consumption, network bandwidth usage, system performance impact, etc. By comparing the activation costs of each set, the server can evaluate which set consumes the least system resources while achieving security protection.

[0111] For example, the server may find that enabling a reference security protection behavior set that includes multiple data encryption and strict access control can provide extremely high security, but it will also significantly increase the system's computing burden and network latency. Another set may only include basic data encryption and simple access control, which has a relatively low activation cost while still meeting the "high" level of security protection requirements.

[0112] Finally, the server can choose to enable the reference security protection behavior set with the lowest cost, and output the reference security protection behavior as the first-level target security protection strategy, which will be implemented in subsequent security processing to ensure that IoT communication activities reach the predetermined security protection level.

[0113] For example, after a cost-benefit analysis, the server decides to adopt a reference security protection behavior set that has a lower activation cost and meets the security protection level requirements. The security protection behaviors in this set may include basic data encryption, access control, and regular security audits. These behaviors will be integrated into the first-level target security protection strategy and applied to subsequent IoT communication activities.

[0114] In a possible implementation, the x-th layer security processing instance is configured with a policy network diagram. Step S132 may include:

[0115] Step S1321, using the x-th layer security processing instance, select the policy network subgraph corresponding to the x-1th layer target security protection strategy from the policy network graph, and the policy network subgraph is used to implement the x-1th layer target security protection strategy.

[0116] In this embodiment, the x-th layer security processing instance in the server is configured with a policy network diagram, which is a complex diagram that shows the relationship and execution path between various security protection policies. When the server needs to derive the target security protection policy of the x-th layer from the x-1th layer target security protection policy, the server first uses the x-th layer security processing instance to find the policy network subgraph corresponding to the x-1th layer target security protection policy from the overall policy network diagram. The policy network subgraph is a diagram specially designed for implementing the x-1th layer security protection policy, which shows in detail a series of steps and associated security measures that need to be executed to implement this policy.

[0117] For example, assuming that the target security protection strategy of layer x-1 is "preventing data leakage", the server can search for the policy network subgraph corresponding to this target security protection strategy in the policy network graph, which may include multiple related security measures such as data encryption, access control, and data backup, and the execution relationships between them.

[0118] Step S1322, starting from the starting graph member of the policy network subgraph, searching according to the guidance of the guide path in the policy network subgraph until the security protection strategy located in the end graph member of the policy network subgraph is retrieved, and the retrieved security protection strategy is output as the x-th layer target security protection strategy.

[0119] In this embodiment, the server will then start from the starting graph member of the policy network subgraph and search along the path indicated in the policy network subgraph. The path is a logical execution process that tells the server which security measures need to be executed in what order in order to implement the security protection strategy of the x-1th layer.

[0120] For example, in the policy network subgraph of "preventing data leakage", the server can start the search from the starting graph member, such as "data encryption". Then, along the path in the subgraph, other related security measures such as "access control" and "data backup" can be gradually retrieved. The path not only indicates the security measures that need to be implemented, but also specifies the execution order of these measures.

[0121] When the server retrieves the endpoint graph member of the policy network subgraph, it can integrate all the security protection policies retrieved along the way and output them as the target security protection policies of the xth layer. These policies are carefully designed to achieve the security protection goals of the x-1th layer, and they will together form a complete and orderly security protection system.

[0122] For example, after retrieving the policy network subgraph of "preventing data leakage", the server can integrate security protection policies such as "data encryption", "access control" and "data backup" as the target security protection policy output of the x-th layer. These policies will work together on the server to ensure the security and integrity of the data, thereby effectively preventing the risk of data leakage.

[0123] In a possible implementation, step S1321 may include:

[0124] Step S1321-1: receiving the x-1th layer target security protection policy through the xth layer security processing instance, parsing the x-1th layer target security protection policy, and extracting the key identifier or feature of the target security protection policy.

[0125] In this embodiment, after receiving the target security protection policy of layer x-1, the layer x security processing instance in the server will go through a series of processing steps to construct and execute the corresponding policy network subgraph.

[0126] When the layer x security processing instance receives the layer x-1 security protection policies, it first parses these policies and extracts key identifiers or features from them. These identifiers or features may be the name, number, or specific security function requirements of the policy.

[0127] For example, suppose that the x-1 layer passes a security protection policy called "data protection". After receiving this policy, the x-1 layer security processing instance will parse out the key identifier "data protection" and other features that may be included, such as encryption method, access rights, etc.

[0128] Step S1321-2, using the key identifier or feature, searches for a matching starting graph member in the policy network graph configured for the x-th layer security processing instance, wherein the starting graph member is the entry of the policy network subgraph, corresponding to the starting execution point of the x-1th layer target security protection strategy.

[0129] Next, the x-th layer security processing instance uses the extracted key identifier or feature to search for a matching starting graph member in its configured policy network graph, which is the entry to the policy network subgraph and corresponds to the start execution point of the x-1th layer security protection policy.

[0130] For example, using the key identifier "data protection", the layer x security processing instance searches the policy network graph for a starting graph member related to data encryption or data access control, which may be the starting point of an encryption algorithm or the entry point of an access control mechanism.

[0131] Step S1321-3, starting from the starting graph member, traverse the policy network graph to find nodes and edges related to the x-1th layer target security protection strategy.

[0132] Starting from the starting graph member, the x-th layer security processing instance traverses the entire policy network graph to find all nodes and edges related to the x-1th layer security protection policy. These nodes and edges represent the various security measures that need to be performed to implement the policy and the dependencies between them.

[0133] For example, after finding the starting graph member, the server can gradually expand along the policy network graph to find all security measures related to the "data protection" policy, such as data encryption algorithms, key management, data backup, access control rules, etc., and determine the execution order and dependencies between them.

[0134] Step S1321-4, according to the logic and dependency of the target security protection policy, determine the target nodes and target edges that need to be included in the policy network subgraph from the nodes and edges related to the x-1 layer target security protection policy.

[0135] According to the logic and dependencies of the x-1th layer security protection strategy, the xth layer security processing instance will determine the target nodes and target edges that need to be included in the policy network subgraph from the traversal results. These nodes and edges constitute the minimum execution path required to implement the strategy.

[0136] For example, after traversing the entire policy network graph, the server can filter out nodes and edges that are directly related to the "data protection" policy, such as encryption algorithm nodes, key management nodes, and the connecting edges between them. These nodes and edges will constitute the policy network subgraph that implements the "data protection" policy.

[0137] Step S1321-5, construct a policy network subgraph including the target nodes and target edges, and verify the constructed policy network subgraph. During the verification process, if it is detected that the policy network subgraph has redundant nodes or edges, the redundant nodes or redundant edges in the policy network subgraph are optimized.

[0138] Next, the x-th layer security processing instance constructs a policy network subgraph containing target nodes and target edges and verifies the subgraph. During the verification process, if the policy network subgraph is found to have redundant nodes or edges, that is, those parts that do not directly contribute to the implementation of the policy, the server can optimize these redundant parts.

[0139] For example, after building the policy network subgraph for the "data protection" policy, the server can verify and optimize it. If it finds that some nodes or edges are not necessary in actual execution, or that the same security function can be achieved more effectively in other ways, the server will adjust and optimize these parts.

[0140] Step S1321-6, load the verified and optimized policy network subgraph into the x-th layer security processing instance, so that when the x-th layer security processing instance receives the execution instruction, it starts to execute the x-1th layer target security protection strategy according to the logic of the policy network subgraph.

[0141] Finally, the verified and optimized policy network subgraph is loaded into the x-th layer security processing instance. When this instance receives the execution instruction, it can start executing the x-1 layer security protection strategy according to the logic of the policy network subgraph.

[0142] For example, when the server completes the verification and optimization of the policy network subgraph, it can load this subgraph into the security processing instance responsible for executing the "data protection" policy. Once this instance receives the execution instruction, it will start to execute various security measures such as data encryption, access control, etc. according to the logic and sequence defined in the subgraph to ensure the integrity and confidentiality of the data.

[0143] In a possible implementation, step S1322 includes:

[0144] Step S1322-1, determine the starting graph member of the policy network subgraph, and the starting graph member represents the entry point in the policy network graph based on the x-1 layer target security protection strategy.

[0145] In this embodiment, when the server performs a search starting from the starting graph member of the policy network subgraph until the security protection policy in the end graph member is found, the server first determines the starting graph member of the policy network subgraph. The starting graph member is based on the entry point of the x-1 layer target security protection policy in the policy network graph, and it represents the starting position of the execution of the security protection policy.

[0146] For example, assuming that the policy network subgraph describes a complex network security processing flow, the starting graph member may be a node that means "start monitoring network traffic", which is the starting point for the execution of the entire security protection strategy.

[0147] Step S1322-2: Generate a policy path stack, where the policy path stack is used to record the path from the starting graph member to the ending graph member.

[0148] The server then generates a policy path stack, which is used to record the path from the starting graph member to the ending graph member, so that the current path can be clearly tracked during the traversal process.

[0149] For example, the server creates an empty policy path stack and prepares to record path information during subsequent traversals.

[0150] Step S1322-3, pushing the starting graph member into the strategy path stack and setting it as the current graph member.

[0151] The server pushes the starting graph member into the policy path stack and sets it as the current graph member as the starting point of the traversal.

[0152] For example, a "start monitoring network traffic" node is pushed into the policy path stack and processed as a current graph member.

[0153] Step S1322-4, traverse the policy network subgraph, check whether the current graph member is a destination graph member, if the current graph member is not a destination graph member, retrieve all pointing paths of the current graph member pointing to other graph members, and sort the pointing paths according to priority, traverse the sorted pointing path sequence in turn, and push the target graph member pointed to by each pointing path into the policy path stack, and at the same time use the target graph member as the new current graph member for the next step of traversal, until the destination graph member is retrieved or all possible pointing paths are traversed.

[0154] The server starts traversing the policy network subgraph and checks whether the current graph member is the end graph member. If not, it retrieves all pointing paths from the current graph member to other graph members and traverses them in order of priority. During the traversal process, the target graph member pointed to by each pointing path will be pushed into the policy path stack and become the new current graph member for the next traversal. This process will continue until the end graph member is retrieved or all possible pointing paths are traversed.

[0155] For example, starting from the "Start monitoring network traffic" node, the server can traverse to nodes such as "Detect abnormal traffic" and "Block malicious IP". These nodes will be pushed into the policy path stack according to priority and further traversed as new current graph members. This process will continue until the end graph member indicating the end of the security protection policy is found.

[0156] Step S1322-5: if the current graph member is a destination graph member, check whether the current graph member contains a security protection strategy, and if so, record the security protection strategy as a candidate security protection strategy. Also, if there are multiple pointing paths to the destination graph member, and each pointing path corresponds to a candidate security protection strategy, select the best candidate security protection strategy from each candidate security protection strategy as the x-th layer target security protection strategy according to a preset evaluation criterion.

[0157] When the server retrieves the destination graph member, it can check whether the graph member contains a security protection policy. If it does, it records it as a candidate security protection policy. If there are multiple paths to the destination graph member, and each path corresponds to a candidate security protection policy, the server can select the best one from the candidate policies as the x-th layer target security protection policy according to the preset evaluation criteria.

[0158] For example, suppose the server finds an endpoint graph member that indicates "security protection policy ends", and this member contains a security protection policy of "blocking suspicious accounts". If this is the only path to the endpoint graph member, then this policy will be selected as the target security protection policy for layer x. If there are multiple paths to the endpoint graph member, and each path corresponds to a different security protection policy, the server can select the optimal policy based on preset evaluation criteria (such as policy execution efficiency, resource consumption, etc.).

[0159] Step S1322-6: output the selected candidate security protection strategy as the x-th layer target security protection strategy.

[0160] Finally, the server outputs the selected candidate security protection strategy as the x-th layer target security protection strategy, which will be used in actual security protection work.

[0161] For example, the server outputs the selected "block suspicious accounts" policy as the x-th layer target security protection policy, and prepares to apply this policy in the actual network environment to enhance security protection capabilities.

[0162] In a possible implementation, step S120 may include:

[0163] Step S121: using the first security processing module, determining matching indicators corresponding to a plurality of predefined security protection levels according to the encryption parameters, wherein the matching indicators are used to characterize the correlation between the predefined security protection levels and the encryption parameters.

[0164] The server will first use the first security processing module on it, which is specifically responsible for handling security-related matters. When the server receives an IoT communication activity, it will extract encryption parameters from the IoT communication activity. These encryption parameters may include information such as the type of encryption algorithm, the length of the key, and the number of encryption rounds, which are important factors in evaluating the security of the communication activity.

[0165] Next, the first security processing module determines the matching indexes corresponding to multiple predefined security protection levels based on these encryption parameters. These predefined security protection levels may be "low", "medium", "high", etc., and the matching index is a value or a group of values ​​used to quantitatively represent the correlation between the predefined security protection level and the encryption parameters. For example, if the encryption parameters show that a high-strength encryption algorithm and a sufficiently long key are used, then the matching index with the "high" security protection level will be relatively high.

[0166] For example, suppose the server receives an IoT communication activity encrypted with the AES-256 encryption algorithm. The first security processing module will analyze the encryption algorithm and determine that it is a high-strength encryption algorithm, so the matching index with the "high" security protection level will be relatively high. At the same time, the module will also consider other encryption parameters, such as the frequency of key replacement, whether there are additional authentication mechanisms, etc., to comprehensively determine the matching index of each predefined security protection level.

[0167] Step S122: selecting the target security protection level from the multiple predefined security protection levels according to the matching indicators corresponding to the multiple predefined security protection levels.

[0168] After determining the matching indicators of each predefined security protection level, the first security processing module will select a most suitable target security protection level based on these indicators, which is usually done by comparing the matching indicators of each level. The security protection level with the highest matching indicator is usually selected as the target security protection level.

[0169] For example, continuing with the above example, if the matching index of the "high" security protection level is significantly higher than that of the "medium" and "low" levels, then the server will select "high" as the target security protection level for the IoT communication activity, which means that the server can take more stringent security measures to protect this communication activity, such as increasing the monitoring frequency, using more complex authentication mechanisms, etc.

[0170] In this way, the server can dynamically determine the security protection level of IoT communication activities based on the encryption parameters, thereby providing more accurate and efficient security protection.

[0171] In a possible implementation, the evaluation model of the predefined security protection level is: a model composed of a matching index of the predefined security protection level and one or more target security protection level parameters in the encryption parameters.

[0172] Step S121 includes: using the first security processing module, respectively adopting the evaluation model of each predefined security protection level, evaluating one or more target security protection level parameters associated with each predefined security protection level, and generating a matching index for each predefined security protection level.

[0173] In this embodiment, the evaluation model of the predefined security protection level is composed of the matching index of the predefined security protection level and one or more target security protection level parameters in the encryption parameters. These target security protection level parameters may include key information such as the type of encryption algorithm, key length, encryption rounds, etc., which are crucial for determining the strength of the security protection level.

[0174] The server first obtains a series of encryption parameters extracted from IoT communication activities. At the same time, the server also stores multiple predefined security protection levels and their corresponding evaluation models.

[0175] Next, the server may utilize the first security processing module to respectively adopt the evaluation model of each predefined security protection level to perform evaluation. This process is for each predefined security protection level one by one.

[0176] In each evaluation model, the first security processing module will focus on one or more target security level parameters associated with the security level. For example, for a "high" security level, the module may pay special attention to the complexity of the encryption algorithm and the length of the key. The module will compare these parameters with predefined standards to evaluate whether they meet the standards required for the security level.

[0177] Based on the evaluation results of the above parameters, the first security processing module generates a matching index for each predefined security protection level. The matching index is a quantitative value that reflects the degree of compliance between the encryption parameters and the predefined security protection level. For example, if the encryption parameters fully meet the requirements of the "high" security protection level, then the matching index of this level will be very high.

[0178] For example, suppose the server is processing an IoT communication that uses the AES-256 bit encryption algorithm and a complex authentication mechanism. For the "high" security level assessment model, the first security processing module pays special attention to the number of bits in the encryption algorithm and whether there are additional authentication mechanisms. Because the AES-256 bit encryption algorithm has high security and the communication activity also includes a complex authentication mechanism, these encryption parameters are highly consistent with the requirements of the "high" security level. Based on the assessment model, the first security processing module generates a very high match index for the "high" security level.

[0179] In this way, the server can accurately generate matching indicators for each predefined security protection level based on encryption parameters, thereby providing a reliable basis for subsequent security protection level selection.

[0180] Figure 2 The security processing system 100 for communication data shown includes: a processor 1001 and a memory 1003. The processor 1001 and the memory 1003 are connected, such as through a bus 1002. Optionally, the security processing system 100 for communication data may also include a transceiver 1004, which may be used for data interaction between the server and other servers, such as data transmission and / or data reception. It should be noted that in actual scheduling, the transceiver 1004 is not limited to one, and the structure of the security processing system 100 for communication data does not constitute a limitation on the embodiments of the present application.

[0181] Processor 1001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 1001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0182] The bus 1002 may include a path to transmit information between the above components. The bus 1002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 1002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 2 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0183] The memory 1003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium, other magnetic storage devices, or any other medium that can be used to carry or store program code and can be read by a computer, without limitation herein.

[0184] The memory 1003 is used to store program codes for executing the embodiments of the present application, and the execution is controlled by the processor 1001. The processor 1001 is used to execute the program codes stored in the memory 1003 to implement the steps shown in the above method embodiments.

[0185] An embodiment of the present application provides a computer-readable storage medium having program code stored thereon. When the program code is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.

[0186] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless there is clear explanation in this article, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders based on demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages according to the actual implementation scenario, and some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios at the execution time, the execution order of these sub-steps or stages can be flexibly configured based on demand, and the embodiment of the present application does not limit this.

[0187] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the scheme of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.

Claims

1. A method for securely processing communication data, characterized in that: The method comprises: Obtaining current encryption parameters according to a security processing instruction of a target IoT communication activity, wherein the security processing instruction is configured to determine a target security protection strategy to be performed for the target IoT communication activity; Determine, using the first security processing module, a target security protection level of the target IoT communication activity according to the encryption parameter, and load the target security protection level into the second security processing module; Utilizing the second security processing module, determining the target security protection strategy according to the target security protection level, and enabling the target security protection strategy for the target IoT communication activity, wherein the target security protection level is the security protection level that the target IoT communication activity needs to meet when performing communication transmission, and the target security protection strategy is the security protection behavior corresponding to the conversion of the target IoT communication activity from the current security protection level to the target security protection level; The second security processing module includes M layers of security processing instances, where M is a positive integer; using the second security processing module to determine the target security protection strategy according to the target security protection level, and enabling the target security protection strategy for the target IoT communication activity, including: Determine the first layer target security protection strategy of the target IoT communication activity according to the target security protection level by using the first layer security processing instance, and transmit the first layer target security protection strategy to the second layer security processing instance; Using the x-th layer security processing instance, determine the x-th layer target security protection strategy according to the obtained x-1-th layer target security protection strategy, and the x-th layer target security protection strategy is the security protection behavior corresponding to the activation of the x-1-th layer target security protection strategy, and x is an integer greater than 1 and not greater than M; After determining the Mth layer target security protection strategy using the Mth layer security processing instance, the Mth layer target security protection strategy is enabled for the target Internet of Things communication activity.

2. The method for securely processing communication data according to claim 1, characterized in that: The delivering the first-layer target security protection strategy to the second-layer security processing instance includes: Using the first layer security processing instance, delivering a first first layer target security protection strategy to the second layer security processing instance; After determining that the first first-layer target security protection strategy has finished running by using the first-layer security processing instance, the second first-layer target security protection strategy is passed to the second-layer security processing instance until it is determined that the last first-layer target security protection strategy has finished running.

3. The method for securely processing communication data according to claim 1, characterized in that: After determining the M-th layer target security protection strategy by using the M-th layer security processing instance, enabling the M-th layer target security protection strategy for the target Internet of Things communication activity includes: After determining a plurality of layer M target security protection strategies using the layer M security processing instance, executing a first layer M target security protection strategy for the target IoT communication activity; After determining that the first M-th layer target security protection strategy has completed operation by using the M-th layer security processing instance, a second M-th layer target security protection strategy is executed for the target Internet of Things communication activity until the last M-th layer target security protection strategy is completed, and status data is generated for the M-1-th layer security processing instance. The status data is used to characterize the completion of the operation of the M-1-th layer target security protection strategy corresponding to the multiple M-th layer target security protection strategies.

4. The method for securely processing communication data according to claim 1, characterized in that: x is less than M, and after the x-th layer security processing instance is used to determine the x-th layer target security protection strategy according to the acquired x-1-th layer target security protection strategy, the method further includes: Using the x-th layer security processing instance, delivering the first x-th layer target security protection strategy to the x+1-th layer security processing instance; After using the x-th layer security processing instance to determine that the first x-th layer target security protection strategy has finished running, pass the second x-th layer target security protection strategy to the x+1-th layer security processing instance until it is determined that the last x-th layer target security protection strategy has finished running, and generate status data for the x-1-th layer security processing instance, and the status data is used to characterize the completion of the operation of the x-1-th layer target security protection strategy.

5. The method for securely processing communication data according to claim 1, characterized in that: The instance data of the first-layer security processing instance includes multiple security encryption nodes and security encryption execution instructions corresponding to each security encryption node, wherein the security encryption execution instructions include an enabling precondition, an enabling cost parameter, and a security impact description, wherein the enabling cost parameter is used to characterize the size of the operating cost required to enable the security encryption node, and the security impact description is used to characterize the linkage information of the security protection level after the security encryption node is enabled; The first-layer security processing instance is used to determine the first-layer target security protection strategy of the target Internet of Things communication activity according to the target security protection level, including: Using the first layer of security processing instance, according to the target security protection level and the instance data, determine a plurality of reference security protection behavior sets that match the target security protection level, each reference security protection behavior set including one or more reference security protection behaviors; Determine activation cost parameters for each reference security protection behavior set; The reference security protection behavior in the reference security protection behavior set with the smallest enabling cost parameter is output as the first-layer target security protection strategy.

6. The method for securely processing communication data according to claim 1, characterized in that: The x-th layer security processing instance is configured with a policy network diagram; the x-th layer security processing instance is used to determine the x-th layer target security protection strategy according to the obtained x-1-th layer target security protection strategy, including: Using the x-th layer security processing instance, selecting a policy network subgraph corresponding to the x-1th layer target security protection strategy from the policy network graph, wherein the policy network subgraph is used to implement the x-1th layer target security protection strategy; Starting from the starting graph member of the policy network subgraph, searching is performed according to the guidance of the guide path in the policy network subgraph until the security protection strategy located in the terminal graph member of the policy network subgraph is retrieved, and the retrieved security protection strategy is output as the target security protection strategy of the xth layer; The step of selecting the policy network subgraph corresponding to the x-1 layer target security protection strategy from the policy network graph by using the x-1 layer security processing instance comprises: Receiving the x-1th layer target security protection policy through the xth layer security processing instance, parsing the x-1th layer target security protection policy, and extracting the key identifier or feature of the target security protection policy; Using the key identifier or feature, searching for a matching start graph member in the policy network graph configured for the x-th layer security processing instance, the start graph member being an entry to the policy network subgraph corresponding to a start execution point of the x-1th layer target security protection policy; Starting from the starting graph member, traverse the policy network graph to find nodes and edges related to the x-1th layer target security protection strategy; According to the logic and dependency of the target security protection strategy, determine the target nodes and target edges that need to be included in the policy network subgraph from the nodes and edges related to the target security protection strategy of the x-1th layer found; Constructing a policy network subgraph including the target node and the target edge, and verifying the constructed policy network subgraph. During the verification process, if it is detected that the policy network subgraph has redundant nodes or edges, optimizing the redundant nodes or redundant edges in the policy network subgraph; Load the verified and optimized policy network subgraph into the x-th layer security processing instance, so that when the x-th layer security processing instance receives the execution instruction, it starts to execute the x-1 layer target security protection policy according to the logic of the policy network subgraph; The step of starting from the starting graph member of the policy network subgraph, searching according to the guidance of the guide path in the policy network subgraph, until the security protection strategy located in the terminal graph member of the policy network subgraph is retrieved, and outputting the retrieved security protection strategy as the x-th layer target security protection strategy comprises: Determine a starting graph member of the policy network subgraph, wherein the starting graph member represents an entry point in the policy network graph based on the x-1th layer target security protection strategy; Generate a strategy path stack, wherein the strategy path stack is used to record a path from a starting graph member to an ending graph member; Pushing the starting graph member into the strategy path stack and setting it as the current graph member; Traverse the policy network subgraph, check whether the current graph member is a terminal graph member, if the current graph member is not a terminal graph member, retrieve all pointing paths of the current graph member pointing to other graph members, sort the pointing paths according to priority, traverse the sorted pointing path sequence in turn, and push the target graph member pointed by each pointing path into the policy path stack, and use the target graph member as the new current graph member for the next step of traversal, until the terminal graph member is retrieved or all possible pointing paths are traversed; If the current graph member is a terminal graph member, check whether the current graph member contains a security protection strategy, and if so, record the security protection strategy as a candidate security protection strategy; and, if there are multiple pointing paths to the terminal graph member, and each pointing path corresponds to a candidate security protection strategy, select the best candidate security protection strategy from each candidate security protection strategy as the x-th layer target security protection strategy according to a preset evaluation criterion; The selected candidate security protection strategy is output as the x-th layer target security protection strategy.

7. The method for securely processing communication data according to claim 1, characterized in that: The using the first security processing module to determine the target security protection level of the target IoT communication activity according to the encryption parameter includes: Using the first security processing module, determining matching indicators corresponding to a plurality of predefined security protection levels according to the encryption parameters, wherein the matching indicators are used to characterize the correlation between the predefined security protection levels and the encryption parameters; The target security protection level is selected from the multiple predefined security protection levels according to the matching indicators corresponding to the multiple predefined security protection levels.

8. The method for securely processing communication data according to claim 7, characterized in that: The evaluation model of the predefined security protection level is: a model composed of a matching index of the predefined security protection level and one or more target security protection level parameters in the encryption parameters; The using the first security processing module to determine the matching indicators corresponding to a plurality of predefined security protection levels according to the encryption parameters includes: The first security processing module is used to respectively adopt the evaluation model of each predefined security protection level to evaluate one or more target security protection level parameters associated with each predefined security protection level, and generate a matching index for each predefined security protection level.

9. A secure processing system for communication data, characterized in that: It comprises a processor and a computer-readable storage medium, wherein the computer-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by the processor, the method for securely processing communication data as described in any one of claims 1 to 8 is implemented.