Exploit Detection/Prevention

Information

  • Patent Application
  • 20150113644
  • Publication Number
    20150113644
  • Date Filed
    October 21, 2013
    11 years ago
  • Date Published
    April 23, 2015
    9 years ago
Abstract
An Agent for detecting and/or preventing an Exploit attack, comprises: a) means for monitoring the operation of one or more process elements in a computer system; b) means for determining whether said one or more process elements has initiated, or is about to initiate a “create process” operation; and c) means for performing preventive activities as a result of the determination.
Description
FIELD OF THE DISCLOSURE

The present disclosure relates to a method for protecting computer systems from malware infection. More particularly, an exemplary embodiment relates to the detection and prevention of the malware infection carried out via attacks known as “Exploitation attacks”.


BACKGROUND OF THE DISCLOSURE

Malware creators always look for ways to circumvent protections provided to computer systems, in order to deploy a so-called “malware” to computer systems, from which it can develop and infiltrate other subsystems. While different malware has different targets, the general-purpose is most often to extract unbeknownst to the computer user, information that has value for the malware developer, such as axis information to financial organizations, passwords and other personal information.


Since for the successful delivery of malware to a computer system the user of the system must not be aware that the deployment process is taking place, attackers often use apparently harmless websites for this purpose. One example is when a user is browsing in apparently legitimate website, which displays an advertisement, and another could be, for instance, allowing to download a brochure. When the brochure is downloaded, the PDF reader opens the PDF file, which is not a legitimate file but rather primes activities which are unusual for the reader, which includes downloading and executing a malicious file from the web. This process is known as “Drive by Download”. It can be performed using a variety of readers and players, typically running files such as Java, PDF and Flash. It can also be targeting the browser itself. Such process can be performed singularly, or may be a part of a so-called “Exploit Kit”, which is a “shrink-wrapped” system which can attempt several (sometimes dozens) of different exploits per the victim's OS, browser and plugin inventory, in order to maximize the likelihood of the victim being exploited.


In order to further illustrate the activities taking place inside the Adobe Reader process as it processes the (malicious) PDF file, the following is a typical exploitation flow:

    • The Acrobat reader process receives the PDF document.
    • Acrobat reader parses the PDF document and executes the scripts inside it.
    • The script exploits a vulnerability, e.g. a stack overflow (a vulnerability that is uncommon in present days), or a heap overflow, or a “use after free” condition, together with some method of preparing some memory area with desired values (e.g. with heap spraying) so that the Acrobat reader process now starts executing malicious instructions (as specified in the prepared memory section).
    • The malicious code then downloads the final payload from a URL found in the exploit code or in parameters provided to it, to a local file, e.g. in Windows to a random file name under the %TEMP% folder.


Finally, the exploit code runs the newly created file (e.g. in Windows by invoking CreateProcess Windows API).


The present disclosure may provide means to detect an Exploit attempt, so as to be able to alert the user of its existence. In addition, various embodiments may provide means to prevent Exploit attempts.


Other objects and advantages will become apparent as the description proceeds.


SUMMARY OF THE DISCLOSURE

An Agent for detecting and/or preventing an Exploit attack, comprises:

    • i. means for monitoring the operation of one or more process elements in a computer system;
    • ii. means for determining whether said one or more process elements has initiated, or is about to initiate a “create process” operation; and
    • iii. means for performing preventive activities as a result of the determination.


According to an embodiment, the process element consists of readers, players, browsers and the like software elements capable of initiating a process. According to another embodiment, the Agent is suitable to intercept the creation of a process. The interception of process creation can be performed, for instance, by one or more of the following:

    • (a) in kernel (Windows XP), by hooking SSDT entry for NtCreateProcess.
    • (b) in kernel (Windows XP and above), by registering a Windows kernel Object Manager callback; or
    • (c) in userspace, by hooking CreateProcessA/CreateProcessW/CreateProcessExA/CreateProcessExW of potential invoking processes.


In one embodiment, the Agent is suitable to inspect a process about to be created, e.g., by looking at the originating process and determining whether it is one susceptible of attack. Illustrative examples of processes to which an exemplary embodiment refer include those that originate from one of a browser, a viewer or a player.


In another embodiment, the inspection of the process about to be created is carried out by looking at one or more of the following:

  • (a) the originating process data source;
  • (b) by looking at the location of about-to-be-launched process image;
  • (c) By looking at characteristics of the about-to-be-launched process image, such as size or digital signature.


The Agent of an exemplary embodiment can also be provided with a blacklist and/or whitelist of process images. In some embodiments, the Agent is suitable to determine whether the launched process is used to launch/register another process and thereby to carry out the inspection of the process about to be created not on the process itself but, instead, on its target argument. The means for performing preventive activities may include software and the preventive activities may include generating an alert, either to the user or to a remote location.


An exemplary embodiment also encompasses a method for the detection and/or prevention of an Exploit attack, comprising:

  • i. monitoring the operation of one or more reader and/or player in a computer system;
  • ii. determining whether said one or more reader and/or player has initiated, or is about to initiate a “create process” operation; and


    performing preventive activities as a result of the determination, wherein said activities are selected from alerting a user and/or a remote location, and preventing the process being created from continuing.


According to an embodiment, the method of comprises intercepting the creation of a process, e.g., by one or more of the following:

  • in kernel (Windows XP), by hooking SSDT entry for NtCreateProcess;
  • in kernel (Windows XP and above), by registering a Windows kernel Object Manager callback;
  • in userspace, by hooking CreateProcessA/CreateProcessW/CreateProcessExA/CreateProcessExW of potential invoking processes.


In an embodiment, the method comprises inspecting a process about to be created, e.g., by looking at one or more of:

  • (a) the originating process, to determine whether it is one susceptible of attack;
  • (b) the originating process data source;
  • (c) the location of about-to-be-launched process image.





BRIEF DESCRIPTION OF THE DRAWINGS

In the drawings:



FIG. 1 illustrates a sample process by which a PDF reader is exploited.





DETAILED DESCRIPTION


FIG. 1 schematically illustrates an example of an Exploit attack, using a PDF reader. As the skilled person will easily understand similar situations will exist when instead of a PDF reader a different reader or a player (e.g., a Flash player) is used, or a browser or an email client, and this particular example is provided for the sake of brevity, but is not meant to limit the disclosure in any way. As will be apparent to the skilled person, although Windows is used as a representative system, the disclosure is by no means limited to any specific operating system and Windows is only used because of its widespread use, which makes it a convenient example.


Moreover, the software (e.g., PDF reader, player, clients, and the like) described herein may run on a network-enabled computer system and/or device which may include, but is not limited to: e.g., any computer device, or communications device including, e.g., a server, a network appliance, a personal computer (PC), a workstation, a mobile device, a phone, a handheld PC, a personal digital assistant (PDA), a thin client, a fat client, an Internet browser, or other device. The network-enabled computer systems may execute one or more software applications to, for example, receive data as input from an entity accessing the network-enabled computer system, process received data, transmit data over a network, and receive data over a network. The network-enabled computer systems may further include data storage. The data storage of the network-enabled computer systems may include electronic information, files, and documents stored in various ways, including, for example, a flat file, indexed file, hierarchical database, relational database, such as a database created and maintained with software from, for example, Oracle® Corporation, Microsoft® Excel file, Microsoft® Access file, or any other storage mechanism.


The process starts with a user surfing the web and reaching a page, generally indicated by numeral 1, which displays an advertisement 2. Clicking on the advertisement downloads a PDF file 3 (which can be disguised, for instance, as a brochure). When the PDF file is read by reader 4, it causes the reader 4 to access the web (generally indicated by numeral 5 and to download a malicious file 6. The reader 4 then causes the file 6 to be executed.


According to an exemplary embodiment this Exploit is detected and/or prevented, by providing an Agent in the user's system, which monitors the behavior of process elements, such as readers, players and browsers, and intervenes, either by generating an alert or by stopping the process, when a reader or player initiates a “create process” operation. For the purposes of this description a “process element” refers to any software that is capable of initiating a process. Software, as referred to herein, may refer to non-transitory computer-readable media that when executed on a computer, causes the computer to perform steps defined in the software. In many cases it is legitimate for such a process element to initiate a create process operation, and it is desirable to whitelist such legitimate cases. However, a small number of false positive responses (i.e., alerts that a potential Exploit situation is happening while the operation triggering this alert is legitimate) is acceptable, taking into account the severity of the outcome of such an attack.


In order to carry out an exemplary embodiment appropriate software must be provided to perform various operations, which will be collectively referred to herein as “Agent”. The interception of process creation can be implemented by said Agent in several ways, e.g.:

  • a. In kernel (Windows XP), by hooking SSDT entry for NtCreateProcess;
  • b. In kernel (Windows XP and above), by registering a Windows kernel Object Manager callback
  • c. In userspace, by hooking CreateProcessA/CreateProcessW/CreateProcessExA/CreateProcessExW of potential invoking processes.


Once the interception of process creation is guaranteed, the Agent needs to inspect the process about to be created, by looking at:

  • Originating process—e.g. whether it is a browser/viewer/player, in which case it is more susceptible to the attack;
  • Originating process data source—e.g. in the case of Acrobat Reader, whether it is consuming a document coming from the Internet (more suspicious), or a document coming from a local file server (less suspicious);
  • The about-to-be-launched process image—where it is located (typically for exploit kits, whether it is created in fully accessible locations such as %TEMP%, whereas system processes are launched from %Windows% or underneath it);
  • Other characteristics of the about-to-be-launched process image, e.g. size, digital signature;
  • The command line through which the process is launched (i.e. additional parameters provided to it)—possibly applying templates/regular expression to these in order to determine legitimacy or malice;
  • Finally, a blacklist and whitelist may be applied for the about-to-be-launched process image, via a cryptographic hash (MD5/SHA1/SHA2/SHA3).


Note that when the launched process is used to launch/register another process, e.g. cmd.exe, java.exe, rund1132.exe or regsvr32.exe, the arguments about the “about to be launched process” should apply not to the process itself (cmd.exe, java.exe, rund1132.exe, regsvr32.exe respectively), but rather to the target argument of it (e.g. in the case of “cmd.exe/start file”—to file).


Accordingly, as will be easily understood by the skilled person, an exemplary embodiment provides a simple and yet powerful tool for preventing Exploit attacks, which can be easily implemented by operating as hereinbefore detailed.


All the above description and exemplary embodiments have been provided for the purpose of illustration and are not intended to limit the disclosure in any way except as provided for by the appended claims.

Claims
  • 1. An apparatus for detecting and/or preventing an exploit attack, comprising: means for monitoring an operation of one or more process elements in a computer system;means for determining whether the one or more process elements has initiated, or is about to initiate, a create process operation to create a process; andmeans for performing preventive activities as a result of the determination, including inspecting the process that is the subject of the create process operation by inspecting one or more of the following: an originating process data source of the process that is the subject of the create process operation,a size of the process that is the subject of the create process operation, ora digital signature of the process that is the subject of the create process operation.
  • 2. The apparatus of claim 1, wherein the one or more process elements comprise any of readers, players, browsers and software elements capable of initiating a process.
  • 3. The apparatus of claim 1, wherein the apparatus is suitable to intercept a process creation.
  • 4. The apparatus of claim 3, wherein the interception of process creation is performed by one or more of the following: in kernel, by hooking SSDT entry for NtCreateProcess;in kernel, by registering a kernel Object Manager callback; orin userspace, by hooking CreateProcessA/CreateProcessW/CreateProcessExA/CreateProcessExW of potential invoking processes.
  • 5. (canceled)
  • 6. The apparatus of claim 1, wherein the inspection of the subject of the create process operation is carried out by looking at the originating process and determining whether it is one susceptible of attack.
  • 7. The apparatus of claim 1, wherein the subject of the create process operation originates from one of a browser, a viewer or a player.
  • 8. (canceled)
  • 9. The apparatus of claim 1, wherein the apparatus is provided with a blacklist or whitelist of process images for use with the subject of the create process operation.
  • 10. The apparatus of claim 1, wherein the apparatus is capable of determining whether the subject of the create process operation is used to launch or register another process, andinspecting a target argument of the subject of the create process operation.
  • 11. The apparatus of claim 1, wherein the means for performing preventive activities includes non-transitory computer readable media.
  • 12. The apparatus of claim 1, wherein the preventive activities include generating an alert.
  • 13. The apparatus of claim 12, wherein the alert is provided to a user.
  • 14. The apparatus of claim 12, wherein the alert is provided to a remote location.
  • 15. A method for the detection and/or prevention of an Exploit attack, comprising: monitoring the operation of one or more process elements in a computer system;determining whether the one or more process elements has initiated, or is about to initiate, a create process operation to create a process;inspecting the process that is the subject of the create process operation by inspecting one or more of the following: an originating process data source of the process that is the subject of the create process operation,a size of the process that is the subject of the create process operation, ora digital signature of the process that is the subject of the create process operation; andperforming preventive activities as a result of the determination, wherein said activities are selected from: alerting a user, alerting a remote location, and preventing the create process operation or the subject of the create process operation from continuing.
  • 16. The method of claim 15, further comprising intercepting a process creation.
  • 17. The method of claim 16, wherein interception of the process creation is performed by one or more of the following: in kernel, by hooking SSDT entry for NtCreateProcess;in kernel, by registering a Windows kernel Object Manager callback; orin userspace, by hooking CreateProcessA/CreateProcessW/CreateProcessExA/CreateProcessExW of potential invoking processes.
  • 18. (canceled)
  • 19. The method of claim 15, wherein the inspection of the subject of the create process operation is carried out by looking at the originating process to determine whether the originating process is one susceptible of attack.
  • 20. The method of claim 15, wherein the subject of the create process operation originates from one of: a browser, a viewer, or a player.