A safety protection method and device, electronic equipment and storage medium

By building a security plug-in signal node into the client, a stateless real-time communication link is established to conduct risk assessment and repair of the virtual host, solving the problem of timely discovery and repair of cloud host vulnerabilities, and achieving safe early processing and effective protection of the virtual host. .

CN118200044BActive Publication Date: 2024-09-13CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410587374.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2024-09-13
Estimated Expiration
2044-05-13

AI Technical Summary

Technical Problem

In the existing cloud host security service model, the server uses spontaneous or scheduled tasks to perform vulnerability scanning and risk scanning on the client's cloud host. As a result, risks and vulnerabilities existing in the cloud host cannot be discovered and repaired in time, affecting host security.

Method used

Built-in security plug-in signal node on the client, establishes a stateless real-time communication link with the server, conducts risk assessment in response to virtual host creation, determines the target risk level, and sends it to the server to determine the repair task based on the assessment results, complete repair.

Benefits of technology

It realizes the target risk assessment and repair of the virtual host before and during operation, handles security issues in advance, avoids risks during the operation of the virtual host, and ensures effective security protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118200044B
    Figure CN118200044B
Patent Text Reader

Abstract

The present disclosure discloses a security protection method and device, an electronic device and a storage medium. Based on the built-in security plug-in signal node of the client, a stateless real-time communication link is established between the client and the server; in response to the creation of a virtual host, a risk assessment is performed on the virtual host based on the built-in security plug-in of the virtual host to obtain a target risk level corresponding to the target risk in the virtual host; the target risk level is sent to the server based on the stateless real-time communication link so that the server determines the corresponding repair task according to the received target risk level; the repair task sent by the server is received and executed to complete the repair of the target risk; and real-time security protection is performed on the virtual host based on the security plug-in during the operation of the virtual host. The present disclosure uses a security plug-in to perform risk assessment and repair on the target risks existing in the virtual host before and during operation, so as to achieve early processing of security issues and effective security protection of the virtual host.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of cloud computing, and in particular to a security protection method and device, an electronic device, and a storage medium. Background Art

[0002] With the acceleration of digital transformation, enterprises are increasingly using cloud services. For example, cloud hosts are constantly expanding in the market, and the security issues faced by the asset information of these cloud hosts in cloud services are becoming increasingly serious. With the increase in version iterations and patches of cloud hosts and application software, cloud host security issues are receiving more and more attention.

[0003] The existing security service model uses tenants as units, the number of client installation connections as the upper limit of capacity, and the central distributed horizontal expansion service cluster as a method and strategy to meet the growing cloud host installation coverage. The server centrally manages and protects the cloud hosts in the client's resource pool. Each cloud host establishes a duplex communication mode with the server through a long connection communication mechanism. The server performs spontaneous vulnerability scans and risk scans on the cloud host. The client monitors intrusion events and reports the intrusion events to the server for analysis and processing.

[0004] Since the server performs vulnerability and risk scans on the client's cloud host in a spontaneous or scheduled manner, when the tenant fails to perform a comprehensive scan on the current host, or the scan task cannot be issued due to long connection communication anomalies, the risks and vulnerabilities of the cloud host cannot be discovered and repaired in time, which may affect the security of the host. Summary of the invention

[0005] The present disclosure provides a security protection method, device, electronic device and storage medium, which is mainly intended to solve the problem that the risks and vulnerabilities of the cloud host cannot be discovered and repaired in time due to the server side performing risk scanning on the cloud host of the client in a spontaneous or scheduled task manner.

[0006] According to a first aspect of the present disclosure, a security protection method is provided, which is applied to a client and includes:

[0007] Establishing a stateless real-time communication link between the client and the server based on the built-in security plug-in signal node of the client;

[0008] In response to the creation of the virtual host, a risk assessment is performed on the virtual host based on a security plug-in built into the virtual host to obtain a target risk level corresponding to a target risk in the virtual host;

[0009] Sending the target risk level to a server based on the stateless real-time communication link, so that the server determines a corresponding repair task according to the received target risk level;

[0010] Receive and execute the repair task sent by the server to complete the repair of the target risk;

[0011] During the operation of the virtual host, real-time security protection is performed on the virtual host based on the security plug-in.

[0012] Optionally, the client includes a plurality of resource pools, each resource pool includes a plurality of virtual hosts, one resource pool corresponds to a security plug-in signal node, and the security plug-in signal node is used to receive the target risk level of the virtual host corresponding to the resource pool and send it to the server;

[0013] The establishing of a stateless real-time communication link between the client and the server based on the built-in security plug-in signal node of the client includes:

[0014] Establishing a first communication link between each virtual host and its resource pool respectively;

[0015] Establishing a second communication link between each resource pool and the server respectively;

[0016] The sending the target risk level to the server based on the stateless real-time communication link comprises:

[0017] Based on the first communication link, the target risk level corresponding to each virtual host is sent to the security plug-in signal node respectively to obtain a target risk level set;

[0018] Based on the second communication link, the target risk level set is sent to the server.

[0019] Optionally, before performing risk assessment on the virtual host based on the security plug-in built into the virtual host, the method includes:

[0020] In response to the installation instruction of the security plug-in, installing and starting the security plug-in in the virtual host;

[0021] An asset list of the virtual host is determined, where the asset list is used to determine target asset information.

[0022] Optionally, the performing risk assessment on the virtual host based on the security plug-in built into the virtual host includes:

[0023] Calling the security plug-in to collect target asset information corresponding to the virtual host according to the asset list;

[0024] Determine the asset category of the target asset information, where the asset category includes system information, software information, application information, process or port, and database;

[0025] Based on the security plug-in, the system information, software information, application information, process or port, and database are analyzed to determine whether there is a target risk.

[0026] The target risk level corresponding to the target risk is searched in the preset risk levels.

[0027] According to a second aspect of the present disclosure, a security protection method is provided, which is applied to a client and includes:

[0028] Establishing a stateless real-time communication link between the server and the client;

[0029] Receiving a target risk level sent by a virtual host in a client based on the stateless real-time communication link, the target risk level being an evaluation result of a security plug-in built into the virtual host on a target risk in the virtual host;

[0030] Determine the repair information corresponding to the target risk level according to a preset risk handling strategy; the preset risk handling strategy includes a risk level threshold and preset repair information;

[0031] The repair information is encapsulated as a repair task, and the repair task is sent to the virtual host in the client so that the virtual host executes the repair task.

[0032] Optionally, determining the repair information corresponding to the target risk level according to a preset risk handling strategy includes:

[0033] Determining whether the target risk level exceeds the risk level threshold;

[0034] If it is determined that the target risk level exceeds the risk level threshold, then searching the preset repair information for repair information corresponding to the target risk level.

[0035] According to a third aspect of the present disclosure, a security protection device is provided, which is applied to a client and includes:

[0036] A first establishing unit, configured to establish a stateless real-time communication link between the client and the server based on a security plug-in signal node built into the client;

[0037] An evaluation unit, configured to, in response to the creation of a virtual host, perform a risk evaluation on the virtual host based on a security plug-in built into the virtual host, and obtain a target risk level corresponding to a target risk in the virtual host;

[0038] A first sending unit, configured to send the risk level to a server based on the stateless real-time communication link, so that the server determines a corresponding repair task according to the received target risk level;

[0039] A first receiving unit, configured to receive and execute the repair task sent by the server to complete the repair of the target risk;

[0040] The protection unit is used to perform real-time security protection on the virtual host based on the security plug-in during the operation of the virtual host.

[0041] In one embodiment provided by the present disclosure, the client includes a plurality of resource pools, each resource pool includes a plurality of virtual hosts, one resource pool corresponds to a security plug-in signal node, and the security plug-in signal node is used to receive the target risk level of the virtual host corresponding to the resource pool and send it to the server;

[0042] The first establishing unit comprises:

[0043] A first establishing module, used to respectively establish a first communication link between each virtual host and its corresponding resource pool;

[0044] A second establishing module, used to respectively establish a second communication link between each resource pool and the server;

[0045] The first sending unit includes:

[0046] A first sending module, based on the first communication link, sends the target risk level corresponding to each virtual host to the security plug-in signal node to obtain a target risk level set;

[0047] A second sending module is used to send the target risk level set to the server based on the second communication link.

[0048] In one embodiment provided by the present disclosure, the device further includes:

[0049] An installation unit, configured to install and start the security plug-in in the virtual host in response to an installation instruction of the security plug-in;

[0050] The second determining unit is used to determine the asset list of the virtual host, and the asset list is used to determine the target asset information.

[0051] In one embodiment provided by the present disclosure, the evaluation unit includes:

[0052] A collection module, used to call the security plug-in to collect target asset information corresponding to the virtual host according to the asset list;

[0053] A first determination module is used to determine the asset category of the target asset information, where the asset category includes system information, software information, application information, process or port, and database;

[0054] A second determination module is used to analyze the system information, software information, application information, process or port, and database based on the security plug-in to determine whether there is a target risk;

[0055] The first search module is used to search for a target risk level corresponding to the target risk in preset risk levels.

[0056] According to a fourth aspect of the present disclosure, a security protection device is provided, which is applied to a server and includes:

[0057] A second establishing unit, used to establish a stateless real-time communication link between the server and the client;

[0058] A second receiving unit is used to receive a target risk level sent by a virtual host in a client based on the stateless real-time communication link, wherein the target risk level is an evaluation result of a security plug-in built into the virtual host on a target risk in the virtual host;

[0059] A first determining unit, configured to determine the repair information corresponding to the target risk level according to a preset risk handling strategy; the preset risk handling strategy includes a risk level threshold and preset repair information;

[0060] An encapsulation unit, used for encapsulating the repair information into a repair task;

[0061] The second sending unit is used to send the repair task to the virtual host in the client so that the virtual host executes the repair task.

[0062] In one embodiment provided by the present disclosure, the first determining unit includes:

[0063] A judgment module, used to judge whether the target risk level exceeds the risk level threshold;

[0064] The second search module is used to search the preset repair information for repair information corresponding to the target risk level if it is determined that the target risk level exceeds the risk level threshold.

[0065] According to a fifth aspect of the present disclosure, there is provided an electronic device, including:

[0066] at least one processor; and

[0067] a memory communicatively connected to the at least one processor; wherein,

[0068] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the first aspect.

[0069] According to a sixth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect above.

[0070] According to a seventh aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method as described in the first aspect above.

[0071] The security protection method and device, electronic device and storage medium provided by the present disclosure establish a stateless real-time communication link between the client and the server based on the built-in security plug-in signal node of the client; in response to the creation of the virtual host, the virtual host is risk assessed based on the built-in security plug-in of the virtual host to obtain the target risk level corresponding to the target risk in the virtual host; the risk level is sent to the server based on the stateless real-time communication link so that the server can determine the corresponding repair task according to the received target risk level; the repair task sent by the server is received and executed to complete the repair of the target risk; during the operation of the virtual host, the virtual host is protected in real time based on the security plug-in. The present disclosure uses a security plug-in to conduct a risk assessment on the target risk existing in the virtual host before and during operation, and repairs it according to the risk level of the target risk, so as to achieve early processing of the virtual host security issues, avoid the possible risks of the virtual host during operation, and achieve effective security protection of the virtual host.

[0072] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0073] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0074] Figure 1 A schematic diagram of a safety protection method provided by an embodiment of the present disclosure;

[0075] Figure 2 A schematic diagram of a system architecture of a cloud host provided by an embodiment of the present disclosure;

[0076] Figure 3A schematic diagram of a risk assessment method provided by an embodiment of the present disclosure;

[0077] Figure 4 A flowchart of another security protection method provided by an embodiment of the present disclosure;

[0078] Figure 5 A schematic diagram of the structure of a safety protection device provided in an embodiment of the present disclosure;

[0079] Figure 6 A schematic diagram of the structure of another safety protection device provided in an embodiment of the present disclosure;

[0080] Figure 7 A schematic diagram of the structure of another safety protection device provided in an embodiment of the present disclosure;

[0081] Figure 8 A schematic diagram of the structure of another safety protection device provided in an embodiment of the present disclosure;

[0082] Fig. 9 A schematic block diagram of an exemplary electronic device 600 provided for an embodiment of the present disclosure. DETAILED DESCRIPTION

[0083] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0084] The following describes the security protection method, device, electronic device and storage medium of the embodiments of the present disclosure with reference to the accompanying drawings.

[0085] Figure 1 A schematic diagram of a security protection method provided by an embodiment of the present disclosure is shown in FIG. Figure 1 As shown, the method comprises the following steps:

[0086] Step 101: Establish a stateless real-time communication link between the client and the server based on the built-in security plug-in signal node of the client.

[0087] In one embodiment provided by the present disclosure, the stateless means that during the communication process, the server does not save the client's state information. This means that for each request, the server will not remember the previous request information, nor will it rely on this information to respond to the current request. The security plug-in signal node is used to receive and manage the signal sent by the security plug-in set by the client, and send the signal to the server. The security plug-in signal node is also used to receive the repair task sent by the server, and send the repair task to the virtual host.

[0088] In order to reduce the dependence of the communication between the client and the server on the long connection communication link, prevent the occurrence of discontinuous data transmission or loss of connection between the client and the server due to network disconnection or insufficient bandwidth, thereby making it impossible to comprehensively analyze risk events and trace risks, and further improve the availability of the security protection method, the present invention adopts a method of building multiple security plug-in signal nodes in the client, establishing a stateless real-time communication link between the client and the server through the security plug-in signal node, adjusting the long connection communication mode between the client and the server to a stateless distributed mode, and setting corresponding security plug-in signal nodes for each resource pool of the client, respectively, communicating with the server on demand through the security plug-in signal node, and performing related uplink and downlink task sending and processing.

[0089] Step 102, in response to the creation of the virtual host, a risk assessment is performed on the virtual host based on the security plug-in built into the virtual host to obtain a target risk level corresponding to a target risk in the virtual host.

[0090] In one embodiment provided by the present disclosure, the virtual host (virtual hosting) is also called shared web hosting, or virtual server, which refers to a method of implementing multi-domain services on a single host or host group, and a technology that can run multiple websites or services. Each virtual host is completely independent and can be managed by the user, and its hardware system is based on a server group or a single server. Virtual host technology is mainly used in services such as Hypertext Transfer Protocol (HTTP) and File Transfer Protocol (FTP), which logically divides a certain or all service content of a server into multiple service units, which are presented as multiple servers to the outside world, thereby making full use of server hardware resources. If the division is at the system level, it is called a virtual server. A specific virtual host, such as a cloud host, also known as a cloud computing server, is an efficient and scalable computing service based on cloud computing technology. It stores data in the cloud and provides computing and storage services through the Internet, with the characteristics of high availability, high scalability, and high flexibility. The security plug-in is installed inside the virtual host during the creation process of the virtual host, and is used to perform security assessments on various risks and hidden dangers existing inside the virtual host through monitoring, perform real-time analysis and risk level assessment by real-time monitoring of changes in different categories of asset information in the virtual host, and perform repairs based on risk levels.

[0091] In the embodiments provided by the present disclosure, the target risk refers to the system application risk vulnerabilities and loopholes that may exist in the virtual host and the attack events from outside the system. Take the cloud host as an example. Common system application risks include account risk, application risk, system risk, baseline verification, weak passwords, vulnerability patches, etc. Common external attack events include password cracking, abnormal login, reverse link, local extraction, suspicious operation, virus attack, etc.

[0092] Step 103: Send the target risk level to the server based on the stateless real-time communication link, so that the server determines the corresponding repair task according to the received target risk level.

[0093] In one embodiment provided in the present disclosure, the target risk level is used to measure the severity of the target risk. In order to better understand the target risk level, please refer to the following embodiment: the risk level is divided into three risk levels: low (0 represents low risk), medium (1 represents medium risk), and high (2 represents high risk). Each risk level has a different risk threshold. The target risk is evaluated based on the security plug-in. If the severity of the target risk reaches the risk threshold of any of the risk levels, the target risk is determined to be the corresponding risk level. For example, the risk threshold of the low risk is set to 3, the risk threshold of the medium risk is set to 6, and the risk threshold of the low risk is set to 9. After the risk assessment, the risk threshold of the target risk is 6, then the risk level of the risk is 2, that is, medium risk.

[0094] Step 104: receiving and executing the repair task sent by the server to complete the repair of the target risk.

[0095] In one embodiment provided by the present disclosure, after the security plug-in built into the virtual host receives the repair task sent by the server, it executes the repair task to complete the repair of the target risk of the virtual host.

[0096] Step 105: During the operation of the virtual host, real-time security protection is performed on the virtual host based on the security plug-in.

[0097] In one embodiment provided by the present disclosure, after the target risk is repaired, the virtual host is in normal operation and provides services to the outside. During the operation of the virtual host, the security plug-in continuously monitors and protects the virtual host dynamically. When it monitors that the virtual host updates the system patch or software through network download or file upload, it will promptly obtain the corresponding version and runnable environment detection, identify new risks and perform timely protection to ensure the safe operation of the virtual host.

[0098] The security protection method provided by the present disclosure establishes a stateless real-time communication link between the client and the server based on the built-in security plug-in signal node of the client; in response to the creation of the virtual host, the virtual host is risk assessed based on the built-in security plug-in of the virtual host to obtain the target risk level corresponding to the target risk in the virtual host; the risk level is sent to the server based on the stateless real-time communication link so that the server can determine the corresponding repair task according to the received target risk level; the repair task sent by the server is received and executed to complete the repair of the target risk; during the operation of the virtual host, the virtual host is protected in real time based on the security plug-in. The present disclosure conducts risk assessment on the target risk existing in the virtual host before and during operation by means of a security plug-in, and repairs it according to the risk level of the target risk, so as to achieve early processing of virtual host security issues, avoid possible risks during the operation of the virtual host, and achieve effective security protection of the virtual host.

[0099] In some embodiments, in order to implement risk assessment and repair of the virtual host during the creation process, and to perform security protection during the subsequent operation of the virtual host, a security plug-in needs to be installed in the virtual host. Taking the cloud host as an example, the specific method includes: the tenant logs in to the cloud service, creates a cloud host after authorization and authentication, checks the security service in the cloud host creation configuration item, and performs built-in installation and startup through the corresponding resource pool built-in security plug-in installation command during the cloud host creation process. At the same time, the asset information of the cloud host, such as the system, software, network port, startup process, database, etc., is confirmed to form an asset list of the virtual host, so as to collect target asset information according to the asset list.

[0100] In an embodiment provided by the present disclosure, in order to better understand the system architecture of the virtual host, taking a cloud host as an example, the present disclosure provides a schematic diagram of the system architecture of a cloud host, as shown in FIG. Figure 2 As shown, the long-connected communication links between the cloud hosts in each resource pool under a tenant and the server are disassembled according to the resource pool, the client includes multiple resource pools, each resource pool includes multiple virtual hosts, one resource pool corresponds to a security plug-in signal node, the security plug-in signal node is used to receive the target risk level of the virtual host corresponding to the resource pool and send it to the server, each virtual host establishes a first communication link with its resource pool, and each resource pool establishes a second communication link with the server; each cloud host sends the corresponding target risk level to the security plug-in signal node through the first communication link to obtain a target risk level set; the target risk level set is sent to the server through the second communication link.

[0101] By means such as Figure 2 Distribute the cloud host and its affiliated resource pool, and set up security plugin signal nodes in each resource pool. The security plugin signal nodes are used to manage the risk level signals sent by the hosts in the affiliated resource pool, realize stateless real-time communication between the security plugin and the server. When the cloud host client installs the security plugin, only need to record a signal state at the security plugin signal node corresponding to the resource pool and establish a corresponding routing and forwarding mechanism, then the processing of the target risk level uplink and the repair task downlink can be realized under the mechanism of no long connection state keep-alive.

[0102] In an embodiment provided by the present disclosure, for further understanding of the risk assessment of the virtual host based on the security plugin built in the virtual host, Figure 3 It is a schematic flow chart of a risk assessment method provided by an embodiment of the present disclosure. As Figure 3 shown, the method includes the following steps:

[0103] Step 201, call the security plugin, and collect the target asset information corresponding to the virtual host according to the asset list.

[0104] In an embodiment provided by the present disclosure, for ease of understanding, set T (Tenant) as the tenant, CH (CloudHost) as the cloud host asset, SM (Security Metrics) as the security metric, P (Pools) as the resource pool node, AF (Asset Fingerprint) as the asset fingerprint, and R (Risk) as the target risk. In the specific implementation steps, first-order predicate logic is used for representation. The symbol represents conjunction and disjunction, the symbol represents the universal quantifier and the existential quantifier, and the symbol represents implication. Call the security plugin, and collect the target asset information corresponding to a single virtual host of the tenant according to the asset list, and obtain the asset fingerprint set of the asset information of each virtual host. The asset fingerprint is a concept in Internet digital asset management, which is equivalent to the "ID card" of digital assets. Each asset has its own unique fingerprint characteristics, and these characteristics make each device, system or service unique. Therefore, the asset fingerprint can be used to uniquely identify each digital asset, so that it can be accurately found and identified in a huge network environment. The above is represented by the first-order predicate logic as , where is the asset category, is the version information corresponding to the asset data, is the quantity identifier of the asset data, is the risk level. (2|1|0) represents high risk, medium risk, and low risk respectively.

[0105] Step 202, determining the asset category of the target asset information, wherein the asset category includes system information, software information, application information, process or port, and database.

[0106] Step 203: Analyze the system information, software information, application information, process or port, and database based on the security plug-in to determine whether there is a target risk.

[0107] In the disclosed embodiment, the security plug-in verifies the security versions of the system images, patches and software installed on the virtual host one by one according to the asset category, and analyzes the risk assessment in combination with the simulation operation status, and comprehensively assesses whether the host has security risks based on high, medium and low risk levels and whether the conditions are available.

[0108] Step 204: Search the preset risk levels for the target risk level corresponding to the target risk.

[0109] In the embodiment provided by the present disclosure, the risk level is divided into three risk levels: low (0 represents low risk), medium (1 represents medium risk), and high (2 represents high risk). Each risk level has a different risk threshold. The target risk is evaluated based on the security plug-in. If the severity of the target risk reaches the risk threshold of any of the risk levels, the target risk is determined to be the corresponding risk level. For example, the risk threshold of the low risk is set to 3, the risk threshold of the medium risk is set to 6, and the risk threshold of the low risk is set to 9. After the risk assessment, the risk threshold of the target risk is 6, and the risk level of the risk is 2, that is, medium risk.

[0110] In the above embodiment, the target risk existing in the creation process of the virtual host is evaluated through the above security plug-in, and repair is performed according to the risk level of the target risk, so as to achieve early processing of the security issues of the virtual host.

[0111] Figure 4 A flowchart of another security protection method provided by an embodiment of the present disclosure is shown, wherein the method is applied to a server, such as Figure 4 As shown, the method comprises the following steps:

[0112] Step 301: Establish a stateless real-time communication link between the server and the client.

[0113] The method for establishing the stateless real-time communication link in step 301 is the same as that in step 101 above.

[0114] Step 302: Receive a target risk level sent by a virtual host in a client based on the stateless real-time communication link, wherein the target risk level is an evaluation result of a security plug-in built into the virtual host on a target risk in the virtual host.

[0115] Step 303: Determine the repair information corresponding to the target risk level according to a preset risk handling strategy; the preset risk handling strategy includes a risk level threshold and preset repair information.

[0116] In one embodiment provided by the present disclosure, the repair information corresponding to the target risk level is determined according to a preset risk handling strategy, and the specific method includes: judging whether the target risk level exceeds the risk level threshold; if it is determined that the target risk level exceeds the risk level threshold, searching the preset repair information for the repair information corresponding to the target risk level.

[0117] Step 304: encapsulate the repair information into a repair task and send it to the virtual host in the client so that the virtual host executes the repair task.

[0118] The security protection method provided by the present disclosure establishes a stateless real-time communication link between the client and the server based on the built-in security plug-in signal node of the client; in response to the creation of the virtual host, the virtual host is risk assessed based on the built-in security plug-in of the virtual host to obtain the target risk level corresponding to the target risk in the virtual host; the risk level is sent to the server based on the stateless real-time communication link so that the server can determine the corresponding repair task according to the received target risk level; the repair task sent by the server is received and executed to complete the repair of the target risk; during the operation of the virtual host, the virtual host is protected in real time based on the security plug-in. The present disclosure conducts risk assessment on the target risk existing in the virtual host before and during operation by means of a security plug-in, and repairs it according to the risk level of the target risk, so as to achieve early processing of virtual host security issues, avoid possible risks during the operation of the virtual host, and achieve effective security protection of the virtual host.

[0119] As a refinement of the above step 302, for different risk levels, take low (0 represents low risk), medium (1 represents medium risk), and high (2 represents high risk) as an example. When a target risk with medium or high risk level is identified, the target risk is immediately responded to and the repair content is synchronized to the cloud host image to avoid the same risk in the subsequent newly opened cloud host. The symbol is represented as , where CH (Cloud Host) is the cloud host asset, SM (Security Metrics) is the security metric, R (Risk) is the security risk, and "2 / 1" means high risk or medium risk. represents the i-th target risk in the set of target risks. When a target risk is detected, a repair task of the corresponding level is enabled to perform the same treatment on the other cloud hosts.

[0120] Through the repair method provided in the above embodiment, when there may be risks in the virtual host, it is possible to quickly find the corresponding repair task and repair the target risk, thereby protecting the safe operation of the virtual host.

[0121] In summary, the embodiments of the present disclosure can achieve the following effects:

[0122] 1. Distribute the cloud hosts and their resource pools, and set up security plug-in signal nodes in each resource pool. The security plug-in signal nodes are used to manage the risk level signals sent by the hosts in the resource pools to achieve stateless real-time communication between the security plug-in and the server. When the cloud host client installs the security plug-in, it only needs to record a signal state in the security plug-in signal node corresponding to the resource pool and establish a corresponding routing forwarding mechanism, so as to achieve the mechanism of keeping alive without a long connection state to process the target risk level uplink and the repair task downlink.

[0123] 2. Use the security plug-in to conduct a risk assessment on the target risks that exist during the creation process of the virtual host, and repair them according to the risk level of the target risks to achieve early processing of virtual host security issues.

[0124] 3. When there may be risks in the virtual host, it can quickly find the corresponding repair tasks and repair the target risks to protect the safe operation of the virtual host.

[0125] Corresponding to the above-mentioned safety protection method, the present invention further proposes a safety protection device. Since the device embodiment of the present invention corresponds to the above-mentioned method embodiment, details not disclosed in the device embodiment can be referred to the above-mentioned method embodiment, and will not be described in detail in the present invention.

[0126] Figure 5 A schematic diagram of the structure of a safety protection device provided in an embodiment of the present disclosure is shown in FIG. Figure 5 As shown, the device is applied to a client, and includes: a first establishing unit 41, an evaluating unit 42, a first sending unit 43, a first receiving unit 44 and a protecting unit 45.

[0127] A first establishing unit 41 is used to establish a stateless real-time communication link between the client and the server based on the built-in security plug-in signal node of the client;

[0128] An evaluation unit 42, configured to, in response to the creation of a virtual host, perform a risk evaluation on the virtual host based on a security plug-in built into the virtual host, and obtain a target risk level corresponding to a target risk in the virtual host;

[0129] A first sending unit 43, configured to send the risk level to a server based on the stateless real-time communication link, so that the server determines a corresponding repair task according to the received target risk level;

[0130] A first receiving unit 44 is used to receive and execute the repair task sent by the server to complete the repair of the target risk;

[0131] The protection unit 45 is used to perform real-time security protection on the virtual host based on the security plug-in during the operation of the virtual host.

[0132] The security protection device provided by the present disclosure establishes a stateless real-time communication link between the client and the server based on the built-in security plug-in signal node of the client; in response to the creation of the virtual host, the virtual host is risk assessed based on the built-in security plug-in of the virtual host to obtain the target risk level corresponding to the target risk in the virtual host; the risk level is sent to the server based on the stateless real-time communication link so that the server can determine the corresponding repair task according to the received target risk level; the repair task sent by the server is received and executed to complete the repair of the target risk; during the operation of the virtual host, the virtual host is protected in real time based on the security plug-in. The present disclosure conducts risk assessment on the target risk existing in the virtual host before and during operation by means of a security plug-in, and repairs it according to the risk level of the target risk, so as to achieve early processing of virtual host security issues, avoid possible risks during the operation of the virtual host, and achieve effective security protection of the virtual host.

[0133] Furthermore, in a possible implementation of this embodiment, Figure 6 As shown, the client includes multiple resource pools, each resource pool includes multiple virtual hosts, one resource pool corresponds to a security plug-in signal node, and the security plug-in signal node is used to receive the target risk level of the virtual host corresponding to the resource pool and send it to the server;

[0134] The first establishing unit 41 includes:

[0135] A first establishing module 411 is used to establish a first communication link between each virtual host and its resource pool;

[0136] A second establishing module 412, used to establish a second communication link between each resource pool and the server;

[0137] The first sending unit 43 includes:

[0138] A first sending module 431, based on the first communication link, sends the target risk level corresponding to each virtual host to the security plug-in signal node to obtain a target risk level set;

[0139] The second sending module 432 is used to send the target risk level set to the server based on the second communication link.

[0140] Furthermore, in a possible implementation of this embodiment, Figure 6 As shown, the device also includes:

[0141] An installation unit 46, configured to install and start the security plug-in in the virtual host in response to an installation instruction of the security plug-in;

[0142] The second determining unit 47 is used to determine the asset list of the virtual host, and the asset list is used to determine the target asset information.

[0143] Furthermore, in a possible implementation of this embodiment, Figure 6 As shown, the evaluation unit 42 includes:

[0144] The collection module 421 is used to call the security plug-in to collect the target asset information corresponding to the virtual host according to the asset list;

[0145] A first determination module 422 is used to determine the asset category of the target asset information, where the asset category includes system information, software information, application information, process or port, and database;

[0146] The second determination module 423 is used to analyze the system information, software information, application information, process or port, and database based on the security plug-in to determine whether there is a target risk.

[0147] The first search module 424 is used to search for a target risk level corresponding to the target risk in preset risk levels.

[0148] Figure 7 A schematic diagram of the structure of a safety protection device provided in an embodiment of the present disclosure is shown in FIG. Figure 7As shown, the device is applied to a server, and includes: a second establishing unit 51, a second receiving unit 52, a first determining unit 53, an encapsulating unit 54 and a second sending unit 55.

[0149] A second establishing unit 51 is used to establish a stateless real-time communication link between the server and the client;

[0150] A second receiving unit 52 is used to receive a target risk level sent by a virtual host in a client based on the stateless real-time communication link, wherein the target risk level is an evaluation result of a security plug-in built into the virtual host on a target risk in the virtual host;

[0151] The first determining unit 53 is used to determine the repair information corresponding to the target risk level according to a preset risk handling strategy; the preset risk handling strategy includes a risk level threshold and preset repair information.

[0152] An encapsulation unit 54, configured to encapsulate the repair information into a repair task;

[0153] The second sending unit 55 is used to send to the virtual host in the client so that the virtual host performs the repair task.

[0154] The security protection device provided by the present disclosure establishes a stateless real-time communication link between the client and the server based on the built-in security plug-in signal node of the client; in response to the creation of the virtual host, the virtual host is risk assessed based on the built-in security plug-in of the virtual host to obtain the target risk level corresponding to the target risk in the virtual host; the risk level is sent to the server based on the stateless real-time communication link so that the server can determine the corresponding repair task according to the received target risk level; the repair task sent by the server is received and executed to complete the repair of the target risk; during the operation of the virtual host, the virtual host is protected in real time based on the security plug-in. The present disclosure conducts risk assessment on the target risk existing in the virtual host before and during operation by means of a security plug-in, and repairs it according to the risk level of the target risk, so as to achieve early processing of virtual host security issues, avoid possible risks during the operation of the virtual host, and achieve effective security protection of the virtual host.

[0155] Furthermore, in a possible implementation of this embodiment, Figure 8 As shown, the first determining unit 53 includes:

[0156] A determination module 531 is used to determine whether the target risk level exceeds the risk level threshold;

[0157] The second search module 532 is configured to search the preset repair information for repair information corresponding to the target risk level if it is determined that the target risk level exceeds the risk level threshold.

[0158] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and the principle is the same, which is not limited in this embodiment.

[0159] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0160] Fig. 9 A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, mainframes, blade hosts, mainframes, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0161] like Fig. 9 As shown, the device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 602 or a computer program loaded from a storage unit 608 to a RAM (Random Access Memory) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An I / O (Input / Output) interface 605 is also connected to the bus 604.

[0162] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0163] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 include, but are not limited to, a CPU (Central Processing Unit), a GPU (Graphic Processing Units), various dedicated AI (Artificial Intelligence) computing chips, various computing units running machine learning model algorithms, a DSP (Digital Signal Processor), and any appropriate processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as the security protection method. For example, in some embodiments, the security protection method may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via the ROM 602 and / or the communication unit 609. When the computer program is loaded into the RAM 603 and executed by the computing unit 601, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to execute the aforementioned security protection method in any other appropriate manner (eg, by means of firmware).

[0164] Various embodiments of the systems and techniques described above herein may be implemented in digital electronic circuit systems, integrated circuit systems, FPGAs (Field Programmable Gate Arrays), ASICs (Application-Specific Integrated Circuits), ASSPs (Application Specific Standard Products), SOCs (System On Chips), CPLDs (Complex Programmable Logic Devices), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that may be executed and / or interpreted on a programmable system including at least one programmable processor that may be a dedicated or general-purpose programmable processor that may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0165] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or host.

[0166] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or apparatus. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more wires, a portable computer disk, a hard disk, RAM, ROM, EPROM (Electrically Programmable Read-Only-Memory) or flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage device, magnetic storage device, or any suitable combination of the foregoing.

[0167] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (Cathode-Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0168] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data host), or a computing system that includes middleware components (e.g., an application host), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), the Internet, and blockchain networks.

[0169] A computer system may include a client and a host. The client and the host are generally remote from each other and usually interact through a communication network. The relationship between the client and the host is generated by computer programs running on the corresponding computers and having a client-host relationship with each other. The host may be a cloud host, also known as a cloud computing host or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The host may also be a host of a distributed system, or a host combined with a blockchain.

[0170] It should be noted that artificial intelligence is a discipline that studies how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, as well as machine learning / deep learning, big data processing technology, knowledge graph technology, and other major directions.

[0171] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0172] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A safety protection method, characterized in that: The method is applied to a client and includes: Based on the built-in security plug-in signal node of the client, a stateless real-time communication link is established between the client and the server; the client includes multiple resource pools, each resource pool includes multiple virtual hosts, one resource pool corresponds to one security plug-in signal node, and the security plug-in signal node is used to receive the target risk level of the virtual host corresponding to the resource pool and send it to the server; During the creation of a virtual host, the security plug-in is called to collect target asset information corresponding to the virtual host according to the asset list; the asset category of the target asset information is determined, and the asset category includes system information, software information, application information, process or port, and database; based on the security plug-in, the system information, software information, application information, process or port, and database are analyzed respectively to determine whether there is a target risk; the target risk level corresponding to the target risk is searched in the preset risk level to obtain the target risk level corresponding to the target risk in the virtual host; Sending the target risk level to a server based on the stateless real-time communication link, so that the server determines a corresponding repair task according to the received target risk level; receiving and executing the repair task sent by the server, and starting the virtual host after completing the repair of the target risk; During the operation of the virtual host, real-time security protection is performed on the virtual host based on the security plug-in.

2. The method according to claim 1, characterized in that The establishing of a stateless real-time communication link between the client and the server based on the built-in security plug-in signal node of the client includes: Establishing a first communication link between each virtual host and its resource pool respectively; Establishing a second communication link between each resource pool and the server respectively; The sending the target risk level to the server based on the stateless real-time communication link comprises: Based on the first communication link, the target risk level corresponding to each virtual host is sent to the security plug-in signal node respectively to obtain a target risk level set; Based on the second communication link, the target risk level set is sent to the server.

3. The method according to claim 1, characterized in that Before performing risk assessment on the virtual host based on the security plug-in built into the virtual host, the method includes: In response to the installation instruction of the security plug-in, installing and starting the security plug-in in the virtual host; An asset list of the virtual host is determined, where the asset list is used to determine target asset information.

4. A safety protection method, characterized in that: The method is applied to the server, and includes: Establishing a stateless real-time communication link between the server and the client; the client includes multiple resource pools, each resource pool includes multiple virtual hosts, one resource pool corresponds to a security plug-in signal node, and the security plug-in signal node is used to receive the target risk level of the virtual host corresponding to the resource pool and send it to the server; Receiving a target risk level sent by a virtual host in a client based on the stateless real-time communication link, the target risk level being an evaluation result of a security plug-in built into the virtual host on a target risk in the virtual host; Determine the repair information corresponding to the target risk level according to a preset risk handling strategy; the preset risk handling strategy includes a risk level threshold and preset repair information; The repair information is encapsulated as a repair task, and the repair task is sent to the virtual host in the client so that the virtual host executes the repair task.

5. The method according to claim 4, characterized in that Determining the repair information corresponding to the target risk level according to the preset risk handling strategy includes: Determining whether the target risk level exceeds the risk level threshold; If it is determined that the target risk level exceeds the risk level threshold, then searching the preset repair information for repair information corresponding to the target risk level.

6. A safety protection device, characterized in that: The device is applied to a client and includes: A first establishing unit is used to establish a stateless real-time communication link between the client and the server based on the built-in security plug-in signal node of the client; the client includes multiple resource pools, each resource pool includes multiple virtual hosts, one resource pool corresponds to one security plug-in signal node, and the security plug-in signal node is used to receive the target risk level of the virtual host corresponding to the resource pool and send it to the server; The evaluation unit is used to call the security plug-in during the creation process of the virtual host, collect the target asset information corresponding to the virtual host according to the asset list; determine the asset category of the target asset information, the asset category includes system information, software information, application information, process or port, and database; analyze the system information, software information, application information, process or port, and database based on the security plug-in to determine whether there is a target risk; find the target risk level corresponding to the target risk in the preset risk level, and obtain the target risk level corresponding to the target risk in the virtual host; A first sending unit, configured to send the target risk level to a server based on the stateless real-time communication link, so that the server determines a corresponding repair task according to the received target risk level; A first receiving unit, configured to receive and execute the repair task sent by the server, and start the virtual host after completing the repair of the target risk; The protection unit is used to perform real-time security protection on the virtual host based on the security plug-in during the operation of the virtual host.

7. A safety protection device, characterized in that: The device is applied to a server, and includes: The second establishing unit is used to establish a stateless real-time communication link between the server and the client; the client includes multiple resource pools, each resource pool includes multiple virtual hosts, one resource pool corresponds to a security plug-in signal node, and the security plug-in signal node is used to receive the target risk level of the virtual host corresponding to the resource pool and send it to the server; A second receiving unit is used to receive a target risk level sent by a virtual host in a client based on the stateless real-time communication link, wherein the target risk level is an evaluation result of a security plug-in built into the virtual host on a target risk in the virtual host; A determination unit, configured to determine the repair information corresponding to the risk level according to a preset risk handling strategy; the preset risk handling strategy includes a risk level threshold and preset repair information; An encapsulation unit, used for encapsulating the repair information into a repair task; The second sending unit is used to send the repair task to the virtual host in the client so that the virtual host executes the repair task.

8. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-3 or 4-5.

9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-3 or 4-5.

10. A computer program product, characterized in that It comprises a computer program which, when executed by a processor, implements the method according to any one of claims 1-3 or 4-5.