System, method and computer program product for detection of unwanted processes
A system, method and computer program product are provided which are capable of intercepting a call. Once intercepted, it is determined whether the call is associated with a previous sequence of calls in order to identify a correct sequence of calls associated with the intercepted call. Next, the call is associated with the correct sequence of calls. State information that is associated with the call is then gathered. Further, sequence state information is updated, and it is determined whether a process is unwanted based, at least in part, on such sequence state information. If it is determined that the process is unwanted, a reaction may be made to the unwanted process. If it is not determined that the process is unwanted, a next call may be intercepted, and so on.
Latest McAfee, Inc. Patents:
The present application is a continuation-in-part of a application filed Jun. 22, 2004 under application Ser. No. 10/874,433, which, in turn, is a continuation of an application Ser. No 09/561,395 filed Apr. 28, 2000 and now issued under U.S. Pat. No. 6,823,460, which, in turn, claimed priority from an Israeli patent application filed Nov. 14, 1999 under application Ser. No. 132916, which are each incorporated herein by reference in their entirety for all purposes.
FIELD OF THE INVENTIONThe present invention relates to computer/network security systems, and more particularly, to detecting/preventing unwanted processes.
BACKGROUND OF THE INVENTIONIn the space of just a decade, the Internet, because it provides access to information, and the ability to publish information, in revolutionary ways, has emerged from relative obscurity to international prominence. Whereas, in general, an internet is a network of networks, the Internet is a global collection of interconnected local, mid-level, and wide-area networks that use the Internet Protocol (IP) as the network layer protocol. Whereas the Internet embraces many local- and wide-area networks, a given local- or wide-area network may or may not form part of the Internet.
As the Internet and its underlying technologies have become increasingly familiar, attention has become focused on Internet security and computer network security in general. With unprecedented access to information has also come unprecedented opportunities to gain unauthorized access to data, change data, destroy data, make unauthorized use of computer resources, interfere with the intended use of computer resources, etc. These opportunities have been exploited time and time again.
Many techniques have been used to prevent and detect unwanted processes and the various related malicious functionality resulting therefrom. For example, signature-based identification may be used to detect a threat using an associated signature. Specifically, once malicious code is detected, a signature, or definition, may be created for use in detecting future threats resulting from the detected malicious code.
Unfortunately, it takes a predetermined amount of time for such signatures associated with new malicious code to be distributed for use. Further, the speed with which malicious code propagates has increased significantly from a matter of weeks to a matter of hours. To this end, signature-based malicious code identification leaves computers/networks vulnerable for a significant time period from the initial proliferation of the malicious code until the distribution of the associated signature.
To compensate for the aforementioned vulnerability, behavioral heuristics have been used, which employ heuristics that employ a context of malicious operations in order to detect malicious code. In other words, behavioral heuristic techniques do not attempt to identify the malicious code, itself per se, but rather identify various computer/network functionality that is likely indicative of new malicious code.
Unfortunately, however, behavioral heuristic-based techniques are subject to false positives (i.e., situations where the techniques indicate that malicious code exists, when, in fact, it does not). Such false positive conditions often arise when certain functionality that is deemed to be malicious is also performed for benign purposes.
There is thus a need for a technique that provides the real-time protection of behavioral heuristics, with the additional accuracy (and less false positives) that is traditionally provided by signature-based scanning. Further, there is a need for overcoming these and/or other problems associated with the prior art.
SUMMARYA system, method and computer program product are provided which are capable of intercepting a call. Once intercepted, it is determined whether the call is associated with a previous sequence of calls in order to identify a correct sequence of calls associated with the intercepted call. Next, the call is associated with the correct sequence of calls. State information that is associated with the call is then gathered. Further, sequence state information is updated, and it is determined whether a process is unwanted based, at least in part, on such sequence state information. If it is determined that the process is unwanted, a reaction may be made to the unwanted process. If it is not determined that the process is unwanted, a next call may be intercepted, and so on.
Coupled to the networks 102 are data server computers 104 which are capable of communicating over the networks 102. Also coupled to the networks 102 and the data server computers 104 is a plurality of end user computers 106. In order to facilitate communication among the networks 102, at least one gateway or router 108 is optionally coupled therebetween.
It should be noted that each of the foregoing network devices in the present network architecture 100, as well as any other unillustrated hardware and/or software, may be equipped with various security features. For example, the various data server computers 104 and/or end user computers 106 may be equipped with security functionality in the form of a scanner, a firewall, intrusion detection/prevention system, etc. for purposes that will be set forth hereinafter in greater detail.
The workstation shown in
The workstation may have resident thereon any desired operating system. It will be appreciated that an embodiment may also be implemented on platforms and operating systems other than those mentioned. One embodiment may be written using JAVA, C, and/or C++ language, or other programming languages, along with an object oriented programming methodology. Object oriented programming (OOP) has become increasingly used to develop complex applications.
Of course, the various embodiments set forth herein may be implemented utilizing hardware, software, or any desired combination thereof. For that matter, any type of logic may be utilized which is capable of implementing the various functionality set forth herein.
The security method 300 may begin by intercepting a call, in operation 306. In the context of the present description, the call may include a system call, a user mode call, a kernel mode call, an application program interface (API) call, a function call, a network message call, a remote procedure call, a queued message call, a calling routine, and/or any other code and/or function that is capable of invoking and/or executing another code and/or function. Still, the act of intercepting may refer to any technique of capturing, monitoring, interrupting, and/or any other act capable of allowing a user to associate the call with a correct sequence of calls, and/or gather state information associated with the call, in the manner that will soon be set forth in greater detail. As an option, the call may include detailed information, such as a call name, optional parameters, and/or an outcome of the call (i.e. return code); although any information associated with the call may or may not be included.
It is next determined, in operation 308, whether the call is associated with a previous sequence of calls in order to identify a correct sequence of calls associated with the call. It should be noted that, in use, calls may be generated in a sequence to produce an intended resulting function. Further, a plurality of sequences of calls may be generated simultaneously and/or in parallel. As a result, each consecutively intercepted call may or may not be associated with the same sequence.
To this end, the determination of operation 308 aids in associating the call with a correct sequence of calls in operation 309. In the context of the present description, such correct sequence of calls involves the sequence of calls which, with the present intercepted call, accomplish the corresponding intended overall functionality. Of course, operations 308-309 may employ any characteristics, heuristics, or any other identifying aspect of the calls in order to associate the same with the correct sequence of calls.
Next, in operation 310, state information associated with the call is gathered. State information includes any sort of indication that an associated process (which may be initiated by a corresponding file, etc.) is suspicious, is non-suspicious, includes malicious code, possibly includes malicious code, and/or is indicative of a state of the call and may be used to later determine whether the process is unwanted, as will soon be set forth. As an option, the state information may also include an argument to the call (i.e. usually an object of the call and a desired operation on the object), and an outcome of the call (i.e. return code and/or other status information).
Sequence state information is also updated based the gathered state information, as indicated in operation 311. As mentioned previously, the calls have an associated sequence of calls. Further, in the manner that each individual call has associated state information, the sequence of calls may have collective sequence state information.
In the context of the present description, similar to the state information, the sequence state information may include any sort of indication that an associated process is suspicious, is non-suspicious, includes malicious code, possibly includes malicious code, and/or is indicative of a state of the call and may be used to later determine whether the process is unwanted, as will soon be set forth. Thus, since the sequence state information may include any information that is indicative of a state of the sequence of calls, the interception of a new call may require that the sequence state information be updated so that the sequence state information reflects the state information associated with the newly intercepted call.
With this framework of intercepting calls and gathering and updating state information/sequence state information, various measures may be taken to manage unwanted processes using this collected information. Specifically, the sequence state information about the identified sequence of calls may be utilized in determining whether an associated process is unwanted. Note decision 312.
In the context of the present description, an unwanted process may refer to any process that is determined to be at least partially and/or potentially unwanted (e.g. suspicious, etc.). To this end, the method 300 may be used to detect and/or manage not only malicious code (i.e. malware, etc.), but also spyware, etc. Malware traditionally refers to computer viruses, worms, Trojan horses, etc. Spyware, while not as malicious as the aforementioned conventional viruses, Trojan horses, etc., may still cause problems for computer users. For example, spyware may be designed to log keystrokes, track which websites a computer user visits, and/or transmit personal information to a third party. In the context of the present description, the term spyware is further deemed to include other related types of similar software such as adware, dialer software, other equivalents, and/or any other software that is less malicious than conventional malware.
With continuing reference to
On the other hand, if it is determined in decision 312 that the process is unwanted, a reaction is made with regard to the process, in operation 314. Such reactions may include, but are not limited to, terminating the process, quarantining the process, alerting a user/administrator of the process, reporting the process, further analyzing the process, and/or any other appropriate measure that is deemed appropriate for the unwanted process.
Upon the realization that a process is unwanted, it is also possible that a whole collection of processes may become unwanted (e.g. “dropper” processes that deliver the unwanted process, etc.). Therefore, it is possible that a reaction may be made with respect to such processes, as well. In addition, the state information for each unwanted process may contain a collection of unwanted objects (e.g. files, etc.) that may also be quarantined, deleted, and/or treated in any other way that suits the condition on which the process was determined to be unwanted.
As will soon become apparent, the sequence state information may provide an indication of various degrees in which the associated process is unwanted (e.g. suspicious, malicious, etc.), and different appropriate reactive measures may be carried out accordingly. As a further option, different state machines may optionally be employed, each for monitoring certain unwanted processes by detecting sequence state information that is particularly indicative of such unwanted processes. More optional information on such aspects will be set forth hereinafter in greater detail during reference to subsequent figures.
The present method 300 thus allows for aggregate state information to be gathered according to sequences of calls, which in turn allows for more accurate detection of unwanted processes. To this end, the present method 300 may optionally provide more real-time protection, with the additional accuracy (and less false positives), as well as other optional advantages.
More illustrative information will now be set forth regarding various optional architectures and uses in which the foregoing method 300 may or may not be implemented, per the desires of the user. It should be strongly noted that the following information is set forth for illustrative purposes and should not be construed as limiting in any manner. Any of the following features may be optionally incorporated with or without the exclusion of other features described.
As shown, the architecture 400 includes a detector 402, an interceptor (i.e. kernel driver 404, etc.), and a plurality of state machines 406 and 408. The state machines 406 and 408 may include a mass-mailer state machine, and/or any other state machines that are associated with an unwanted process. Further, the state machines 406 and 408 may be provided utilizing a plug-in interface, or any other interface capable of communicating with the detector 402.
The detector 402 includes an operating system state module 410 and a detection module 412. In addition, the detector 402 includes an infrastructure for defining and running the state machines 406 and 408. It should be noted that the above disclosed architecture 400 is only one mode of implementing the security method 300 of
In the present embodiment, the kernel driver 404 may be used to intercept a call and forward such call to the detector 402. When the detector 402 starts to run, it may identify a plurality of running processes and/or open handles. Such identification may be used to provide immediate protection without having to restart an associated system.
Upon interception of the call, the detector 402 then aggregates data (i.e. name, parameters, etc.) associated with the call. This type of aggregation may be used to identify a correct sequence of calls associated with the current call.
Next, the state machines 406 and 408 send state information associated with the call to the detector 402. In one particular example which will be elaborated upon during the description of subsequent figures, the first state of one of the state machines 406 and 408 may be a write operation executed by an electronic message client. Further, the states of the appropriate state machine following the first state may depend on a file extension associated with the process. Further during use, the state machines 406 and 408 may also be capable of monitoring files and executables affected by saved files. Thus, sequence state information is collected.
The detector 402 may also determine whether the first state and following states are suspicious. If at least one of the first state and following states are determined to be suspicious, additional information (i.e. sequence state information, etc.) may be collected, in the foregoing manner. Once additional information is collected, such additional information may be utilized in determining whether a process associated with the call is unwanted. Once the detector 402 reaches a state (as indicated, at least in part, by the sequence state information) that suggests a process associated with the call is unwanted (i.e. malicious, etc.), the process may be terminated in real-time.
As an option, marking the call as suspicious may allow for an intermediate categorization of the call. In this way, additional information may be required before determining that a process associated with the call is malicious. This technique thus allows for a more accurate determination of whether the call is in fact malicious.
In the present embodiment, files saved in an electronic mail (i.e. “email”) client are tracked utilizing a mass-mailer state machine (not shown). Initially, a write operation 504 is performed by an email client, which creates first state information (i.e. starting state information) indicative of the write operation 504. The first state information associated with such write operation 504 may include writing a suspicious screensaver, script file, executable, library, archive, office document, HTML document, or anything else capable of being written by an email client. Next state information is then selected depending on the file extension associated with the write operation 504. Note operation 506.
Depending on the first and/or next state information, the write operation 504 may be determined to be suspicious in operation 510. If the next state information indicates that the write operation 504 is not suspicious, the method 500 returns to tracking the state of the original suspicious operation. In addition, once a process is determined to be suspicious in operation 510, the suspicious process state information becomes the first state information, for further tracking purposes. See
More exemplary information regarding the method 500 is set forth in Table 1 below. It should be noted, however, that the contents of such table is set forth for illustrative purposes only, and should not be construed as limiting in any manner.
Initially, a suspicious process 602 is identified as described in
In another example, a library 608 determined to be suspicious, as described in
In some instances, a suspicious process may perform propagation actions. After a process is determined to be a suspicious process 702, which may be determined per the method 500 of
In one optional embodiment, again in the context of operation 308 of
Meeting the certain threshold creates a new state of the suspicious process 702, such that the suspicious process 702 may be determined to be a specific infector 706, a virus 708, or a possible virus 710. Of course, the suspicious process 702 may be determined to be any other state based on the threshold 704. If the process is determined to be a possible virus 710, for example, additional information on the suspicious process 702 may be gathered to determine if the suspicious process 702 is a virus 708 or just noise 712.
Again, it should be strongly noted that foregoing examples of architecture/operation of
While various embodiments have been described above, it should be understood that they have been presented by way of example only, and not limitation. For example, any of the network elements may employ any of the desired functionality set forth hereinabove. Thus, the breadth and scope of a preferred embodiment should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.
Claims
1. A security method, comprising:
- (a) intercepting a call;
- (b) determining whether the call is associated with a previous sequence of calls in order to identify a correct sequence of calls associated with the call;
- (c) associating the call with the correct sequence of calls;
- (d) gathering state information associated with the call;
- (e) updating sequence state information;
- (f) determining whether a process is unwanted based, at least in part, on the sequence state information;
- (g) if it is determined that the process is unwanted, reacting to the unwanted process;
- (h) if it is not determined that the process is unwanted, repeating (a)-(f); wherein a kernel driver intercepts the call and forwards the call to a detector; wherein the detector includes an infrastructure for providing a state machine.
2. The method as recited in claim 1, wherein the call is selected from the group consisting of a system call, a user mode call, a kernel mode call, a function call, a network message call, a remote procedure call, a queued message call, an application program interface (API) call, and a calling routine.
3. The method as recited in claim 1, wherein the state information is selected from the group consisting of a name of the call, optional parameters, and an outcome of the call.
4. The method as recited in claim 1, wherein the state information includes a name of the call, optional parameters, and an outcome of the call.
5. The method as recited in claim 1, wherein the reacting includes terminating the unwanted process.
6. The method as recited in claim 1, wherein the state machine is provided utilizing a plug-in interface.
7. The method as recited in claim 1, wherein the state machine monitors files and executables affected by saved files.
8. The method as recited in claim 1, wherein a first state of the state machine is a write operation executed by an electronic message client.
9. The method as recited in claim 8, wherein states of the state machine following the first state depend on a file extension associated with the process.
10. The method as recited in claim 9, wherein it is determined whether the first state and following states are suspicious.
11. The method as recited in claim 10, wherein additional information is collected if it is determined that at least one of the first state and the following states are suspicious.
12. The method as recited in claim 11, wherein the additional information is utilized in determining whether the process is unwanted.
13. The method as recited in claim 1, wherein associating the call with the previous sequence of calls includes chaining the call to the sequence of calls.
14. A security method, comprising:
- intercepting a call;
- determining whether the call is associated with a previous sequence of calls in order to identify a correct sequence of calls associated with the call;
- associating the call with the correct sequence of calls;
- gathering state information associated with the call;
- updating sequence state information;
- determining whether a process is unwanted based, at least in part, on the sequence state information;
- if it is determined that the process is unwanted, reacting to the unwanted process;
- if it is not determined that the process is unwanted, repeating the intercepting, determining, associating, gathering, updating, and determining;
- wherein a kernel driver intercepts the call and forwards the call to a detector;
- wherein the detector identifies a plurality of running processes.
15. A security method, comprising:
- intercepting a call;
- determining whether the call is associated with a previous sequence of calls in order to identify a correct sequence of calls associated with the call;
- associating the call with the correct sequence of calls;
- gathering state information associated with the call;
- updating sequence state information;
- determining whether a process its unwanted based, at least in part, on the sequence state information;
- if it is determined that the process is unwanted, reacting to the unwanted process;
- if it is not determined that the process is unwanted, repeating the intercepting, determining, associating, gathering, updating, and determining;
- wherein a kernel driver intercepts the call and forwards the call to a detector,
- wherein the detector identifies a plurality of open handles.
16. A security computer program product embodied on a computer readable medium, comprising:
- (a) computer code for intercepting a call;
- (b) computer code for determining whether the call is associated with a previous sequence of calls in order to identify a correct sequence of calls associated with the call;
- (c) computer code for associating the call with the correct sequence of calls;
- (d) computer code for gathering state information associated with the call;
- (e) computer code for updating sequence state information;
- (f) computer code for determining whether a process is unwanted based, at least in part, on the sequence state information;
- (g) computer code for reacting to the unwanted process, if it is determined that the process is unwanted;
- (h) computer code for repeating execution of computer code (a)-(f), if it is not determined that the process is unwanted; wherein a kernel driver intercepts the call and forwards the call to a detector; wherein the detector includes an infrastructure for providing a state machine
17. A security system comprising:
- an interceptor for intercepting a call;
- wherein it is determined whether the call is associated with a previous sequence of calls in order to identify a correct sequence of calls associated with the call; the call is associated with the correct sequence of calls; state information associated with the call is gathered; sequence state information is updated; it is determined whether a process is unwanted based, at least in part, on the sequence state information; and reacting to the unwanted process if it is determined that the process is unwanted;
- wherein a kernel driver intercepts the call and forwards the call to a detector;
- wherein the detector includes an infrastructure for providing a state machine.
18. A security system, comprising:
- an interceptor for intercepting a call;
- wherein it is determined whether the call is associated with a previous sequence of calls in order to identify a correct sequence of calls associated with the call; the call is associated with the correct sequence of calls; state information associated with the call is gathered; sequence state information is updated; it is determined whether a process is unwanted based, at least in part, on the sequence state information; and reacting to the unwanted process if it is determined that the process is unwanted;
- wherein a kernel driver intercepts the call and forwards the call to a detector;
- wherein the detector identifies a plurality of running processes.
19. A security system, comprising:
- an interceptor for intercepting a call;
- wherein it is determined whether the call is associated with a previous sequence of call; in order to identify a correct sequence of calls associated with the call, the call is associated with the correct sequence of calls, state information associated with the call is gathered; sequence state information is updated; it is determined whether a process is unwanted based, at least in part, on the sequence state information; and reacting to the unwanted process if it is determined that the process is unwanted;
- wherein a kernel driver intercepts the call and forwards the call to a detector;
- wherein the detector identifies a plurality of open handles.
6275938 | August 14, 2001 | Bond et al. |
20030182572 | September 25, 2003 | Cowan et al. |
20050166001 | July 28, 2005 | Conover et al. |
- Cowan et al., StackGuard: Automatic Adaptive detection and Prevention of Buffer-Overflow Attacks, 7th USENIX Security Symposium, 1998.
- Baratloo et al., Transparent Run-time Defense against Stack-Smashing Attacks, USENIX Annual Conference, general Session, Jun. 2000.
- Cowan, Cripsin, “Array Bounds Checking for C” http://www.usenix.org/publication/library/proceedings/sec98/full—papers/cowan/cowan—html/node23.html.
- Cowan, Crispin, “Memory Access Checking” http://www.usemix.org/publications/library/proceedings/sec98/full—papers/cowan/cowan—html/node24.html.
- Cowan, Crispin, “Type-Safe Languages” http://www.usnix.org/publications/library/proceedings/sec98/full—papers/cowan/cowan—html/node25.html.
- Cowan, Crispin, “Conclusions” http://www.usenix.org/publications/library/proceedings/sec98/full—papers/cowan/cowan—html/node26.html.
- Cowan, Crispin, “Availability” http://www.usenix.org/publications/library/proceedings/sec98/full—papers/cowan/cowan—html/node27.html.
- “References” http://www.usenix.org/publications/library/proceedings/sec98/full—papers/cowan/cowan—html/node28.html.
Type: Grant
Filed: Feb 10, 2005
Date of Patent: Oct 9, 2007
Patent Publication Number: 20050177752
Assignee: McAfee, Inc. (Santa Clara, CA)
Inventors: Yona Hollander (Cupertino, CA), Oded Horovitz (Palo Alto, CA)
Primary Examiner: Taghi Arani
Attorney: Zilka-Kotab, PC
Application Number: 11/055,197
International Classification: H04L 9/00 (20060101);