1. Technical Field
The present invention relates in general to the field of computers, and in particular, to the interface and connection of computer peripheral devices to a computer system. Still more particularly, the present invention relates to an improved method and system for monitoring and controlling the connection of a Universal Serial Bus (USB) device to the computer system.
2. Description of the Related Art
Computer peripheral input/output (I/O) devices connect to a variety of data ports or external connectors of a host computer system, which includes a system processor and memory. One such port connector interface is the Universal Serial Bus (USB) interface, the specification of which is set forth in the generally available document entitled, “Universal Serial Bus Specification” release 2.0, Apr. 27, 2000 (USB.org), prepared by representatives of Compaq Computer Corporation, Hewlett-Packard Company, Intel Corporation, Lucent Technologies Inc., Microsoft Corporation, NEC Corporation, and Royal Philips Electronics (Philips). Peripheral device interfaces that comply with the specification are referred to as USB interfaces and have been included in many recently developed personal computer systems. Such USB devices are generally referenced as either low-speed devices, capable of transferring data at a rate of 1.5 Megabits per second (Mb/s); or high-speed devices (also called full-speed devices) capable of transferring data at 12 Mb/s. Under the USB 2.0 specification, full-speed devices are capable of using 40× multipliers for a transfer rate of 480 Mb/s, and such USB devices are typically known as true high-speed devices.
Within a personal computer system, a USB interface serves to provide well-known plug-n-play capability for personal computer peripherals such as external Compact Disc-Read Only Memory (CD-ROM) drives, joysticks, magnetic tape and floppy drives, external hard drives, scanners, and printers. Additionally, the USB interface allows an alternate connection for primary system input devices such as keyboards and mice, providing an alternative to the dedicated keyboard and mouse non-USB ports that many personal computer manufacturers provide. The industry generally refers to the non-USB keyboard and mouse ports as the PS/2 keyboard and PS/2 mouse port, respectively.
In a secured environment, control of the system configuration is one of the factors that should be considered. USB ports allow for easy insertion of peripheral devices to and from the computer system. However, this ease of addition of peripheral devices poses security problems. Easy addition of peripheral devices, especially those related to mass storage, can compromise the security of the computer system. By connecting an unauthorized mass data storage system, such as a magnetic floppy disk drive, harmful data such as fraudulent data or computer viruses may be loaded into the computer system. Further, sensitive data, such as proprietary or trade secret data, could be downloaded off the computer system into the unauthorized USB storage device.
In the prior art, connecting USB devices from a host computer system requires the involvement of the operating system of the host computer system. However, software associated with the operating system is typically non-secure, or at least easy to access, thus making it easy for an authorized programmer to modify the software to enable unauthorized USB device connect events.
It should therefore be apparent that there exists a need for a method and system that securely controls the addition of a USB device, and then preferably informs the owner of the computer system of its addition. Such a method and system preferably permit the owner, either manually or automatically through secure software, to allow or prevent an addition of the USB device. Further, it would be desirable to devise a system having the means to implement the USB device connection control method. In addition, it would also be desirable to devise a computer program product for monitoring and controlling an addition of a USB device.
The present invention relates to a method and system for controlling the addition of a USB device to a host computer system via a hardware hot plug detector that monitors USB ports. The differential signal lines connecting to the USB device are logically OR'ed together, such that logically high D+ or D− signals from the USB device signal a central processing unit's (CPU) system management interrupt (SMI) line to initiate system management mode (SMM). Entering SMM transfers control of the host computer system to an SMI Interrupt Handler BIOS, which resides in the SMM address space of the hose computer system. The SMM BIOS is loaded into the SMM address space during Power On Self Test (POST) and is secured prior to booting the Operating System (OS). The SMM BIOS code contains instructions as to whether or not the connected USB device should be made visible to the operating system of the computer. If the device is not authorized, it is disabled, the D+/D− lines are not connected to the USB host controller, and the SMI signal is cleared, allowing the computer to continue operation without the operating system ever being aware of the USB device.
The above, as well as additional objectives, features, and advantages in the present invention will become apparent in the following detailed written description.
The novel features believed characteristic of the invention are set forth in the appended claims. The invention itself, however, as well as the preferred mode of use, objects and advantages thereof, will best be understood by reference to the following detailed description of an illustrative embodiment when read in conjunction with the accompanying drawings, wherein:
With reference now to the drawings and in particular to
North bridge 12 is connected via a high-speed interconnect bus, preferably a proprietary bus, but alternatively a Peripheral Component Interconnect (PCI) bus, to a south bridge 16, a chip or chipset I/O arbiter that includes the necessary interface logic to convey signals from the high speed interconnect bus to (typically slower) I/O interfaces, including a super I/O 26. Super I/O 26 is typically a chip or chipset including necessary logic and interfaces for a parallel port 28 and a non-USB serial port 30, as are typically known and understood in the art. Super I/O 26 may also include controllers for non-USB devices such as a keyboard controller 32 for a non-USB keyboard and a floppy disk controller 34.
Associated with south bridge 16 is a USB host controller 18. USB host controller 18 includes differential data lines D+ and D−, which attach to USB hot plug detector 20, whose function and structure are further defined below. Differential data lines D+ and D− transmit both data and control signals for a USB device (not shown) according to protocols and standards understood by those skilled in the art of computer interfacing. Data and control signals are transmitted in mirrored positive and negative voltage to permit longer connection wires and to reduce signal noise and degradation. USB hot plug detector 20 is connected to USB port 22 via USB hub 25, preferably via differential lines D+ and D−, to USB host controller 18.
The USB topology in
Reference is now made to
In the preferred embodiment, SMM BIOS code is selective as to what type of function 24 may be connected. For example, functions 24 such as monitors, keyboards, and mice may be permitted to be connected, while mass storage devices such as floppy disk drives and CD-ROMs might not be authorized. If the USB device function 24 is authorized to be attached, the host computer system is then connected to the D+/D− lines of the USB device function 24, and enables the USB port 22 and addresses the USB device 24. The host computer system assigns a unique USB address to the USB device 24 and then determines if the newly attached USB device 24 is a hub or function. If the attached USB device is a hub and USB devices are attached to its ports 22, then the above procedure is followed for each of the attached USB devices. If the attached USB device is a function 24, then attachment notifications are handled by host software that is appropriate for the function.
If the device is not authorized to be connected according to the SMM BIOS code, the device is disabled, the D+/D− lines are not connected to USB host controller 18, the SMI interrupt is canceled, and the operating system of the host computer system's operating system never detects the USB device whose connection was attempted, as illustrated in block 48. Following the steps depicted in block 46 (an authorized connection event) or block 48 (termination of an unauthorized connection attempt), USB hot plug detector 20 resumes monitoring the D+ and D− lines for another connection event.
In an alternate preferred embodiment, a connection event by any USB device results in notification to a network server to which the host computer system is connected. The system administrator for the network may then take whatever steps are desired in response to the connection event, including rescinding connection authorization through the network and/or operating system level.
As has been illustrated by the above descriptions, the present invention provides a method and system for monitoring and controlling the connection of USB devices without initial notification of the operating system. Through the use of the intermediary hardware associated with USB hot plug detector 20, and the secure SMM BIOS code described above, connection events of USB devices can be securely monitored without initially notifying the O/S system of the host computer system. Thus, additional security is provided, since the more easily accessible operating system code is not the initial arbiter of authorization for connect events.
While the invention has been particularly shown and described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.
Number | Name | Date | Kind |
---|---|---|---|
5406260 | Cummings et al. | Apr 1995 | A |
5796984 | Pearce et al. | Aug 1998 | A |
5821870 | Jackson, Jr. | Oct 1998 | A |
5854891 | Postlewaite | Dec 1998 | A |
5926091 | Svensson et al. | Jul 1999 | A |
5944840 | Lever | Aug 1999 | A |
6029248 | Clee et al. | Feb 2000 | A |
6064305 | Lockyer | May 2000 | A |
6098171 | Johnson et al. | Aug 2000 | A |
6104289 | Rand | Aug 2000 | A |
6128732 | Chaiken | Oct 2000 | A |
6131134 | Huang et al. | Oct 2000 | A |
6138240 | Tran et al. | Oct 2000 | A |
6147603 | Rand | Nov 2000 | A |
6172606 | Lockyer | Jan 2001 | B1 |
6205502 | Endo et al. | Mar 2001 | B1 |
6216183 | Rawlins | Apr 2001 | B1 |
6233640 | Luke et al. | May 2001 | B1 |
6389560 | Chew | May 2002 | B1 |
6393588 | Hsu et al. | May 2002 | B1 |
6480801 | Chew | Nov 2002 | B1 |
6505263 | Larson et al. | Jan 2003 | B1 |
6567875 | Williams et al. | May 2003 | B1 |
6615288 | Herzi | Sep 2003 | B1 |
6658515 | Larson et al. | Dec 2003 | B1 |
6701401 | Lu et al. | Mar 2004 | B1 |
20020095501 | Chiloyan et al. | Jul 2002 | A1 |
20020095540 | Zolnowsky | Jul 2002 | A1 |
20020156952 | Shono | Oct 2002 | A1 |
20020166072 | Cromer et al. | Nov 2002 | A1 |
20030005197 | Abramson et al. | Jan 2003 | A1 |
20030041205 | Wu et al. | Feb 2003 | A1 |
20030043771 | Mizutani et al. | Mar 2003 | A1 |
20040162929 | Zolnowsky | Aug 2004 | A1 |
20050076171 | Hanson et al. | Apr 2005 | A1 |
Number | Date | Country |
---|---|---|
0953486 | Nov 1999 | EP |
1031931 | Aug 2000 | EP |
Number | Date | Country | |
---|---|---|---|
20030056051 A1 | Mar 2003 | US |