Virtualization allows the abstraction and pooling of hardware resources to support virtual machines in a Software-Defined Networking (SDN) environment, such as a Software-Defined Data Center (SDDC). For example, through server virtualization, virtualization computing instances such as virtual machines (VMs) running different operating systems may be supported by the same physical machine (e.g., referred to as a “host”). Each VM is generally provisioned with virtual resources to run an operating system and applications. The virtual resources may include central processing unit (CPU) resources, memory resources, storage resources, network resources, etc. In practice, packet communication among VMs is susceptible to security attacks by malicious third parties. It is therefore desirable to implement intrusion detection to strengthen network security.
According to examples of the present disclosure, intrusion detection with adaptive pattern selection may be implemented more efficiently to strengthen network security. One example may involve a computer system (e.g., 101 in
In response to determination that the packet is matchable to the particular pattern, a second matching operation may be performed to determine whether the packet is matchable to a particular signature associated with the particular pattern. The computer system may update the metric information associated with the particular pattern based on the first matching operation and/or the second matching operation. Adaptive pattern selection (see 184/194 in
In the following detailed description, reference is made to the accompanying drawings, which form a part hereof. In the drawings, similar symbols typically identify similar components, unless context dictates otherwise. The illustrative embodiments described in the detailed description, drawings, and claims are not meant to be limiting. Other embodiments may be utilized, and other changes may be made, without departing from the spirit or scope of the subject matter presented here. It will be readily understood that the aspects of the present disclosure, as generally described herein, and illustrated in the drawings, can be arranged, substituted, combined, and designed in a wide variety of different configurations, all of which are explicitly contemplated herein. Although the terms “first” and “second” are used to describe various elements, these elements should not be limited by these terms. These terms are used to distinguish one element from another. For example, a first element may be referred to as a second element, and vice versa.
Referring first to
Referring also to
Hosts 110A-C may each include any suitable hardware and virtualization software (e.g., hypervisors 112A-C) to support various VMs 131-136. At first site 201, hosts 110A-B may be connected with EDGE1 150 via any suitable physical network 203. At second site 202, host-C 110C may be connected with EDGE2 160 via physical network 204. As such, a VM at first site 201 (e.g., VM1 131) may communicate with another VM (e.g., VM3 133) at second site 202 via EDGE1 150 and EDGE2 160. For each host 110A/110B/110C, hypervisor 112A/112B/112C maintains a mapping between underlying hardware 111A/111B/111C and virtual resources allocated to the VMs.
Hardware 111A/111B/111C includes various physical components, such as central processor(s) or processor(s) 120A/120B/120C; memory 122A/122B/122C; physical network interface controllers (NICs) 124A/124B/124C; and storage disk(s) 128A/128B/128C accessible via storage controller(s) 126A/126B/126C, etc. Virtual resources are allocated to each virtual machine to support a guest operating system (OS) and applications, such as virtual central processor (CPU), guest physical memory, virtual disk(s) and virtual network interface controller (VNIC). Hypervisor 112A/112B/112C further implements virtual switch 114A/114B/114C and logical distributed router (DR) instance 116A/116B/116C to handle egress packets from, and ingress packets to, respective VMs.
In practice, logical switches and logical distributed routers may be implemented in a distributed manner and can span multiple hosts 110A-C to connect the VMs. For example, a logical switch may be configured to provide logical layer-2 connectivity to VMs supported by different hosts. The logical switch may be implemented collectively by virtual switches 114A-C of respective hosts 110A-C and represented internally using forwarding tables (e.g., 115A-C) at the respective virtual switches 114A-C. Further, logical distributed routers that provide logical layer-3 connectivity may be implemented collectively by distributed router (DR) instances (e.g., 116A-C) of respective hosts 110A-C and represented internally using routing tables (e.g., 117A-C) at the respective DR instances. Routing tables 117A-C may be each include entries that collectively implement the respective logical distributed routers.
VMs 131-136 may send and receive packets via respective logical ports 141-146. As used herein, the term “logical port” may refer generally to a port on a logical switch to which a virtualized computing instance is connected. A “logical switch” may refer generally to an SDN construct that is collectively implemented by virtual switches of hosts 110A-C, whereas a “virtual switch” (e.g., 114A-C) may refer generally to a software switch or software implementation of a physical switch. In practice, there is usually a one-to-one mapping between a logical port on a logical switch and a virtual port on a virtual switch. However, the mapping may change in some scenarios, such as when the logical port is mapped to a different virtual port on a different virtual switch after migration of the corresponding virtualized computing instance (e.g., when the source and destination hosts do not have a distributed virtual switch spanning them).
Although examples of the present disclosure refer to virtual machines, it should be understood that a “virtual machine” running on a host is merely one example of a “virtualized computing instance” or “workload.” A virtualized computing instance may represent an addressable data compute node or isolated user space instance. In practice, any suitable technology may be used to provide isolated user space instances, not just hardware virtualization. Other virtualized computing instances may include containers (e.g., running within a VM or on top of a host operating system without the need for a hypervisor or separate operating system or implemented as an operating system level virtualization), virtual private servers, client computers, etc. Such container technology is available from, among others, Docker, Inc. The virtual machines may also be complete computational environments, containing virtual equivalents of the hardware and software components of a physical computing system.
As used herein, the term “hypervisor” may refer generally to a software layer or component that supports the execution of multiple virtualized computing instances, including system-level software in guest virtual machines that supports namespace containers such as Docker, etc. Hypervisors 114A-C may each implement any suitable virtualization technology, such as VMware ESX® or ESXi™(available from VMware, Inc.), Kernel-based Virtual Machine (KVM), etc. The term “packet” may refer generally to a group of bits that can be transported together from a source to a destination, such as message, segment, datagram, etc. The term “traffic” may refer generally to a flow of packets. The term “layer 2” may refer generally to a Media Access Control (MAC) layer; “layer 3” to a network or IP layer; and “layer-4” to a transport layer (e.g., using transmission control protocol (TCP) or user datagram protocol (UDP)) in the Open System Interconnection (OSI) model, although the concepts described herein may be used with other networking models.
In practice, tunnel 161 may be established between EDGE1 150 and EDGE2 160 using any suitable tunneling protocol. For example, a Virtual Private Network (VPN) based on Internet Protocol Security (IPSec) may bridge traffic in a hybrid cloud environment between first site 201 (e.g., on-prem data center) and second site 202 (e.g., public cloud environment). In practice, IPSec is a secure network protocol suite that provides data authentication, integrity and confidentiality between a pair of entities (e.g., data centers, gateways) across an IP-based network. One example in the IPSec protocol suite is Encapsulating Security Payload (ESP), which provides origin authenticity using source authentication, data integrity and confidentiality through encryption protection for IP packets. Another example protocol is Authentication Header (AH) that also ensures source authentication and data integrity.
One of the challenges in SDN environment 100 is improving the overall data center security. To protect VMs 131-136 against security threats caused by malicious packets, computer system 101 may be configured to support an intrusion detection system (IDS) engine 102 to perform, inter alia, signature-based IDS. Malicious packets may be detected by matching packets against a set of signatures associated with security attacks. In practice, however, such matching operations are generally time-consuming and resource-intensive in terms of CPU time and power. As new security attacks are discovered, the number of signatures and associated patterns to be matched increases, which exacerbates the resource consumption issue. It is therefore desirable to improve the efficiency of intrusion detection.
According to examples of the present disclosure, intrusion detection with adaptive pattern selection may be implemented to improve intrusion detection efficiency and strengthen data center security in SDN environment 100. Instead of matching each and every packet to a set of multiple (N) patterns associated with respective multiple signatures, matching operations may also be performed using a subset with size M<N patterns to improve efficiency. The subset may be selected from the set based on metric information associated with the multiple patterns. As the metric information is updated based on results of real-time matching operations, adaptive pattern selection may be performed to update the subset dynamically.
In the following, any suitable computer system 101 with IDS engine 102 may be deployed to implement examples of the present disclosure, such as EDGE1 150 with IDS engine 151, host 110A/110B/110C with IDS engine 118A/118B/118C, EDGE2 160 with IDS engine (not shown for simplicity), any computer system that is deployed along a datapath between a source endpoint and a destination endpoint, etc. Computer system 101 may further include datastore(s) to store the pattern set and subset. In more detail,
At 310 in
As used herein, the term “pattern” may refer generally to a feature or characteristic associated with a signature. Using signature-based intrusion detection, a signature may be defined or expressed using a signature rule according to any suitable syntax, such as based on Snort, Suricata, etc. In this case, a pattern may be expressed using any suitable string that is detectable from a malicious packet, such as a sequence of byte(s) and/or text character(s), etc. Some examples will be discussed using
At 320 and 330 in
Depending on the desired implementation, set 103 and subset 104 may include “fast patterns” to improve matching efficiency. In the example in
In another example in
At 360 in
For example in
At 370 in
Using examples of the present disclosure, subset 104 may be updated based on metric information that is dynamically updated based on results of matching operations and the nature of network traffic traversing computer system 101. Over time, the most relevant/effective patterns may be included in subset 104 to facilitate faster matching and improve the efficiency of IDS engine 102. Further, examples of the present disclosure may be implemented to ensure that IDS engine 102 is not bogged down by some malicious actors, such as those who try to craft traffic to overwhelm IDS engine 102 by reverse engineering and crafting traffic that causes IDS engine 102 to spend more time processing flows that are inconsequential. In practice, any suitable safeguard(s) may be implemented to stop or reduce the frequency of such alerts, such as thresholding the number of alerts generated within a period of time, etc. Various examples will be discussed below using
At 410 in
For example, at 510 in
The action specified by each rule dictates what the rule does once all patterns specified by the rule are met (also known as rule conditions). For example, action=“alert” may be defined to generate an alert using any suitable alert method and log information identifying the offending packet. Other example actions may include log (i.e., only logs the offending packet), pass (i.e., ignores the packet) and drop (i.e., drops the offending packet and logs it).
At 420 in
In practice, fast pattern identification may be performed statically or dynamically using any suitable algorithm(s). Using a static approach for example, fast pattern identification may involve parsing each signature rule to identify a “fast_pattern” keyword. Content of the “fast_pattern” keyword is usually defined by signature definition/rule writer(s), etc. For example in
One purpose of fast pattern identification is to improve matching efficiency and reduce the number of signatures that need be evaluated in full, especially for a large signature set (e.g., N=15,000). Instead of matching a packet to multiple patterns of each signature in signature set 510, a multi-stage matching process may be performed to improve efficiency. In this case, a first matching operation may be performed to determine whether a packet is matchable to the content of a “fast_pattern” keyword (denoted as P1 for S1). If yes (i.e., fast pattern matched), a second matching operation may be performed to determine whether the packet is matchable to additional patterns of a signature (e.g., S1) based on content of other keywords. Otherwise (i.e., fast pattern not matched), the second matching operation may be skipped. A signature hit only occurs when all patterns of a signature are matched.
At 430 in
As pattern matching is performed to match packets to fast pattern(s) and associated signature(s) in set 530 or subset 560, metric information associated with the fast pattern(s) may be updated. One example to calculate or update an entropy score (Ei) is expressed below:
In the above, denominator x=number of times a particular signature (Si) is shortlisted during a first matching operation (e.g., fast pattern matching) for a second matching operation (e.g., slow-path matching). The particular signature (Si) may be shortlisted in response to matching a packet with associated fast pattern (Pi) during the first matching operation. Numerator y=number of times the particular signature (Si) is found to be a hit during slow-path matching.
At 440-495 in
Blocks 440-495 will be discussed further below using
At 610-620 in
In practice, fast pattern matching may be performed using subset 622 or set 621. For example, any suitable sampling rate (denoted γ) may be set such that packets are matched to subset 622 at a rate of γ, or set 621 at a rate of (1−γ). Using γ=0.7 for example, fast pattern matching will be performed using subset 622 for 70% of packets, while set 621 is used for the remaining (i.e., 30%). Ideally, in a stable system, subset 622 would be substantially stable with relatively few signature/pattern addition(s) or deletion(s), and most packets would be matched to subset 622. Although it is more efficient to use subset 622 because of the fewer patterns, pattern matching using set 621 allows metric information associated with other patterns (i.e., those not in subset 622) to be updated over time according to changing traffic patterns in SDN environment 100. In practice, the sampling rate (γ) may be adjusted automatically by the IDS engine between a minimum value (e.g., 0.5) and a maximum value (e.g., 0.9) based on any suitable factor(s), such as how stable subset 622 is over some unit of time or amount of traffic processed, etc. In the example in
Depending on the desired implementation, fast pattern matching may involve inspecting any suitable packet flow information associated the packet, such as header and/or payload information. Example packet flow information may include tuple information specified by the packet such as source IP address, destination IP address, source port number, destination port number, protocol, or any combination thereof. Alternatively or additionally, fast pattern matching may involve inspecting context information associated with the packet, such as information associated with an application, process or VM from which the packet originates; information derivable from the packet; information associated with client device operated by a user, etc.
At 630-640 in
At 650 in
At 660-670 in
At 680 in
At 690-692 in
At 710-720 in
At 730-740 in
At 750 in
At 760-770 in
At 780 in
At 790-792 in
Although discussed using VMs 131-136, it should be understood that intrusion detection with adaptive pattern selection may be performed for other virtualized computing instances, such as containers, etc. The term “container” (also known as “container instance”) is used generally to describe an application that is encapsulated with all its dependencies (e.g., binaries, libraries, etc.). For example, multiple containers may be executed as isolated processes inside VM1 131, where a different VNIC is configured for each container. Each container is “OS-less”, meaning that it does not include any OS that could weigh 11 s of Gigabytes (GB). This makes containers more lightweight, portable, efficient and suitable for delivery into an isolated OS environment. Running containers inside a VM (known as “containers-on-virtual-machine” approach) not only leverages the benefits of container technologies but also that of virtualization technologies.
The above examples can be implemented by hardware (including hardware logic circuitry), software or firmware or a combination thereof. The above examples may be implemented by any suitable computing device, computer system, etc. The computer system may include processor(s), memory unit(s) and physical NIC(s) that may communicate with each other via a communication bus, etc. The computer system may include a non-transitory computer-readable medium having stored thereon instructions or program code that, when executed by the processor, cause the processor to perform processes described herein with reference to
The techniques introduced above can be implemented in special-purpose hardwired circuitry, in software and/or firmware in conjunction with programmable circuitry, or in a combination thereof. Special-purpose hardwired circuitry may be in the form of, for example, one or more application-specific integrated circuits (ASICs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), and others. The term ‘processor’ is to be interpreted broadly to include a processing unit, ASIC, logic unit, or programmable gate array etc.
The foregoing detailed description has set forth various embodiments of the devices and/or processes via the use of block diagrams, flowcharts, and/or examples. Insofar as such block diagrams, flowcharts, and/or examples contain one or more functions and/or operations, it will be understood by those within the art that each function and/or operation within such block diagrams, flowcharts, or examples can be implemented, individually and/or collectively, by a wide range of hardware, software, firmware, or any combination thereof.
Those skilled in the art will recognize that some aspects of the embodiments disclosed herein, in whole or in part, can be equivalently implemented in integrated circuits, as one or more computer programs running on one or more computers (e.g., as one or more programs running on one or more computing systems), as one or more programs running on one or more processors (e.g., as one or more programs running on one or more microprocessors), as firmware, or as virtually any combination thereof, and that designing the circuitry and/or writing the code for the software and or firmware would be well within the skill of one of skill in the art in light of this disclosure.
Software and/or to implement the techniques introduced here may be stored on a non-transitory computer-readable storage medium and may be executed by one or more general-purpose or special-purpose programmable microprocessors. A “computer-readable storage medium”, as the term is used herein, includes any mechanism that provides (i.e., stores and/or transmits) information in a form accessible by a machine (e.g., a computer, network device, personal digital assistant (PDA), mobile device, manufacturing tool, any device with a set of one or more processors, etc.). A computer-readable storage medium may include recordable/non recordable media (e.g., read-only memory (ROM), random access memory (RAM), magnetic disk or optical storage media, flash memory devices, etc.).
The drawings are only illustrations of an example, wherein the units or procedure shown in the drawings are not necessarily essential for implementing the present disclosure. Those skilled in the art will understand that the units in the device in the examples can be arranged in the device in the examples as described or can be alternatively located in one or more devices different from that in the examples. The units in the examples described can be combined into one module or further divided into a plurality of sub-units.