Safety detection method and device based on intrinsic safety mechanism
By creating target snapshot data on the cloud management platform and mounting it to the detection server for security detection, the problem of low security detection coverage caused by the difficulty of installing agents in the cloud server is solved, and efficient security detection coverage and business stability are achieved.
Patent Information
- Application Number
- CN202111641755.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2041-12-29
AI Technical Summary
In the prior art, cloud servers need to install agent agents on each server to perform security detection, but due to frequent changes in business data, agents may not be installed in time, resulting in a decrease in security detection coverage.
By obtaining the list of cloud servers, creating target snapshot data, and mounting it to the detection server for security detection, including malicious file detection, vulnerability detection and baseline detection, sending detection results to the cloud management platform without installing agents in the cloud server .
The security detection of each cloud server is realized, the coverage rate of security detection is improved, the data overload of detection servers is avoided, business intrusion is reduced, and business stability is improved.
Smart Images

Figure CN114499985B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data detection technology, and in particular to a security detection method and device based on an intrinsic security mechanism. Background Art
[0002] With the development of mobile Internet technology, end users usually access the resources of cloud servers through the Internet. Cloud servers provide remote business storage and processing services for end users. The personal information and business data of end users are stored in the business system of cloud servers. Therefore, based on the consideration of inherent security mechanism, the security detection of cloud servers is particularly important.
[0003] In the related art, an agent is usually installed in a cloud server, and malicious codes, vulnerabilities, and baselines in the cloud server are detected through the agent.
[0004] However, in the above-mentioned related technologies, an agent must be installed in each cloud server. If the agent is not installed, security detection cannot be performed. However, the user's business data changes at any time, so the cloud server will create or delete data at any time, and it may not be possible to install the agent in time, resulting in a reduction in the installation coverage of the agent. Summary of the invention
[0005] In view of the problems existing in the prior art, the present invention provides a security detection method and device based on an intrinsic security mechanism.
[0006] The present invention provides a security detection method based on an intrinsic security mechanism, which is applied to a cloud management platform, comprising:
[0007] Get the cloud server list;
[0008] Creating target snapshot data for at least one cloud server in the cloud server list;
[0009] Sending a mount request carrying the target snapshot data of at least one of the cloud servers to a detection server;
[0010] Receive the detection result of each of the cloud servers sent by the detection server; wherein the detection result is the result obtained by the detection server performing a security detection on the target snapshot data of the cloud server.
[0011] According to a security detection method based on an intrinsic security mechanism provided by the present invention, obtaining a cloud server list includes:
[0012] The cloud server list is obtained through a first API of the cloud management platform.
[0013] According to a security detection method based on an intrinsic security mechanism provided by the present invention, the step of creating target snapshot data for at least one cloud server in the cloud server list includes:
[0014] The target snapshot data is created for at least one of the cloud servers in the cloud server list through a second API of the cloud management platform.
[0015] According to a security detection method based on an intrinsic security mechanism provided by the present invention, the step of sending a mount request carrying the target snapshot data of at least one cloud server to a detection server includes:
[0016] Grouping all the target snapshot data;
[0017] Sending the mount request carrying the target snapshot data of the current group to the detection server;
[0018] The receiving the detection result of each of the cloud servers sent by the detection server includes:
[0019] Receive the detection result of each of the cloud servers in the current group sent by the detection server.
[0020] According to a security detection method based on an intrinsic security mechanism provided by the present invention, after receiving the detection result of each of the cloud servers in the current group sent by the detection server, the method further includes:
[0021] Sending the mount request carrying the next set of target snapshot data to the detection server;
[0022] Receive the detection result of each of the cloud servers in the next group sent by the detection server.
[0023] The present invention also provides a security detection method based on an intrinsic security mechanism, which is applied to a detection server and includes:
[0024] Receiving a mount request sent by a cloud management platform and carrying target snapshot data of at least one cloud server;
[0025] Performing a security check on the target snapshot data of each of the cloud servers to obtain a check result;
[0026] The detection result of each cloud server is sent to the cloud management platform.
[0027] According to a security detection method based on an intrinsic security mechanism provided by the present invention, the security detection of the target snapshot data of each cloud server includes:
[0028] Perform at least one of the following security checks on the target snapshot data of each of the cloud servers: malicious file detection, vulnerability detection, and baseline detection.
[0029] According to a security detection method based on an intrinsic security mechanism provided by the present invention, the receiving a mount request sent by a cloud management platform and carrying target snapshot data of at least one cloud server includes:
[0030] Receiving the mount request sent by the cloud management platform and carrying the target snapshot data of the current group;
[0031] The performing security detection on the target snapshot data of each cloud server includes:
[0032] Performing security detection on target snapshot data of each of the cloud servers in the current group;
[0033] The sending the detection result of each of the cloud servers to the cloud management platform includes:
[0034] The detection result of each of the cloud servers in the current group is sent to the cloud management platform.
[0035] According to a security detection method based on an intrinsic security mechanism provided by the present invention, after sending the detection result of each cloud server in the current group to the cloud management platform, the method further includes:
[0036] The target snapshot data of each of the cloud servers in the current group is deleted.
[0037] According to a security detection method based on an intrinsic security mechanism provided by the present invention, after deleting the target snapshot data of each of the cloud servers in the current group, the method further includes:
[0038] Receiving the mount request carrying the next group of target snapshot data sent by the cloud management platform;
[0039] Performing security detection on the target snapshot data of each of the cloud servers in the next group;
[0040] The detection result of each of the cloud servers in the next group is sent to the cloud management platform.
[0041] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the security detection method based on the intrinsic security mechanism as described in any one of the above are implemented.
[0042] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the security detection method based on the intrinsic security mechanism as described in any one of the above are implemented.
[0043] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the above-mentioned security detection methods based on the intrinsic security mechanism are implemented.
[0044] The present invention provides a security detection method and device based on an intrinsic security mechanism. When a cloud server list is obtained, target snapshot data is created for at least one cloud server in the cloud server list, and a mount request carrying the target snapshot data of at least one cloud server is sent to a detection server, so that the detection server performs security detection on the target snapshot data of each cloud server, and sends the detection result of each cloud server to a cloud management platform. It can be seen that the present invention mounts the target snapshot data on the detection server, and the detection server performs security detection on the target snapshot data of each cloud server. There is no need to install an agent in the cloud server, and security detection of each cloud server can be achieved, thereby improving the coverage of security detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 This is one of the flow charts of the security detection method based on the intrinsic security mechanism provided by the present invention;
[0047] Figure 2 is a schematic diagram of creating a snapshot provided by the present invention;
[0048] Figure 3 This is the second flow chart of the security detection method based on the intrinsic security mechanism provided by the present invention;
[0049] Figure 4 This is the third flow chart of the security detection method based on the intrinsic security mechanism provided by the present invention;
[0050] Figure 5 This is the fourth flow chart of the security detection method based on the intrinsic security mechanism provided by the present invention;
[0051] Figure 6This is the fifth flow chart of the security detection method based on the intrinsic security mechanism provided by the present invention;
[0052] Figure 7 This is the sixth flow chart of the security detection method based on the intrinsic security mechanism provided by the present invention;
[0053] Figure 8 This is the seventh flow chart of the security detection method based on the intrinsic security mechanism provided by the present invention;
[0054] Fig. 9 It is an interactive diagram of the security detection method based on the intrinsic security mechanism provided by the present invention;
[0055] Fig.10 It is one of the structural schematic diagrams of the safety detection device based on the intrinsic safety mechanism provided by the present invention;
[0056] Fig.11 This is the second structural schematic diagram of the safety detection device based on the intrinsic safety mechanism provided by the present invention;
[0057] Fig.12 It is a schematic diagram of the physical structure of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] Combine the following Figure 1-Figure 9 The present invention describes a security detection method based on an intrinsic security mechanism.
[0060] Figure 1 is a flow chart of a security detection method based on an intrinsic security mechanism provided by the present invention, which is applied to a cloud management platform, such as Figure 1 As shown, the security detection method based on the intrinsic security mechanism includes the following steps:
[0061] Step 101: Get a list of cloud servers.
[0062] Optionally, the cloud server list is obtained through a first application programming interface (Application Programming Interface, API) of the cloud management platform.
[0063] For example, when the cloud management platform receives a security check instruction sent by a user, it calls the first API associated with the cloud server list and obtains the cloud server list through the first API. The cloud server list includes identification information and corresponding data information of each cloud server, and the data information includes the operating system data and all application data of the cloud server.
[0064] It should be noted that the cloud management platform can also receive cloud server lists sent by other devices, and the present invention is not limited to this.
[0065] Step 102: Create target snapshot data for at least one cloud server in the cloud server list.
[0066] Optionally, the target snapshot data is created for at least one of the cloud servers in the cloud server list through a second API of the cloud management platform.
[0067] For example, when a cloud server list is obtained, identification information and corresponding data information of each cloud server in the cloud server list are obtained, and then a second API associated with creating a snapshot is called. The corresponding data information is copied based on the identification information of each cloud server through the second API, that is, target snapshot data for each cloud server is created, and the target snapshot data refers to the copy information of the data information of the cloud server.
[0068] For the specific process of creating target snapshot data, please refer to Figure 2 The snapshot creation process shown in Figure 2 As shown, CentOSBase is the disk image file of the cloud server. Based on the disk image file, multiple virtual machines are created, namely CentOS01, CentOS02 and CentOS03, and then multiple snapshots are created for each virtual machine; for example, Figure 2 The CentOS01_sn1, CentOS01_sn2, CentOS01_sn3 and CentOS01_sn4 in the file are all snapshots of the virtual machine CentOS01. CentOS01_sn1, CentOS01_sn2, CentOS01_sn3 and CentOS01_sn4 together save all the data of the virtual machine CentOS01, that is, the target snapshot data. In addition, Figure 2 The CentOS02_sn1 in the example is a snapshot of the virtual machine CentOS02. Figure 2 The CentOS03_sn1 in the file is a snapshot of the virtual machine CentOS03.
[0069] It should be noted that target snapshot data can also be created for some cloud servers in the cloud server list. Specifically, it can be done by: obtaining a user selection instruction, where the user selection instruction is used to indicate the identification information of the cloud server selected by the user; in response to the user selection instruction, creating target snapshot data for each cloud server indicated in the user selection instruction. The present invention is not limited to this.
[0070] Step 103: Send a mount request carrying the target snapshot data of at least one of the cloud servers to the detection server.
[0071] For example, when the target snapshot data of each cloud server is created, the target snapshot data of each cloud server is carried in a mount request, and the mount request is sent to the detection server, that is, the target snapshot data of each cloud server is mounted in the detection server by remote mounting; when the detection server receives the mount request, it parses the mount request to obtain the target snapshot data of each cloud server, and then performs a security check on the target snapshot data of each cloud server, and finally obtains the detection result of each cloud server, and sends the detection result of each cloud server to the cloud management platform.
[0072] Step 104: Receive the detection result of each of the cloud servers sent by the detection server.
[0073] The detection result is a result obtained by the detection server performing a security detection on the target snapshot data of the cloud server.
[0074] The present invention provides a security detection method based on an intrinsic security mechanism. When a cloud server list is obtained, target snapshot data is created for at least one cloud server in the cloud server list, and a mount request carrying the target snapshot data of at least one cloud server is sent to a detection server, so that the detection server performs security detection on the target snapshot data of each cloud server, and sends the detection result of each cloud server to a cloud management platform. It can be seen that the present invention mounts the target snapshot data on the detection server, and the detection server performs security detection on the target snapshot data of each cloud server. There is no need to install an agent in the cloud server, and security detection of each cloud server can be achieved, thereby improving the coverage of security detection.
[0075] Optionally, Figure 3 This is the second flow chart of the security detection method based on the intrinsic security mechanism provided by the present invention, such as Figure 3 As shown, Figure 1 Step 103 in the embodiment can be specifically implemented by the following steps:
[0076] Step 1031: Group all the target snapshot data.
[0077] For example, when the target snapshot data of each cloud server is obtained, the target snapshot data of all servers are grouped; the specific grouping method can be: average grouping according to the number of cloud servers, or random grouping; for example, when the target snapshot data of 9 cloud servers are obtained, the target snapshot data of the 9 cloud servers can be divided into three groups, each group containing the target snapshot data of 3 cloud servers; or the first group contains the target snapshot data of 2 cloud servers, the second group contains the target snapshot data of 4 cloud servers, and the third group contains the target snapshot data of 3 cloud servers.
[0078] Step 1032: Send the mount request carrying the target snapshot data of the current group to the detection server.
[0079] For example, after all target snapshot data are grouped, a mount request carrying the target snapshot data of one group is sent to the detection server each time. In the present invention, the group to which the target snapshot data currently sent to the detection server belongs is referred to as the current group.
[0080] like Figure 3 As shown, Figure 1 Step 104 in the embodiment can be specifically implemented by the following steps:
[0081] Step 1041: Receive the detection result of each cloud server in the current group sent by the detection server.
[0082] For example, when receiving a mount request carrying the target snapshot data of the current group, the detection server performs a security detection on the target snapshot data of each cloud server in the current group, and sends the detection result of each cloud server in the current group to the cloud management platform.
[0083] Optionally, Figure 4 This is the third flow chart of the security detection method based on the intrinsic security mechanism provided by the present invention, such as Figure 4 As shown, after step 1041, the security detection method based on the intrinsic security mechanism further includes the following steps:
[0084] Step 105: Send the mount request carrying the next set of target snapshot data to the detection server.
[0085] For example, when the detection result of each cloud server in the current group is received from the detection server, a mount request carrying the target snapshot data of the next group may be sent to the detection server.
[0086] Step 106: Receive the detection result of each cloud server in the next group sent by the detection server.
[0087] For example, when the detection server receives a mount request carrying the target snapshot data of the next group, it performs a security check on the target snapshot data of each cloud server in the next group, and sends the detection result of each cloud server in the next group to the cloud management platform; the above steps 105 and 106 are repeated until the target snapshot data of all servers are security checked.
[0088] The security detection method based on the intrinsic security mechanism provided by the present invention mounts the target snapshot data of all cloud servers in batches in the detection server, which reduces the data required for each security detection by the detection server and avoids overload of the detection server.
[0089] Figure 5 This is a fourth flow chart of the security detection method based on the intrinsic security mechanism provided by the present invention, which is applied to the detection server, such as Figure 5 As shown, the security detection method based on the intrinsic security mechanism includes the following steps:
[0090] Step 501: Receive a mount request sent by a cloud management platform that carries target snapshot data of at least one cloud server.
[0091] For example, when receiving the mount request, the detection server parses the mount request to obtain the target snapshot data of each cloud server.
[0092] Step 502: Perform a security check on the target snapshot data of each of the cloud servers to obtain a check result.
[0093] For example, when the detection server obtains the target snapshot data of each cloud server, it performs a security check on the target snapshot data of each cloud server, and finally obtains the detection result of each cloud server; this method of mounting the target snapshot data of each cloud server on the detection server by remote mounting, and the detection server performs a security check on the target snapshot data of each cloud server, is also called bypass scanning technology.
[0094] Step 503: Send the detection result of each cloud server to the cloud management platform.
[0095] The present invention provides a security detection method based on an intrinsic security mechanism. When a detection server receives a mount request carrying target snapshot data of at least one cloud server from a cloud management platform, it performs security detection on the target snapshot data of each cloud server and sends the detection result of each cloud server to the cloud management platform. It can be seen that the present invention mounts the target snapshot data on the detection server, and the detection server performs security detection on the target snapshot data of each cloud server. There is no need to install an agent in the cloud server, and security detection of each cloud server can be achieved, thereby improving the coverage of security detection.
[0096] Optionally, Figure 5 Step 502 in the above method can be implemented in the following way:
[0097] Perform at least one of the following security checks on the target snapshot data of each of the cloud servers: malicious file detection, vulnerability detection, and baseline detection.
[0098] For example, when the detection server obtains the target snapshot data of each cloud server, it performs malicious file detection, vulnerability detection and baseline detection on the target snapshot data to determine whether the data information of the cloud server's operating system is dangerous; in addition, the specific detection process of malicious file detection, vulnerability detection and baseline detection can refer to the prior art, and the present invention will not be repeated here.
[0099] The security detection method based on the intrinsic security mechanism provided by the present invention performs malicious file detection, vulnerability detection and baseline detection on the target snapshot data of each cloud server to determine whether the data information of the operating system of the cloud server is dangerous, thereby realizing security detection of each cloud server.
[0100] Optionally, Figure 6 This is the fifth flow chart of the security detection method based on the intrinsic security mechanism provided by the present invention, such as Figure 6 As shown, Figure 5 Step 501 in the embodiment can be specifically implemented by the following steps:
[0101] Step 5011: Receive the mount request carrying the target snapshot data of the current group sent by the cloud management platform.
[0102] like Figure 6 As shown, Figure 5 Step 502 in the embodiment can be specifically implemented by the following steps:
[0103] Step 5021: Perform security check on the target snapshot data of each cloud server in the current group.
[0104] For example, when receiving a mount request carrying target snapshot data of the current group, the detection server performs a security detection on the target snapshot data of each cloud server in the current group to obtain a detection result of each cloud server in the current group.
[0105] like Figure 6 As shown, Figure 5 Step 503 in the embodiment can be specifically implemented by the following steps:
[0106] Step 5031: Send the detection result of each cloud server in the current group to the cloud management platform.
[0107] Optionally, Figure 7 This is the sixth flow chart of the security detection method based on the intrinsic security mechanism provided by the present invention, such as Figure 7 As shown, Figure 6 After step 5031 in the above, the safety detection method further includes the following steps:
[0108] Step 504: Delete the target snapshot data of each of the cloud servers in the current group.
[0109] For example, after the detection result of each cloud server in the current group is sent to the cloud management platform, the target snapshot data of each cloud server in the current group mounted on the detection server can be deleted to reduce the memory usage of the detection server.
[0110] Optionally, Figure 8 This is the seventh flow chart of the security detection method based on the intrinsic security mechanism provided by the present invention, such as Figure 8 As shown, Figure 7 After step 504 in the above, the safety detection method further comprises the following steps:
[0111] Step 505: Receive the mount request carrying the next group of target snapshot data sent by the cloud management platform.
[0112] Step 506: Perform security detection on the target snapshot data of each cloud server in the next group.
[0113] Step 507: Send the detection result of each cloud server in the next group to the cloud management platform.
[0114] For example, when the detection server receives a mount request carrying the target snapshot data of the next group, it performs a security check on the target snapshot data of each cloud server in the next group, and sends the detection results of each cloud server in the next group to the cloud management platform; the above steps 505 and 507 are repeated until the target snapshot data of all servers are security checked.
[0115] The security detection method based on the intrinsic security mechanism provided by the present invention mounts the target snapshot data of all cloud servers in batches in the detection server, which reduces the data required for each security detection by the detection server and avoids overload of the detection server.
[0116] Fig. 9 is an interactive diagram of the security detection method based on the intrinsic security mechanism provided by the present invention, which is applied to the cloud management platform and the detection server, such as Fig. 9 As shown, the security detection method based on the intrinsic security mechanism includes the following steps:
[0117] Step 901: Obtain the cloud server list through the first API of the cloud management platform.
[0118] Step 902: Create the target snapshot data for at least one of the cloud servers in the cloud server list through a second API of the cloud management platform.
[0119] Step 903: Send a mount request carrying the target snapshot data of at least one of the cloud servers to the detection server.
[0120] Step 904: Perform a security check on the target snapshot data of each of the cloud servers to obtain a check result.
[0121] Step 905: Send the detection result of each cloud server to the cloud management platform.
[0122] Step 906: Delete the target snapshot data of each of the cloud servers.
[0123] It should be noted that after executing step 906, the above steps 901 to 906 may be cyclically executed based on a preset period to achieve continuous periodic detection of all cloud servers.
[0124] The present invention provides a security detection method based on an intrinsic security mechanism. When the detection server receives a mount request sent by a cloud management platform and carries target snapshot data of at least one cloud server, the detection server performs security detection on the target snapshot data of each cloud server and sends the detection result of each cloud server to the cloud management platform. It can be seen that the present invention mounts the target snapshot data on the detection server, and the detection server performs security detection on the target snapshot data of each cloud server. There is no need to install an agent in the cloud server, and security detection of each cloud server can be achieved, thereby improving the coverage of security detection; in addition, since the present invention does not need to install an agent in the cloud server, it does not affect the normal operation of the cloud server business, thereby reducing the impact on business intrusion; it also reduces the occupation of cloud server memory, central processing unit (CPU), disk and network resources, and improves business stability.
[0125] The security detection device based on the intrinsic security mechanism provided by the present invention is described below. The security detection device based on the intrinsic security mechanism described below and the security detection method based on the intrinsic security mechanism described above can be referenced to each other.
[0126] Fig.10 This is one of the structural diagrams of the security detection device based on the intrinsic security mechanism provided by the present invention, which is applied to the cloud management platform, such as Fig.10 As shown, the security detection device based on the intrinsic security mechanism includes an acquisition unit 1001, a creation unit 1002, a first sending unit 1003 and a first receiving unit 1004; wherein:
[0127] The acquisition unit 1001 is used to acquire a cloud server list;
[0128] A creating unit 1002, configured to create target snapshot data for at least one cloud server in the cloud server list;
[0129] The first sending unit 1003 is used to send a mount request carrying the target snapshot data of at least one of the cloud servers to the detection server;
[0130] The first receiving unit 1004 is used to receive the detection result of each of the cloud servers sent by the detection server; wherein the detection result is the result obtained by the detection server performing a security detection on the target snapshot data of the cloud server.
[0131] The present invention provides a security detection device based on an intrinsic security mechanism. When a cloud server list is obtained, target snapshot data is created for at least one cloud server in the cloud server list, and a mount request carrying the target snapshot data of at least one cloud server is sent to a detection server, so that the detection server performs security detection on the target snapshot data of each cloud server, and sends the detection result of each cloud server to a cloud management platform. It can be seen that the present invention mounts the target snapshot data on the detection server, and the detection server performs security detection on the target snapshot data of each cloud server. There is no need to install an agent in the cloud server, and security detection of each cloud server can be achieved, thereby improving the coverage of security detection.
[0132] Based on any of the above embodiments, the acquiring unit 1001 is specifically used for:
[0133] The cloud server list is obtained through a first API of the cloud management platform.
[0134] Based on any of the above embodiments, the creating unit 1002 is specifically used for:
[0135] The target snapshot data is created for at least one of the cloud servers in the cloud server list through a second API of the cloud management platform.
[0136] Based on any of the foregoing embodiments, the first sending unit 1003 is specifically configured to:
[0137] Grouping all the target snapshot data;
[0138] Sending the mount request carrying the target snapshot data of the current group to the detection server;
[0139] The first receiving unit 1004 is specifically configured to:
[0140] Receive the detection result of each of the cloud servers in the current group sent by the detection server.
[0141] Based on any of the above embodiments, the device further includes a third sending unit and a third receiving unit;
[0142] The third sending unit is used to send the mount request carrying the next group of target snapshot data to the detection server;
[0143] The third receiving unit is used to receive the detection result of each cloud server in the next group sent by the detection server.
[0144] Fig.11 This is a second structural diagram of a security detection device based on an intrinsic security mechanism provided by the present invention, which is applied to a detection server, such as Fig.11 As shown, the security detection device based on the intrinsic security mechanism includes a second receiving unit 1101, a first detection unit 1102 and a second sending unit 1103; wherein:
[0145] The second receiving unit 1101 is used to receive a mount request sent by the cloud management platform and carrying target snapshot data of at least one cloud server;
[0146] A first detection unit 1102 is used to perform a security detection on the target snapshot data of each of the cloud servers to obtain a detection result;
[0147] The second sending unit 1103 is used to send the detection result of each of the cloud servers to the cloud management platform.
[0148] The present invention provides a security detection device based on an intrinsic security mechanism. When a detection server receives a mount request carrying target snapshot data of at least one cloud server from a cloud management platform, it performs security detection on the target snapshot data of each cloud server and sends the detection result of each cloud server to the cloud management platform. It can be seen that the present invention mounts the target snapshot data on the detection server, and the detection server performs security detection on the target snapshot data of each cloud server. There is no need to install an agent in the cloud server, and security detection of each cloud server can be achieved, thereby improving the coverage of security detection.
[0149] Based on any of the foregoing embodiments, the first detection unit 1102 is specifically configured to:
[0150] Perform at least one of the following security checks on the target snapshot data of each of the cloud servers: malicious file detection, vulnerability detection, and baseline detection.
[0151] Based on any of the foregoing embodiments, the second receiving unit 1101 is specifically configured to:
[0152] Receiving the mount request sent by the cloud management platform and carrying the target snapshot data of the current group;
[0153] The first detection unit 1102 is specifically used for:
[0154] Performing security detection on target snapshot data of each of the cloud servers in the current group;
[0155] The second sending unit 1103 is specifically configured to:
[0156] The detection result of each of the cloud servers in the current group is sent to the cloud management platform.
[0157] Based on any of the above embodiments, the device further includes a deleting unit;
[0158] The deleting unit is used to delete the target snapshot data of each of the cloud servers in the current group.
[0159] Based on any of the above embodiments, the device further includes a fourth receiving unit, a second detecting unit and a fourth sending unit;
[0160] The fourth receiving unit is configured to receive the mount request carrying the next group of target snapshot data sent by the cloud management platform;
[0161] The second detection unit is used to perform security detection on the target snapshot data of each of the cloud servers in the next group;
[0162] The fourth sending unit is used to send the detection result of each cloud server in the next group to the cloud management platform.
[0163] Fig.12 is a schematic diagram of the physical structure of the electronic device provided by the present invention, such as Fig.12 As shown, the electronic device may include: a processor 1210, a communication interface 1220, a memory 1230 and a communication bus 1240, wherein the processor 1210, the communication interface 1220 and the memory 1230 communicate with each other through the communication bus 1240. The processor 1210 may call the logic instructions in the memory 1230 to execute a security detection method based on an intrinsic security mechanism, the method comprising: obtaining a cloud server list;
[0164] Creating target snapshot data for at least one cloud server in the cloud server list;
[0165] Sending a mount request carrying the target snapshot data of at least one of the cloud servers to a detection server;
[0166] Receive a detection result of each of the cloud servers sent by the detection server; wherein the detection result is a result obtained by the detection server performing a security detection on the target snapshot data of the cloud server;
[0167] Alternatively, the processor 1210 may call the logic instructions in the memory 1230 to execute the security detection method, which includes:
[0168] Receiving a mount request sent by a cloud management platform and carrying target snapshot data of at least one cloud server;
[0169] Performing a security check on the target snapshot data of each of the cloud servers to obtain a check result;
[0170] The detection result of each cloud server is sent to the cloud management platform.
[0171] In addition, the logic instructions in the above-mentioned memory 1230 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0172] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the security detection method based on the intrinsic security mechanism provided by the above methods, the method includes: obtaining a cloud server list;
[0173] Creating target snapshot data for at least one cloud server in the cloud server list;
[0174] Sending a mount request carrying the target snapshot data of at least one of the cloud servers to a detection server;
[0175] Receive a detection result of each of the cloud servers sent by the detection server; wherein the detection result is a result obtained by the detection server performing a security detection on the target snapshot data of the cloud server;
[0176] Alternatively, when the program instructions are executed by a computer, the computer can implement the following method:
[0177] Receiving a mount request sent by a cloud management platform and carrying target snapshot data of at least one cloud server;
[0178] Performing a security check on the target snapshot data of each of the cloud servers to obtain a check result;
[0179] The detection result of each cloud server is sent to the cloud management platform.
[0180] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the security detection method based on the intrinsic security mechanism provided by the above methods, the method comprising: obtaining a cloud server list;
[0181] Creating target snapshot data for at least one cloud server in the cloud server list;
[0182] Sending a mount request carrying the target snapshot data of at least one of the cloud servers to a detection server;
[0183] Receive a detection result of each of the cloud servers sent by the detection server; wherein the detection result is a result obtained by the detection server performing a security detection on the target snapshot data of the cloud server;
[0184] Alternatively, when the computer program is executed by a processor, the following method is implemented:
[0185] Receiving a mount request sent by a cloud management platform and carrying target snapshot data of at least one cloud server;
[0186] Performing a security check on the target snapshot data of each of the cloud servers to obtain a check result;
[0187] The detection result of each cloud server is sent to the cloud management platform.
[0188] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0189] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0190] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A security detection method based on an intrinsic security mechanism, characterized in that: Applied to cloud management platforms, including: Obtain a cloud server list; the cloud server list includes identification information of at least one cloud server and corresponding data information, the data information including operating system data and all application data of the cloud server; Creating target snapshot data for at least one cloud server in the cloud server list; the target snapshot data is copy information of the data information; Remotely sending a mount request carrying the target snapshot data of at least one of the cloud servers to a detection server; Receive a detection result of each of the cloud servers sent by the detection server; wherein the detection result is a result obtained by the detection server performing a security detection on the target snapshot data of the cloud server; The step of creating target snapshot data for at least one cloud server in the cloud server list includes: Obtaining a user selection instruction, where the user selection instruction is used to indicate identification information of a cloud server selected by the user; In response to the user selection instruction, creating the target snapshot data for each cloud server indicated in the user selection instruction through a second API of the cloud management platform, wherein the second API is an API associated with creating a snapshot and is called after obtaining identification information and corresponding data information of each cloud server in the cloud server list; The creating of the target snapshot data comprises: CentOSBase is set as the disk image file of the cloud server, multiple virtual machines are created based on the disk image file, multiple snapshots are created for each of the virtual machines, and the multiple snapshots are determined as the target snapshot data.
2. The security detection method based on the intrinsic security mechanism according to claim 1 is characterized in that: The step of obtaining a cloud server list includes: The cloud server list is obtained through a first API of the cloud management platform.
3. The security detection method based on the intrinsic security mechanism according to claim 1 or 2, characterized in that: The remotely sending a mount request carrying the target snapshot data of at least one of the cloud servers to the detection server includes: Grouping all the target snapshot data; Remotely sending the mount request carrying the target snapshot data of the current group to the detection server; The receiving the detection result of each of the cloud servers sent by the detection server includes: Receive the detection result of each of the cloud servers in the current group sent by the detection server.
4. The security detection method based on the intrinsic security mechanism according to claim 3 is characterized in that: After receiving the detection result of each of the cloud servers in the current group sent by the detection server, the method further includes: Remotely sending the mount request carrying the next set of target snapshot data to the detection server; Receive the detection result of each of the cloud servers in the next group sent by the detection server.
5. A security detection method based on an intrinsic security mechanism, characterized in that: Applied to detection servers, including: Receive a mount request sent by a cloud management platform and carrying target snapshot data of at least one cloud server; the mount request is sent by the cloud management platform after creating target snapshot data for at least one cloud server in an acquired cloud server list, the cloud server list includes identification information and corresponding data information of at least one cloud server, the data information includes operating system data and all application data of the cloud server; the target snapshot data is copy information of the data information; the target snapshot data is snapshot data created for a cloud server corresponding to the identification information of each cloud server indicated in a user selection instruction through a second API of the cloud management platform, the second API is an API associated with snapshot creation that is called after obtaining the identification information and corresponding data information of each cloud server in the cloud server list; the target snapshot data includes multiple snapshots created for each virtual machine, the virtual machine is created for a disk image file of the cloud server, and the disk image file of the cloud server is CentOSBase; Performing a security check on the target snapshot data of each of the cloud servers to obtain a check result; The detection result of each cloud server is sent to the cloud management platform.
6. The security detection method based on the intrinsic security mechanism according to claim 5 is characterized in that: The performing security detection on the target snapshot data of each cloud server includes: Perform at least one of the following security checks on the target snapshot data of each of the cloud servers: malicious file detection, vulnerability detection, and baseline detection.
7. The security detection method based on the intrinsic security mechanism according to claim 5 or 6, characterized in that: The receiving a mount request sent by the cloud management platform and carrying target snapshot data of at least one cloud server includes: Receiving the mount request sent by the cloud management platform and carrying the target snapshot data of the current group; The performing security detection on the target snapshot data of each cloud server includes: Performing security detection on target snapshot data of each of the cloud servers in the current group; The sending the detection result of each of the cloud servers to the cloud management platform includes: The detection result of each of the cloud servers in the current group is sent to the cloud management platform.
8. The security detection method based on the intrinsic security mechanism according to claim 7 is characterized in that: After sending the detection result of each of the cloud servers in the current group to the cloud management platform, the method further includes: The target snapshot data of each of the cloud servers in the current group is deleted.
9. The security detection method based on the intrinsic security mechanism according to claim 8 is characterized in that: After deleting the target snapshot data of each of the cloud servers in the current group, the method further includes: Receiving the mount request carrying the next group of target snapshot data sent by the cloud management platform; Performing security detection on the target snapshot data of each of the cloud servers in the next group; The detection result of each of the cloud servers in the next group is sent to the cloud management platform.
10. A safety detection device based on an intrinsic safety mechanism, characterized in that: include: An acquisition unit, used to acquire a cloud server list; The cloud server list includes identification information of at least one cloud server and corresponding data information, wherein the data information includes operating system data and all application data of the cloud server; a creating unit, configured to create target snapshot data for at least one cloud server in the cloud server list; The target snapshot data is the copy information of the data information; A first sending unit, configured to remotely send a mount request carrying the target snapshot data of at least one of the cloud servers to a detection server; A first receiving unit is used to receive a detection result of each of the cloud servers sent by the detection server; wherein the detection result is a result obtained by the detection server performing a security detection on the target snapshot data of the cloud server; The creation unit is specifically used for: Obtaining a user selection instruction, where the user selection instruction is used to indicate identification information of a cloud server selected by the user; In response to the user selection instruction, creating the target snapshot data for each cloud server indicated in the user selection instruction through a second API of the cloud management platform, wherein the second API is an API associated with creating a snapshot and is called after obtaining identification information and corresponding data information of each cloud server in the cloud server list; The creation unit is further specifically used for: CentOSBase is set as the disk image file of the cloud server, multiple virtual machines are created based on the disk image file, multiple snapshots are created for each of the virtual machines, and the multiple snapshots are determined as the target snapshot data.
11. A security detection device based on an intrinsic security mechanism, characterized in that: include: A second receiving unit is used to receive a mount request sent by the cloud management platform and carrying target snapshot data of at least one cloud server; The mount request is sent by the cloud management platform after creating target snapshot data for at least one cloud server in the acquired cloud server list, wherein the cloud server list includes identification information and corresponding data information of at least one cloud server, and the data information includes operating system data and all application data of the cloud server; the target snapshot data is copy information of the data information; The target snapshot data is snapshot data created for the cloud server corresponding to the identification information of each cloud server indicated in the user selection instruction through the second API of the cloud management platform, the second API is an API associated with creating a snapshot that is called after obtaining the identification information and corresponding data information of each cloud server in the cloud server list; the target snapshot data includes multiple snapshots created for each virtual machine, the virtual machine is created for the disk image file of the cloud server, and the disk image file of the cloud server is CentOSBase; A first detection unit, configured to perform a security detection on the target snapshot data of each of the cloud servers to obtain a detection result; The second sending unit is used to send the detection result of each cloud server to the cloud management platform.
12. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the processor implements the steps of the security detection method based on the intrinsic security mechanism as described in any one of claims 1 to 4, or implements the steps of the security detection method based on the intrinsic security mechanism as described in any one of claims 5 to 9.
13. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the steps of the security detection method based on the intrinsic security mechanism as described in any one of claims 1 to 4 are implemented, or the steps of the security detection method based on the intrinsic security mechanism as described in any one of claims 5 to 9 are implemented.
14. A computer program product comprising a computer program, characterized in that When the computer program is executed by the processor, the steps of the security detection method based on the intrinsic security mechanism as described in any one of claims 1 to 4 are implemented, or the steps of the security detection method based on the intrinsic security mechanism as described in any one of claims 5 to 9 are implemented.
