A portion of the disclosure of this patent document contains material that is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent disclosure, as it appears in the Patent and Trademark Office patent files or records, but otherwise reserves all copyright rights whatsoever.
The present invention relates to computer system management. In particular, but not by way of limitation, the present invention relates to systems and methods for controlling pestware or malware.
Personal computers and business computers are continually attacked by trojans, spyware, and adware, collectively referred to as “malware” or “pestware.” These types of programs generally act to gather information about a person or organization—often without the person or organization's knowledge. Some pestware is highly malicious. Other pestware is non-malicious but may cause issues with privacy or system performance. And yet other pestware is actual beneficial or wanted by the user. Wanted pestware is sometimes not characterized as “pestware” or “spyware.” But, unless specified otherwise, “pestware” as used herein refers to any program that collects information about a person or an organization.
Software is available to detect and remove pestware. But as pestware evolves, the software to detect and remove it must also evolve. Accordingly, current techniques and software are not always currently satisfactory and will most certainly not be satisfactory in the future. Additionally, because some pestware is actually valuable to a user, pestware-detection software should, in some cases, be able to handle differences between wanted and unwanted pestware.
Exemplary embodiments of the present invention that are shown in the drawings are summarized below. These and other embodiments are more fully described in the Detailed Description section. It is to be understood, however, that there is no intention to limit the invention to the forms described in this Summary of the Invention or in the Detailed Description. One skilled in the art can recognize that there are numerous modifications, equivalents and alternative constructions that fall within the spirit and scope of the invention as expressed in the claims.
One system includes a pestware shield configured to detect pestware activity on a protected computer; a heuristics engine configured to identify repeat pestware activity; a drive scan module configured to scan files stored on the storage device and to identify pestware in the scanned files; a program memory scan module configured to scan programs running in the program memory of the protected computer and to identify pestware in the scanned programs; a registry scan module configured to identify any attempts to change data in the registry file; and a quarantine module configured to quarantine the pestware identified by either the drive scan module or the program memory module.
Embodiments of the present invention include methods for monitoring network communications between a protected computer and a remotely-located computer such as a Web server. One embodiment is configured to intercept a data packet transmitted from a protected computer. This embodiment then compares the destination address of the data packet against a list of approved destination addresses. When the destination address is included in the list of approved destination addresses, then the packet is delivered to the destination address. If the packet is not addressed to an approved address, then it is evaluated for pestware traces.
Embodiments of the invention can also be configured to monitor incoming traffic to a protected computer. These and other embodiments are described in more detail herein.
Various objects and advantages and a more complete understanding of the present invention are apparent and more readily appreciated by reference to the following Detailed Description and to the appended claims when taken in conjunction with the accompanying Drawings wherein:
Referring now to the drawings, where like or similar elements are designated with identical reference numerals throughout the several views, and referring in particular to
Referring first to the detection module 105, it is responsible for detecting pestware or pestware activity on a protected computer or system. (The term “protected computer” is used to refer to any type of computer system, including personal computers, handheld computers, servers, firewalls, etc.) Typically, the detection module 105 uses pestware definitions to scan the files that are stored on a computer system or that are running on a computer system. The detection module 105 can also check WINDOWS registry files and similar locations for suspicious entries or activities. Further, the detection module 105 can check the hard drive for third-party cookies.
Note that the terms “registry” and “registry file” relate to any file for keeping such information as what hardware is attached, what system options have been selected, how computer memory is set up, and what application programs are to be present when the operating system is started. As used herein, these terms are not limited to WINDOWS and can be used on any operating system.
Pestware and pestware activity can also be identified by the shield module 120, which generally runs in the background on the computer system. Shields, which will be discussed in more detail below, can generally be divided into two categories: those that use definitions to identify known pestware and those that look for behavior common to pestware. This combination of shield types acts to prevent known pestware and unknown pestware from running or being installed on a protected computer.
Once the detection or shield module (105 and 120) detects software that could be pestware, the pestware files can be removed or at least quarantined to prevent further issues. The removal module 110, in one implementation, quarantines a potential pestware file and offers to remove it. In other embodiments, the removal module 110 can instruct the protected computer to remove the pestware upon rebooting. And in yet other embodiments, the removal module 110 can inject code into pestware that prevents the pestware from restarting or being restarted.
In many cases, the detection and shield modules (105 and 120) detect pestware by matching files on the protected computer with definitions of pestware, which are collected from a variety of sources. For example, host computers (shown in
Alternatively, users can report pestware to a host computer using the reporting module 115. And in some implementations, users may report potential pestware activity to the host computer. The host computer can then analyze these reports, request more information from the target computer if necessary, and then form the pestware definition. This definition can then be pushed from the host computer through a network to one or all of the protected computers and/or stored centrally. Alternatively, the protected computer can request that the definition be sent from the host computer for local storage.
Referring now to
In one implementation, the target file is scanned to determine if it includes an exact or substantial copy of the pestware. Because scanning all files in a computer system in their entirety would take a significant amount of time, one implementation of the comparison function enables staged comparisons. In the first stage, the protected computer scans its files and running programs for a small portion of a known pestware file. And in some embodiments, the protected computer could use hash functions to speed up any comparison. For example, the definition of a particular known pestware file could include a cyclic redundancy code (CRC) of the first 500 bytes of the file. The protected computer could then calculate a CRC for target files on the protected computer. The target file is any file that is being scanned for pestware. Note that the number of bytes used to calculate the CRCs is not relevant as long as the number of bytes is large enough to provide some degree of accuracy when comparing the target file to a pestware definition.
After both CRCs have been determined, they can be compared. (Block 135) And if they match, then the second stage of verification determines whether the target file is actually pestware. This second stage involves a complete or substantially complete comparison between the pestware definition and the target file. Generating a hash for both the definition and the file provides one method for comparing them. One example of a hashing algorithm that could be used to compare the definition and the target file is MD5. MD5 produces a digital signature for a file that is as unique as a fingerprint is to a person. Thus, if the result of the MD5 hash is the same for both the target file and the pestware definition, then the two files are virtually guaranteed to be equivalent-meaning that the target file is very likely pestware. (Block 140) And once a file has been identified as pestware, it can be removed. (Block 145)
Referring now to
Notably, not all pestware is unwanted or undesirable, and automatic removal is not always an acceptable option for users of these programs. For example, popular file-sharing programs like KAZAA act as wanted spyware. Similarly, the popular GOOGLE toolbar acts as wanted spyware in certain instances. Because users typically want to retain these types of programs, embodiments of the present invention enable the user to selectively identify and retain pestware files. (Block 165) And in certain embodiments, the protected computer can retain a list of approved pestware so that in future sweeps, the computer does not quarantine any pestware included in the list.
Finally, if the user elects to remove the pestware, it is deleted from the system. (Block 170) But if the user selects to retain the pestware, it is returned to its original form and location. The file can also be flagged as an approved program and added to an approved list. (Block 175)
Referring now to
When these types of pestware programs are identified, instructions can be inserted into the WIDOWS registry file, for example, the “run once” folder, to remove the associated files upon reboot—before the pestware program is started. The removal instruction should be inserted high on the “run once” list in case the pestware is monitoring for removal commands or has its own commands inserted into the registry file. Additionally, the removal instruction should be monitored and protected to prevent the pestware from removing it completely from the registry file.
Assuming that the pestware program can be safely shut down while it is running, the user is given the option of terminating the program. And if the user elects to terminate the program, the pestware is requested to shut itself down, through, for example a WM_CLOSE message. (Block 190) This request is typically issued through a WINDOWS call. If the pestware program does not terminate itself, then the WINDOWS application program interface (API) is requested to terminate the program. (Block 195) Broadly, if the program will not shut itself down, then the operating system is requested to shut the program down.
Typically, the operating system can terminate most pestware. But a problem arises when the pestware is associated with a sympathetic program that can restart it. For example, a watcher program can monitor a pestware program, and when the watcher program detects that the pestware program has been terminated, the watcher program could restart it, possibly under a new name. Similarly, when the watcher program is terminated, the pestware program could restart it. These types of mutually-sympathetic programs are difficult for traditional pestware-removal programs to handle. But one implementation of the present invention can address these types of programs by injecting code directly into the pestware programs. (Block 200)
Referring now to
If the watcher program can be identified, then it is quarantined along with the pestware program. But if the watcher program cannot be identified, then code injection can be used to block its activities.
During the code injection process, a termination code program is inserted into each running program or each stored pestware program. (Block 210) This code is often injected into the initialization portion of a file. Generally, this code is a “dll” file that instructs the program upon execution to compare itself to a list of pestware that is being target for removal. This list could all known pestware or just pestware that is known or suspected to restart itself. Additionally, the list of targeted pestware could be stored in the injected code, on the protected computer, or at a remote location.
In operation, the injected code could instruct a program to check its file name against a list of file names for known pestware or against a list of file names for resistant pestware. Alternatively, the code could instruct the program to call another program to perform the comparison. And in yet another embodiment, the code could instruct the program to call a digital signature function (CRC, hash, etc.) and then compare the digital signature of the program against the signatures for known pestware.
After the code is injected, the corresponding programs can be terminated. (Block 215) As these programs attempt to restart, the injected code determines whether they should be allowed to completely restart. (Block 220) For example, if the injected code determines that the restarting program matches known pestware or is otherwise suspicious, the injected code can prevent the program from continuing its startup process. (Block 225) Alternatively, the injected code can terminate the program. But if the injected code determines that the restarting program is not pestware, the process is permitted to start. And in some cases, the injected code removes itself from non-pestware programs.
At this point, both sympathetic programs—the watcher and the primary pestware program—should be injected with the termination code. Neither program should be able to restart itself or the other program. Accordingly, both programs can be quarantined and deleted in the normal fashion. (Block 230)
Referring now to
Next, the protected computer detects further pestware activity and determines whether it is new activity or similar to previous activity that was blocked. (Blocks 250, 255, and 260) For example, the protected computer can compare the pestware activity—the symptoms—corresponding to the new pestware activity with the pestware activity previously blocked. If the activities match, then the new pestware activity can be automatically blocked. (Block 265) And if the file associated with the activity can be identified, it can be automatically removed.
To assist in creating a definition for unknown pestware, the reporting module (shown in
Referring now to
The host system 270 can be integrated onto a server-based system or arranged in some other known fashion. The host system 270 could include pestware definitions 285, which include both definitions and characteristics common to pestware. The host system 270 could also include a list of potentially acceptable pestware. This list is referred to as an application white list 290. Applications such as the GOOGLE toolbar and KAAZA could be included in this list. A copy of this list could also be placed on the protected computer where 275 it could be customized by the user. Additionally, the host system 270 could include a pestware analysis engine 295. This engine is configured to receive snapshots of all or portions of a protected computer 275 and identify the activities being performed by pestware. For example, the analysis engine 295 could receive a copy of the registry files for a protected computer that is running pestware. Typically, the analysis engine 295 receives its information from the heuristics engine 300 located on the protected computer 275.
The pestware-protection functions operating on the protected computer are represented by the sweep engine 305, the quarantine engine 310, the removal engine 315, the heuristic engine 300, and the shields 320. And in this implementation, the shields 320 are divided into the operating system shields 320A and the browser shields 320B. All of these engines can be implemented in a single software package or in multiple software packages.
The basic functions of the sweep, quarantine, and removal engines was discussed above. To repeat, however, these three engines compare files and registry entries on the protected computer against known pestware definitions and characteristics. When a match is found, the filed is quarantined and removed.
The shields 320 are designed to watch for pestware and for typical pestware activity and includes two types of shields: behavior-monitoring shields and definition-based shields. In some implementations, these shields can also be grouped as operating-system shields 320A and browser shields 320B.
The browser shields 320B monitor a protected computer for certain types of activities that generally correspond to pestware behavior. Once these activities are detected, the shield gives the user the option of terminating the activity or letting it go forward. The definition-based shields actually monitor for the installation or operation of known pestware. These shields compare running programs, starting programs, and programs being installed against definitions for known pestware. And if these shields identify known pestware, the pestware can be blocked or removed. Each of these shields is described below.
Favorites Shield—The favorites shield monitors for any changes to a browser's list of favorite Web sites. If an attempt to change the list is detected, the shield presents the user with the option to approve or terminate the action.
Browser-Hijack Shield—The browser-hijack shield monitors the WINDOWS registry file for changes to any default Web pages. For example, the browser-hijack shield could watch for changes to the default search page stored in the registry file. If an attempt to change the default search page is detected, the shield presents the user with the option to approve or terminate the action.
Host-File Shield—The host-file shield monitors the host file for changes to DNS addresses. For example, some pestware will alter the address in the host file for yahoo.com to point to an ad site. Thus, when a user types in yahoo.com, the user will be redirected to the ad site instead of yahoo's home page. If an attempt to change the host file is detected, the shield presents the user with the option to approve or terminate the action.
Cookie Shield—The cookie shield monitors for third-party cookies being placed on the protected computer. These third-party cookies are generally the type of cookie that relay information about Web-surfing habits to an ad site. The cookie shield can automatically block third-party cookies or it can presents the user with the option to approve the cookie placement.
Homepage Shield—The homepage shield monitors the identification of a user's homepage. If an attempt to change that homepage is detected, the shield presents the user with the option to approve or terminate the action.
Common-ad-site Shield—This shield monitors for links to common ad sites, such as doubleclick.com, that are embedded in other Web pages. The shield compares these embedded links against a list of known ad sites. And if a match is found, then the shield replaces the link with a link to the local host or some other link. For example, this shield could modify the hosts files so that IP traffic that would normally go to the ad sites is redirected to the local machine. Generally, this replacement causes a broken link and the ad will not appear. But the main Web page, which was requested by the user, will appear normally.
Plug-in Shield—This shield monitors for the installation of plug-ins. For example, the plug-in shield looks for processes that attach to browsers and then communicate through the browser. Plug-in shields can monitor for the installation of any plug-in or can compare a plug-in to a pestware definition. For example, this shield could monitor for the installation of INTERNET EXPLORER Browser Help Objects
Referring now to the operating system shields 320A, they include the zombie shield, the startup shield, and the WINDOWS-messenger shield. Each of these is described below.
Zombie shield—The zombie shield monitors for pestware activity that indicates a protected computer is being used unknowingly to send out spam or email attacks. The zombie shield generally monitors for the sending of a threshold number of emails in a set period of time. For example, if ten emails are sent out in a minute, then the user could be notified and user approval required for further emails to go out. Similarly, if the user's address book is accesses a threshold number of times in a set period, then the user could be notified and any outgoing email blocked until the user gives approval. And in another implementation, the zombie shield can monitor for data communications when the system should otherwise be idle.
Startup shield—The startup shield monitors the run folder in the WINDOWS registry for the addition of any program. It can also monitor similar folders, including Run Once, Run OnceEX, and Run Services in WINDOWS-based systems. And those of skill in the art can recognize that this shield can monitor similar folders in Unix, Linux, and other types of systems. Regardless of the operating system, if an attempt to add a program to any of these folders or a similar folder, the shield presents the user with the option to approve or terminate the action.
WINDOWS-messenger shield—The WINDOWS-messenger shield watches for any attempts to turn on WINDOWS messenger. If an attempt to turn it on is detected, the shield presents the user with the option to approve or terminate the action.
Moving now to the definition-based shields, they include the installation shield, the memory shield, the communication shield, and the key-logger shield. And as previously mentioned, these shields compare programs against definitions of known pestware to determine whether the program should be blocked.
Installation shield—The installation shield intercepts the CreateProcess operating system call that is used to start up any new process. This shield compares the process that is attempting to run against the definitions for known pestware. And if a match is found, then the user is asked whether the process should be allowed to run. If the user blocks the process, steps can then be initiated to quarantine and remove the files associated with the process.
Memory shield—The memory shield is similar to the installation shield. The memory-shield scans through running processes matching each against the known definitions and notifies the user if there is a spy running. If a running process matches a definition, the user is notified and is given the option of performing a removal. This shield is particularly useful when pestware is running in memory before any of the shields are started.
Communication shield—The communication shield 280 scans for and blocks traffic to and from IP addresses associated with a known pestware site. The IP addresses for these sites can be stored on a URL/IP blacklist 330. And in an alternate embodiment, the communication shield can allow traffic to pass that originates from or is addressed to known good sites as indicated in a whitelist. This shield can also scan packets for embedded IP addresses and determine whether those addresses are included on a blacklist or whitelist.
The communication shield 280 can be installed directly on the protected computer, or it can be installed at a firewall, firewall appliance, switch, enterprise server, or router. In another implementation, the communication shield checks for certain types of communications being transmitted to an outside IP address. For example, the shield may monitor for information that has been tagged as private.
The communication shield could also inspect packets that are coming in from an outside source to determine if they contain any pestware traces. For example, this shield could collect packets as they are coming in and will compare them to known definitions before letting them through. The shield would then block any that are tracks associated with known pestware.
To manage the timely delivery of packages, embodiments of the communication shield can stage different communication checks. For example, the communication shield could initially compare any traffic against known pestware IP addresses or against known good IP addresses. Suspicious traffic could then be sent for further scanning and traffic from or to known pestware sites could be blocked. At the next level, the suspicious traffic could be scanned for communication types such as WINDOWS messenger or IE Explorer. Depending upon a security level set by the user, certain types of traffic could be sent for further scanning, blocked, or allowed to pass. Traffic sent for further processing could then be scanned for content. For example, does the packet related to HTML pages, Javascript, active X objects, etc. Again, depending upon a security level set by the user, certain types of traffic could be sent for further scanning, blocked, or allowed to pass.
Key-logger shield—The key-logger shield monitors for pestware that captures and reports out key strokes by comparing programs against definitions of known key-logger programs. The key-logger shield, in some implementations, can also monitor for applications that are logging keystrokes—independent of any pestware definitions. In these types of systems, the shield stores a list of known good programs that can legitimately log keystrokes. And if any application not on this list is discovered logging keystrokes, it is targeted for shut down and removal. Similarly, any key-logging application that is discovered through the definition process is targeted for shut down and removal. The key-logger shield could be incorporated into other shields and does not need to be a stand-alone shield.
Still referring to
And in some implementations, any blocked activity can be reported to the host system 270 and in particular to the definition analysis engine 295. The definition analysis engine 295 can use this information to form a new pestware definition or to mark characteristics of certain pestware.
In conclusion, the present invention provides, among other things, a system and method for managing pestware. Those skilled in the art can readily recognize that numerous variations and substitutions may be made in the invention, its use and its configuration to achieve substantially the same results as achieved by the embodiments described herein. Accordingly, there is no intention to limit the invention to the disclosed exemplary forms. Many variations, modifications and alternative constructions fall within the scope and spirit of the disclosed invention as expressed in the claims.
The present application is related to commonly owned and assigned application Ser. No. ______, Attorney Docket No. WEBR-002/00US, entitled System and Method for Monitoring Network Communications For Pestware, which is incorporated herein by reference. The present application is related to commonly owned and assigned application Ser. No. ______, Attorney Docket No. WEBR-003/00US, entitled System and Method For Heuristic Analysis to Identify Pestware, which is incorporated herein by reference.