Virtual Network Isolation: Are We There Yet?

Virtual Network Isolation: Are We There Yet?

Virtual Network Isolation: Are We There Yet? Kashyap Thimmaraju Gábor Rétvári Stefan Schmid∗y Security in Telecommunications MTA–BME Information Systems Faculty of Computer Science TU Berlin Research Group University of Vienna Berlin, Germany Budapest, Hungary Vienna, Austria kash@sect:tu-berlin:de retvari@tmit:bmu:hu schmiste@gmail:com ABSTRACT switch), the former is commonly known as a virtual switch, and is While multi-tenant cloud computing provides great benefits in the subject of this paper. In this setup, the vSwitch is present in the terms of resource sharing, it introduces a new security landscape virtualization layer of the (edge) server. It interconnects the virtual and requires strong network isolation guarantees between the ten- machines (VMs) provisioned at the server and provides isolation ants. Such network isolation is typically implemented using network between tenants’ virtual networks. Connectivity across servers is virtualization: Virtual switches residing in the virtualization layer achieved by establishing an “overlay” network using a tunneling enforce isolation, e.g., via tunnel protocols and per-tenant flow rules. protocol, e.g., VXLAN, on top of the underlying network. The design of such switches is a very active topic: Since 2009 alone, Due to the relevance and wide deployment of virtualization, the at least 22 different designs have been introduced. Our systematic design of vSwitches is a very active topic, both in academia and analysis of 22 virtual switches uncovers 4 security weaknesses: Co- industry. Interestingly, however, we find that current research re- location, single point of failure, privileged packet processing and volves mainly around performance and programmability. The secu- manual packet parsing. An attacker can easily undermine network rity requirements and implications of vSwitches are less understood. isolation by exploiting those weaknesses. Hence, we introduce 3 This is worrisome as it has recently been shown that vSwitches secure design principles to build a resilient virtual switch, thereby potentially open a large attack surface, which can be exploited by offering strong virtual network isolation. low-resource adversaries to launch large-scale attacks [33, 34]. By co-locating the vSwitch with the virtualization layer, and exploit- CCS CONCEPTS ing packet parsing vulnerabilities, an attacker can easily propagate a worm from a VM to compromise an entire cloud setup such as • Security and privacy → Network security; Distributed sys- OpenStack. Thereby violating network isolation among tenants. tems security; • Networks → Network components; Network Such attacks and the poorly charted security landscape in the architectures; • Hardware → Networking hardware; literature raise the concern on the security of existing vSwitches KEYWORDS and their designs. Clearly, while performance and flexibility are also important dimensions, we in this paper, take the position that it is Network Isolation; Network Virtualization; Data Plane Security; time to make security a first class citizen in the design of vSwitches. Packet Parsing; Virtual Switches; Open vSwitch; Cloud Security; SDN; NFV; Smart NIC; SR-IOV; Co-location; Disaggregation 1.1 State-of-the-Art and Challenges 1 INTRODUCTION Let us quickly revisit the state-of-the-art designs and their short- Multi-tenant Infrastructure-as-a-Service (IaaS) cloud providers typ- comings. A high-level illustration of an existing vSwitch design ically rely on virtualization techniques to isolate tenants from one (Open vSwitch) is shown on the left in Figure 1. The salient aspects another. Virtual switches are popularly used by IaaS cloud providers here are co-location, single vSwitch, privileged packet processing and to isolate tenant networks. This is critical, as network traffic from complex protocol processing. The vSwitch is usually co-located with one tenant’s network must not interfere with another tenant’s the virtualization layer. We argue that this increases the trusted network. computing base (TCB) of the server, as vSwitches can be tens of Broadly speaking, virtual switch (vSwitch) functionality can thousands of lines of code. Next, only one vSwitch for all the ten- either be present in the server or the first-hop switch (e.g., ToR ants is a single point of failure. The problem is further exacerbated as the virtual switch functionality is spread across the Host OS and ∗ Also with, Internet Network Architectures, TU Berlin. hardware, e.g., user-space and kernel-space, which rely on mul- yAlso with, Dept. of Computer Science, Aalborg University. tiple manually implemented parsers for an increasing number of Permission to make digital or hard copies of all or part of this work for personal or network protocols [34]. classroom use is granted without fee provided that copies are not made or distributed The ongoing deployments of so-called smart NICs [10, 17, 21]– for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the NICs that run multi-core ARM processors with a Linux OS and author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or Open vSwitch–address the problem of co-location. Consolidating republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]. the vSwitch functionality into the NIC improves the security of the SecSoN’18, August 24, 2018, Budapest, Hungary server as it reduces the trusted computing base (TCB) of the Host © 2018 Copyright held by the owner/author(s). Publication rights licensed to the OS. Yet, the motivation for such a NIC, is one of performance, by Association for Computing Machinery. running the vSwitch on the NIC’s CPUs, the server’s CPU cores ACM ISBN 978-1-4503-5912-2/18/08...$15.00 https://doi:org/10:1145/3229616:3229618 spend fewer cycles on network virtualization. However, the vSwitch VM VM VM VM VM VM VMs vSwitch UDP Eth IP User User Virtual TCP Kernel Kernel Switch IP Eth Virt. layer Virt. layer SR-IOV NIC Existing vSwitch design Our vSwitch design Figure 1: A high-level comparison of existing vSwitch designs (left) and our design (right). Our design leverages hardware virtualization such as SR-IOV, disaggregates the vSwitch from the virt. layer, isolates vSwitches for tenants, limits packet processing to user-space and implements minimum protocol parsing (shown as different shaped sprockets). in the smart NIC remains co-located with its OS and has the same high performance. Additionally, the hardware and software require- weaknesses described in the previous paragraph. ments for our proposed design are affordably satisfied. Several servers already support Single Root I/O Virtualization (SR-IOV), 1.2 Vision and Position Input Output Memory Management Unit (IOMMU) and Alternative Routing ID Interpretation (ARI); OSes have drivers for SR-IOV NICs Clearly, a key challenge in designing more secure vSwitches lies and user-space packet processing (DPDK libraries). in balancing the tension between high performance and strong By adopting our system, cloud providers can reap trust benefits. security. In particular, we in this paper advocate for designs that are Firstly, cloud providers can trust that their management vSwitch based on sound security principles [27] and offer high performance. will be isolated even when a tenant’s vSwitch is compromised. A high-level design that addresses the key weaknesses of existing Second, the cloud provider can offer tenants increased levels of vSwitches (which we highlighted previously) is shown on the right isolation for their networks at a premium rate or to comply with half of Figure 1. The design is based on the following secure design regulations, e.g., HIPPA. Hospitals or health care providers can use principles and enables secure network virtualization: a cloud service where they can trust their networks to be isolated. • Disaggregation: By separating the vSwitch from the virtu- alization layer and placing it into a guest VM (vSwitch VM), we eliminate the issue of co-location and more importantly 2 SECURITY LANDSCAPE OF TODAY’S reduce the TCB. Furthermore, by creating vSwitch VMs on VSWITCHES a per-tenant, network slice or class-of-service basis we can Research and development of vSwitches have advanced consider- strengthen isolation and avoid a single point of failure (single ably since 2009. A non-exhaustive list of commercial, open-source vSwitch). and academic vSwitches is tabulated in Table 1. In total 22 vSwitches • User-space packet processing: By leveraging hardware are shown along with their emphasis, e.g., flexibility, performance features, e.g., SR-IOV to deliver packets to a guest VM, with or control. The table also depicts whether the vSwitch is co-located user-space packet processing libraries, e.g., DPDK [26], to with the virtualization layer, processes packets in kernel and/or process packets fast in user-space only, we adopt the princi- user-space, and supports extended parsing via a unified packet ple of least privilege and reduce the impact of a compromise. parser [34]. For example, OvS is co-located with the Host OS, uses • Limited protocol parsing: By including the minimum re- a kernel- and user-space packet processor and, supports extended quired protocol parsing code we can reduce parsing vulner- parsing via a unified packet parser. abilities, e.g., buffer-overflows, out-of-bounds reads, integer From the emphasis column, we observe that performance, flexibil- underflows, etc. from occurring. This reduces the TCBand ity, programmability and centralized control are the key drivers for the attack surface. vSwitch research and development. There exist only two vSwitches Such a design firstly reduces the impact of a compromised with an emphasis on security, namely the research prototype by vSwitch on the server, thereby maintaining system isolation. Sec- Jin et al. [14] and sv3 [31] by Stecklina. The design by Jin et al. ad- ondly, multiple vSwitch VMs maintain network isolation even when dresses the vulnerability of co-location by placing the vSwitch in a a particular tenant’s vSwitch VM is compromised.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    6 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us