Virtual private cloud security detection method, device, equipment and storage medium

By using a load balancer in the virtual private cloud to communicate between the scanning engine and the security detection terminal, the problem of excessive port exposure during VPC internal service detection is solved and the security of the VPC is improved.

CN115987574BActive Publication Date: 2024-09-10CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211555156.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-06
Publication Date
2024-09-10
Estimated Expiration
2042-12-06

AI Technical Summary

Technical Problem

When the existing technology detects the internal services of a virtual private cloud (VPC), it is necessary to open network ports and deploy scanning engines in the cluster corresponding to each service, resulting in a large number of exposed ports in the VPC, increasing security risks, and damaging the security of the VPC. sex.

Method used

By deploying a load balancer in the virtual private cloud, the scanning engine communicates with the security detection terminal outside the VPC. This avoids opening multiple ports inside the VPC and only opens the port between the load balancer and the security detection terminal to achieve monitoring of the VPC. Security scan of internal services.

Benefits of technology

It reduces the number of ports exposed by the VPC, reduces security risks, and improves the security of the VPC.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115987574B
    Figure CN115987574B
Patent Text Reader

Abstract

The present application provides a virtual private cloud security detection method, device, equipment and storage medium, in which a load balancer is deployed in the virtual private cloud, the load balancer is in communication connection with at least one service corresponding cluster and a scanning engine, and the load balancer is in communication connection with a security detection terminal. The scanning engine receives the scanning instruction sent by the security detection terminal through the load balancer; performs a security scan on the clusters corresponding to each service in the virtual private cloud according to the scanning instruction to obtain security scanning result data; sends the security scanning result data to the security detection terminal through the load balancer, so that the security detection terminal generates security detection results for the clusters corresponding to each service in the virtual private cloud according to the security scanning result data. Since the scanning engine can communicate with the security detection terminal outside the VPC through the load balancer, there is no need to open multiple ports, which can reduce the exposed ports of the VPC, reduce the security risks caused by the exposed ports, and improve the security of the VPC.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information security technology, and in particular to a method, apparatus, device and storage medium for security detection of virtual private clouds. Background Technology

[0002] A Virtual Private Cloud (VPC) is a user's dedicated network space that can be built using Elastic Cloud Servers and configured and managed by the user. It enables network isolation and enhances the security of resources within the user's cloud. Existing security detection products typically detect the outer layer of a VPC. Detecting services within a VPC requires opening network ports and deploying corresponding scanning engines for each service's cluster.

[0003] When there are many clusters inside a VPC, multiple network ports need to be opened to transmit data with security detection terminals outside the VPC. This may create unnecessary security risks due to the large number of exposed ports in the VPC, thus compromising the security of the VPC. Summary of the Invention

[0004] This application provides a method, apparatus, device, and storage medium for security detection of Virtual Private Cloud (VPC), which addresses the problem that when detecting services within a VPC, it is necessary to open network ports and deploy corresponding scanning engines for each service cluster, thereby compromising the security of the VPC.

[0005] In a first aspect, this application provides a virtual private cloud security detection method applied to a scanning engine. The scanning engine is communicatively connected to at least one service-corresponding cluster in the virtual private cloud. A load balancer is also deployed in the virtual private cloud. The load balancer is communicatively connected to at least one service-corresponding cluster and the scanning engine, and is also communicatively connected to a security detection terminal. The method includes:

[0006] The load balancer receives scanning commands sent by the security detection terminal.

[0007] Perform a security scan on the clusters corresponding to each service in the virtual private cloud according to the scan command to obtain security scan result data;

[0008] The security scan results are sent to the security testing terminal via a load balancer, so that the security testing terminal can generate security testing results for each service cluster in the virtual private cloud based on the security scan results.

[0009] Optionally, the scanning engine is deployed in a cluster within a virtual private cloud, and the cluster corresponding to the scanning engine is communicatively connected to at least one service-corresponding cluster within the virtual private cloud; the scanning instruction includes an identifier of the service to be scanned; the step of performing a security scan on each service-corresponding cluster in the virtual private cloud according to the scanning instruction to obtain security scan result data includes:

[0010] Perform a security scan on the cluster corresponding to the identifier of the service to be scanned according to the scan command, so as to obtain security scan result data.

[0011] Optionally, the scanning instruction includes a security scan type; the step of performing a security scan on the clusters corresponding to each service in the virtual private cloud according to the scanning instruction to obtain security scan result data includes:

[0012] Perform security scans on the clusters corresponding to each service in the virtual private cloud according to the security scan type to obtain the security scan result data corresponding to security scan type 5.

[0013] Optionally, the load balancer includes an ingress IP address and an egress IP address. The ingress IP address has a corresponding receiving port, and the egress IP address has a corresponding sending port. The ingress IP address, the receiving port, and the sending port are created by the virtual private cloud management server controlling the load balancer. The load balancer communicates with the security detection terminal through the receiving port and the sending port, respectively.

[0014] Optionally, before receiving the scanning command sent by the security detection terminal through the load balancer, the method further includes:

[0015] The system receives a port creation instruction sent by the management server, which instructs the scanning engine to create a load listening port. The load balancer also includes a scan listening port, which is created by the management server controlling the load balancer. A communication connection is established between the load listening port and the scan listening port of the load balancer.

[0016] 5. In a second aspect, this application provides a virtual private cloud security detection method, applied to a security detection terminal, comprising:

[0017] The load balancer sends scanning commands to the scanning engine, enabling the scanning engine to perform security scans on the clusters corresponding to each service in the virtual private cloud according to the scanning commands. The scanning engine and the load balancer are deployed in the virtual private cloud. The scanning engine is communicatively connected to at least one cluster corresponding to a service in the virtual private cloud, the load balancer is communicatively connected to at least one cluster corresponding to a service and the scanning engine, and the load balancer is communicatively connected to a security detection terminal. The system receives security scan result data sent by the scanning engine through the load balancer.

[0018] Based on the security scan results, security detection results are generated for each service cluster in the virtual private cloud.

[0019] Optionally, the scan instruction may include an identifier of the service to be scanned and / or a security scan type.

[0020] Optionally, sending scanning commands to the scanning engine via the load balancer includes:

[0021] A scan command is sent to the load balancer's receiving port, causing the load balancer to forward the scan command to the scan engine; the receiving port is the communication port of the load balancer corresponding to the ingress IP address and the security detection terminal IP address.

[0022] port.

[0023] Optionally, the security scan result data reported by the receiving scanning engine through the load balancer includes:

[0024] Receive security scan result data sent through the load balancer's sending port; the sending port is the egress IP address.

[0025] The communication port of the load balancer corresponding to the IP address of the security detection terminal; the security scan result data is 0. After the scanning engine performs a security scan according to the scan command, it sends the data to the load balancer.

[0026] Thirdly, this application provides a virtual private cloud security detection device applied to a scanning engine. The scanning engine is communicatively connected to at least one service-corresponding cluster in the virtual private cloud. A load balancer is also deployed in the virtual private cloud. The load balancer is communicatively connected to at least one service-corresponding cluster and the scanning engine, and is also communicatively connected to a security detection terminal. The device includes:

[0027] The receiving module is used to receive scanning commands sent by the security detection terminal through the load balancer;

[0028] The scanning module is used to perform security scans on the clusters corresponding to each service in the virtual private cloud according to the scanning instructions, so as to obtain security scan result data.

[0029] The sending module is used to send the security scan result data to the security detection terminal through the load balancer, so that the security detection terminal can generate the security detection results of each service cluster in the virtual private cloud based on the security scan result data.

[0030] Fourthly, this application provides a virtual private cloud security detection device, applied to a security detection terminal, comprising:

[0031] The sending module is used to send scanning instructions to the scanning engine through the load balancer, so that the scanning engine performs security scans on the clusters corresponding to each service in the virtual private cloud according to the scanning instructions; the scanning engine and the load balancer are deployed in the virtual private cloud, the scanning engine is communicatively connected to at least one cluster corresponding to a service in the virtual private cloud, the load balancer is communicatively connected to at least one cluster corresponding to a service and the scanning engine, and the load balancer is communicatively connected to a security detection terminal.

[0032] The receiving module is used to receive security scan result data sent by the scanning engine through the load balancer.

[0033] The generation module is used to generate security detection results for each service cluster in the virtual private cloud based on the security scan result data.

[0034] Fifthly, this application provides an electronic device, including: a processor, and a memory and a transceiver communicatively connected to the processor;

[0035] The memory stores computer-executed instructions; the transceiver is used for sending and receiving data.

[0036] The processor executes computer execution instructions stored in the memory to implement the virtual private cloud security detection method described in the first or second aspect above.

[0037] Sixthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the virtual private cloud security detection method described in the first or second aspect above.

[0038] The virtual private cloud (VPN) security detection method, apparatus, device, and storage medium provided in this application include a scanning engine communicatively connected to at least one service-corresponding cluster in the VPN. A load balancer is also deployed in the VPN, and the load balancer is communicatively connected to both the at least one service-corresponding cluster and the scanning engine. The load balancer is also communicatively connected to a security detection terminal. The method is applied to the scanning engine, which receives scanning instructions from the security detection terminal via the load balancer. The scanning engine performs security scans on each service-corresponding cluster in the VPN according to the scanning instructions to obtain security scan result data. The security scan result data is then sent to the security detection terminal via the load balancer, enabling the security detection terminal to generate security detection results for each service-corresponding cluster in the VPN based on the security scan result data. Alternatively, the method is applied to the security detection terminal, which sends scanning instructions to the scanning engine via the load balancer, causing the scanning engine to perform security scans on each service-corresponding cluster in the VPN according to the scanning instructions. The terminal also receives security scan result data sent by the scanning engine via the load balancer and generates security detection results for each service-corresponding cluster in the VPN based on the security scan result data. Since the scanning engine can communicate with the security detection terminal outside the VPC through the load balancer, it is not necessary to open multiple ports. Only the port between the load balancer and the security detection terminal needs to be opened to realize the security scan of the corresponding clusters of each service in the virtual private cloud. This can reduce the number of ports exposed in the VPC, reduce the security risks caused by exposed ports, and improve the security of the VPC. Attached Figure Description

[0039] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0040] Figure 1 A schematic diagram of the network architecture provided in this application;

[0041] Figure 2 This is a flowchart of the virtual private cloud security detection method provided in Embodiment 1 of this application;

[0042] Figure 3 This is a flowchart of the virtual private cloud security detection method provided in Embodiment 3 of this application;

[0043] Figure 4 This is a schematic diagram of the security testing of the virtual private cloud provided in this application;

[0044] Figure 5 This is a schematic diagram of the structure of the virtual private cloud security detection device provided in Embodiment 5 of this application;

[0045] Figure 6This is a schematic diagram of the structure of the virtual private cloud security detection device provided in Embodiment Six of this application;

[0046] Figure 7 This is a schematic diagram of the structure of the electronic device provided in Embodiment 7 of this application.

[0047] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0048] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0049] The terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. In the following descriptions of embodiments, "a plurality of" means two or more, unless otherwise explicitly defined.

[0050] First, the prior art involved in this invention will be described and analyzed in detail.

[0051] Currently, when performing security checks on the service clusters within a VPC, it is necessary to deploy a scanning engine within the service cluster and open network ports in each service cluster to communicate with the outside world. This results in a large number of exposed ports in the VPC, creating unnecessary security risks and compromising the security of the VPC.

[0052] Load balancers can distribute traffic to different backend services. The inventors discovered in their research that services in a Virtual Private Cloud (VPC) can be pre-configured as backend services of the load balancer. This allows the scanning engine to communicate with a security detection terminal outside the VPC via the load balancer, eliminating the need to open multiple ports, reducing security risks associated with port exposure, and improving VPC security. Therefore, this application provides a VPC security detection method applied to a scanning engine. The scanning engine is communicatively connected to at least one service-corresponding cluster in the VPC. A load balancer is also deployed in the VPC, communicating with at least one service-corresponding cluster and the scanning engine, and also communicating with the security detection terminal. After receiving scanning instructions from the security detection terminal through the load balancer, the scanning engine performs security scans on each service-corresponding cluster in the VPC according to the scanning instructions to obtain security scan result data. The security scan result data is then sent to the security detection terminal through the load balancer, enabling the security detection terminal to generate security detection results for each service-corresponding cluster in the VPC based on the security scan result data. This application also provides a virtual private cloud security detection method, applied to a security detection terminal. The security detection terminal sends a scanning command to a scanning engine through a load balancer, so that the scanning engine performs a security scan on the clusters corresponding to each service in the virtual private cloud according to the scanning command; receives the security scan result data sent by the scanning engine through the load balancer; and generates security detection results for the clusters corresponding to each service in the virtual private cloud based on the security scan result data.

[0053] Figure 1 The network architecture diagram provided in this application is as follows: Figure 1 As shown, the system includes a security detection terminal 1, a load balancer 2, and a scanning engine 3. The security detection terminal 1 sends a scanning command to the load balancer 2, and the load balancer 2 sends the received scanning command to the scanning engine 3. The scanning engine 3 scans the cluster corresponding to the service according to the scanning command to obtain security scan result data. After obtaining the security scan result data, the scanning engine 3 sends the security scan result data to the load balancer 2, and the load balancer 2 sends the received security scan result data to the security detection terminal 1.

[0054] The collection, storage, use, processing, transmission, provision, and disclosure of financial data or user data involved in the technical solution of this application all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0055] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0056] Example 1

[0057] Figure 2 This is a flowchart of a Virtual Private Cloud (VPC) security detection method provided in Embodiment 1 of this application. When detecting services within a VPC, this embodiment requires opening network ports and deploying corresponding scanning engines in each service's cluster, which compromises VPC security. This embodiment addresses this issue by providing a VPC security detection method. The method in this embodiment is applied to a scanning engine, which includes a VPC security detection device. This device can be located in an electronic device, such as a digital computer representing various forms, like a cloud server.

[0058] like Figure 2 As shown, the specific steps of this method are as follows:

[0059] Step S101: Receive the scanning command sent by the security detection terminal through the load balancer.

[0060] Step S102: Perform a security scan on the clusters corresponding to each service in the virtual private cloud according to the scan command to obtain security scan result data.

[0061] Step S103: Send the security scan result data to the security detection terminal through the load balancer, so that the security detection terminal can generate the security detection results of each service cluster in the virtual private cloud based on the security scan result data.

[0062] In this embodiment, the scanning engine is connected to at least one service-corresponding cluster in the virtual private cloud. A load balancer is also deployed in the virtual private cloud. The load balancer is connected to at least one service-corresponding cluster and the scanning engine, and is also connected to the security detection terminal.

[0063] In this embodiment, the load balancer can distribute traffic to different backend services, and services in the virtual private cloud can be pre-configured as backend services of the load balancer. Services in the virtual private cloud include the service corresponding to the scanning engine.

[0064] Specifically, after configuring services in the virtual private cloud as backend services of the load balancer, if the load balancer receives a scan command sent by the security detection terminal, the load balancer can send the scan command to the corresponding scanning engine. After receiving the scan command, the scanning engine performs a security scan on the cluster corresponding to each service in the virtual private cloud according to the scan command to obtain security scan result data, and sends the security scan result data to the load balancer. After receiving the security scan result data, the load balancer sends the security scan result data to the security detection terminal so that the security detection terminal can generate the corresponding security detection result based on the security scan result data.

[0065] The security scan results data includes data obtained by the scanning engine from scanning the clusters corresponding to each service. For example, the security scan results data can be the scan logs generated by the scanning engine when performing security scans on the clusters corresponding to each service in the virtual private cloud.

[0066] The virtual private cloud (VPC) security detection method provided in this application is applied to a scanning engine. The scanning engine is communicatively connected to at least one service-corresponding cluster in the VPC. A load balancer is also deployed in the VPC, and the load balancer is communicatively connected to the at least one service-corresponding cluster and the scanning engine. The load balancer is also communicatively connected to a security detection terminal. The scanning engine receives scanning instructions from the security detection terminal through the load balancer; performs security scans on each service-corresponding cluster in the VPC according to the scanning instructions to obtain security scan result data; and sends the security scan result data to the security detection terminal through the load balancer, so that the security detection terminal generates security detection results for each service-corresponding cluster in the VPC based on the security scan result data. Since the scanning engine is pre-configured as the backend of the load balancer, the scanning engine can communicate with the security detection terminal outside the VPC through the load balancer. This eliminates the need to open multiple ports; only the port between the load balancer and the security detection terminal needs to be opened to achieve security scanning of each service-corresponding cluster in the VPC. This reduces the number of exposed ports in the VPC, reduces the security risks associated with exposed ports, and improves the security of the VPC.

[0067] Example 2

[0068] Based on the above embodiment one, the scanning instruction may include the identifier of the service to be scanned. One implementation of step S102, which involves performing a security scan on the clusters corresponding to each service in the virtual private cloud according to the scanning instruction to obtain security scan result data, may include: performing a security scan on the clusters corresponding to the identifier of the service to be scanned according to the scanning instruction to obtain security scan result data.

[0069] In this embodiment, the scanning engine can be deployed in a cluster in a virtual private cloud, eliminating the need to deploy scanning engines for each cluster. This reduces the number of scanning engines that need to be deployed within the VPC and reduces the consumption of VPC resources.

[0070] Specifically, the scanning command may include the identifier of the service to be scanned. After receiving the scanning command, the scanning engine can perform a security scan on the cluster specified by the identifier of the service to be scanned in the scanning command and obtain the security scan result data of the corresponding service. After sending the security scan result data to the security detection terminal, the security detection terminal can generate the security detection result corresponding to the identifier of the service to be scanned.

[0071] Optionally, the virtual private cloud management server may include Kubernetes components, and the Kubernetes components in the virtual private cloud management server can be used to create a corresponding cluster for the scanning engine in the virtual private cloud.

[0072] The virtual private cloud security detection method provided in this application performs a security scan on the cluster corresponding to the identifier of the service to be scanned according to the scan instruction, so as to obtain security scan result data. It can specify the service to be scanned, without having to scan all services in the VPC, which can save scanning resources and computing resources.

[0073] Optionally, the scanning instruction may also include a security scan type. One implementation of step S102, which involves performing a security scan on the clusters corresponding to each service in the virtual private cloud according to the scanning instruction to obtain security scan result data, may also include: performing a security scan on the clusters corresponding to each service in the virtual private cloud according to the security scan type to obtain security scan result data corresponding to the security scan type.

[0074] The security scan type can be a security vulnerability scan, an asset scan, etc., and this application embodiment does not limit this.

[0075] In this embodiment of the application, the scanning instruction may include one or more security scan types. After receiving the scanning instruction, the scanning engine can perform a security scan on the cluster corresponding to the service according to the security scan type included in the scanning instruction, and obtain the security scan result data corresponding to the security scan type.

[0076] The virtual private cloud security detection method provided in this application performs security scans on the clusters corresponding to each service in the virtual private cloud according to the security scan type, so as to obtain the security scan result data corresponding to the security scan type. It can scan the clusters corresponding to the service according to the specified security scan type, which can better match user needs, improve user experience, and save computing resources.

[0077] Optionally, in this embodiment, the load balancer may include an ingress IP address and an egress IP address. The ingress IP address has a corresponding receiving port, and the egress IP address has a corresponding sending port. The ingress IP address, receiving port, and sending port are created by the virtual private cloud management server controlling the load balancer. The load balancer communicates with the security detection terminal through the receiving port and the sending port, respectively.

[0078] The exit IP address refers to the exit IP address of the VPC physical network. In this embodiment, all access from the internal network to the public network uses the exit IP address.

[0079] In this embodiment, a load balancer can be pre-selected and configured with an ingress IP address; a receiving port between the security detection terminal IP address and the ingress IP address, and a sending port between the security detection terminal IP address and the egress IP address can be opened. The receiving port is used to receive scanning instructions sent by the security detection terminal, and the sending port is used to send security scan result data to the security detection terminal.

[0080] The virtual private cloud security detection method provided in this application embodiment uses a load balancer to communicate with the security detection terminal via a receiving port and a sending port, which can separate the VPC's exit channel and entry channel, avoid data conflicts, and increase data security.

[0081] Optionally, before receiving the scanning command sent by the security detection terminal through the load balancer in step S101, the method further includes:

[0082] Step S201: Receive the port creation command sent by the management server.

[0083] Step S202: Establish a communication connection between the load monitoring port and the scan monitoring port of the load balancer.

[0084] The port creation command is used to instruct the scanning engine to create a load listening port; the load balancer also includes a scan listening port, which is created by the management server controlling the load balancer.

[0085] In this embodiment, after deploying the scanning engine, a listener needs to be created between the IP addresses of the scanning engine cluster and the load balancer for communication. Specifically, a scanning listener port can be created based on the received port creation instruction, thereby establishing a communication connection with the scan listener port of the load balancer.

[0086] Optionally, the IP address of the load balancer can be the ingress IP address.

[0087] The virtual private cloud security detection method provided in this application embodiment receives a port creation instruction sent by a management server, establishes a communication connection between a load monitoring port and a scan monitoring port of a load balancer, and communicates with the load balancer through the communication connection with the scan monitoring port of the load balancer, thereby receiving scan instructions sent by the load balancer and sending security scan result data to the load balancer.

[0088] Example 3

[0089] Figure 3 This is a flowchart of the Virtual Private Cloud (VPC) security detection method provided in Embodiment 3 of this application. When detecting services within a VPC, this embodiment requires opening network ports and deploying corresponding scanning engines in each service's cluster, which compromises VPC security. This embodiment addresses this issue by providing a VPC security detection method. The method in this embodiment is applied to a security detection terminal, which includes a VPC security detection device. This device can be located in an electronic device, such as a digital computer representing various forms, like a cloud server.

[0090] like Figure 3 As shown, the specific steps of this method are as follows:

[0091] Step S301: Send a scan command to the scanning engine through the load balancer so that the scanning engine can perform a security scan on the clusters corresponding to each service in the virtual private cloud according to the scan command.

[0092] Step S302: Receive security scan result data sent by the scanning engine through the load balancer.

[0093] Step S303: Generate security detection results for each service cluster in the virtual private cloud based on the security scan results data.

[0094] The scanning engine and load balancer are deployed in a virtual private cloud. The scanning engine communicates with at least one service cluster in the virtual private cloud, the load balancer communicates with at least one service cluster and the scanning engine, and the load balancer communicates with the security detection terminal.

[0095] This application does not limit the triggering method for sending scan commands to the scanning engine. For example, security checks on services in the VPC can be triggered proactively or periodically. After determining to trigger security checks on services in the VPC, a scan command is sent to the scanning engine through the load balancer, so that the scanning engine performs security scans on the clusters corresponding to each service in the virtual private cloud according to the scan command.

[0096] Specifically, after determining to send a scan command to the scanning engine, the scan command is sent to the load balancer so that the load balancer sends the scan command to the scanning engine; after receiving the scan command, the scanning engine performs a security scan on the clusters corresponding to each service in the virtual private cloud according to the scan command to obtain security scan result data; after completing the scan, the scanning engine sends the security scan result data to the load balancer so that the load balancer sends the security scan result data to the security detection terminal.

[0097] Optionally, after generating the security test results for each service cluster in the virtual private cloud, an email containing the security test results can be sent to a specified email address so that the specified user can be informed of the security test results for each service cluster.

[0098] The Virtual Private Cloud (VPC) security detection method provided in this application is applied to a security detection terminal. A load balancer sends scanning commands to a scanning engine, enabling the scanning engine to perform security scans on the clusters corresponding to each service in the VPC according to the commands. The scanning engine and load balancer are deployed in the VPC. The scanning engine communicates with at least one service cluster in the VPC, the load balancer communicates with at least one service cluster and the scanning engine, and the load balancer communicates with the security detection terminal. The method receives security scan result data sent by the scanning engine through the load balancer and generates security detection results for each service cluster in the VPC based on the security scan result data. Because the scanning engine is pre-configured as the backend of the load balancer, it can communicate with the security detection terminal outside the VPC through the load balancer. This eliminates the need to open multiple ports; only the port between the load balancer and the security detection terminal needs to be opened to perform security scans on the clusters corresponding to each service in the VPC. This reduces the number of exposed ports in the VPC, minimizing security risks associated with exposed ports and improving VPC security.

[0099] Optionally, the scan instruction may include the identifier of the service to be scanned and / or the type of security scan.

[0100] In this embodiment of the application, if the scanning engine is deployed in a cluster, the scanning instruction may include the identifier of the service to be scanned, so as to control the scanning engine to scan the cluster corresponding to the identifier of the service to be scanned.

[0101] In this embodiment of the application, the scanning instruction may also include one or more security scanning types, such as security vulnerability scanning, asset scanning, etc. According to the security scanning type in the scanning instruction, security vulnerabilities of services within the cluster and / or domain name assets, etc., can be detected. This embodiment of the application does not limit this.

[0102] Specifically, the cluster to be scanned can be determined based on the identifier of the service to be scanned in the scan command, and the scan type of the cluster to be scanned can be determined based on the security scan type in the scan command.

[0103] The virtual private cloud security detection method provided in this application includes an identifier of the service to be scanned and / or a security scan type in the scanning instruction. It can specify the service to be scanned or specify the security scan type, which better matches user needs, improves user experience, and saves computing resources.

[0104] Example 4

[0105] Based on any of the above embodiments, the load balancer may include an ingress IP address, and the ingress IP address has a corresponding receiving port. Then, one implementation of step S301, which sends a scan command to the scanning engine through the load balancer, so that the scanning engine performs a security scan on the clusters corresponding to each service in the virtual private cloud according to the scan command, can be:

[0106] Send a scan command to the load balancer's receive port so that the load balancer will send the scan command to the scan engine.

[0107] The receiving port is the communication port of the load balancer corresponding to the entry IP address and the security detection terminal IP address; the entry IP address and the receiving port are created by the virtual private cloud management server controlling the load balancer.

[0108] In this embodiment, the receiving port is used by the load balancer to receive scanning instructions sent by the security detection terminal. After receiving the scanning instructions through the receiving port, the load balancer sends the scanning instructions to the scanning engine.

[0109] The virtual private cloud security detection method provided in this application sends a scan command to the receiving port of the load balancer, so that the load balancer sends the scan command to the scanning engine. This can unify the cluster entry point within the VPC, reduce the exposed ports, and improve the security of the VPC.

[0110] Based on any of the above embodiments, the load balancer may further include an egress IP address, which has a corresponding sending port; then, one implementation of step S302, receiving the security scan result data sent by the scanning engine through the load balancer, can be:

[0111] Receive security scan result data sent through the load balancer's sending port.

[0112] The sending port is the communication port of the load balancer corresponding to the egress IP address and the security detection terminal IP address. This sending port is created by the virtual private cloud management server controlling the load balancer. The egress IP address is the egress IP address of the VPC physical network. In this embodiment, all access from the internal network to the public network uses the egress IP address. The security scan result data is sent to the load balancer after the scanning engine performs a security scan according to the scan instructions.

[0113] In this embodiment, the sending port is used by the load balancer to send security scan result data to the security detection terminal. Specifically, after receiving the security scan result data, the load balancer sends a scan command to the security monitoring terminal through the sending port.

[0114] The virtual private cloud security detection method provided in this application embodiment receives security scan result data sent through the load balancer's sending port, which can unify the cluster exit within the VPC, reduce exposed ports, and improve the security of the VPC.

[0115] Figure 4 This is a schematic diagram of the security testing of the virtual private cloud provided in this application, such as... Figure 4 As shown, the security terminal sends a scan command to the receiving port of the load balancer. The load balancer then sends the received scan command to the corresponding cluster of the scanning engine. Clusters within the same VPC are interconnected. After receiving the scan command, the corresponding cluster of the scanning engine can perform a security scan on the clusters corresponding to each service in the virtual private cloud according to the scan command and obtain the security scan result data. The corresponding cluster of the scanning engine sends the security scan result data to the load balancer, and the load balancer sends the security scan result data to the security detection terminal through the sending port.

[0116] Example 5

[0117] Figure 5 This is a schematic diagram of the virtual private cloud security detection device provided in Embodiment 5 of this application. The virtual private cloud security detection device provided in this embodiment is applied to a scanning engine and can execute virtual private cloud security detection methods.

[0118] The processing flow provided in Example 1 involves a scanning engine communicating with at least one service cluster in a virtual private cloud. A load balancer is also deployed in the virtual private cloud, and the load balancer communicates with both the service cluster and the scanning engine.

[0119] Then, the load balancer communicates with the security detection terminal. For example... Figure 5 As shown, the virtual private cloud security detection device 50 includes: a receiving module 501, a scanning module 502, and a sending module 503.

[0120] Specifically, the receiving module 501 is used to receive scanning instructions sent by the security detection terminal through the load balancer;

[0121] The scanning module 502 is used to perform security scans on the clusters corresponding to each service in the virtual private cloud according to the scanning instructions, so as to obtain security scan result data.

[0122] The sending module 503 is used to send the security scan result data to the security detection terminal through the load balancer, so that the security detection terminal can generate the security detection results of each service cluster in the virtual private cloud based on the security scan result data.

[0123] The apparatus provided in this application embodiment can be specifically used to execute the method embodiment provided in Embodiment 1 above, and the specific functions will not be repeated here.

[0124] 5. Optionally, the scanning engine is deployed in a cluster in a virtual private cloud, and the cluster corresponding to the scanning engine is connected to the virtual private cloud.

[0125] There is at least one service in the cloud corresponding to a cluster communication connection; the scan instruction includes the identifier of the service to be scanned; the scan module 502 is specifically used to perform a security scan on the clusters corresponding to each service in the virtual private cloud according to the scan instruction, so as to obtain security scan result data, including: performing a security scan on the clusters corresponding to the identifier of the service to be scanned according to the scan instruction, so as to obtain security scan result data.

[0126] Optionally, the scan instruction includes a security scan type; the scan module 502 is specifically used to scan according to the security scan type.

[0127] Security scans are performed on the clusters corresponding to each service in the virtual private cloud to obtain security scan result data corresponding to the security scan type.

[0128] Optionally, the load balancer includes an ingress IP address and an egress IP address, with the ingress IP address having a corresponding receiver.

[0129] The outgoing IP address has a corresponding sending port; the incoming IP address, receiving port, and sending port are created by the Virtual Private Cloud 5 management server controlling the load balancer; the load balancer uses the receiving port and sending port for security detection respectively.

[0130] Terminal communication connection.

[0131] Optionally, the virtual private cloud security detection device 50 further includes: a creation module; the creation module is used to receive port creation instructions sent by the management server, the port creation instructions are used to instruct the scanning engine to create a load listening port; load balancing

[0132] The device also includes a scanning listening port, which is created by the management server to control the load balancer; a communication connection is established between the load balancer's scanning listening port and the load listening port.

[0133] The apparatus provided in this application embodiment can be specifically used to execute the above method embodiment one or two, and the specific functions will not be described in detail here.

[0134] Example 6

[0135] Figure 6 This is a schematic diagram of the virtual private cloud security detection device provided in Embodiment Six of this application. The virtual private cloud security detection device provided in this embodiment is applied to a security detection terminal and can execute the processing flow provided in Embodiment Three of the virtual private cloud security detection method. Figure 6 As shown, the virtual private cloud security detection device 60 includes: a sending module 601, a receiving module 602, and a generating module 603.

[0136] Specifically, the sending module 601 is used to send scanning instructions to the scanning engine through the load balancer, so that the scanning engine performs security scans on the clusters corresponding to each service in the virtual private cloud according to the scanning instructions; the scanning engine and the load balancer are deployed in the virtual private cloud, the scanning engine is connected to at least one cluster corresponding to a service in the virtual private cloud, the load balancer is connected to at least one cluster corresponding to a service and the scanning engine, and the load balancer is connected to the security detection terminal.

[0137] The receiving module 602 is used to receive security scan result data sent by the scanning engine through the load balancer.

[0138] The generation module 603 is used to generate security detection results for each service cluster in the virtual private cloud based on the security scan result data.

[0139] The apparatus provided in this application embodiment can be specifically used to execute the method embodiment provided in Embodiment 3 above, and the specific functions will not be repeated here.

[0140] Optionally, the scan instruction may include the identifier of the service to be scanned and / or the type of security scan.

[0141] Optionally, the sending module 601 is specifically used to send a scan command to the receiving port of the load balancer, so that the load balancer sends the scan command to the scanning engine; the receiving port is the communication port of the load balancer corresponding to the entry IP address and the security detection terminal IP address.

[0142] Optionally, the receiving module 602 is specifically used to receive security scan result data sent through the load balancer's sending port; the sending port is the communication port of the load balancer corresponding to the egress IP address and the security detection terminal IP address; the security scan result data is sent to the load balancer by the scanning engine after performing a security scan according to the scanning instructions.

[0143] The apparatus provided in this application embodiment can be specifically used to perform the methods described in Embodiments 3 or 4 above; the specific functions will not be repeated here.

[0144] Example 7

[0145] Figure 7 This is a schematic diagram of the structure of the electronic device provided in Embodiment 7 of this application, as shown below. Figure 7 As shown, this application also provides an electronic device 70, including: a memory 701, a processor 702, and a transceiver 703.

[0146] The memory 701 stores computer-executed instructions, and the transceiver 703 sends and receives data. The memory 701, processor 702, and transceiver 703 are communicatively connected. Specifically, the program may include program code, which includes computer-executed instructions. The memory 701 may include high-speed RAM, and may also include non-volatile memory, such as at least one disk drive.

[0147] The processor 702 is used to execute computer execution instructions stored in the memory 701.

[0148] The computer execution instructions are stored in memory 701 and configured to be executed by processor 702 to implement the methods provided in embodiments one, two, three, or four of this application. Related descriptions can be understood by referring to the corresponding descriptions and effects of the steps in the accompanying drawings; further elaboration is not provided here.

[0149] In this embodiment, the memory 701 and the processor 702 are connected via a bus. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0150] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the methods provided in embodiments one, two, three, or four of this application.

[0151] This application also provides a computer program product, including computer execution instructions, which, when executed by a processor, implement the methods provided in embodiments one, two, three, or four of this application.

[0152] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.

[0153] The modules described as separate components may or may not be physically separate. Similarly, the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0154] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated module can be implemented in hardware or in a combination of hardware and software functional modules.

[0155] The program code used to implement the methods of this application may be written in any combination of one or more programming languages. This program code may be provided to the processor or controller of a general-purpose computer, special-purpose computer, or other programmable full-path fusion device, such that when executed by the processor or controller, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0156] In the context of this application, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0157] Furthermore, although the operations are described in a specific order, this should be understood as requiring that such operations be performed in the specific order shown or in sequential order, or requiring that all illustrated operations be performed to achieve the desired result. In certain environments, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this application. Certain features described in the context of individual embodiments may also be implemented in combination in a single implementation. Conversely, various features described in the context of a single implementation may also be implemented individually or in any suitable sub-combination in multiple implementations.

[0158] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.

[0159] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A virtual private cloud security detection method, characterized in that: Applied to a scanning engine, the scanning engine is communicatively connected to at least one service corresponding cluster in a virtual private cloud, a load balancer is also deployed in the virtual private cloud, the load balancer is communicatively connected to at least one service corresponding cluster and the scanning engine, the load balancer is communicatively connected to a security detection terminal, the method comprises: Receive scanning instructions sent by the security detection terminal through the load balancer; Perform security scans on the clusters corresponding to each service in the virtual private cloud according to the scan instructions to obtain security scan result data; The security scan result data is sent to the security detection terminal through the load balancer, so that the security detection terminal generates the security detection results of the clusters corresponding to each service in the virtual private cloud according to the security scan result data; Before the load balancer receives the scanning instruction sent by the security detection terminal, the method further includes: Receiving a port creation instruction sent by a management server, wherein the port creation instruction is used to instruct the scanning engine to create a load listening port; the load balancer also includes a scanning listening port, and the scanning listening port is created by the management server controlling the load balancer; Using a load listening port to establish a communication connection with a scanning listening port of the load balancer; The load balancer includes an ingress IP address and an egress IP address; The entry IP address has a corresponding receiving port, and the receiving port is a communication port of the load balancer corresponding to the entry IP address and the security detection terminal IP address; The egress IP address has a corresponding sending port; the sending port is a communication port of the load balancer corresponding to the egress IP address and the IP address of the security detection terminal; The ingress IP address, receiving port, and sending port are created by the virtual private cloud management server controlling the load balancer; The load balancer is connected to the safety detection terminal through the receiving port and the sending port respectively.

2. The method according to claim 1, characterized in that The scanning engine is deployed in a virtual private cloud in a cluster manner, and the cluster corresponding to the scanning engine is communicatively connected with at least one service corresponding cluster in the virtual private cloud; The scanning instruction includes an identification of a service to be scanned; The security scanning of the clusters corresponding to each service in the virtual private cloud according to the scanning instruction to obtain security scanning result data includes: A security scan is performed on the cluster corresponding to the identifier of the service to be scanned according to the scan instruction to obtain security scan result data.

3. The method according to claim 1, characterized in that: The scanning instruction includes a security scanning type; The security scanning of the clusters corresponding to each service in the virtual private cloud according to the scanning instruction to obtain security scanning result data includes: Perform security scans on the clusters corresponding to each service in the virtual private cloud according to the security scan type to obtain security scan result data corresponding to the security scan type.

4. A virtual private cloud security detection method, characterized in that: Applied to security detection terminals, including: A scanning instruction is sent to the scanning engine through the load balancer, so that the scanning engine performs a security scan on the clusters corresponding to each service in the virtual private cloud according to the scanning instruction; the scanning engine and the load balancer are deployed in the virtual private cloud, the scanning engine is communicatively connected with at least one cluster corresponding to a service in the virtual private cloud, the load balancer is communicatively connected with at least one cluster corresponding to a service and the scanning engine, and the load balancer is communicatively connected with the security detection terminal; Receive security scan result data sent by the scanning engine through the load balancer; Generate security detection results of clusters corresponding to each service in the virtual private cloud according to the security scan result data; Before sending the scanning instruction to the scanning engine through the load balancer, the method further includes: Sending a port creation instruction to the scanning engine, wherein the port creation instruction is used to instruct the scanning engine to create a load listening port; the load balancer also includes a scanning listening port, and the scanning listening port is created by the management server controlling the load balancer; so that the scanning engine uses the load listening port to establish a communication connection with the scanning listening port of the load balancer; The step of sending a scanning instruction to the scanning engine through the load balancer includes: Sending a scanning instruction to a receiving port of the load balancer so that the load balancer sends the scanning instruction to the scanning engine; the receiving port is a communication port of the load balancer corresponding to the entry IP address and the IP address of the security detection terminal; The receiving scanning engine reports the security scanning result data through the load balancer, including: Receive security scan result data sent through the load balancer sending port; the sending port is the communication port of the load balancer corresponding to the exit IP address and the IP address of the security detection terminal; the security scan result data is sent to the load balancer after the scanning engine performs a security scan according to the scanning instruction.

5. The method according to claim 4, characterized in that The scanning instruction includes the identifier of the service to be scanned and / or the security scanning type.

6. A virtual private cloud security detection device, characterized in that: Applied to a scanning engine, the scanning engine is communicatively connected to at least one service corresponding cluster in a virtual private cloud, a load balancer is also deployed in the virtual private cloud, the load balancer is communicatively connected to at least one service corresponding cluster and the scanning engine, the load balancer is communicatively connected to a security detection terminal, and the device includes: A receiving module, used for receiving a scanning instruction sent by a security detection terminal through a load balancer; The scanning module is used to perform security scans on the clusters corresponding to each service in the virtual private cloud according to the scanning instructions to obtain security scan result data; A sending module, used to send the security scan result data to the security detection terminal through the load balancer, so that the security detection terminal generates the security detection results of the clusters corresponding to each service in the virtual private cloud according to the security scan result data; The virtual private cloud security detection device also includes: a creation module; The creation module is used to receive a port creation instruction sent by the management server, and the port creation instruction is used to instruct the scanning engine to create a load listening port; the load balancer also includes a scanning listening port, and the scanning listening port is created by the management server controlling the load balancer; the load listening port is used to establish a communication connection with the scanning listening port of the load balancer; The load balancer includes an ingress IP address and an egress IP address; The entry IP address has a corresponding receiving port, and the receiving port is a communication port of the load balancer corresponding to the entry IP address and the security detection terminal IP address; The egress IP address has a corresponding sending port; the sending port is a communication port of the load balancer corresponding to the egress IP address and the IP address of the security detection terminal; The ingress IP address, receiving port, and sending port are created by the virtual private cloud management server controlling the load balancer; The load balancer is connected to the safety detection terminal through the receiving port and the sending port respectively.

7. A virtual private cloud security detection device, characterized in that: Applied to security detection terminals, including: A sending module, used for sending a scanning instruction to a scanning engine through a load balancer, so that the scanning engine performs a security scan on the clusters corresponding to each service in the virtual private cloud according to the scanning instruction; the scanning engine and the load balancer are deployed in the virtual private cloud, the scanning engine is communicatively connected with at least one cluster corresponding to a service in the virtual private cloud, the load balancer is communicatively connected with at least one cluster corresponding to a service and the scanning engine, and the load balancer is communicatively connected with a security detection terminal; A receiving module, used for receiving security scanning result data sent by the scanning engine through the load balancer; A generation module, used to generate security detection results of clusters corresponding to each service in the virtual private cloud according to the security scanning result data; The sending module is further used to send a port creation instruction to the scanning engine before sending a scanning instruction to the scanning engine through the load balancer, wherein the port creation instruction is used to instruct the scanning engine to create a load listening port; the load balancer also includes a scanning listening port, and the scanning listening port is created by the management server controlling the load balancer; so that the scanning engine uses the load listening port to establish a communication connection with the scanning listening port of the load balancer; The sending module is specifically used to send a scanning instruction to the receiving port of the load balancer, so that the load balancer sends the scanning instruction to the scanning engine; the receiving port is the communication port of the load balancer corresponding to the entry IP address and the IP address of the security detection terminal; The receiving module is specifically used to receive security scan result data sent through the load balancer sending port; the sending port is the communication port of the load balancer corresponding to the exit IP address and the IP address of the security detection terminal; the security scan result data is sent to the load balancer after the scanning engine performs a security scan according to the scanning instruction.

8. An electronic device, characterized in that: include: A processor, and a memory and a transceiver communicatively connected to the processor; The memory stores computer-executable instructions; the transceiver is used to send and receive data; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1-3 or 4-5.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1-3 or 4-5 when executed by a processor.