A firewall generally protects networks from unauthorized access while permitting authorized communications to pass through the firewall. A firewall is typically a device or a set of devices, or software executed on a device, such as a computer, that provides a firewall function for network access. For example, firewalls can be integrated into operating systems of devices (e.g., computers, smart phones, or other types of network communication capable devices). Firewalls can also be integrated into or executed as software on computer servers, gateways, network/routing devices (e.g., network routers), or data appliances (e.g., security appliances or other types of special purposes devices).
Firewalls typically deny or permit network transmission based on a set of rules. These sets of rules are often referred to as policies. For example, a firewall can filter inbound traffic by applying a set of rules or policies. A firewall can also filter outbound traffic by applying a set of rules or policies. Firewalls can also be capable of performing basic routing functions.
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.
A firewall generally protects networks from unauthorized access while permitting authorized communications to pass through the firewall. A firewall is typically a device, a set of devices, or software executed on a device that provides a firewall function for network access. For example, a firewall can be integrated into operating systems of devices (e.g., computers, smart phones, or other types of network communication capable devices). A firewall can also be integrated into or executed as software applications on various types of devices, such as computer servers, gateways, network/routing devices (e.g., network routers), or data appliances (e.g., security appliances or other types of special purposes devices).
Firewalls typically deny or permit network transmission based on a set of rules. These sets of rules are often referred to as policies. For example, a firewall can filter inbound traffic by applying a set of rules or policies to prevent unwanted outside traffic from reaching protected devices. A firewall can also filter outbound traffic by applying a set of rules or policies (e.g., allow, block, monitor, notify or log, and/or other actions can be specified in firewall rules or firewall policies, which can be triggered based on various criteria, such as described herein). Firewalls can also be capable of performing basic routing functions.
A basic packet filtering firewall filters network communication traffic by inspecting individual packets transmitted over a network (e.g., packet filtering firewalls or first generation firewalls, which are stateless packet filtering firewalls). Stateless packet filtering firewalls typically inspect the individual packets themselves and apply rules based on the inspected packets (e.g., using a combination of a packet's source and destination address information, protocol information, and a port number).
Application firewalls can also perform application layer filtering (e.g., application layer filtering firewalls or second generation firewalls, which work on the application level of the TCP/IP stack). Application layer filtering firewalls or application firewalls can generally identify certain applications and protocols (e.g., web browsing using Hyper Text Transfer Protocol (HTTP), a Domain Name System (DNS) request, a file transfer using File Transfer Protocol (FTP), and various other types of applications and other protocols, such as Telnet, DHCP, TCP, UDP, and TFTP (GSS)). For example, application firewalls can block unauthorized protocols that attempt to communicate over a standard port (e.g., an unauthorized/out of policy protocol attempting to sneak through by using a non-standard port for that protocol can generally be identified using application firewalls).
Stateful firewalls can also perform stateful-based packet inspection in which each packet is examined within the context of a series of packets associated with that network transmission's flow of packets/packet flow (e.g., stateful firewalls or third generation firewalls). This firewall technique is generally referred to as a stateful packet inspection as it maintains records of all connections passing through the firewall and is able to determine whether a packet is the start of a new connection, a part of an existing connection, or is an invalid packet. For example, the state of a connection can itself be one of the criteria that triggers a rule within a policy.
Advanced or next generation firewalls can perform stateless and stateful packet filtering and application layer filtering, as discussed above. Next generation firewalls can also perform additional firewall techniques. For example, certain newer firewalls, sometimes referred to as advanced or next generation firewalls, can also identify users and content (e.g., next generation firewalls). In particular, certain next generation firewalls are expanding the list of applications that these firewalls can automatically identify to thousands of applications. Examples of such next generation firewalls are commercially available from Palo Alto Networks, Inc. (e.g., Palo Alto Networks' PA Series firewalls). For example, Palo Alto Networks' next generation firewalls enable enterprises to identify and control applications, users, and content—not just ports, IP addresses, and packets—using various identification technologies, such as the following: APP-ID for accurate application identification, User-ID for user identification (e.g., by user or user group), and Content-ID for real-time content scanning (e.g., controls web surfing and limits data and file transfers). These identification technologies allow enterprises to securely enable application usage using business-relevant concepts, instead of following the traditional approach offered by traditional port-blocking firewalls. Also, special purpose hardware for next generation firewalls implemented, for example, as dedicated appliances generally provide higher performance levels for application inspection than software executed on general purpose hardware (e.g., such as security appliances provided by Palo Alto Networks, Inc., which utilize dedicated, function specific processing that is tightly integrated with a single-pass software engine to maximize network throughput while minimizing latency).
Current firewalls typically enforce based on signatures and/or heuristics. As a result, in order to detect malware, a firewall generally must have existing signatures or existing heuristics (e.g., a predefined signature and/or a predefined heuristic) that can detect the malware.
However, a zero-day attack, also sometimes referred to as a zero-hour attack or day zero attack, is a malware threat or attack that attempts to exploit vulnerabilities (e.g., in an operating-system, application software, security software, and/or other aspects of a computing/network platform) that are new and/or previously unidentified or unknown to others or the software developer. Zero-day exploits generally refer to software that exploits a security hold to carry out an attack. Zero-day exploits are used or shared by hackers or attackers before the developer of the target software/platform is aware of the vulnerability and/or prior to the target software/platform provider providing a fix to the vulnerability (e.g., distributing an update to patch the security hole) and/or prior to security providers providing an update that can detect the malware (e.g., distributing a signature and/or a heuristic that can detect the attack(s) attempting to exploit the vulnerability).
Various approaches to address zero-day exploits exist but each have different shortcomings. For example, vulnerability assessment software attempts to identify vulnerabilities in software platforms and/or applications. However, vulnerability assessment techniques cannot identify all potential new vulnerabilities. As another example, white listing techniques (e.g., implemented by firewalls and/or intrusion detection/prevention systems) can limit access based on known good applications. However, such an approach can be severely restrictive and some known good applications can later be discovered to have vulnerabilities that were not previously identified during testing or by vulnerability assessment techniques. White listing combined with black listing techniques (e.g., using signature-based techniques to block known bad applications, or applications with known vulnerabilities) can also be used to limit access to known good and/or prevent access to known bad applications. However, this approach suffers from the similar shortcomings of the above-described approaches and, for example, can similarly be very restrictive for users and network/computing environments. Other current approaches can potentially determine that a host has been infected (e.g., downloaded a malicious file) and to quarantine the infected host, but such approaches fail to prevent the infection of that host and such approaches generally cannot prevent future infections of other hosts by the same malicious file.
What is needed to further protect devices communicating on networks is a malware analysis system for detecting malware for which existing signatures do not detect (e.g., which can then effectively prevent new zero-day exploits). Accordingly, a malware analysis system is disclosed. In particular, a malware analysis, using the various techniques described herein can provide zero-day protection, is provided, which protects against zero-day exploits by detecting new malware threats for which preexisting signatures do not exist and automatically generating new signatures in real-time for the new malware threats. For example, a virtual machine (VM) can be used to perform behavior profiling (e.g., in a VM sandbox environment) using various heurist based analysis techniques that can be performed in real-time during a file transfer (e.g., during a file download), and if the file being downloaded is determined to be malicious, then the firewall can automatically block the file download based on the analysis result, and a new signature can be generated and distributed to automatically block future file transfer requests to download the file determined to be malicious. In some embodiments, various heuristic techniques are performed by the malware analysis system using a VM to emulate the behavior of a file (e.g., which can include executable code, such as JavaScript), web site content, and/or other behavior to analyze a potential malware sample. For example, the VM emulation of accessing a particular web site and downloading certain content from the web site can indicate certain suspicious behavior, such as changes to certain platform, software, or registry settings. Various other heuristic-based analysis techniques for malware analysis using a VM environment are described herein with respect to various embodiments.
In some embodiments, a malware analysis system includes receiving a potential malware sample from a firewall; analyzing the potential malware sample using a virtual machine to determine if the potential malware sample is malware; and automatically generating a signature (e.g., a hash-based signature for a file and/or other types of signatures as described herein) if the potential malware sample is determined to be malware. In some embodiments, the signature is distributed to a plurality of network devices/functions (e.g., routers and gateways) and/or security devices/functions (e.g., security/firewall appliances, security/firewall gateways, host-based firewalls, host-based security suites, and security cloud services). In some embodiments, the potential malware sample does not match a preexisting signature. In some embodiments, the potential malware sample does not match a preexisting signature and the malware is a zero-day attack.
In some embodiments, the firewall is executed on a first device, and the virtual machine is executed by a second device. In some embodiments, the firewall is implemented by a security appliance (e.g., a firewall appliance), and the virtual machine is implemented by a virtual machine (VM) appliance. In some embodiments, the firewall is a host-based firewall executed on a first device, and the virtual machine is implemented by a virtual machine appliance. In some embodiments, the virtual machine is implemented by a security cloud service. In some embodiments, the firewall decrypts a network traffic flow to generate the potential malware sample for analysis using the virtual machine.
In some embodiments, a malware analysis system further includes sending the signature to the firewall, in which the firewall includes the signature in one or more firewall policies. In some embodiments, a malware analysis system further includes sending the signature to the firewall, in which the firewall is implemented in a gateway security device, a security appliance, a network routing device, or a general purpose computer executing a host-based firewall. In some embodiments, a malware analysis system further includes sending the signature to a cloud security service.
In some embodiments, a malware analysis system further includes monitoring behavior of the potential malware sample during emulation using the virtual machine to identify malware. For example, various heuristic-based techniques as described herein can be used to determine that a potential malware sample is or should be determined to be malware (e.g., using URL, DNS, a protocol, and/or file or other information or activities or behavior profiling techniques).
In some embodiments, a malware analysis system further includes sending log information related to the potential malware to the virtual machine. For example, the log information can include session information, application identification information, URL category information, and/or vulnerability alert information. In some embodiments, the virtual machine performs post analysis using the log information to determine if the potential malware is malware.
In some embodiments, a malware analysis system includes monitoring a plurality of network traffic flows; decrypting an encrypted network traffic flow to generate a potential malware sample, in which a preexisting signature does not match the potential malware sample; sending the potential malware sample to a malware analysis device, in which the malware analysis device executes a virtual machine to analyze the potential malware sample using the virtual machine to determine if the potential malware sample is malware; receiving results of the analysis of the potential malware sample from the malware analysis device; automatically generating a signature if the potential malware sample is determined to be malware; and enforcing a security policy for network access based on the signature.
In some embodiments, a malware analysis system includes analyzing a potential malware sample using a virtual machine to determine if the potential malware sample is malware, in which a signature does not exist for the potential malware sample; automatically generating a signature if the potential malware sample is determined to be malware; adding a firewall rule that is based on the signature; and enforcing the firewall rule using the signature.
In some embodiments, network traffic is monitored using a state-based firewall. In some embodiments, the state-based firewall can monitor traffic flows using APP-ID engine (e.g., App Signature Check 108). For example, the monitored network traffic can include HTTP traffic, FTP traffic, DNS requests, unclassified application traffic (e.g., unknown application traffic), and/or other types of traffic (e.g., traffic using other types of known or unknown protocols).
As shown in
In some embodiments, the results of the various traffic monitoring techniques using known protocol decoder engine 112, identified traffic engine 114, and unknown protocol decoder engine 116 described above are provided to report and enforce policies engine 120 (e.g., network/routing policies, security policies, and/or firewall policies). For example, firewall policies can be applied to the monitored network traffic using application identification, user identification, and/or other information to match preexisting signatures (e.g., file-based, protocol-based, and/or other types/forms of signatures for detecting malware or suspicious behavior).
As also shown in
In some embodiments, if the potential malware sample is determined to be malware, then a new signature is generated using various techniques described herein. In some embodiments, the new signature is generated by another device or another function. For example, the firewall can generate the new signature.
In some embodiments, firewall 100 also includes a content-ID engine (not shown), and, in some embodiments, the content-ID engine's identified content is also used by report and enforce policy engine 120, possibly in various combinations with other information, such as application, user, and/or other information, to enforce various security/firewall policies/rules.
In some embodiments, various other functional architectures and flows are provided to implement the policy enforcement using host information profile techniques described herein. For example, some of these functions can be implemented in software executed on a general processor and/or some of these functions can be implemented using hardware acceleration techniques for faster packet processing of network traffic.
As also shown in
In some embodiments, the VM appliance/server 216 is implemented on or integrated into the security appliance/gateway/server 202. In some embodiments, the VM appliance/server 216 is implemented on or integrated into the security cloud service 210.
For example, the security device 202 (e.g., an integrated security appliance/gateway/server) can communicate with security cloud service 210 (e.g., using secure communications, such as encrypted communication techniques) to receive security related content updates (e.g., signatures, heuristics, application ID related information, user ID related information, content ID related information, trusted/untrusted zone information, and/or policy/rules). As another example, the security device 202 (e.g., an integrated security appliance/gateway/server) can communicate with security cloud service 210 (e.g., using secure communications, such as encrypted communication techniques) to provide the monitored traffic information (e.g., potential malware samples, such as in the form of subsets of such monitored traffic information, such as a portion of the packet flow, monitored URL/DNS information, monitored files requested for upload/download/access, and/or other information, along with possibly other information, such as content information for the client device associated with the traffic flow and possibly user identification and/or application identification information as well), and the security cloud service 210 can perform additional real-time and or post analysis (e.g., additional heuristic analysis as described herein with respect to various embodiments for detecting malware, including new malware threats and zero-day attacks, and/or to compare to other samples received and analyzed for other customers of the security cloud service). As will now be apparent, some or all of the functions described above with respect to
In some embodiments, new signatures automatically generated using the various techniques described herein are distributed to various other security functions/devices and/or services, such as host-based firewalls, security appliances, network devices, and/or security cloud services. In some embodiments, the virtual machine (VM) function for detecting malware for which preexisting signatures do not exist is integrated into a security appliance, firewall appliance, network/data appliance and/or executed on host device, such as a security server, network server or gateway, and/or client device (e.g., a personal computer, laptop, tablet, and/or other general purpose client device with sufficient processor and memory for executing a virtual machine). In some embodiments, the VM function for detecting malware for which preexisting signatures do not exist is provided be the security cloud service. In some embodiments, host devices, such as the client devices and/or services, such as gateways or security servers, provide the potential malware samples to the VM function/device.
Suppose a client 204A attempts to access a server 208B using an encrypted session protocol, such as SSL. Network processor 406 is configured to receive packets from client 204A, and provide the packets to data plane 404 for processing. Flow 408 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 410. Otherwise, processing by SSL decrypter 410 is omitted. Application identification module 412 is configured to determine what type of traffic the session involves and to identify a user associated with the traffic flow. For example, application identification module 412 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 414. In some embodiments, the application identification is performed by an application identification module (e.g., APP-ID engine), and a user identification is performed by another function/engine. Based on the determination made by application identification module 412, the packets are sent to an appropriate decoder 414. Decoder 414 is configured to assemble packets (e.g., which may be received out of order) into the correct order, perform tokenization, and extract out information. Decoder 414 also performs signature matching to determine what should happen to the packet. As also shown, signatures 418 are received and stored in the management plane 402. In some embodiments, policy enforcement (e.g., policies can include one or more rules, and rules can apply one or more signatures) using signatures is applied as described herein with respect to various embodiments based on the monitored, identified, and decoded session traffic flows. In some embodiments, decoder 414 can also enforce policies 416 using signatures 418 provided by management plane 402, including newly generated signatures, using the various techniques described herein with respect to various embodiments.
At 506, a new signature is automatically generated if the potential malware sample is determined to be malware. In some embodiments, a new signature is a new file-based signature (e.g., an MD5 hash-based signature for identifying a malware file, a digest from header information of a file based on a file type for identifying a malware file, or heuristic-based file signature generation techniques based on an analysis of, for example, a PDF file that includes JavaScript that is suspicious or recently added header references appending new data in the PDF file). In some embodiments, a new signature is a DNS-based signature, a URL-based signature, an IP-based signature, a protocol-based signature, a port-based signature, and/or other types of signatures, or combinations thereof, that can be effectively applied and enforced using inline network security (e.g., filtering or firewall) techniques. For example, a new signature can be generated for a PDF file that is determined to include malicious content. The PDF file can be de-obfuscated, if appropriate, and parsed. If the PDF file is detected to include script (e.g., JavaScript), it is scanned using a malicious script detection engine for malicious JavaScript elements. In some cases, a signature can be generated using patterns identified within one or more script portions of the PDF file. If a signature was not generated using patterns identified within one or more script portions of the PDF file and/or there is no script included in the PDF file, then a signature can be generated using portions of the PDF file related to a cross-reference table of the PDF file. The generated signatures can then be used to detect whether subsequently received PDF files include malware.
At 508, the new signature is sent to the firewall. In some embodiments, the new signature is distributed to other security functions/devices and/or a security cloud service.
In embodiments, various heuristic techniques are performed by the malware analysis system using a VM to emulate the behavior of a file or web site content and/or other behavior to analyze the potential malware sample in a controlled/secure sandbox environment of a VM environment. For example, behavior profiling techniques for identifying potentially suspicious behavior often associated with malware can include programmatically making changes to security application/platform settings (e.g., changes to a Windows Filtering Platform (WFP) setting, changes to an Internet Explorer (IE) browser setting, changes to an auto start registry, and/or changes to an install driver). Various other heuristic techniques for malware analysis and identification are discussed below with respect to
GET/xin.rar HTTP/1.1
User-Agent: RookIE/1.0
Host: www.wc86.com
At 814, monitoring behavior indicated in the network traffic for communicating using a post method in HTTP traffic is performed. At 816, monitoring behavior indicated in the network traffic for communicating unclassified traffic (e.g., unknown application traffic) over an HTTP port is performed. In some embodiments, various other heuristics can be performed for network traffic behavior monitoring for identifying potential malware. For example, network traffic can be monitored to identify the behavior of connecting to a non-standard IRC port for IRC traffic (e.g., IRC protocol traffic using port 80, which is typically only used by HTTP protocol traffic). As another example, monitoring behavior indicated in the network traffic for communicating using intrusion prevention system evasion techniques is also performed. As an example, in an HTTP post request, assume a string “POST” is sent through three IP packets. The first packet is a single character “P”, the second is duplicated “P”, and the third one is “ost”. This technique would evade any firewall/IPS functions that do not reassemble TCP packets, but using the techniques described herein, which includes reassembly of TCP packets, this type of behavior can be detected. At 818, correlating the monitored and classified network traffic behaviors is performed, and a score (e.g., a severity score or malware score) is calculated based on the monitored/classified suspicious behaviors.
As will now be apparent, various other heuristic-based malware detection techniques can be applied using the malware analysis system in accordance with various embodiments described herein. Also, various system and network architectures can be applied using the various techniques described herein. For example, various techniques for malware analysis as described herein can be implemented in an integrated security appliance that provides inline filtering functionality and also executes the virtual machine analysis techniques as described herein. As another example, the virtual machine functionality can be implemented using another appliance or computer server, which can communicate the malware analysis results (e.g., a new signature and/or malware analysis results that facilitate another function to generate the new signature) to various other security functions (e.g., security appliances, network appliances, and/or host-based security software). As yet another example, the virtual machine functionality can be implemented using or assisted by a security cloud service (e.g., for performing certain post analysis techniques using log information as described herein), which can communicate the malware analysis results (e.g., a new signature and/or malware analysis results that facilitate another function to generate the new signature) to various other security functions (e.g., security appliances, network appliances, and/or host-based security software) and/or generates new security updates (e.g., pushes the new signature(s) to various security devices/software that subscribe to signature updates from the security cloud service vendor).
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/115,032, entitled MALWARE ANALYSIS SYSTEM filed May 24, 2011 which is incorporated herein by reference for all purposes.
Number | Name | Date | Kind |
---|---|---|---|
7277950 | Chapweske | Oct 2007 | B1 |
8402529 | Green et al. | Mar 2013 | B1 |
9027135 | Aziz | May 2015 | B1 |
20050021821 | Turnbull | Jan 2005 | A1 |
20050198289 | Prakash | Sep 2005 | A1 |
20080005782 | Aziz | Jan 2008 | A1 |
20080133540 | Hubbard | Jun 2008 | A1 |
20080307493 | Moghe | Dec 2008 | A1 |
20090031135 | Kothandaraman | Jan 2009 | A1 |
20090282483 | Bennett | Nov 2009 | A1 |
20110035804 | Moghe | Feb 2011 | A1 |
20110078794 | Manni | Mar 2011 | A1 |
20110154493 | Thayer | Jun 2011 | A1 |
20110219450 | McDougal | Sep 2011 | A1 |
20110247072 | Staniford et al. | Oct 2011 | A1 |
20120331553 | Aziz | Dec 2012 | A1 |
Number | Date | Country |
---|---|---|
2004302538 | Oct 2004 | JP |
2011013917 | Jan 2011 | JP |
2009158239 | Dec 2009 | WO |
Entry |
---|
Seiji Munakata “Throrough Coverage Antivirus Software for Company 70% Reduction in Load in Virtual Environment Resistant to New Type in Cooperation with Cloud” No. 776 Nikkei Computer, Japan, Nikkei Business Publications, Inc., Feb. 17, 2011, pp. 108-111. |
Yusuke Komatsu “Technology to Fight against Malware” Information Processing, vol. 51, 3rd Edition, Information Processing Society of Japan, Mar. 15, 2010, pp. 261-269. |
Number | Date | Country | |
---|---|---|---|
20150319136 A1 | Nov 2015 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13115032 | May 2011 | US |
Child | 14692587 | US |