Systems and methods for decrypting network traffic in a virtualized environment
Summary by NHIP
Virtual Machine Traffic Decryption
The system executes an introspection engine outside a virtual machine to identify memory pages changing between handshake and session completion events. A decryption engine then uses content from these identified pages to decrypt intercepted encrypted payloads.
Claim Score by NHIP
Abstract
Described systems and methods enable a decryption of encrypted communication between a client system and a remote party, for applications such as detection and analysis of malicious software, intrusion detection, and surveillance, among others. The client system executes a virtual machine and an introspection engine outside the virtual machine. The introspection engine is configured to identify memory pages whose contents have changed between a first session event (e.g., a ServerHello message) and a second session event (e.g., a ClientFinished message). The respective memory pages are likely to contain encryption key material for the respective communication session. A decryption engine may then attempt to decrypt an encrypted payload of the respective communication session using information derived from the content of the identified memory pages.

Term
10.8 yearsleft in the term
Expires 12 July 2037, including 106 days of term adjustment.
- Priority
- Filed
- Granted
- Today
- Expires
22 claims: 4 independent, 18 dependent
- 1A client system comprising a hardware processor and a memory, the hardware processor configured to execute a virtual machine, an introspection engine, and a network filter, the introspection engine and the network filter executing outside of the virtual machine, wherein:the virtual machine is configured to carry out a communication session with a remote party, the communication session comprising a handshake message followed by an encrypted payload, wherein the handshake message contains an encryption parameter used by the client system to derive an encryption key, and wherein the encrypted payload is encrypted with the encryption key;the network filter controls a network adapter of the client system and is configured to intercept the handshake message and in response, transmit a notification to the introspection engine;and the introspection engine is configured to: infer an occurrence of a first session event of the communication session according to the notification, identify within the memory a target memory page according to whether a content of the target memory page has changed between the occurrence of the first session event and an occurrence of a second session event of the communication session, and in response, transmit the content of the target memory page to a decryption engine configured to decrypt the encrypted payload according to the content.
- 10A server computer system comprising a hardware processor configured to execute a decryption engine configured to carry out decryption procedures for a plurality of client systems, a decryption procedure comprising:receiving an encrypted payload of a communication session carried out between a virtual machine executing on the client system and a remote party;and in response, decrypting the encrypted payload according to the content of the target memory page, wherein the communication session comprises a handshake message followed by the encrypted payload, wherein the handshake message contains an encryption parameter used by the client system to derive an encryption key, wherein the encrypted payload is encrypted with the encryption key, and wherein the client system is configured to execute an introspection engine and a network filter, the introspection engine and the network filter executing outside of the virtual machine, wherein: the network filter controls a network adapter of the client system and is configured to intercept the handshake message and in response, transmit a notification to the introspection engine, and the introspection engine is configured to: infer an occurrence of a first session event of the communication session according to the notification, and identify the target memory page within a memory of the client system according to whether the content of the target memory page has changed between the occurrence of the first session event and an occurrence of a second session event of the communication session.
- 21A non-transitory computer-readable medium storing instructions which, when executed by a hardware processor of a client system further comprising a memory, cause the hardware processor to form an introspection engine and a network filter, the introspection engine and network filter executing outside a virtual machine executing on the client system, wherein:the virtual machine is configured to carry out a communication session with a remote party, the communication session comprising a handshake message followed by an encrypted payload, wherein the handshake message contains an encryption parameter used by the client system to derive an encryption key, and wherein the encrypted payload is encrypted with the encryption key;the network filter controls a network adapter of the client system and is configured to intercept the handshake message and in response, to transmit a notification to the introspection engine;and the introspection engine is configured to: infer an occurrence of a first session event of the communication session according to the notification, identify within the memory a target memory page according to whether a content of the target memory page has changed between the occurrence of the first session event and an occurrence of a second session event of the communication session, and in response, transmit the content of the target memory page to a decryption engine configured to decrypt the encrypted payload according to the content.
- 22Broadest claimClaim Score 47, average(NHIP)A method of decrypting encrypted communications between a client system and a remote party, wherein the client system is configured to execute a virtual machine, wherein:the virtual machine is configured to carry out a communication session with the remote party, the communication session comprising a handshake message followed by an encrypted payload, wherein the handshake message contains an encryption parameter used by the client system to derive an encryption key, and wherein the encrypted payload is encrypted with the encryption key, the method comprising: employing at least one hardware processor of the client system to intercept the handshake message;employing the at least one hardware processor to infer an occurrence of a first session event of the communication session according to the interception;employing the at least one hardware processor to identify within a memory of the client system a target memory page according to whether a content of the target memory page has changed between the occurrence of the first session event and an occurrence of a second session event of the communication session;employing the at least one hardware processor to harvest the encrypted payload;and decrypting the encrypted payload according to the content of the target memory page.
Independent claims4
81 paragraphs in 5 sections, as filed
RELATED APPLICATIONS
0001This application claims the benefit of the filing date of U.S. provisional patent application No. 62/317,804, filed on Apr. 4, 2016, entitled “Systems and Methods for Decrypting Network Traffic in a Virtualized Environment,” the entire contents of which are incorporated by reference herein.
BACKGROUND
0002The invention relates to computer security systems and methods, and in particular to encrypted electronic communication.
0003In the modern digital world, a wide variety of products and services rely on data encryption. Encrypted communications enable, among others, online commerce, online banking, and telephony over data networks such as the Internet. Encryption is also widely used to protect the privacy and personal data of users. In an age of proliferation of interconnected electronic devices (the Internet of Things), reliance on encryption is a strength but also a vulnerability.
0004In recent years, encryption is increasingly being used for malicious purposes, for instance to conceal the activities of malicious software, or to hold a user's valuable data to ransom. One typical example of malicious software activities comprises setting up a network of hijacked computing systems—commonly known as a botnet—and using the respective network to launch a distributed denial of service attack against a target webserver. As part of setting up the botnet, a software agent is infiltrated into each botnet member, using various methods (e.g., direct hacking, phishing, etc.). The agent may then use encryption to inconspicuously communicate with a remote server, for instance to receive the target's network address and/or to coordinate the attack with other botnet members. Various methods to prevent or counteract such malicious activities have been described, but such countermeasures may be undermined by malware's efficient use of encryption.
0005Anti-malware operations are further complicated by the advent of hardware virtualization technology, which enables the creation of simulated computer environments commonly known as virtual machines. Several virtual machines may run simultaneously on the same physical machine, sharing the hardware resources among them, thus reducing investment and operating costs. Each virtual machine may run its own operating system and/or software applications, separately from other virtual machines. Hardware virtualization is deployed for various reasons, for instance to ensure portability of software, or to strengthen security. Other popular applications of hardware virtualization, known under the generic name “cloud computing”, include webserver farms and virtual desktop infrastructure (VDI). In a typical VDI configuration, a software application executes on a first computer system, while the user interacts with the respective application using a second computer system (terminal). A virtual machine running the respective application is instantiated on-demand on the first computer system, which may end up executing hundreds of such VMs for multiple remote users. Due to the steady proliferation of malware, each virtual machine potentially requires protection against malware.
0006Escalating security threats and an increasing demand for virtualization generate a strong interest in developing efficient anti-malware systems and methods designed to address the challenges of hardware virtualization.
SUMMARY
0007According to one aspect, a client system comprises a hardware processor and a memory, the hardware processor configured to execute a virtual machine and an introspection engine. The virtual machine is configured to carry out a communication session with a remote party, the communication session comprising a handshake message followed by an encrypted payload, wherein the handshake message contains an encryption parameter used by the client system to derive an encryption key, and wherein the encrypted payload is encrypted with the encryption key. The introspection engine executes outside the virtual machine and is configured to identify within the memory a target memory page according to whether a content of the target memory page has changed between an occurrence of a first session event of the communication session and an occurrence of a second session event of the communication session. The introspection engine is further configured to transmit the content of the target memory page to a decryption engine configured to decrypt the encrypted payload according to the content.
0008According to another aspect, a server computer system comprises a hardware processor configured to execute a decryption engine configured to carry out decryption procedures for a plurality of client systems. A decryption procedure comprises receiving a content of a target memory page of a client system of the plurality of client systems, receiving an encrypted payload of a communication session carried out between a virtual machine executing on the client system and a remote party, and in response, decrypting the encrypted payload according to the content of the target memory page. The communication session comprises a handshake message followed by the encrypted payload, wherein the handshake message contains an encryption parameter used by the client system to derive an encryption key, and wherein the encrypted payload is encrypted with the encryption key. The client system is configured to execute an introspection engine outside of the virtual machine, the introspection engine configured to identify the target memory page within a memory of the client system according to whether the content of the target memory page has changed between an occurrence of a first session event of the communication session and an occurrence of a second session event of the communication session.
0009According to another aspect, a non-transitory computer-readable medium stores instructions which, when executed by a hardware processor of a client system further comprising a memory, cause the hardware processor to form an introspection engine executing outside a virtual machine executing on the client system. The virtual machine is configured to carry out a communication session with a remote party, the communication session comprising a handshake message followed by an encrypted payload, wherein the handshake message contains an encryption parameter used by the client system to derive an encryption key, and wherein the encrypted payload is encrypted with the encryption key. The introspection engine is configured to identify within the memory a target memory page according to whether a content of the target memory page has changed between an occurrence of a first session event of the communication session and an occurrence of a second session event of the communication session. The introspection engine is further configured to transmit the content of the target memory page to a decryption engine configured to decrypt the encrypted payload according to the content.
0010According to another aspect, a method of decrypting encrypted communications between a client system and a remote party. The client system is configured to execute a virtual machine. The virtual machine is configured to carry out a communication session with the remote party, the communication session comprising a handshake message followed by an encrypted payload, wherein the handshake message contains an encryption parameter used by the client system to derive an encryption key, and wherein the encrypted payload is encrypted with the encryption key. The method comprises employing at least one hardware processor to identify within a memory of the client system a target memory page according to whether a content of the target memory page has changed between an occurrence of a first session event of the communication session and an occurrence of a second session event of the communication session. The method further comprises employing at least one hardware processor to harvest the encrypted payload, and employing at least one hardware processor to decrypt the encrypted payload according to the content of the target memory page.
BRIEF DESCRIPTION OF THE DRAWINGS
The foregoing aspects and advantages of the present invention will become better understood upon reading the following detailed description and upon reference to the drawings where:
<figref idref="DRAWINGS">FIG. 1</figref> illustrates an exemplary configuration wherein client systems collaborate with a security server to decrypt potentially malicious network traffic according to some embodiments of the present invention.
<figref idref="DRAWINGS">FIG. 2</figref>-A illustrates an exemplary hardware configuration of a client system according to some embodiments of the present invention.
<figref idref="DRAWINGS">FIG. 2</figref>-B illustrates an exemplary hardware configuration of a security server according to some embodiments of the present invention.
<figref idref="DRAWINGS">FIG. 3</figref> shows a guest virtual machine (VM) exposed by a hypervisor executing on a client system, and an introspection engine executing outside the guest VM(s) according to some embodiments of the present invention.
<figref idref="DRAWINGS">FIG. 4</figref> shows an exemplary memory address translation in a hardware virtualization configuration as illustrated in <figref idref="DRAWINGS">FIG. 3</figref>.
<figref idref="DRAWINGS">FIG. 5</figref> shows an exemplary sequence of steps carried out by the introspection engine to intercept encrypted traffic going into or out of a guest VM, according to some embodiments of the present invention.
<figref idref="DRAWINGS">FIG. 6</figref> shows an exemplary sequence of steps performed by the introspection engine to obtain an optimized memory snapshot of a guest VMs according to some embodiments of the present invention.
<figref idref="DRAWINGS">FIG. 7</figref> illustrates an exemplary sequence of steps performed by the introspection engine to obtain optimized memory snapshots for multiple concurrent encrypted communication sessions, according to some embodiments of the present invention.
<figref idref="DRAWINGS">FIG. 8</figref> shows an exemplary decryption engine executing on the security server according to some embodiments of the present invention.
<figref idref="DRAWINGS">FIG. 9</figref> shows an exemplary sequence of steps performed by the decryption engine according to some embodiments of the present invention.
DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS
0022In the following description, it is understood that all recited connections between structures can be direct operative connections or indirect operative connections through intermediary structures. A set of elements includes one or more elements. Any recitation of an element is understood to refer to at least one element. A plurality of elements includes at least two elements. Unless otherwise specified, any use of “OR” refers to a non-exclusive or. Unless otherwise required, any described method steps need not be necessarily performed in a particular illustrated order. A first element (e.g. data) derived from a second element encompasses a first element equal to the second element, as well as a first element generated by processing the second element and optionally other data. Making a determination or decision according to a parameter encompasses making the determination or decision according to the parameter and optionally according to other data. Unless otherwise specified, an indicator of some quantity/data may be the quantity/data itself, or an indicator different from the quantity/data itself. Computer security encompasses protecting users and equipment against unintended or unauthorized access to data and/or hardware, unintended or unauthorized modification of data and/or hardware, and destruction of data and/or hardware. A computer program is a sequence of processor instructions carrying out a task. Computer programs described in some embodiments of the present invention may be stand-alone software entities or sub-entities (e.g., subroutines, libraries) of other computer programs. Unless otherwise specified, guest software executes within a virtual machine. A program is said to execute within a virtual machine when it executes on a virtual processor of the respective virtual machine. A process is an instance of a computer program, such as an application or a part of an operating system, and is characterized by having at least an execution thread and a virtual memory space assigned to it, wherein a content of the respective virtual memory space includes executable code. Unless otherwise specified, a page represents the smallest unit of virtual memory that can be individually mapped to a physical memory of a host system. Unless otherwise specified, a memory snapshot of a client system/virtual machine comprises a copy of a content of a section of memory used by the respective client system/virtual machine. Computer readable media encompass non-transitory media such as magnetic, optic, and semiconductor storage media (e.g. hard drives, optical disks, flash memory, DRAM), as well as communication links such as conductive cables and fiber optic links. According to some embodiments, the present invention provides, inter alia, computer systems comprising hardware (e.g. one or more microprocessors) programmed to perform the methods described herein, as well as computer-readable media encoding instructions to perform the methods described herein.
0023The following description illustrates embodiments of the invention by way of example and not necessarily by way of limitation.
0024<figref idref="DRAWINGS">FIG. 1</figref> shows an exemplary configuration according to some embodiments of the present invention, wherein a set of client systems <b>12</b><i>a</i>-<i>d </i>collaborates with a security server <b>15</b> to intercept and decrypt encrypted network traffic occurring between the respective client systems <b>12</b><i>a</i>-<i>d </i>and a remote party illustrated as a content server <b>13</b>. Each of servers <b>13</b> and <b>15</b> generically represents a set of interconnected computing systems, which may or may not be in physical proximity to each other.
0025Exemplary client systems <b>12</b><i>a</i>-<i>d </i>include corporate computing systems, but also personal computer systems, mobile computing platforms (laptop computers, tablets, mobile telephones), wearable electronic devices (smartwatches), household appliances (smart TVs, thermostats, home surveillance/security systems), or any other electronic device having a processor and a memory and supporting hardware virtualization. One exemplary client system of particular interest to computer security is a computer configured as a honeypot. Honeypot is a generic term used in the art to describe a set of systems and methods for luring malicious entities for data gathering and the study of malicious software. An exemplary honeypot comprises an apparently unprotected computer system which may allow a hacker or malware agent to enter, install software, and/or communicate with other computers over a network.
0026The illustrated client systems are interconnected via a local communication network <b>10</b>, such as a corporate network or a home network. Parts of local network <b>10</b> may include a local area network (LAN). A gateway device <b>14</b> may enable access of client systems <b>12</b><i>a</i>-<i>d </i>to an extended network <b>11</b> (e.g., the Internet), so that all or part of the network traffic between client systems <b>12</b><i>a</i>-<i>d </i>and a remote party traverses gateway device <b>14</b>. An exemplary gateway device <b>14</b> comprises a physical appliance such as a router and/or a switch.
0027<figref idref="DRAWINGS">FIG. 2</figref>-A shows an exemplary hardware configuration of a client system <b>12</b> according to some embodiments of the present invention. Client system <b>12</b> may represent any of systems <b>12</b><i>a</i>-<i>d </i>in <figref idref="DRAWINGS">FIG. 1</figref>. For simplicity, the illustrated client system is a personal computer; the hardware configuration of other client systems such as mobile telephones, tablet computers, etc., may differ somewhat from the illustrated configuration of <figref idref="DRAWINGS">FIG. 2</figref>-A. Client system <b>12</b> comprises a set of physical devices, including a hardware processor <b>16</b> and a memory unit <b>18</b>. Processor <b>16</b> comprises a physical device (e.g. a microprocessor, a multi-core integrated circuit formed on a semiconductor substrate, etc.) configured to execute computational and/or logical operations with a set of signals and/or data. In some embodiments, such operations are delivered to processor <b>16</b> in the form of a sequence of processor instructions (e.g. machine code or other type of encoding). Memory unit <b>18</b> may comprise volatile computer-readable media (e.g. DRAM, SRAM) storing instructions and/or data accessed or generated by processor <b>16</b>.
0028Input devices <b>20</b> may include computer keyboards and mice, among others, allowing a user to introduce data and/or instructions into system <b>12</b>. Output devices <b>22</b> may include display devices such as monitors. In some embodiments, input devices <b>20</b> and output devices <b>22</b> may share a common piece of hardware, as in the case of touch-screen devices. Storage devices <b>24</b> include computer-readable media enabling the non-volatile storage, reading, and writing of software instructions and/or data. Exemplary storage devices <b>24</b> include magnetic and optical disks and flash memory devices, as well as removable media such as CD and/or DVD disks and drives. Network adapters <b>26</b> enable system <b>12</b> to connect to network <b>10</b> and/or to other machines/computer systems. Controller hub <b>28</b> generically represents the plurality of system, peripheral, and chipset buses, and/or all other circuitry enabling the inter-communication of devices <b>16</b>-<b>26</b> of system <b>12</b>. For instance, controller hub <b>28</b> may include a memory controller, an input/output (I/O) controller, and an interrupt controller, among others. In another example, hub <b>28</b> may comprise the northbridge bus connecting processor <b>16</b> to memory <b>18</b>, and/or the southbridge bus connecting processor <b>16</b> to devices <b>20</b>, <b>22</b>, <b>24</b>, and <b>26</b>, among others.
0029<figref idref="DRAWINGS">FIG. 2</figref>-B shows an exemplary hardware configuration of security server <b>15</b> in some embodiments of the present invention. In the illustrated configuration, server <b>15</b> comprises a server processor <b>16</b>, a server memory <b>18</b>, a set of server storage devices <b>124</b>, and a set of network adapters <b>126</b>. Processor <b>116</b> may comprise a microprocessor or other physical device configured to execute mathematical and/or logical operations with a set of data. Memory <b>18</b> may comprise volatile computer-readable media storing instructions and/or data for execution and/or processing by processor <b>116</b>. Server storage devices <b>124</b> comprise non-volatile computer-readable media such as hard drives, CD and DVD ROMs, and flash memory, among others. Server network adapters <b>126</b> enable security server <b>15</b> to connect to and exchange data with other electronic devices via extended network <b>11</b>.
0030<figref idref="DRAWINGS">FIG. 3</figref> shows a typical software configuration according to some embodiments of the present invention. Client system <b>12</b> is configured to expose a set of virtual machines (VM). Although <figref idref="DRAWINGS">FIG. 3</figref> shows just one guest VM <b>32</b>, some embodiments may host multiple VMs (e.g., hundreds) operating concurrently. Each virtual machine comprises an emulation of an actual physical machine/computer system, and can execute an operating system and a variety of software applications. Embodiments as illustrated in <figref idref="DRAWINGS">FIG. 3</figref> may be used to protect customers of cloud computing against malicious software, such as software attempting to steal proprietary, private, and/or confidential data, or software attempting to hijack and transform client system <b>12</b> into a botnet member. In such embodiments, client system <b>12</b> may represent a server computer system of a cloud service provider. In other exemplary embodiments, client system <b>12</b> represents a user's private device, such as a personal computer or a mobile telephone. Such devices often employ hardware virtualization, for instance to increase software portability or to strengthen security. In yet another exemplary embodiment, client system <b>12</b> may be configured as a honeypot. In such embodiments, client system <b>12</b> may expose multiple virtual machines, for instance one masquerading as a webserver, another masquerading as a personal computer connected to a corporate network, etc.
0031In some embodiments, a hypervisor <b>30</b> executes on client system <b>12</b>, hypervisor <b>30</b> comprising software configured to create or enable a plurality of virtualized devices, such as a virtual processor and a virtual memory management unit, and to present such virtualized devices to software in place of the real, physical devices of client system <b>12</b>. Such operations are commonly known in the art as exposing a virtual machine. Hypervisor <b>30</b> may further enable multiple virtual machines to share the hardware resources of host system <b>12</b>, so that each VM operates independently and is unaware of other VMs executing concurrently executing on client system <b>12</b>. Examples of popular hypervisors include the VMware vSphere™ from VMware Inc. and the open-source Xen hypervisor, among others.
0032In the exemplary configuration illustrated in <figref idref="DRAWINGS">FIG. 3</figref>, guest VM <b>32</b> executes a guest operating system (OS) <b>34</b>, and a set of applications <b>36</b><i>a</i>-<i>b</i>. Guest OS <b>34</b> may comprise any widely available operating system such as Microsoft Windows®, MacOS®, Linux®, iOS®, or Android™, among others, providing an interface between applications executing within VM <b>32</b> and the virtualized hardware devices of guest VM <b>32</b>. Applications <b>36</b><i>a</i>-<i>b </i>generically represent any user application, such as a word processor, spreadsheet application, graphics application, a browser, a social media application, and an electronic communication application, among others. Guest OS <b>34</b> and applications <b>36</b><i>a</i>-<i>b </i>are herein said to execute within guest VM <b>32</b>, i.e., they execute on a virtual processor of VM <b>32</b>. In contrast, hypervisor <b>30</b> is said to execute outside guest VM <b>32</b>.
0033In some embodiments, exposing guest VM <b>32</b> comprises configuring a data structure used by hypervisor <b>30</b> to manage operation of guest VM <b>32</b>. Such a structure will be herein termed virtual machine state object (VMSO). Exemplary VMSOs include the virtual machine control structure (VMCS) on Intel® platforms, and the virtual machine control block (VMCB) on AMD® platforms. In some embodiments, processor <b>16</b> associates a region in memory with each VMSO, so that software may reference a specific VMSO using a memory address or pointer (e.g., a VMCS pointer on Intel® platforms).
0034Each VMSO may comprise data representing a current state of a respective virtualized processor exposed on client system <b>12</b>. In multithreading configurations, hardware processor <b>16</b> may operate a plurality of cores, each core further comprising multiple logical processors, wherein each logical processor may process an execution thread independently of, and concurrently with, other logical processors. Multiple logical processors may share some hardware resources, for instance, a common MMU. In a multithreaded embodiment, a distinct VMSO may be set up for each distinct logical processor. Each VMSO may comprise a guest state area and a host state area, the guest state area holding the CPU state of the respective VM (i.e., of the respective virtualized processor), and the host state area storing the current state of hypervisor <b>30</b>. In some embodiments, the guest-state area of the VMSO includes contents of the control registers (e.g., CR0, CR3, etc.), instruction pointer (e.g., RIP), general-purpose registers (e.g., EAX, ECX, etc.), and status registers (e.g., EFLAGS) of the virtual processor of the respective VM, among others. The host state area of the VMSO may include a pointer (e.g., an EPT pointer on Intel® platforms) to a page table configured for address translations for the respective VM.
0035In some embodiments, processor <b>16</b> may store a part of a VMSO within dedicated internal registers/caches, while other parts of the respective VMSO may reside in memory <b>18</b>. At any given time, at most one VMSO (herein termed the current VMSO) may be loaded onto a logical processor, identifying the virtual machine currently having control of the respective logical processor. When processor <b>16</b> switches from executing software within the VM (e.g., application <b>36</b><i>a </i>in <figref idref="DRAWINGS">FIG. 3</figref>) to executing software outside the respective VM (e.g. hypervisor <b>30</b>), processor <b>16</b> may save the current processor state to the guest state area of the current VMSO and load the host state of the VMSO onto the processor. Conversely, when processor <b>16</b> switches from executing software outside the VM to executing software within the respective VM, processor <b>16</b> may save the current processor state to the host state area of the VMSO and load the guest state of the current VMSO onto processor <b>16</b>.
0036In some embodiments, an introspection engine <b>40</b> executes outside of all guest VMs exposed on the respective client system. Introspection is an established term in the art of hardware virtualization, generically denoting gathering information about various aspects of the operation of a virtual machine from a position outside the respective VM. In some embodiments of the present invention, introspection comprises operations such as monitoring processes executing within guest VM <b>32</b>, intercepting an attempt to execute a certain OS function or processor instruction within guest VM <b>32</b>, intercepting an attempt to access a memory page used by guest VM <b>32</b>, and determining a location in memory <b>18</b> where specific data used by guest VM is stored, among others. Engine <b>40</b> may be incorporated into hypervisor <b>30</b>, or may be delivered as a software component distinct and independent from hypervisor <b>30</b>, but executing at substantially similar processor privilege level as hypervisor <b>30</b>. A single engine <b>40</b> may be configured to introspect multiple VMs executing on client system <b>12</b>. Engine <b>40</b> may collaborate with hypervisor <b>30</b> to decrypt communications going into and/or out of client systems <b>12</b>. More specifically, engine <b>40</b> may be configured to approximately locate within memory <b>18</b> an encryption key used to encrypt a message sent or received by guest VM <b>32</b>, as detailed below.
0037Software executing on client system <b>12</b> may further comprise a network filter <b>42</b> configured to intercept communications going in or out of guest VM <b>32</b>, and to exchange information with introspection engine <b>40</b>. Filter <b>42</b> may listen to specific network ports, e.g., port <b>443</b> for connections respecting the TLS protocol. Filter <b>42</b> may execute within or outside VM <b>32</b>. When executing outside VM <b>32</b>, a single network filter may monitor communications going into or out of multiple VMs executing on client system <b>12</b>. To achieve such monitoring, hypervisor <b>30</b> may route all communications into and/or out of client system <b>12</b> through network filter <b>42</b>. Filter <b>42</b> may have exclusive control of network adapter(s) <b>26</b>, a configuration which may be implemented, for instance, using VT-D® technology from Intel®. When monitoring multiple VMs, filter <b>42</b> may maintain a VM-specific packet queue, i.e., associate each intercepted network packet with a source and/or destination VM.
0038In some embodiments, introspection engine <b>40</b> operates by detecting various events occurring during execution of software within guest VM <b>32</b>. Exemplary events detected by introspection engine <b>40</b> include, for instance, a processor exception and/or interrupt, an attempt to execute a particular function of guest OS <b>34</b>, a change of processor privilege (e.g., a system call), an attempt to access (read from, write to, and/or execute from) a particular memory location, etc. Introspection engine <b>40</b> may be further configured to determine memory addresses of various software components executing within guest VM <b>32</b>, as further described below.
0039Some embodiments further comprise a utility agent <b>44</b> executing within guest VM <b>32</b>, agent <b>44</b> collaborating with introspection engine <b>40</b> to detect and analyze events occurring within guest VM <b>32</b>. Agent <b>44</b> may comprise, for instance, a driver executing at the processor privilege level of guest OS <b>34</b> (e.g., ring 0, kernel mode), and may be registered as a handler for various processor events such as page faults and hardware interrupts. One advantage of such configurations is that some information is much easier to obtain from inside a VM than from outside the respective VM, since an inside agent has access to all the functionality of guest OS <b>34</b>. A disadvantage is that agents executing within guest VM <b>32</b> are potentially vulnerable to malicious software executing within the respective VM. To mitigate this risk, some embodiments may inject agent <b>44</b> only temporarily inside guest VM <b>32</b>, and may erase agent <b>44</b> after agent <b>44</b> completes execution.
0040To detect events occurring within guest VM <b>32</b>, introspection engine <b>40</b> may employ any method known in the art of virtualization. An important category of methods use an attempt to access a particular memory location as an indicator of occurrence of a particular event. To detect such a memory access attempt, some embodiments set up memory access permissions so that the attempt will violate the respective permissions. The violation is then intercepted by introspection engine and/or utility agent <b>44</b>. Virtual machines typically operate with a virtualized physical memory, also known in the art as guest-physical memory. Virtualized physical memory comprises an abstract representation of the actual physical memory <b>18</b>, for instance as a contiguous space of addresses specific to each VM, with parts of said space mapped to addresses within physical memory <b>18</b> and/or physical storage devices <b>24</b>. In modern hardware virtualization platforms, such mapping is typically achieved via dedicated data structures and mechanisms controlled by processor <b>16</b>, known as second level address translation (SLAT). Popular SLAT implementations include extended page tables (EPT) on Intel® platforms, and rapid virtualization indexing (RVI)/nested page tables (NPT) on AMD® platforms. In such systems, virtualized physical memory is partitioned in units known in the art as pages, a page representing the smallest unit of virtualized physical memory individually mapped to physical memory via SLAT, i.e., mapping between physical and virtualized physical memory is performed with page granularity. All pages typically have a predetermined size, e.g., 4 kilobytes, 2 megabytes, etc. The partitioning of virtualized physical memory into pages is usually configured by hypervisor <b>30</b>. In some embodiments, hypervisor <b>30</b> also configures the SLAT structures and therefore the mapping between physical memory and virtualized physical memory. In some embodiments, a pointer to a SLAT data structure (e.g., to a page table) is stored within the VMSO of the respective virtual machine. The actual mapping (translation) of a virtualized physical memory address to a physical memory address may comprise looking up the physical memory address in a translation lookaside buffer (TLB) of client system <b>12</b>. In some embodiments, address translation comprises performing a page walk, which includes a set of successive address look-ups in a set of page tables and/or page directories, and performing calculations such as adding an offset of a page to an address relative to the respective page.
0041<figref idref="DRAWINGS">FIG. 4</figref> illustrates such a mapping of memory addresses in an embodiment as shown in <figref idref="DRAWINGS">FIG. 3</figref>. Following exposure by hypervisor <b>30</b>, guest VM <b>32</b> sees a virtualized physical memory space <b>218</b> as its own physical memory space. A software object (e.g., application <b>36</b><i>a</i>) executing within guest VM <b>32</b> is assigned a virtual memory space <b>318</b> by guest OS <b>34</b>. When the software object attempts to access a content of an exemplary memory page <b>50</b><i>a </i>of space <b>318</b><i>a</i>, an address of page <b>50</b><i>a </i>is translated by the virtualized processor of guest VM <b>32</b> into an address of a page <b>50</b><i>b </i>of virtualized physical memory space <b>218</b>, according to page tables configured and controlled by guest OS <b>34</b>. The address of page <b>50</b><i>b </i>is further mapped by physical processor <b>16</b> to an address of a page <b>50</b><i>c </i>within physical memory <b>18</b> using SLAT configured by hypervisor <b>30</b>.
0042Virtual address space <b>218</b> is commonly known in the art as guest-physical memory, and an address within one such a memory space is referred to as a guest physical address (GPA). Address space <b>318</b> is usually termed guest-virtual memory, and contains guest-virtual addresses (GVA). Addresses within physical memory <b>18</b> are usually referred to as host-physical addresses (HPA). An address translation/mapping such as <b>52</b> in <figref idref="DRAWINGS">FIG. 4</figref> is therefore termed GVA-to-GPA translation. In contrast, address translations such as <b>54</b> are commonly known as GPA-to-HPA translations.
0043In some embodiments, hypervisor <b>30</b> sets up its own virtual memory space <b>418</b> comprising a representation of physical memory <b>18</b>, and employs a translation mechanism (for instance, page tables) to map addresses in space <b>418</b> to addresses in physical memory <b>18</b>. In <figref idref="DRAWINGS">FIG. 4</figref>, such an exemplary mapping translates the address of a page <b>50</b><i>f </i>within virtual space <b>418</b> to the physical address of page <b>50</b><i>c</i>, and the address of a page <b>50</b><i>d </i>to the physical address of page <b>50</b><i>e</i>. Such mappings allow potentially any software object executing at the processor privilege level of hypervisor <b>30</b> to manage memory pages belonging to software objects executing within various VMs running on client system <b>12</b>. In particular, memory introspection engine <b>40</b> may thus enumerate, read, write, and control access to physical memory pages used by any process executing within guest VM <b>32</b>.
0044In some embodiments, detecting an event occurring within guest VM <b>32</b> comprises introspection engine <b>40</b> collaborating with hypervisor <b>30</b> to set memory access permissions within a SLAT data structure. Such features may be platform-specific, but access permissions are typically set with page granularity. For instance, on Intel® platforms that support virtualization, the EPT entry of each memory page includes a set of access permission bits that indicate whether the respective page may be read from, written to, and executed, respectively. When an attempt to access a particular memory page violates an access permission set for the respective memory page, the respective attempt may trigger a processor event, such as an exception or a virtual machine exit event (VMExit on Intel® platforms). In response to the processor event, processor <b>16</b> may switch to executing an event handler routine outside the respective VM, which allows introspection engine <b>40</b> to detect the occurrence of the respective access violation. In an alternative embodiment, a memory access violation may trigger a processor exception (e.g. a virtualization exception or #VE on Intel® platforms). In response to such processor events, processor <b>16</b> may switch to executing an event handler routine within the respective VM, i.e., without exiting the respective VM. In embodiments having a utility agent <b>44</b> as shown in <figref idref="DRAWINGS">FIG. 4</figref>, agent <b>44</b> may be registered as a virtualization exception handler, thus detecting memory access violations.
0045In some embodiments, a SLAT entry of a memory page further comprises fields (e.g., bits) that indicate whether the respective page has been accessed and/or whether the respective page has been written to. Such bits are typically called accessed and dirty bits. Some embodiments use accessed and/or dirty bits to identify memory pages which are likely to contain encryption keys, as further shown below.
0046In some embodiments of the present invention, introspection engine <b>40</b> is configured to monitor encrypted communications going into or out of guest VM. A communication session typically comprises a preliminary negotiation between the parties, followed by the actual exchange of encrypted messages. In the art, the former is usually called a handshake, while the content of the message is commonly known as the payload. The handshake comprises a set of exchanges which specify, among others, a cipher (i.e., encryption algorithm) and an ingredient for deriving an encryption key. Exemplary ciphers include Advanced Encryption Standard (AES)-derived block ciphers and stream ciphers such as ChaCha-20. In some embodiments, the handshake may comprise an actual key exchange performed according to a specific protocol, and/or additional steps for verifying the identity of either or both parties. Depending on the cipher, the ingredients for deriving the encryption key may comprise a set of random numbers, a public key of the communicating parties, etc.
0047A concrete example of a secure communication protocol is the Transport Layer Security (TLS) protocol described, for instance, in the Request for Comments (RFC) 5246 of the Internet Engineering Task Force (IETF) Network Working Group. The TLS protocol is currently used by a majority of browsers, e-commerce and secure e-banking applications. A TLS session includes, among others, a unique session identifier, a cipher specification, and a master secret shared between the communicating parties. The master secret is usually computed by each party separately, using ingredients exchanged during the handshake. The TLS handshake protocol comprises the following steps/stages: <ul id="ul0001" list-style="none"><li id="ul0001-0001" num="0000"><ul id="ul0002" list-style="none"><li id="ul0002-0001" num="0048">a) Exchange hello messages to agree on cryptographic parameters for the communication. A Client Hello message sent from a client to a server may indicate a list of supported ciphers and include a client-supplied random number, among others. A Server Hello message sent from the server to the client may indicate a choice of cipher from the ones proposed by the client, and include a server-supplied random number.</li><li id="ul0002-0002" num="0049">b) Perform authentication of the parties. The server may send a certificate confirming its identity, and may request in turn a certificate from the client. This step may comprise a ClientCertificate message from the client and a ServerCertificate message from the server.</li><li id="ul0002-0003" num="0050">c) Exchange the necessary cryptographic parameters to allow the client and server to agree on or to calculate a shared secret (e.g., a pre-master secret). The cryptographic parameters may comprise a set of keys or other information according to the chosen cipher. For instance, the keys exchanged during this phase may be public cryptographic keys (Rivest-Shamir-Adleman, Diffie-Hellman, etc.) of the client and server. This step may comprise a ClientKeyExchange message transmitted by the client and/or a ServerKeyExchange message transmitted by the server. When Rivest-Shamir-Adleman (RSA) is used for server authentication and key exchange, a pre-master secret is generated by the client, encrypted under the server's public key, and sent to the server as part of the ClientKeyExchange message. The server then uses its private key to decrypt the pre-master secret. When Diffie-Hellman is used, each side computes its own pre-master secret according to a negotiated key.</li><li id="ul0002-0004" num="0051">d) Exchange ChangeCipherSpec messages to indicate that each sender party will henceforth encrypt the session's outgoing messages using the agreed-upon cryptographic parameters.</li><li id="ul0002-0005" num="0052">e) Exchange Finished messages (ClientFinished and ServerFinished) to formally end the session handshake. To allow the client and server to verify that their peer has received and/or calculated the correct security parameters (e.g., a shared secret) and that the handshake occurred without tampering by an attacker, the ClientFinished and ServerFinished messages are encrypted. Each receiving party must attempt to decrypt the received Finished message; successful decryption indicates a successful handshake.</li></ul></li></ul>
0053In the TLS protocol, each party computes a master secret according to cryptographic parameters exchanged during the handshake, for instance according to the pre-master secret, and client- and server-supplied random numbers. From the master secret, each side may then determine a set of session keys. The term “session keys” will be used herein to generically denote cryptographic parameter values used for encrypting and/or decrypting communications during the current session. Exemplary session keys comprise a pre-master secret, a master secret, client and server-side write keys, initialization vectors/nonces, and message authentication codes (MAC), among others. In an embodiment using symmetric cryptography, encryption and decryption keys are identical, so knowledge of an encryption key suffices for decryption. In asymmetric cryptography, the encryption and decryption keys differ. How the session keys are used depends therefore on the negotiated cipher.
0054Some embodiments of the present invention rely on the observation that the session keys used for encryption during the current session must be calculated by each side before sending out the Finished message of the handshake (otherwise the respective message cannot be encrypted). Furthermore, the ingredients for deriving the session keys are received by each side as part of the handshake, for instance as part of the ServerHello, ClientKeyExchange, and ServerKeyExchange messages. Therefore, the session keys are likely to be appear in the memory of the client system sometime during the handshake. Some embodiments of the present invention use the timing of the handshake to determine an approximate memory location of the session keys.
0055<figref idref="DRAWINGS">FIG. 5</figref> shows an exemplary sequence of steps performed by introspection engine <b>40</b> according to some embodiments of the present invention. In a sequence of steps <b>502</b>-<b>504</b>, engine <b>40</b> may collaborate with network filter <b>42</b> to detect a handshake message transmitted between client system <b>12</b> to a remote party (e.g., content server <b>13</b> in <figref idref="DRAWINGS">FIG. 1</figref>). In one example, a connection request may come from an application executing within guest VM <b>32</b>, for instance a browser, and may indicate an intention to initiate an encrypted communication session, such as a TLS session, SSH session, VPN session, etc. As such, the connection request may comprise a handshake message (e.g., ClientHello) to server <b>13</b>. In another example, the detected handshake message comprises a message from server <b>13</b> (e.g., a ServerHello), transmitted in response to a ClientHello received from client system <b>12</b>.
0056When a handshake message is detected, in a step <b>506</b> introspection engine <b>40</b> may extract a set of handshake parameters such as a session ID and an indicator of the cipher to be used for the session. In an embodiment monitoring TLS connections, step <b>506</b> may further extract cryptographic parameters such as server- and/or client-supplied random numbers. Introspection engine <b>40</b> may then instruct network filter <b>42</b> to forward the handshake message to its intended recipient VM (e.g., guest VM <b>32</b> in <figref idref="DRAWINGS">FIG. 3</figref>).
0057In a step <b>508</b>, introspection engine <b>40</b> may obtain an optimized memory snapshot of guest VM <b>32</b>. A memory snapshot comprises a copy of the contents of a set of memory pages used by the respective VM. In some embodiments, the optimized snapshot comprises contents of a set of memory pages most likely to contain the session keys, or at least cryptographic parameter values used to derive the session keys of the current communication session. Exemplary methods for obtaining the optimized snapshot are described further below.
0058A step <b>510</b> may harvest the encrypted payload of the current session, by obtaining a copy of the respective payload from network filter <b>42</b>. In some embodiments, network filter <b>42</b> is configured to maintain multiple data queues, for instance indexed by session ID and/or virtual machine. Network filter <b>42</b> may thus unambiguously and consistently recover the encrypted payload of a session even when the respective payload is divided into multiple packets interspersed among other communications. Next, in a step <b>512</b>, introspection engine <b>40</b> may transmit the harvested optimized memory snapshot, handshake parameters, and encrypted payload to security server <b>15</b> for analysis.
0059<figref idref="DRAWINGS">FIG. 6</figref> shows an exemplary sequence of steps performed by introspection engine <b>40</b> to obtain an optimized memory snapshot of guest VM <b>32</b>. To derive the approximate memory location of the session keys, some embodiments of the present invention identify a set of memory pages whose content has changed during a time interval which approximately coincides with the time when the respective session keys were generated.
0060Memory pages whose content has recently changed, i.e. pages that were recently written to, may be identified using any method known in the art. In one example, introspection engine <b>40</b> may mark a set of memory pages used by guest VM <b>32</b> as non-writable in a SLAT data structure associated with guest VM <b>32</b>. Any subsequent attempt to modify the contents of such a page will then constitute a memory access violation and thus trigger a processor event (e.g., VM Exit or virtualization exception), which will then be intercepted by introspection engine <b>40</b> and/or utility agent <b>44</b>. In response to intercepting the event, engine <b>40</b> may mark the respective page as writable, and re-launch the respective VM, to allow the respective write to proceed. In such a manner, engine <b>40</b> may end up with a list of “dirty” memory pages, the contents of which constitute the desired optimized memory snapshot.
0061The above scenario is rather inefficient and computationally costly. Several optimizations are possible on selected hardware platforms. For instance, on platforms which support accessed and/or dirty bits, some embodiments may reset the dirty bit of a page table entry (EPT entry on Intel® platforms) of a memory page used by guest VM <b>32</b>, and check the value of the dirty bit at some later time to determine whether the respective page has been written to. This mechanism may be further optimized. For instance, certain generations of Intel® processors possess a feature called page modification logging (PML), which automatically exports a list of pages whose content has changed to a memory location accessible to memory introspection engine <b>40</b>.
0062Another possible optimization strategy uses a Live Migration feature that some hypervisors (e.g., Xen®) use to efficiently migrate and/or clone virtual machines. The respective feature is built around a set of log-dirty primitives that automatically track pages that have been written to, and export a list of such pages according to a schedule.
0063The sequence of steps illustrated in <figref idref="DRAWINGS">FIG. 6</figref> identifies pages that have been modified during a time interval between a session event of a first kind and session event of a second kind. Session events herein denote various stages of a communication protocol, for instance as described above in relation to the TLS protocol. Exemplary session events comprise for instance, sending and/or receiving messages forming part of a particular communication session (e.g., a handshake message transmitted between client system <b>12</b> and server <b>13</b>, a message containing a part of an encrypted payload of the respective session, etc.). A detection of the 1<sup>st </sup>kind of event (steps <b>522</b>-<b>524</b>) switches the page modification monitoring on (step <b>526</b>). In some embodiments, step <b>526</b> comprises suspending operation of guest VM <b>32</b>, re-setting the dirty bit of SLAT entries corresponding to memory pages used by guest VM <b>32</b>, and re-launching guest VM <b>32</b>. In some embodiments, the set of memory pages to be monitored for writes may be narrowed down, for instance to a set of pages used by the process (e.g., browser) carrying out the current communication session, or by a process that handles encryption/decryption (e.g., LSASS.EXE in Windows®). Memory introspection engine <b>40</b> may identify pages used by the respective process/application by walking data structures used by guest OS <b>34</b> to manage threads and processes. The task of identifying such memory pages may be made easier by collaborating with utility agent <b>44</b> executing within guest VM <b>32</b>—agent <b>44</b> typically has access to much more information than engine <b>40</b>.
0064Monitoring for writes is switched off (step <b>534</b>) upon detecting the occurrence of a session event of a second kind (steps <b>528</b>-<b>530</b>), for instance the receipt of another handshake message of the respective session. A step <b>532</b> may suspend execution of guest VM <b>32</b>, to prevent modifications to memory from occurring while taking the memory snapshot. In a further sequence of steps <b>536</b>-<b>538</b>, engine <b>40</b> identifies pages that have been written to between the first and second session events, and copies the content of such pages as an optimized memory snapshot. In a further step <b>540</b>, introspection engine <b>40</b> may re-launch guest VM <b>32</b>.
0065In an alternative embodiment, the execution of guest VM <b>32</b> is not suspended for the duration of harvesting the optimized memory snapshot. Such suspensions are likely to slow the system down and impact user experience. Furthermore, suspending guest VM <b>32</b> may not be desirable for security purposes, since it may give away the fact that the respective VM is being monitored. Since the session keys are typically written once and do not move around in memory, consistency of all pages used by guest VM <b>32</b> is not required. One must simply ensure that the current session does not end (and therefore the keys do not vanish) before the dirty pages are copied. Instead of halting guest VM <b>32</b>, some embodiments use network filter <b>42</b> to manipulate the flow of communication into or out of guest VM <b>32</b>. For instance, filter <b>42</b> may delay the delivery of data packets from server <b>13</b> to guest VM <b>32</b> for the duration of harvesting of the memory snapshot. The delay may appear to software executing within guest VM <b>32</b> as rather normal network latency. To achieve the delay functionality, some embodiments use an inter-process notification mechanism to communicate between engine <b>40</b> and network filter <b>42</b>. For instance, engine <b>40</b> may notify filter <b>42</b> in response to a successful harvesting of the optimized memory snapshot. In turn, filter <b>42</b> may notify engine <b>40</b> in response to intercepting certain network packets (e.g., the ServerHello of ServerFinished messages).
0066Following the observation that session keys are typically derived during the handshake part of a session, various embodiments of the present invention use various handshake events as session events of the 1<sup>st </sup>and 2<sup>nd </sup>kind. For instance, in some embodiments, events of the 1<sup>st </sup>kind—that switch page monitoring on—include the interception by network filter <b>42</b> of a network packet comprising an ingredient for deriving a session key for the respective session. Exemplary ingredients include a random number, a key, and a shared secret, among others. One such exemplary session event of the 1<sup>st </sup>kind is a ServerHello message received from server <b>13</b>. Other embodiments may use. Other possible choices for an event of the 1<sup>st </sup>kind include a ClientHello message from guest VM <b>32</b>, a ClientKeyExchange, and a ServerKeyExchange message. As for session events of the 2<sup>nd </sup>kind—that switch page monitoring off—some embodiments use the interception by network filter <b>42</b> of an encrypted message transmitted to or from guest VM <b>32</b>. One example of an event of the 2<sup>nd </sup>kind is the interception of a ClientFinished or ServerFinished message. Another possible choice event of the 2<sup>nd </sup>kind is the interception of a packet comprising a part of a payload encrypted using a session key of the current session.
0067The exemplary methods described above in relation to <figref idref="DRAWINGS">FIGS. 5-6</figref> apply to a single communication session. In practice, multiple sessions may be carried out concurrently within a single VM, for example by multiple instances of a browser (as in tabbed browsing), or by distinct applications running at the same time. Some embodiments are configured to track dirty pages for each session separately. For clarity, the description below will focus on the particular task of harvesting memory snapshots of TLS sessions, each snapshot comprising memory pages modified between a ServerHello message of each session and a ClientFinished message of the respective session.
0068Getting session-specific optimized snapshots poses an extra challenge of untangling an arbitrary sequence of session events. Some embodiments configure the page monitoring mechanism to identify all pages that have been written to between two consecutive events. Such events however may belong to distinct sessions, and may be of the first kind or of the second kind (to borrow the nomenclature used above in relation to <figref idref="DRAWINGS">FIG. 6</figref>). To account for this ambiguity, some embodiments of introspection engine <b>40</b> maintain a global list of currently active sessions, each entry of the list comprising information such as a session ID, a source internet protocol (IP) address, source port number, destination IP address, destination port number, and a timestamp of a ServerHello message of the respective session. Engine <b>40</b> may further maintain a global array of timestamps, storing at least one timestamp for each monitored memory page. Each timestamp of the array may be indicative of a moment in time when the respective page has been written to. For this reason, the timestamp array will herein be deemed page modification timestamp array.
0069<figref idref="DRAWINGS">FIG. 7</figref> shows an exemplary sequence of steps performed by memory introspection engine in an embodiment configured to track multiple concurrent TLS sessions. A step <b>552</b> initializes the page modification timestamp array. Step <b>552</b> may further comprise configuring the page modification detection mechanism (e.g., PML, resetting dirty bits, etc.). A sequence of steps <b>554</b>-<b>556</b> listens for events of either Hello or Finished kind. When an event is detected, in a step <b>558</b> introspection engine <b>40</b> may invoke the page modification detection mechanism to identify currently dirty pages, i.e. memory pages whose content has changed since the previous detected event, irrespective of whether it was a Hello or Finished message. A step <b>560</b> may then update the page modification timestamp array so that timestamps corresponding to dirty pages are updated to the current timestamp, or to a timestamp indicative of the occurrence of the currently detected event. When the respective event is of the 1<sup>st </sup>kind (e.g., ServerHello), in a step <b>564</b> engine <b>40</b> may initialize a new session data structure, filling in a session ID, source and destination IP address and ports, among others. A further step <b>566</b> records a timestamp indicative of the current ServerHello event, which will herein be deemed Hello timestamp of the respective session.
0070When the currently detected event is of the 2<sup>nd </sup>kind (e.g., ClientFinished), in a step <b>570</b> introspection engine <b>40</b> may walk the page modification timestamp array. For each page, some embodiments may compare the page modification timestamp of the respective page with the Hello timestamp of the respective session (i.e., of the session that the currently detected event belongs to). When the modification timestamp indicates that the respective page has been written to after the Hello event of the respective session, engine <b>40</b> may include the respective page into the optimized memory snapshot of the respective session.
0071<figref idref="DRAWINGS">FIG. 8</figref> shows exemplary software executing on security server <b>15</b>, including a decryption engine <b>60</b> according to some embodiments of the present invention. For each monitored communication session, engine <b>60</b> may receive session data from the respective client system (e.g., client systems <b>12</b><i>a</i>-<i>d </i>in <figref idref="DRAWINGS">FIG. 1</figref>), such as a set of handshake parameters <b>72</b>, an optimized memory snapshot <b>70</b>, and/or an encrypted payload <b>74</b>. Such data may further comprise indicators unambiguously associating each item with a particular client system, VM, and/or communication session. Handshake parameters <b>72</b> may comprise an indicator of a cipher used to encrypt payload <b>74</b>. Optimized memory snapshot <b>70</b> comprises a copy of a content of a memory page of a client system, as described above. Payload <b>74</b> comprises a part of an encrypted communication (e.g., network packet).
0072<figref idref="DRAWINGS">FIG. 9</figref> shows an exemplary sequence of steps performed by decryption engine <b>60</b> according to some embodiments of the present invention. In response to receiving session data from client system <b>12</b> (step <b>582</b>), in a step <b>584</b> engine <b>60</b> may extract from the session data an indicator of the cipher used in the respective session. Decryption engine <b>60</b> may then select a decryption procedure/algorithm according to the cipher. Next, a sequence of steps <b>586</b>-<b>588</b>-<b>590</b> is repeated in a loop until a completion condition is satisfied, e.g., until a successful decryption of the payload is achieved, or until a time period allotted for decryption expires.
0073Attempts at decrypting the payload may proceed according to any method known in the art of cryptography. The procedure for harvesting the optimized memory snapshot was crafted so that the session keys, or at least cryptographic parameter values used to derive encryption and decryption keys for the respective session are likely to reside within the respective memory snapshot. The byte size of the session keys may be known a priori, or may be derived from the encryption parameters received from client system <b>12</b>. However, the precise location of the session keys within the snapshot may not be known. Some embodiments may therefore search for the key material in a trial-and-error fashion. In one such example illustrated in <figref idref="DRAWINGS">FIG. 9</figref>, a step <b>586</b> may derive a candidate decryption key from the optimized memory snapshot. In an embodiment using symmetric cryptography (e.g. TLS protocol), the encryption and decryption keys are identical, therefore a candidate decryption key may comprise, for instance, a sequence of bytes of the snapshot, the sequence having the required byte size. In a step <b>588</b>, engine <b>60</b> may attempt to decrypt at least a part of the respective session payload using the candidate keys. Success may be assessed using various methods known in the art. For example, some embodiments calculate an information entropy of the decrypted message. Low entropy typically indicate successful decryption, although such methods are known to produce false positives or false negatives.
0074An alternative approach to decryption uses what is known in the art as a known plaintext attack. One such embodiment exploits the fact that decryption engine <b>60</b> has access to an encrypted version of a known message, for instance, to the content of an (encrypted) ClientFinished and/or ServerFinished message exchanged during the respective session. The format and plaintext of such messages is a-priori known, being documented in the TLS protocol.
0075Some embodiments of the present invention allow decrypting some or all of the communications between a client system and a remote party. Examples of such communications include any communication encrypted using symmetric or asymmetric key algorithms, including Secure Socket Layer (SSL)/Transport Layer Security (TLS) connections, Secure Shell (SSH), Virtual Private Network (VPN) connections, and onion routing/anonymity network connections (e.g., TOR software). Exemplary applications of disclosed methods include detection and analysis of malicious software, intrusion detection, and surveillance, among others.
0076In one exemplary application, a computer system hosting at least a part of the decryption system forms part of a honeypot system. Honeypots are typically configured to allow installation of malicious software, and/or to allow an intruder to take control of some aspects of the respective computer system. Malicious software and intruders may then use an encrypted channel to communicate with outside entities, such as Command and Control (C&C) servers. By enabling decryption of such communications, some embodiments may facilitate research into malware, intrusion, and/or hacking methods.
0077Another exemplary anti-malware use of some embodiments comprises detecting malicious content before it infiltrates a client system. In some advanced malware attack scenarios, a malicious software agent arrives at the client via encrypted communication with an otherwise benign server, for instance via email (phishing) or online advertising. Because of encryption, typically the agent cannot be detected until it has unpacked and installed itself on the host, or even until later, when it performs some malware-indicative action. Some embodiments of the present invention may allow an early detection and incapacitation of such agents.
0078In another exemplary application, cloud service providers may use some embodiments to inspect encrypted traffic in quasi-real time and swiftly detect malicious data circulating to or from their servers. Such detection may prevent the respective servers from acting as launchpad for a malicious attack, for instance a distributed denial of service (DDOS) attack.
0079Decryption of encrypted communication is a notoriously difficult enterprise. Some conventional approaches to breaking encryption try to avoid decryption altogether. Such methods include, for instance, modifying encryption libraries to provide additional information, or introducing “backdoors” which allow a user to inconspicuously obtain access to the plaintext of the respective communication, or to an actual encryption key, or to some other information conducive to a key. Such approaches are seen as dangerous since they may weaken Internet security in the long run. They are also inconvenient by being typically non-portable, i.e., effective only on certain hardware platforms and/or operating systems. Another inconvenient is that a modification to a cryptographic library is visible to software executing on the respective client, and can thus be detected and neutralized.
0080Modern ciphers can only be broken using some version of a brute force attack, which typically carries a substantial computational cost. One such attack comprises trying out multiple candidate keys, until one eventually works. Some conventional decryption systems/methods search for key material within the memory of the client system. However, not knowing the actual location of the key material may make such methods impractical because of the immense computational expense required for the search. Furthermore, stopping the respective machine for the time needed to acquire a large memory dumps is likely to negatively impact user experience. Some conventional approaches attempt to optimize the search for key material by setting “tap points” in order to obtain memory dumps at certain moments of execution. However, the tap points are predefined, and thus may break if the underlying system and/or communication software is updated.
0081Some embodiments of the present invention rely on two key observations. First, a great number of client systems potentially benefitting from decryption execute in hardware virtualization configurations (virtual machines). Examples include server farms and cloud providers of virtual desktop infrastructure. To take advantage of such configurations, some embodiments of the present invention place an introspection engine outside a virtual machine that carries out the encrypted communication, at a processor privilege level of a hypervisor exposing the respective VM. The introspection engine may use techniques of the art of virtualization to access and inspect contents of memory used by the respective VM, potentially without knowledge or interference from software executing within the respective VM. A single introspection engine may thus inconspicuously monitor communications carried out by multiple VMs executing concurrently on the respective client system.
0082The second observation is that encryption keys, or at least the cryptographic parameters used to derive the respective keys, are exchanged by communication partners during a specific phase of a session, for instance during a handshake. Some embodiments use this observation to derive an approximate location of the session keys, thus allowing a reduction of the memory search area from hundreds of megabytes in conventional methods to a few memory pages (e.g., tens of kilobytes to a few megabytes). This substantially reduces the computational effort of decryption, making a brute-force attack feasible.
0083Some embodiments use hardware optimizations of modern processors, such as the ability to set access and/or dirty flags within a page table entry, or the page modification logging (PML) feature of some Intel® processors, to identify a set of memory pages whose content changes during a time interval that includes the exchange and/or generation of session keys. Some embodiments then search for the key material within the content of the respective memory pages.
0084By locating session keys according to features of the communication protocol, rather than relying on specific hardware or software features of the client system/virtual machine, some embodiments enable decryption of communications on various devices (personal computers, mobile telephones, household appliances, etc.), as well as in client systems executing multiple heterogeneous virtual machines, irrespective of operating system and communication application (e.g., browser, messaging app, VPN software, etc.).
0085To avoid detection by software executing within the monitored VM, some embodiments disguise the occasional delays caused by harvesting an optimized memory snapshot of the respective VM as network latency. In one example, the introspection engine collaborates with the network filter to delay delivering certain network packets to the monitored VM for the duration of acquisition of the memory snapshot. For software executing inside the VM, such delays may appear to be caused by transmission problems on the network. Also, to avoid impacting user experience, some embodiments offload the computational burden of decryption onto a separate machine (security server). The actual decryption may therefore be carried out offline.
0086It will be clear to one skilled in the art that the above embodiments may be altered in many ways without departing from the scope of the invention. Accordingly, the scope of the invention should be determined by the following claims and their legal equivalents.
Contents5
9 sheets
Sheet 1 Sheet 2 Sheet 3 Sheet 4 Sheet 5 Sheet 6 Sheet 7 Sheet 8 Sheet 9
Every citation, both ways
| Document | Relation | Office | Cited during |
|---|---|---|---|
| US2023185924A1 | Cited by | United States of America | Search report |
| US11005841B1 | Cited by | United States of America | Applicant |
| US11108771B2 | Cited by | United States of America | Applicant |
| US12147543B2 | Cited by | United States of America | Search report |
| US11113665B1 | Cited by | United States of America | Applicant |
| US11019055B1 | Cited by | United States of America | Applicant |
| US11184361B2 | Cited by | United States of America | Applicant |
| US10904259B1 | Cited by | United States of America | Applicant |
| US10931677B1 | Cited by | United States of America | Applicant |
| US11200548B2 | Cited by | United States of America | Applicant |
| US10902705B1 | Cited by | United States of America | Applicant |
| US10911463B1 | Cited by | United States of America | Applicant |
| US11734042B2 | Cited by | United States of America | Applicant |
| US10873578B1 | Cited by | United States of America | Search report |
| US2009217043A1 | Cites | United States of America | Search report |
| US2014115702A1 | Cites | United States of America | Search report |
| US2014137180A1 | Cites | United States of America | Applicant |
| US2014281030A1 | Cites | United States of America | Applicant |
| US2015013008A1 | Cites | United States of America | Search report |
| US2015113264A1 | Cites | United States of America | Applicant |
| US2015271139A1 | Cites | United States of America | Search report |
| US2015288659A1 | Cites | United States of America | Search report |
| US8489889B1 | Cites | United States of America | Search report |
| US20090217043A1 | Cites | United States of America | Search report |
| US20140115702A1 | Cites | United States of America | Search report |
| US20140137180A1 | Cites | United States of America | Applicant |
| US20140281030A1 | Cites | United States of America | Applicant |
| US20150013008A1 | Cites | United States of America | Search report |
| US20150113264A1 | Cites | United States of America | Applicant |
| US20150271139A1 | Cites | United States of America | Search report |
| US20150288659A1 | Cites | United States of America | Search report |
| European Patent Office, International Search Report and Written Opinion dated May 12, 2017 for PCT International Application No. PCT/EP2017/057422, international filing date Mar. 29, 2017, priority date Apr. 4, 2016. | Non-patent | – | Applicant |
| European Patent Office, International Search Report and Written Opinion dated May 12, 2017 for PCT International Application No. PCT/EP2017/057422, international filing date Mar. 29, 2017, priority date Apr. 4, 2016. | Non-patent | – | Applicant |
26 members in 13 offices; this record represents the family
Priority claims6
| Document | Office | Kind | Date |
|---|---|---|---|
| 201662317804 | United States of America | P | |
| 201662317804 | United States of America | P | |
| 201715471981 | United States of America | A | |
| 62317804 | – | – | – |
| US201662317804P | – | – | – |
| US201715471981 | – | – | – |
Members26
| Document | Office | Kind | |
|---|---|---|---|
| US2017289109A1 | United States of America | A1 | |
| CA3018021A1 | Canada | A1 | |
| WO2017174418A1 | World Intellectual Property Organization (WIPO) | A1 | |
| AU2017247547A1 | Australia | A1 | |
| SG11201807964UA | Singapore | A | |
| US10116630B2This record | United States of America | B2 | |
| IL261826A | Israel | A | |
| CN108885665A | China | A | |
| KR20180129830A | Republic of Korea | A | |
| EP3440584A1 | European Patent Office (EPO) | A1 | |
| US2019068561A1 | United States of America | A1 | |
| US10257170B2 | United States of America | B2 | |
| JP2019516294A | Japan | A | |
| HK1257399A | Hong Kong, China | A | |
| HK1257399A1 | Hong Kong, China | A1 | |
| KR102041584B1 | Republic of Korea | B1 | |
| RU2018132840A | Russian Federation | A | |
| RU2018132840A3 | Russian Federation | A3 | |
| EP3440584B1 | European Patent Office (EPO) | B1 | |
| RU2738021C2 | Russian Federation | C2 | |
| IL261826B | Israel | B | |
| JP6857193B2 | Japan | B2 | |
| ES2827007T3 | Spain | T3 | |
| AU2017247547B2 | Australia | B2 | |
| CA3018021C | Canada | C | |
| CN108885665B | China | B |
41 transactions on the USPTO file
Allowed without a rejection on record.
- Non-final rejections
- 0
- Final rejections
- 0
- RCEs
- 0
- Appeals
- 0
Over time
Point at a mark for the transactionTransactions
| Event | Code | |
|---|---|---|
| Payment of Maintenance Fee, 4th Year, Large EntityM1551 | M1551 | |
| Recordation of Patent Grant MailedPGM/ | PGM/ | |
| Patent Issue Date Used in PTA CalculationAllowedPTAC | PTAC | |
| Email NotificationEML_NTR | EML_NTR | |
| Issue Notification MailedAllowedWPIR | WPIR | |
| Dispatch to FDCD1935 | D1935 | |
| Application Is Considered Ready for IssuePILS | PILS | |
| Issue Fee Payment VerifiedN084 | N084 | |
| Electronic ReviewELC_RVW | ELC_RVW | |
| Issue Fee Payment ReceivedIFEE | IFEE | |
| Email NotificationEML_NTF | EML_NTF | |
| Mail Notice of AllowanceAllowedMN/=. | MN/=. | |
| Notice of Allowance Data Verification CompletedAllowedN/=. | N/=. | |
| Reasons for AllowanceEX.R | EX.R | |
| Interview Summary - Examiner Initiated - TelephonicEXET | EXET | |
| Information Disclosure Statement consideredIDSC | IDSC | |
| Case Docketed to Examiner in GAUDOCK | DOCK | |
| Case Docketed to Examiner in GAUDOCK | DOCK | |
| Email NotificationEML_NTR | EML_NTR | |
| Application ready for PDX access by participating foreign officesCCRDY | CCRDY | |
| PG-Pub Issue NotificationPG-ISSUE | PG-ISSUE | |
| Email NotificationEML_NTR | EML_NTR | |
| Change in Power of Attorney (May Include Associate POA)PA.. | PA.. | |
| Electronic Information Disclosure StatementEIDS. | EIDS. | |
| Electronic Information Disclosure StatementEIDS. | EIDS. | |
| Information Disclosure Statement (IDS) FiledWIDS | WIDS | |
| Case Docketed to Examiner in GAUDOCK | DOCK | |
| Application Dispatched from OIPEOIPE | OIPE | |
| Email NotificationEML_NTR | EML_NTR | |
| Application Is Now CompleteCOMP | COMP | |
| Filing ReceiptFLRCPT.O | FLRCPT.O | |
| Sent to Classification ContractorPGPC | PGPC | |
| FITF set to YES - revise initial settingFTFS | FTFS | |
| Cleared by L&R (LARS)L128 | L128 | |
| Referred to Level 2 (LARS) by OIPE CSRL198 | L198 | |
| Patent Term Adjustment - Ready for ExaminationPTA.RFE | PTA.RFE | |
| PTO/SB/69-Authorize EPO Access to Search ResultsSREXR141 | SREXR141 | |
| Applicants have given acceptable permission for participating foreignAPPERMS | APPERMS | |
| IFW Scan & PACR Auto Security ReviewSCAN | SCAN | |
| Entity Status Set To Undiscounted (Initial Default Setting or Status Change)BIG. | BIG. | |
| Initial Exam Team nnIEXX | IEXX |
4 legal events, as the office reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | |
|---|---|---|
| Maintenance fee paymentMAFP | MAFP | |
| Maintenance fee paymentMAFP | MAFP | |
| Information on status: patent grantGrantedPATENTED CASESTCF | STCF | |
| AssignmentAS | AS |
Numbers
- Publication
- 10116630
- Publication, DOCDB
- 10116630
- Publication, EPODOC
- US10116630
- Application
- 15471981
- Application, DOCDB
- 201715471981
- Application, EPODOC
- US201715471981
Titles
- English
- Systems and methods for decrypting network traffic in a virtualized environment
Patent term adjustment
- A delay
- +106 daysthe office missed an examination deadline
- Net adjustment
- 106 days
Classification
- CPC, 12
- G06F21/566
- H04L63/0428
- G06F9/45504
- G06F12/1009
- H04L9/14
- G06F2212/154
- H04L9/30
- H04L9/3249
- H04L9/3263
- H04L63/06
- H04L63/166
- H04L9/3247
- IPC, 7
- H04L29 06
- G06F9 455
- G06F12 1009
- H04L9 14
- H04L9 30
- H04L9 32
- G06F21 56
- USPC, 1
- 379093020