Novel KVM cloud host micro-isolation method
Through the combination of virtual machine kernel micro-isolation module and para-virtualization channel based on the Netfilter framework, the security risks and misconfiguration problems in cloud host micro-isolation technology are solved, high-priority network policy configuration and rapid recovery are achieved, ensuring The stability and security of cloud hosting.
Patent Information
- Application Number
- CN202410892258.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-04
AI Technical Summary
Existing cloud host micro-isolation technology has security risks and misconfiguration leading to cloud host disconnection. In particular, application layer network configuration tools such as iptables are easily modified when they have root permissions, and tenant network interaction configurations are prone to misconfiguration, resulting in Recovery is difficult.
The virtual machine kernel micro-isolation module based on the Netfilter framework is used for packet interception and filtering, and a communication channel is established with the host back-end processing module through a para-virtualization channel to receive the micro-isolation policy issued by the cloud host micro-isolation management platform to ensure the policy The priority is higher than the application layer configuration, and configuration data is exchanged through VirtIO devices to avoid tenant network usage.
It realizes the kernel layer configuration capability of the virtual machine network, avoids security control failures caused by malicious or misconfiguration at the application layer, ensures the stability and security of the cloud host, and can quickly repair policy configuration errors through paravirtualization channels. , to prevent the cloud host from losing contact.
Smart Images

Figure CN118740640A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud security technology, and in particular to a novel KVM cloud host micro-isolation method. Background Art
[0002] Cloud host micro-isolation technology is a technology for managing and controlling cloud host networks, focusing on the security of east-west traffic, which refers to traffic between different hosts in the same network. In modern network environments, east-west threats and attack risks are very important because malicious behavior usually occurs within the network, not just from external networks. The main implementation method of existing products is to configure through the Linux system's iptables or other application layer network tools. This method has the following disadvantages:
[0003] 1) Application layer network configuration tools such as iptables, when with root privileges, users or any other applications can modify policies, which poses a security risk;
[0004] 2) Existing solutions often use tenant network interaction configuration data. When configuring network policies, incorrect configuration may occur, causing the cloud host to lose connection and difficult to recover.
[0005] In view of the shortcomings of the existing technology, a new KVM cloud host micro-isolation method is proposed. Summary of the invention
[0006] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.
[0007] The present invention has been proposed in view of the above-mentioned problems.
[0008] In order to solve the above technical problems, the present invention provides the following technical solutions: a novel KVM cloud host micro-isolation method, comprising:
[0009] S1, based on the Netfilter framework, implements the virtual machine kernel micro-isolation module, performs packet interception and filtering on the five chains of Netfilter, and makes the policy priority higher than other methods or application layer configuration policies. On the other hand, it establishes a communication channel with the host backend processing module, receives the micro-isolation policy issued by the cloud host micro-isolation management platform, and reads all Netfilter configurations configured in the kernel, and reports to the cloud host micro-isolation management platform;
[0010] S2, a host backend processing module that implements a paravirtualized channel. The host backend processing module receives the reported virtual machine network configuration data and sends the configuration data issued by the cloud host micro-isolation management platform to the virtual machine kernel micro-isolation module.
[0011] S3, develops a cloud host micro-isolation management platform to provide cloud users with the ability to configure and manage network policy configuration interactions for cloud hosts.
[0012] As a preferred solution of a novel KVM cloud host micro-isolation method of the present invention, wherein: the five chains of Netfilter described in S1 specifically include PREROUTING, INPUT, FORWARD, OUPUT and POSTROUTING.
[0013] As a preferred solution of a novel KVM cloud host micro-isolation method of the present invention, wherein: the strategy described in S1 that makes the policy priority higher than other methods or application layer configurations is specifically implemented through the underlying control of the kernel policy.
[0014] As a preferred solution of a novel KVM cloud host micro-isolation method of the present invention, wherein: the establishment of a communication channel in S1 is specifically the establishment of a data team using a semi-virtualized VirtIO device of QEMU-KVM.
[0015] As a preferred solution of a novel KVM cloud host micro-isolation method of the present invention, wherein: all Netfilter configurations described in S1 include other network configurations.
[0016] As a preferred solution of a new KVM cloud host micro-isolation method of the present invention, the host back-end processing module for implementing the semi-virtualized channel in S2 is specifically: a VirtIO semi-virtualized device simulation program is developed based on QEMU-KVM virtualization technology and runs as a part of the virtual machine program at the back end of the host.
[0017] As a preferred solution of a novel KVM cloud host micro-isolation method of the present invention, wherein: the semi-virtualized device in S2 can specifically be a character device.
[0018] As a preferred solution of a novel KVM cloud host micro-isolation method of the present invention, wherein: the received reported virtual machine network configuration data described in S2 is specifically received through the uplink queue of VirtIO.
[0019] As a preferred solution of a novel KVM cloud host micro-isolation method of the present invention, wherein: the interaction capability described in S3 specifically includes that cloud users can view and modify specific network policy configurations.
[0020] As a preferred solution of a new KVM cloud host micro-isolation method of the present invention, the interactive capability described in S3 also includes that cloud users can define automated response strategies and automatically issue micro-isolation management and control configurations based on specific characteristics of security incidents.
[0021] Beneficial effects of the present invention:
[0022] 1. Based on paravirtualization technology and kernel Netfilter framework Hook technology, the kernel layer configuration capability of the virtual machine network is realized. At the same time, through policy priority control, the security control failure caused by malicious or incorrect configuration at the application layer is avoided.
[0023] 2. Based on the paravirtualization channel, configuration data interaction is achieved through the host's processing backend and the cloud host micro-isolation management platform. The host network is used instead of the tenant network. When the policy configuration is wrong, it can be repaired through this configuration channel to avoid the cloud host loss of connection due to network policy configuration errors. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
[0025] Figure 1 This is an overall architecture diagram of a novel KVM cloud host micro-isolation method of the present invention.
[0026] Figure 2 This is a data flow chart of a novel KVM cloud host micro-isolation method of the present invention. DETAILED DESCRIPTION
[0027] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0028] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0029] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0030] Secondly, the present invention is described in detail with reference to the schematic diagram. When describing the embodiments of the present invention in detail, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.
[0031] Example 1
[0032] A novel KVM cloud host micro-isolation method, comprising:
[0033] S1, based on the Netfilter framework, implements the virtual machine kernel micro-isolation module, performs packet interception and filtering on the five chains of Netfilter, including PREROUTING, INPUT, FORWARD, OUPUT and POSTROUTING, and makes the policy priority higher than other methods or application layer configuration policies, which is implemented by the underlying control of the kernel policy. On the other hand, the data team of the semi-virtualized VirtIO device of QEMU-KVM is used to establish a communication channel with the host backend processing module, receive the micro-isolation policy issued by the cloud host micro-isolation management platform, and read all Netfilter configurations configured in the kernel, including other network configurations, and report them to the cloud host micro-isolation management platform;
[0034] S2, implements the host backend processing module of the paravirtualized channel, specifically: develops and implements the VirtIO paravirtualized device simulation program based on QEMU-KVM virtualization technology, and runs it as part of the virtual machine program at the host backend; the host backend processing module receives the reported virtual machine network configuration data through the VirtIO uplink queue, and sends the configuration data issued by the cloud host micro-isolation management platform to the virtual machine kernel micro-isolation module;
[0035] S3, develops a cloud host micro-isolation management platform to provide cloud users with the ability to configure and manage cloud host network policy configuration interactions. Cloud users can view and modify specific network policy configurations, or define automated response strategies, and automatically issue micro-isolation management and control configurations based on the specific characteristics of security incidents.
[0036] Example 2
[0037] Reference Figure 1, which is the second embodiment of the present invention. This embodiment is different from the first embodiment in that it provides a specific implementation method:
[0038] Step 1: Deploy the cloud host micro-isolation management platform on the management physical machine B of the cloud cluster;
[0039] Step 2: Install the QEMU virtual machine program including the paravirtualized device simulation code in Example 1 on a physical machine in the cloud cluster;
[0040] Step 3: In the virtual machine configuration, add the relevant configuration of the paravirtualized device in Example 1;
[0041] Step 4: The virtual machine base image used includes the paravirtualized device driver in the first embodiment and configures the startup loading;
[0042] Step 5: Start virtual machine A in the physical machine, and the virtual machine kernel micro-isolation module will automatically take effect, and perform network policy management operations.
[0043] 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 preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A novel KVM cloud host micro-isolation method, characterized in that: include: S1, based on the Netfilter framework, implements the virtual machine kernel micro-isolation module, performs packet interception and filtering on the five chains of Netfilter, and makes the policy priority higher than other methods or application layer configuration policies. On the other hand, it establishes a communication channel with the host backend processing module, receives the micro-isolation policy issued by the cloud host micro-isolation management platform, and reads all Netfilter configurations configured in the kernel, and reports to the cloud host micro-isolation management platform; S2, a host backend processing module that implements a paravirtualized channel. The host backend processing module receives the reported virtual machine network configuration data and sends the configuration data issued by the cloud host micro-isolation management platform to the virtual machine kernel micro-isolation module. S3, develops a cloud host micro-isolation management platform to provide cloud users with the ability to configure and manage network policy configuration interactions for cloud hosts.
2. According to the novel KVM cloud host micro-isolation method of claim 1, it is characterized by: The five chains of Netfilter described in S1 specifically include PREROUTING, INPUT, FORWARD, OUPUT and POSTROUTING.
3. A novel KVM cloud host micro-isolation method according to claim 2, characterized in that: The strategy described in S1 that makes the policy priority higher than other methods or application layer configurations is specifically implemented through the underlying control of the kernel policy.
4. A novel KVM cloud host micro-isolation method according to claim 3, characterized in that: The establishment of the communication channel in S1 is specifically the establishment of a data team using the paravirtualized VirtIO device of QEMU-KVM.
5. According to the novel KVM cloud host micro-isolation method of claim 4, it is characterized by: The entire Netfilter configuration described in S1 includes other network configurations.
6. A novel KVM cloud host micro-isolation method according to claim 5, characterized in that: The host machine backend processing module for implementing the paravirtualized channel described in S2 is specifically: developing and implementing a VirtIO paravirtualized device simulation program based on QEMU-KVM virtualization technology, and running it as a part of the virtual machine program at the host machine backend.
7. A novel KVM cloud host micro-isolation method according to claim 6, characterized in that: The semi-virtualized device in S2 may specifically be a character device.
8. A novel KVM cloud host micro-isolation method according to claim 7, characterized in that: The received and reported virtual machine network configuration data in S2 is specifically received through the upstream queue of VirtIO.
9. A novel KVM cloud host micro-isolation method according to claim 8, characterized in that: The interactive capability described in S3 specifically includes that cloud users can view and modify specific network policy configurations.
10. A novel KVM cloud host micro-isolation method according to claim 9, characterized in that: The interactive capabilities described in S3 also include cloud users being able to define automated response strategies and automatically issue micro-isolation management and control configurations based on the specific characteristics of security incidents.
Citation Information
Patent Citations
Data packet redirecting device as well as safety protection method and system for virtual machine
CN104506548A
Network service isolation design based on KVM virtualization
CN108875360A
Method and system for achieving network micro-isolation in OpenStack environment
CN109150860A
Micro-isolation device and method under cloud computing platform
CN113141356A
Linux host network communication security protection method and device
CN115174269A
