Automatic detection and patching of vulnerable files

Systems and methods are described that enable patching of security vulnerabilities in binary files. The detection and patching of vulnerable binary files is automatic, reliable, regression free, and comprehensive across networks on an unlimited scale. These advantages can be realized in various ways including, for example, by leveraging current anti-virus infrastructure that is widely deployed across the Internet. Reliable discovery of vulnerable binary files (e.g., in operating systems, application programs, etc.) is achieved through the use of binary signatures that have been associated with discovered security vulnerabilities. A divergence of security patches away from conventional service packs provides for the possibility of production of regression-free fixes for security vulnerabilities in binary files.

TECHNICAL FIELD

The present disclosure generally relates to patching files, and more particularly, to an automatic, comprehensive, reliable and regression-free way of providing security patches for vulnerable binary program files in distributed, heterogeneous computing environments.

BACKGROUND

Software development is an ongoing process whereby a software product initially released to the public can be continually updated through revisions from a software developer/vendor. Software revisions are typically disbursed from a software vendor in what are called “service packs” that can be downloaded or ordered from a vendor for installation on a user's computer. Service packs typically contain program fixes (e.g., for an operating system, application program, etc.) that repair problems (i.e., “bugs”) discovered in the program code after the initial release of the product or after the last service pack release.

In addition to containing fixes for program bugs, service packs can also contain security patches developed specifically to repair vulnerabilities found in program files. Program vulnerabilities discovered after a software product is released can pose significant security threat of attack from hackers and viruses on a world-wide basis. Therefore, once a vulnerability is discovered, the prompt and wide-spread distribution and installation of security patches to computers having vulnerable software is of paramount importance. Theoretically, the use of service packs to achieve such prompt and wide-spread distribution of security patches could be effective. For example, when a software vendor discovers a vulnerability and then develops a security patch, the patch can be posted in the latest service pack on a vendor Web site for users to immediately download and install. This could thwart most hackers and viruses that are intent on exploiting the discovered vulnerability. However, system administrators and other software product users currently face several drawbacks and/or difficulties related to accessing and installing security patches. These difficulties typically result in a significantly lower distribution of such patches than is intended by the vendor who develops the patch. The result is that vulnerabilities on many computers world-wide are left un-patched, exposing such computers to significant risk.

One difficulty with accessing and installing security patches is that current methods for detecting whether a computer is running software with a known vulnerability require the active use and involvement of the computer. For example, currently available methods can determine whether particular versions of software products on a computer are in need of being updated (e.g, with a security patch). However, only those software products actively running on the computer are included in this determination. Secondary operating systems and applications that are not actively running on a computer are not considered, and therefore may have a security vulnerability that goes un-noticed and un-fixed. For those products actively running on a computer, a user can review a list of available updates and select updates for installation. Some updates may be critical updates designed to protect a computer from known security vulnerabilities. Various updates require a user to restart the computer before the installation is complete. In addition, a user must actively select the updates and install them. For these and other reasons, current methods for accessing and installing security patches are less than effective.

Another difficulty in accessing and installing security patches is that of knowing whether or not a security patch is needed on a computer. It is sometimes difficult for users to know if their computers are running software that is vulnerable. Furthermore, current methods for detecting whether a computer is running software with a known vulnerability may not be able to detect certain configurations of a software product known to be vulnerable. For example, shared versions of some software products can be distributed as part of other products. Thus, although a shared version of a product may contain the same vulnerability as the full version of the product, the shared version may not be recognized as a product that needs a security patch update. Thus, shared versions of software products that are known to have security vulnerabilities often go un-fixed.

Other problems with accessing and installing security patches relate to the conventional “service pack” method by which such patches are delivered. Downloading and installing services packs is a time intensive and manual process that many system administrators simply do not have time to perform. Therefore, even when administrators intend to install security patches, the time between the release of a security patch and its installation on a given system can be weeks, months, or years. Thus, the risk of attack through a security vulnerability may not be alleviated in such systems until long after the software vendor has issued a security patch.

Furthermore, system administrators often choose not to download and install service packs containing security patches, even though they understand the relevant security risks. The reason for this is that the installation of a service pack itself brings the risk of system regressions that can introduce unwanted changes in system behavior. Administrators often devote significant time and effort toward debugging a system so that it functions as desired. As mentioned above, however, service packs represent an evolution of a previous version of a software product that includes the most recent updates to a product's code base (i.e., the scope of changes is not restricted to security patches only). In addition to introducing new and intended behaviors into a system, recent code updates in a service pack may introduce unknown bugs into a system that can cause the system to behave unexpectedly, which, in turn, can create significant problems for a system administrator. Thus, systems frequently are not updated with important security patches intended to fix vulnerable program files, because administrators do not want to risk regressions.

Accordingly, a need exists for a way to implement patching of security vulnerabilities in program file in an automatic, comprehensive, reliable and regression-free manner.

SUMMARY

Automatic, comprehensive, reliable and regression-free security patching of binary program files is described herein.

In accordance with one implementation, a binary signature of a vulnerability and a security patch are received. A vulnerable binary file is identified on a computer based on the binary signature of a vulnerability. The vulnerable binary file on the computer is updated with the security patch.

In accordance with another implementation, a binary signature is received that identifies a security vulnerability in a binary file. A security patch configured to fix the security vulnerability is also received. The binary signature and the security patch are distributed to a plurality of servers.

In accordance with another implementation, a binary signature is received from a server and used to search binary files. A request for a security patch is sent to the server if the binary signature is found in a binary file. The binary file is then updated with the security patch.

DETAILED DESCRIPTION

Overview

The following discussion is directed to systems and methods that enable patching of security vulnerabilities in binary files. The detection and patching of vulnerable binary files is automatic, reliable, regression free, and comprehensive across networks on an unlimited scale. These advantages can be realized in various ways including, for example, by leveraging current anti-virus infrastructure that is widely deployed across the Internet. A divergence of security patches away from conventional service packs provides for the possibility of production of regression-free fixes for security vulnerabilities in binary files.

Reliable discovery of vulnerable binary files (e.g., in operating systems, application programs, etc.) is achieved through the use of binary signatures that have been associated with security vulnerabilities. Binary signatures associated with security vulnerabilities in binary files, along with security patches developed to fix such security vulnerabilities, are uploaded to a central distribution server. The distribution server is configured to distribute the binary signatures and security patches on a wide-scale basis across various networks such as the Internet. Use of a central distribution server to update network servers (e.g., across the Internet) provides comprehensive and automatic patch coverage on an unlimited scale. Network servers receiving such updates can scan client computers within subordinate networks to locate vulnerable files according to binary signatures, and then update those computers found to have security vulnerable files using corresponding security patches that will fix the vulnerable files. Network servers can also communicate with client computers to transfer binary signatures and security patches to the computers so that the scanning and updating can be performed by the computers themselves. Multiple nested levels of subordinate networks may also exist.

Exemplary Environment

FIG. 1illustrates an exemplary network environment100suitable for implementing automatic detection and patching of security vulnerabilities in binary files. In the exemplary network environment100, a central distribution server102is coupled to multiple scan/patch servers104via a network106(a). A scan/patch server104is typically coupled through a network106(b) to a plurality of client computers108(1)-108(n). Network106is intended to represent any of a variety of conventional network topologies and types (including optical, wired and/or wireless networks), employing any of a variety of conventional network protocols (including public and/or proprietary protocols). Network106may include, for example, the Internet as well as possibly at least portions of one or more local area networks (LANs) and/or wide area networks (WANs). Networks106(a) and106(b) may be the same network such as the Internet, or they may be networks isolated from one another such as the Internet and a corporate LAN.

Distribution server102and scan/patch servers104are typically implemented as standard Web servers, and can each be any of a variety of conventional computing devices, including desktop PCs, notebook or portable computers, workstations, mainframe computers, Internet appliances, combinations thereof, and so on. One or more of the servers102and104can be the same types of devices, or alternatively different types of devices. An exemplary computing environment for implementing a distribution server102and a scan/patch server104is described in more detail herein below with reference toFIG. 7.

Client computers108function in a typical client/server relationship with a server104wherein multiple clients108make requests to a server104that services the requests. Client computers108can be any of a variety of conventional computing devices, including desktop PCs, notebook or portable computers, workstations, mainframe computers, gaming consoles, handheld PCs, cellular telephones or other wireless communications devices, personal digital assistants (PDAs), combinations thereof, and so on. One or more of the client computers108can be the same types of devices, or alternatively different types of devices. An exemplary computing environment for implementing a client computer108is described in more detail herein below with reference toFIG. 7.

In general, automatic and comprehensive detection and patching of vulnerable binary files client computers108is achieved through updates made through distribution server102that include binary signatures for identifying vulnerable binary files and security patches configured to fix vulnerable files. As discussed in greater detail below with respect to the following exemplary embodiments, the binary signatures and security patches are distributed to scan/patch servers104which in turn, either actively scan for and update vulnerable binary files on client computers108, or push the binary signatures and security patches down to the client computers108so the client computers108can perform the scanning for and patching of vulnerable binary files.

EXEMPLARY EMBODIMENTS

FIG. 2illustrates an exemplary embodiment of a distribution server102, a scan-patch server104and a client computer108suitable for implementing automatic detection and patching of security vulnerabilities in binary files. Distribution server102includes a distribution module200and a database202for receiving and holding binary signatures and security patches. Database202can be updated with binary signatures and security patches in a variety of ways including, for example, through a portable storage medium (not shown, but seeFIG. 7) or through a computer device (not shown) coupled to the server102and configured to upload binary signatures and security patches to database202.

A typical scenario in which a database202might be updated begins with an investigation of a software product (e.g., a operating system, application program, etc.) initiated by the developer of the software product. For example, a developer may hire a security consultancy firm to attempt to find security vulnerabilities in a newly released software product. If a security vulnerability is discovered in a software product through hacking or by some other means, an exact bit pattern of the vulnerable function within the product can be identified. The bit pattern represents a binary signature of the vulnerable section in the binary file, which is a component of a software product.

Once a security vulnerability is discovered and analyzed, a fix can be developed that will eliminate the vulnerability. Such fixes are called security patches and they represent revised code modules compiled into binary executables. Security patches can be installed on computers that are identified through the binary signature as running software that has the security vulnerability. Installation of the security patch will fix the security vulnerability. The distribution server102enables software product vendors and others to upload binary signatures of vulnerable binary files along with the security patches designed to fix the vulnerable binary files, into the database202for distribution.

Distribution module200is configured to distribute binary signatures and security patches from database202to various scan-patch servers104via a network106. Distribution module200typically functions automatically to distribute binary signatures and security patches from database202whenever the database202is updated with additional signatures and patches. Automatic distribution may be achieved in a variety of ways including, for example, through communication from distribution module200to scan-patch servers104indicating that updated binary signatures and security patches are available and waiting for requests to send the binary signatures and security patches, or by automatically forwarding updated binary signatures and security patches to scan-patch servers104configured to accept the updates.

In the embodiment ofFIG. 2, a scan-patch server104includes a scan-patch module204and a database206for receiving and holding binary signatures and security patches. Database206is typically updated automatically with new binary signatures and security patches through communications between the scan-patch module204and the distribution module200on distribution server102. In addition to updating database206with binary signatures and security patches, scan-patch module204is configured to access client computer108and scan binary files208for binary signatures. Scanning binary files208can include searching for a binary signature in binary files present on any form of media present on or accessible by client computer108. Binary files208typically include compiled, computer/processor-readable code such as an operating system or an application program file. However, it is noted that binary files208can be any form of binary information including computer/processor-readable instructions, data structures, program modules, and other data for client computer108.

As noted below in the discussion referring to the exemplary computer environment ofFIG. 7, such media on a client computer108can include any available media that is accessible by client computer108, such as volatile and non-volatile media as well as removable and non-removable media. Such computer/processor-readable media can include volatile memory, such as random access memory (RAM) and/or non-volatile memory, such as read only memory (ROM). Computer/processor-readable media can also include other removable/non-removable, volatile/non-volatile computer storage media, such as, for example, a hard disk drive for reading from and writing to a non-removable, non-volatile magnetic media, a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a “floppy disk”), an optical disk drive for reading from and/or writing to a removable, non-volatile optical disk such as a CD-ROM, DVD-ROM, or other optical media, other magnetic storage devices flash memory cards, electrically erasable programmable read-only memory (EEPROM), network-attached storage, and the like. All such computer/processor-readable media providing both volatile and non-volatile storage of any form of binary files208, including computer/processor-readable instructions, data structures, program modules, and other data for client computer108, is accessible for scanning by scan-patch server104via scan-patch module204.

Scan-patch module204thus searches binary files208on client computer108to determine if a binary signature identifying a security vulnerability is present in any binary information located on client computer108. If the bit pattern of the binary signature is found in a binary file208, scan-patch module204operates to fix the security vulnerability in the binary file208by installing a corresponding security patch on client computer108. Installation of a security patch on client computer108overwrites or otherwise eliminates the binary file or a portion of the binary file containing the security vulnerability.

FIG. 3illustrates another exemplary embodiment of a distribution server102, a scan-patch server104and a client computer108suitable for implementing patching of security vulnerabilities in binary files. In general, in theFIG. 3embodiment, binary signatures and security patches are pushed down, or redistributed, from the server104to the client computer108, and the scanning for security vulnerable files and the patching of security vulnerable files is performed by the client computer108instead of the scan patch server104.

In theFIG. 3embodiment, distribution server102is configured in the same manner as discussed above with respect to the embodiment ofFIG. 2. Thus, database202can be updated to include newly discovered binary signatures that identify security vulnerabilities in binary files. Database202can also be updated with corresponding security patches that have been developed to fix such security vulnerabilities.

The scan-patch server102ofFIG. 3is configured in somewhat the same manner as that discussed above with respect toFIG. 2. Thus, scan-patch server102ofFIG. 3includes a database206for receiving and holding binary signatures and security patches. Database206is typically updated automatically with new binary signatures and security patches through communications between the scan-patch server104and the distribution server102. However, the communication between the scan-patch server104and the distribution server102is conducted through a redistribution module300instead of a scan-patch module204as discussed with respect to theFIG. 2embodiment.

The redistribution module300, in addition to updating database206with binary signatures and security patches, is configured to communicate with scan-patch module302on client computer108and transfer a binary signature to the client computer108. Scan-patch module302is configured to receive the binary signature and to scan binary files208to determine if the binary signature is present in any binary information located on client computer108. Thus, the scan-patch module302ofFIG. 3functions in a manner similar to the scan-patch module204discussed above with reference toFIG. 2.

If the bit pattern of the binary signature is found in a binary file208on client computer108, scan-patch module302sends a request to the redistribution module300on server102. The request is to have the redistribution module300send the security patch corresponding with the binary signature down to the client computer108. The redistribution module300responds to the request by sending the appropriate security patch to client computer108. The scan patch module302receives the security patch and operates to fix the security vulnerability in the binary file208by installing the security patch on client computer108. As in theFIG. 2embodiment, installation of a security patch on client computer108overwrites or otherwise eliminates the binary file or a portion of the binary file containing the discovered security vulnerability.

Exemplary Methods

Example methods for implementing automatic detection and patching of security vulnerabilities in binary files will now be described with primary reference to the flow diagrams ofFIGS. 4-6. The methods apply generally to the exemplary embodiments discussed above with respect toFIGS. 1-3. The elements of the described methods may be performed by any appropriate means including, for example, by hardware logic blocks on an ASIC or by the execution of processor-readable instructions defined on a processor-readable medium.

A “processor-readable medium,” as used herein, can be any means that can contain, store, communicate, propagate, or transport instructions for use by or execution by a processor. A processor-readable medium can be, without limitation, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. More specific examples of a processor-readable medium include, among others, an electrical connection (electronic) having one or more wires, a portable computer diskette (magnetic), a random access memory (RAM) (magnetic), a read-only memory (ROM) (magnetic), an erasable programmable-read-only memory (EPROM or Flash memory), an optical fiber (optical), a rewritable compact disc (CD-RW) (optical), and a portable compact disc read-only memory (CDROM) (optical).

FIG. 4shows an exemplary method400for implementing automatic detection and patching of security vulnerabilities in binary files. The binary files are typically located or stored on a client computer being served by a server computer, but they may also be located on the server computer itself, or any other computing device accessible by the server computer. At block402of method400, a binary signature is received. The binary signature is a bit pattern that has been associated with a security vulnerability in a particular binary file, such as an executable application program or operating system running on a client computer. The binary signature is received from a central distribution server102by a subordinate server104.

At block404, a security patch is received. The security patch is typically compiled executable code that has been developed as a fix to the security vulnerability of the particular binary file. The security patch is also received from the central distribution server102by the subordinate server104. At block406, a vulnerable binary file is identified based on the binary signature. The identification of the vulnerable binary file is typically achieved by scanning binary information stored on various media of a computer, such as client computer108, and then comparing the pattern(s) in the binary signature with the binary information found on the media. The identification can happen in various ways including, for example, by the server104scanning and comparing all the binary information present on the client computer. The identification of a vulnerable binary file can also be achieved by having the server104push the binary signature down to the client computer so that the client computer can perform the scan and comparison.

At block408of method400, the security patch is used to update the vulnerable binary file. The update can be achieved in various ways including, for example, by the server104installing the security patch on the client computer108. If the client computer108has performed the scan and identified the vulnerable binary file, the client computer108may request that the server104send the security patch to the computer108, in which case the computer108can install the security patch to fix the vulnerable binary file.

FIG. 5shows another exemplary method500for implementing automatic detection and patching of security vulnerabilities in binary files. The method500generally illustrates the distribution of binary signatures for security vulnerabilities and the security patches developed for fixing those security vulnerabilities. At block502of method500, a binary signature is received that identifies a security vulnerability of a binary file. The binary signature is typically uploaded to a distribution server102as a newly discovered bit pattern that identifies a vulnerability in a binary file of a software product that may be widely distributed across many computers on a network such as the Internet. The upload is typically achieved from a computer coupled to the distribution server102or from a portable storage medium inserted into the distribution server102. At block504, a security patch configured to fix the security vulnerability is received by the distribution server102in a similar manner as the binary signature.

At block506, the binary signature and the security patch are distributed to a plurality of subordinate servers104from distribution server102. This distribution occurs automatically and can be achieved in various ways. For example, upon receiving an uploaded binary signature and security patch, the distribution server102can automatically send the binary signature and security patch out over the network to all subordinate servers104configured to receive updated binary signatures and security patches. The distribution server102might also send a notice to servers104indicating that a security vulnerability has been discovered and that a security patch is available to fix the vulnerability. Subordinate servers104can then request that the distribution server102send the binary signature that identifies the security vulnerability and the security patch. Upon receiving a request, the distribution server102can forward the binary signature and the security patch to requesting servers102.

FIG. 6shows another exemplary method600for implementing automatic detection and patching of security vulnerabilities in binary files. At block602of method600, a client computer108receives a binary signature from a server104. The binary signature is associated with a security vulnerability in a binary file that may be present on the client computer108. At block604, the client computer108scans all the binary information presently available to it and compares the pattern(s) in the binary signature with the binary information. The binary information scanned by the client computer108is typically in the form of computer/processor-readable and/or executable instructions, data structures, program modules, and other data useful for client computer108, and can reside on both volatile and non-volatile storage media of various types.

At block606, if the client computer108finds a binary file that contains the binary signature, it sends a request to the server104to have the security patch transferred. At block608, the client computer108receives the security patch, and at block610, the client computer108installs the security patch in order to fix the security-vulnerability in the binary file containing binary information matching the pattern(s) in the binary signature.

While one or more methods have been disclosed by means of flow diagrams and text associated with the blocks of the flow diagrams, it is to be understood that the blocks do not necessarily have to be performed in the order in which they were presented, and that an alternative order(s) may result in similar advantages. Furthermore, the methods are not exclusive and can be performed alone or in combination with one another.

Exemplary Computer

FIG. 7illustrates an exemplary computing environment suitable for implementing a distribution server102, a scan-patch server104, and a client computer108, as discussed above with reference toFIGS. 1-3. Although one specific configuration is shown inFIG. 7, distribution server102, scan-patch server104, and client computer108may be implemented in other computing configurations.

The computing environment700includes a general-purpose computing system in the form of a computer702. The components of computer702can include, but are not limited to, one or more processors or processing units704, a system memory706, and a system bus708that couples various system components including the processor704to the system memory706.

The system bus708represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. An example of a system bus708would be a Peripheral Component Interconnects (PCI) bus, also known as a Mezzanine bus.

Computer702typically includes a variety of computer-readable media. Such media can be any available media that is accessible by computer702and includes both volatile and non-volatile media, removable and non-removable media. The system memory706includes computer readable media in the form of volatile memory, such as random access memory (RAM)710, and/or non-volatile memory, such as read only memory (ROM)712. A basic input/output system (BIOS)714, containing the basic routines that help to transfer information between elements within computer702, such as during start-up, is stored in ROM712. RAM710typically contains data and/or program modules that are immediately accessible to and/or presently operated on by the processing unit704.

Computer702can also include other removable/non-removable, volatile/non-volatile computer storage media. By way of example,FIG. 7illustrates a hard disk drive716for reading from and writing to a non-removable, non-volatile magnetic media (not shown), a magnetic disk drive718for reading from and writing to a removable, non-volatile magnetic disk720(e.g., a “floppy disk”), and an optical disk drive722for reading from and/or writing to a removable, non-volatile optical disk724such as a CD-ROM, DVD-ROM, or other optical media. The hard disk drive716, magnetic disk drive718, and optical disk drive722are each connected to the system bus708by one or more data media interfaces726. Alternatively, the hard disk drive716, magnetic disk drive718, and optical disk drive722can be connected to the system bus708by a SCSI interface (not shown).

Any number of program modules can be stored on the hard disk716, magnetic disk720, optical disk724, ROM712, and/or RAM710, including by way of example, an operating system726, one or more application programs728, other program modules730, and program data732. Each of such operating system726, one or more application programs728, other program modules730, and program data732(or some combination thereof) may include an embodiment of a caching scheme for user network access information.

A user can enter commands and information into computer system702via input devices such as a keyboard734and a pointing device736(e.g., a “mouse”). Other input devices738(not shown specifically) may include a microphone, joystick, game pad, satellite dish, serial port, scanner, and/or the like. These and other input devices are connected to the processing unit704via input/output interfaces740that are coupled to the system bus708, but may be connected by other interface and bus structures, such as a parallel port, game port, or a universal serial bus (USB).

A monitor742or other type of display device can also be connected to the system bus708via an interface, such as a video adapter744. In addition to the monitor742, other output peripheral devices can include components such as speakers (not shown) and a printer746which can be connected to computer702via the input/output interfaces740.

Computer702can operate in a networked environment using logical connections to one or more remote computers, such as a remote computing device748. By way of example, the remote computing device748can be a personal computer, portable computer, a server, a router, a network computer, a peer device or other common network node, and the like. The remote computing device748is illustrated as a portable computer that can include many or all of the elements and features described herein relative to computer system702.

Logical connections between computer702and the remote computer748are depicted as a local area network (LAN)750and a general wide area network (WAN)752. Such networking environments are commonplace in offices, enterprise-wide computer networks, intranets, and the Internet. When implemented in a LAN networking environment, the computer702is connected to a local network750via a network interface or adapter754. When implemented in a WAN networking environment, the computer702typically includes a modem756or other means for establishing communications over the wide network752. The modem756, which can be internal or external to computer702, can be connected to the system bus708via the input/output interfaces740or other appropriate mechanisms. It is to be appreciated that the illustrated network connections are exemplary and that other means of establishing communication link(s) between the computers702and748can be employed.

In a networked environment, such as that illustrated with computing environment700, program modules depicted relative to the computer702, or portions thereof, may be stored in a remote memory storage device. By way of example, remote application programs758reside on a memory device of remote computer748. For purposes of illustration, application programs and other executable program components, such as the operating system, are illustrated herein as discrete blocks, although it is recognized that such programs and components reside at various times in different storage components of the computer system702, and are executed by the data processor(s) of the computer.

Conclusion