Nefarious individuals attempt to compromise computer systems in a variety of ways. As an example, unsuspecting users may download or otherwise obtain software that purports to be useful (e.g., a game) when in fact, the software contains malicious elements (i.e., is or contains “malware”). Unfortunately, malware authors are crafting increasingly sophisticated malware that is increasingly able to evade detection. Accordingly, there exists an ongoing need for improved techniques to detect malware and prevent its harm.
Various embodiments of the invention are disclosed in the following detailed description and the accompanying drawings.
The invention can be implemented in numerous ways, including as a process; an apparatus; a system; a composition of matter; a computer program product embodied on a computer readable storage medium; and/or a processor, such as a processor configured to execute instructions stored on and/or provided by a memory coupled to the processor. In this specification, these implementations, or any other form that the invention may take, may be referred to as techniques. In general, the order of the steps of disclosed processes may be altered within the scope of the invention. Unless stated otherwise, a component such as a processor or a memory described as being configured to perform a task may be implemented as a general component that is temporarily configured to perform the task at a given time or a specific component that is manufactured to perform the task. As used herein, the term ‘processor’ refers to one or more devices, circuits, and/or processing cores configured to process data, such as computer program instructions.
A detailed description of one or more embodiments of the invention is provided below along with accompanying figures that illustrate the principles of the invention. The invention is described in connection with such embodiments, but the invention is not limited to any embodiment. The scope of the invention is limited only by the claims and the invention encompasses numerous alternatives, modifications and equivalents. Numerous specific details are set forth in the following description in order to provide a thorough understanding of the invention. These details are provided for the purpose of example and the invention may be practiced according to the claims without some or all of these specific details. For the purpose of clarity, technical material that is known in the technical fields related to the invention has not been described in detail so that the invention is not unnecessarily obscured.
Appliance 102 can be configured to work in cooperation with one or more virtual machine servers (112, 124) to perform malware analysis. As one example, data appliance 102 can be configured to provide a copy of malware 130 (transmitted to client 104 by host 120) to one or more of the virtual machine servers for real-time analysis. As another example, service 122 can provide a list of signatures of known-malicious files to appliance 102 as part of a subscription. Those signatures can be generated by service 122 in conjunction with the techniques described herein.
An example of a virtual machine server is a physical machine comprising commercially available server-class hardware (e.g., a multi-core processor, 4+ Gigabytes of RAM, and one or more Gigabit network interface adapters) that runs commercially available virtualization software, such as VMware ESXi, Citrix XenServer, or Microsoft Hyper-V. The virtual machine servers may be separate from, but in communication with, data appliance 102, as shown in
A virtual machine (VM) can be used to execute a candidate malware application (e.g., in a VM sandbox environment). Behavior profiling using various heuristic-based analysis techniques and network traffic analysis associated with the application can be performed. As one example, suppose a malicious user of host 120 attempts to send a user of 104 an email message that includes as an attachment a malicious executable (e.g., having a .exe extension). Data appliance 102 can determine whether a signature for the executable is present on data appliance 102. A signature, if present, can indicate that the executable is known to be safe, and can also indicate that the executable is known to be malicious. If no signature for the executable is found, data appliance 102 is configured to provide the executable to a virtual machine server, such as virtual machine server 112, for analysis.
Virtual machine server 112 is configured to execute the executable in one or more virtual machines 114-116. If the executable is ultimately determined to be malicious, appliance 102 can automatically block the file download to client 104 (and any other applicable clients) based on the analysis result. Further, a signature can be generated and distributed (e.g., to other data appliances) to automatically block future file transfer requests to download the file determined to be malicious.
As will be described in more detail below, traffic analysis can be performed on communications associated with the executable and determinations as to whether or not the executable is malicious based, in part, on that traffic analysis. In some embodiments the analysis (also referred to herein as “post-analysis”) is performed by the VM server (e.g., VM server 112). In other embodiments, the analysis is performed at least in part by appliance 102. In yet other embodiments, the analysis is performed at least in part by cloud security service 122 (e.g., where virtual machine server 124 is used). The malware analysis functionality illustrated in
Appliance 102 can take a variety of forms. For example, appliance 102 can be a dedicated device or set of devices. The functionality provided by appliance 102 can also be integrated into or executed as software on a general purpose computer, a computer server, a gateway, and/or a network/routing device. For example, in some embodiments services provided by data appliance 102 are instead (or in addition) provided to client 104 by software executing on client 104.
Whenever appliance 102 is described as performing a task, a single component, a subset of components, or all components of appliance 102 may cooperate to perform the task. Similarly, whenever a component of appliance 102 is described as performing a task, a subcomponent may perform the task and/or the component may perform the task in conjunction with other components. In various embodiments, portions of appliance 102 are provided by one or more third parties. Depending on factors such as the amount of computing resources available to appliance 102, various logical components and/or features of appliance 102 may be omitted and the techniques described herein adapted accordingly. Similarly, additional logical components/features can be added to appliance 102 as applicable.
Suppose, when executing a copy of candidate malware, virtual machine 114 attempts to access a remote server 134 using an encrypted session protocol, such as SSL. Network processor 306 is configured to receive packets from virtual machine 114, and provide the packets to data plane 304 for processing. Flow 308 identifies the packets as being part of a new session and creates a new session flow. Subsequent packets will be identified as belonging to the session based on a flow lookup. If applicable, SSL decryption is applied by SSL decrypter 310. Otherwise, processing by SSL decrypter 310 is omitted. Application identification module 312 is configured to determine what type of traffic the session involves. For example, application identification module 312 can recognize a GET request in the received data and conclude that the session requires an HTTP decoder. For each type of protocol, there exists a corresponding decoder 314. In some embodiments, the application identification is performed by an application identification module (e.g., APP-ID engine). Based on the determination made by application identification module 312, the packets are sent to an appropriate decoder 314. Decoder 314 is configured to assemble packets (e.g., which may be received out of order) into the correct order, perform tokenization, and extract out information. Also as shown, signatures 320 are received and stored in the management plane 302. As needed, packets are re-encrypted by SSL encryption module 316 and then provided to forward module 318 for transmission to server 134.
At 404, the candidate malware application is executed in one or more virtual machines. For example, the candidate malware application can be executed in virtual machine 114. In some embodiments, the virtual machine is configured to include a set of personal user data or other information (e.g., an address book and one or more documents) usable in performing malware analysis. Any network traffic generated as a result of executing the application can be captured (e.g., using pcap) and stored (e.g., in storage 210). As another example, the candidate malware can be executed in virtual machines 126-128 and the network traffic stored by service 122.
At 406, traffic analysis is performed on the captured network traffic. And, at 408, a determination is made as to whether or not the application is malicious based at least in part on the traffic analysis and an application type of the candidate malware application. Additional detail regarding the processing performed at 406 and 408 of process 400 follows.
Suppose the candidate malware application is a screen-sharing utility. The application is executed in a virtual machine (404) and network traffic associated with the execution of the application is captured. Specifically, traffic associated with the virtual machine is parsed by system 132 and application identification module 312 is used to determine that the application is a screen-sharing utility. Other examples of types of applications include (but are not limited to) web browsing applications, FTP applications, email applications, and IRC applications.
When an application is executed in a virtual machine, the application may take certain expected actions (observable via traffic analysis). In the example of the malicious screen-sharing utility, examples of expected actions could include attempting to connect to a known screen-sharing server and/or using a known screen-sharing protocol. An application may also take certain unexpected actions. In the example of the malicious screen-sharing utility, examples of unexpected actions include attempting to transmit a copy of the address book to host 120 and/or attempting to send out emails.
Based on analysis of the collected network traffic, and also based on the type of application (e.g., as determined by module 312), a determination can be made as to whether the application is malicious or not. For example, as a screen-sharing application, establishing a connection to a known screen-sharing site/using a screen-sharing protocol could be considered expected (benign) behavior. For a different type of application (e.g., a word processing application) the same observed traffic (establishing a connection to a known screen-sharing site/using a screen-sharing protocol) could be considered highly suspicious. Similarly, a legitimate screen-sharing application would be very unlikely to need to transmit a user's address book. The fact that the application executing in the virtual machine has attempted to take such an action can be treated as being suspicious accordingly. In this example, no human user is interacting with the application while it is executing in the virtual machine. Thus, even if the application being analyzed was an email client, it should not be sending out emails (i.e., because there is no human drafting an email and clicking on a send button).
In various embodiments, heuristics are applied to determine whether the traffic, in the aggregate, is sufficiently suspicious to indicate that the application is malicious. In some embodiments, traffic analysis of known-good applications is performed and stored as a baseline for comparison against evaluation of unknown applications. If a given application is determined to be suspicious, additional actions can be taken to confirm whether or not the application should be treated as malicious or not. For example, a suspicious application can be quarantined and additional processing can be performed in other virtual machines. Other types of analysis can also be performed, such as static analysis. If a determination is made that an application is malicious (or, in some embodiments, suspicious) appropriate actions can be taken. As one example, a signature for the executable can be generated (e.g., as an MD5 hash-based signature) and stored in data appliance 102 and/or propagated to other data appliances as applicable. As another example, instead of or in addition to generating a signature, an alert can be generated that instructs data appliance 102 not to provide the executable to client 104.
Additional examples of network traffic which, if attributed to a specific application executing in a virtual machine, can be indicative of malware are as follows:
Although the foregoing embodiments have been described in some detail for purposes of clarity of understanding, the invention is not limited to the details provided. There are many alternative ways of implementing the invention. The disclosed embodiments are illustrative and not restrictive.
This application is a continuation of co-pending U.S. patent application Ser. No. 13/631,608, entitled MALWARE DETECTION BASED ON TRAFFIC ANALYSIS filed Sep. 28, 2012 which is incorporated herein by reference for all purposes.
Number | Name | Date | Kind |
---|---|---|---|
7475002 | Mann | Jan 2009 | B1 |
7603713 | Belov | Oct 2009 | B1 |
7823202 | Nucci et al. | Oct 2010 | B1 |
7930273 | Clark | Apr 2011 | B1 |
7945908 | Waldspurger | May 2011 | B1 |
8151352 | Novitchi | Apr 2012 | B1 |
8239492 | Pottenger | Aug 2012 | B2 |
8347100 | Thornewell et al. | Jan 2013 | B1 |
8364664 | Bennett | Jan 2013 | B2 |
8495742 | Abadi et al. | Jul 2013 | B2 |
8533842 | Satish | Sep 2013 | B1 |
8566928 | Dagon | Oct 2013 | B2 |
8566946 | Aziz | Oct 2013 | B1 |
8631489 | Antonakakis et al. | Jan 2014 | B2 |
8646071 | Pereira et al. | Feb 2014 | B2 |
8763071 | Sinha | Jun 2014 | B2 |
8763125 | Feng | Jun 2014 | B1 |
8813240 | Northup | Aug 2014 | B1 |
8826426 | Dubey | Sep 2014 | B1 |
8893124 | Bork | Nov 2014 | B2 |
8931088 | Chen | Jan 2015 | B2 |
8966625 | Zuk et al. | Feb 2015 | B1 |
9049221 | Yen | Jun 2015 | B1 |
9117079 | Huang | Aug 2015 | B1 |
9141801 | Moon | Sep 2015 | B2 |
9152694 | Padidar | Oct 2015 | B1 |
9183383 | Yablokov | Nov 2015 | B1 |
9223962 | Kashyup | Dec 2015 | B1 |
9294486 | Chiang | Mar 2016 | B1 |
9317680 | Carter, III et al. | Apr 2016 | B2 |
9361089 | Bradfield | Jun 2016 | B2 |
9516039 | Yen | Dec 2016 | B1 |
9591003 | Johansson | Mar 2017 | B2 |
9792430 | Golshan | Oct 2017 | B2 |
20030191911 | Kleinschnitz | Oct 2003 | A1 |
20040133796 | Cohen | Jul 2004 | A1 |
20050240756 | Mayer | Oct 2005 | A1 |
20050283837 | Olivier | Dec 2005 | A1 |
20060021029 | Brickell et al. | Jan 2006 | A1 |
20060168024 | Mehr | Jul 2006 | A1 |
20070039053 | Dvir | Feb 2007 | A1 |
20070079375 | Copley | Apr 2007 | A1 |
20070106986 | Worley et al. | May 2007 | A1 |
20070174915 | Gribble | Jul 2007 | A1 |
20080127338 | Cho et al. | May 2008 | A1 |
20080155694 | Kwon et al. | Jun 2008 | A1 |
20080177994 | Mayer | Jul 2008 | A1 |
20090007100 | Field et al. | Jan 2009 | A1 |
20090036111 | Danford | Feb 2009 | A1 |
20090077383 | De Monseignat | Mar 2009 | A1 |
20090235357 | Ebringer et al. | Sep 2009 | A1 |
20090254989 | Achan et al. | Oct 2009 | A1 |
20090265786 | Xie et al. | Oct 2009 | A1 |
20100037314 | Perdisci et al. | Feb 2010 | A1 |
20100281458 | Paladino | Nov 2010 | A1 |
20110161955 | Woller et al. | Jun 2011 | A1 |
20110167495 | Antonakakis | Jul 2011 | A1 |
20110208714 | Soukal et al. | Aug 2011 | A1 |
20110239299 | Chen et al. | Sep 2011 | A1 |
20110276695 | Maldaner | Nov 2011 | A1 |
20110283360 | Abadi et al. | Nov 2011 | A1 |
20120042381 | Antonakakis et al. | Feb 2012 | A1 |
20120054869 | Yen et al. | Mar 2012 | A1 |
20120291042 | Stubbs et al. | Nov 2012 | A1 |
20130117848 | Golshan | May 2013 | A1 |
20130152200 | Alme | Jun 2013 | A1 |
20130212684 | Li | Aug 2013 | A1 |
20130227165 | Liu | Aug 2013 | A1 |
20130232574 | Carothers | Sep 2013 | A1 |
20140337836 | Ismael | Nov 2014 | A1 |
20150047033 | Thomas | Feb 2015 | A1 |
20150067673 | Wang | Mar 2015 | A1 |
20150067862 | Yu | Mar 2015 | A1 |
20150074810 | Saher | Mar 2015 | A1 |
20150195299 | Zoldi | Jul 2015 | A1 |
20150199207 | Lin | Jul 2015 | A1 |
20160036836 | Grill | Feb 2016 | A1 |
Entry |
---|
Davidoff et al., “Chapter 12: Malware Forensics,” Network Forensics: Tracking Hackers Through Cyberspace, Pearson Education Inc., Jun. 2012, 60 pages. |
Ligh et al., “Chapter 5: Researching Domains and IP Addresses,” Malware Analyst's Cookbook, John Wiley & Sons, 2011, 38 pages. |
Abu Rajab et al., “A Multifaceted Approach to Understanding the Botnet Phenonmenon,” Proceedings of the 6th ACM SIGCOMM conference on Internet measurement, 2006, 12 pages. |
Schechter et al., “Fast Detection of Scanning Worm Infections,” Recent Advances in Intrusion Detection: 7th International Symposium RAID 2004 Proceedings, 2004, 24 pages. |
Sikorski et al., “Chapter 14: Malware-Focused Network Signatures,” Practical Malware Anlaysis, No Starch Press, Feb. 2012, 13 pages. |
Chen et al., “Chapter 4: Guarding Against Network Intrusions,” Network and System Security, Elsevier Inc., 2009, 5 pages. |
Shabtai et al., “‘Andromaly’: a behavioral malware detection framwork for android devices”, J Intell lnf Syst (2012) 38: 161. doi:10.1007/s10844-010-0148-x, Retrieved From https://link.springer.com/article/10.1007/s10844-010-0148-x, Published Jan. 6, 2011. |
Karagiannis et al., “BLINC: Multilevel Traffic Classification in the Dark”, ACM SIGCOMM Computer Communication Review, Retrieved From https://www.microsoft.com/en-us/research/wp-content/uploads/2016/02/BLINC_TR.pdf, Published 2005 (Year: 2005 ). |
Nazario et al., As the Net Churns: Fast-Flux Botnet Observations, IEEE, pp. 24-31, Sep. 5, 2008. |
BARR, The VMware Mobile Virtualization Platform: Is that a Hypervisor in your Pocket?, Dec. 2010, VMware, p. 124-135. |
Number | Date | Country | |
---|---|---|---|
Parent | 13631608 | Sep 2012 | US |
Child | 14928922 | US |