Computer protection system

Abstract: A protection system for a computer is provided. This system is essentially based on the provision of an EEPROM (20) of unstandard access and containing configuration data of the computer as well as a password. At power-on, the contents of the EEPROM except eventually the password, are copied into a CMOS memory (16) which must conventionnally be present in the computer. The invention eventually provides additional circuitry for irreversibly cutting the access to the EEPROM and specified peripheric devices.

Description: BACKGROUND OF THE INVENTION The present invention relates to the protection of a computer and in particular to the protection of confidential data stored in memory. Figure 1 very schematically shows a conventional computer architecture. It includes a central processing unit (CPU) 10 connected to a terminal 11 comprising a screen and a keyboard; to volatile central random access memory (RAM) 12; to a non-volatile read only memory (ROM) 13; to a mass storage device 14, such as a hard disk or a floppy disk; to groups of peripheral devices P1 and P2, such as printers, other disks, etc.; and to a volatile battery powdered CMOS memory 16 where configuration data defined by the operator are stored. The configuration data comprise information for adapting and adjusting, or "configure", the computer as a function of initial options desired by the operator and, especially, so that the computer can correctly use its peripheral devices, such as the screen, the keyboard, the hard disk, etc. Nowadays, certain computers are inoperable by a person not knowing a password at power-on of the computer. Indeed, at power-on and before the computer can be used, a password is asked. However, such a computer is vulnerable when it is on and the password has been entered. More sophisticated computers, such as models 286N and 386N manufactured by the firm Compaq, offer security functions. Among the configuration data there are a password and access prohibitions to a group of peripheral devices, for example P1, wherein the prohibitions cannot be raised, theoretically, unless the password is known. For example, access can be prohibited to a hard disk of a computer which stays on unwatched in order to avoid an unauthorized person to access the data stored on the disk. To enhance the security, for reasons which will be discussed later, the password is stored in an area of the CMOS memory 16, the access of which can be irreversibly cut while the computer is on. The access to the other configuration data must not be cut because the operating system of the computer must be able to use them. The operation of such a computer is as follows. At power-on of the computer (cold boot), the computer must perform a certain number of operations before the operator can use it. These operations are generally the following. a) A Power-On Self Test program (POST), which is permanently stored in ROM 13, is executed by the CPU 10. This program reads the configuration data in CMOS memory 16, these data including the password and the access prohibitions, then asks the operator to provide a password and continues its execution if the password is good. b) The POST configures the computer, adjusts the peripheral devices and cuts the accesses to the prohibited peripheral devices, for example group P1. c) During the execution of the POST, the operator can choose to modify the configuration. This choice is generally achieved by hitting a key before the end of a predetermined time interval. In this case, the POST executes a configuration programm, usually called SETUP, stored in ROM. As program SETUP is executed, the operator can see on the screen the actual configuration stored in the CMOS memory, and propose modifications. The configuration is then modified in the CMOS memory. To validate the new configuration, operation b) must be resumed, which can only be done, in general, by rebooting the computer. d) Before terminating, the POST cuts the access to the password stored in the CMOS memory and loads into the central memory 12 an operating system stored on the mass storage device 14. The operating system is a program which uses the configuration data stored in the CMOS memory, manages the computer and allows the operator to exploit the computer in a simple way. When the mass storage device 14 is a hard disk containing the operating system permanently, in practice, the operator also has the possibility to use an operating system stored on a floppy disk. Therefore, a floppy disk drive is provided in which the operator inserts the floppy disk and, when the computer is rebooted, the POST will first attempt to load the operating system from this floppy disk. It will be considered hereafter that the computers have a hard disk as mass storage device 14 to which a floppy disk can be substituted and wherein the loading of the operating system is first attempted from a floppy disk. To reboot the computer it is also possible to do a warm boot, i.e. a reset of the computer while its power is still on. In unprotected computers, this has the same effect as a cold boot, except that it is faster. A drawback of known computers is that the CMOS memory 16 is of easy access. The access to this memory is standard so that it is compatible with all available operating systems. Thus, a hacker having some technical knowledge, will know how to modify the accessible content of the CMOS memory by using, for example, a debugger program, generally available with the operating system, which allows to write and read data in memory areas, especially in the CMOS memory. The hacker will also be able to reboot on a floppy disk containing a program which will be executed automatically and will, for example, modify the contents of the CMOS memory in a particularly short time. In the above mentioned 286N and 386N computer models, during a warm boot, the access to the password in the CMOS memory is not reestablished and the password cannot be used by the POST. During such a boot, the POST must still be executed to configure the computer. Thus, as the POST then does not block the use of the computer by a password, a hacker can do a warm boot on a floppy disk in a disk drive to which the access was not cut. Although the hacker cannot then access the password, he will be able to cancel the access prohibitions and modify the configuration. A floppy disk boot can be prohibited, but this is usually done by software which a competent hacker can bypass. Moreover, erroneous instructions in a program can accidentally modify the contents of the CMOS memory. The CMOS memory 16 is usually a battery powered volatile memory for various technical reasons; especially, this memory is associated to a real time clock. Thus, at the end of the life of the battery (about 5 years) the content of the CMOS memory will vanish. Other prior art of note includes: IBM Technical Disclosure Bulletin. Vol. 30, no. 5, October 1987, New York, US, pages 57-58; "Security System For Personal Computers" This document discloses the copying of a keyboard password from non-volatile RAM to the keyboard controller RAM at power on; communication of keyed-in data from the keyboard to the CPU is then prevented until the user types in the correct password. GB A 2 181 281 "Device for Controlling Access to Computer Peripherals" Multiple sets of configuration data are stored in a non-volatile memory, one set per permitted user. The set of configuration data appropriate to the current user is copied to the RAM memory of an access control module thereby to control access to peripheral devices in dependence on the identity of the current user. SUMMARY OF THE INVENTION An object of the invention is to provide a computer in which the storage life of the configuration data is unlimited. Another object of the invention is to provide a computer protection system which is more difficult to bypass by a hacker. Another object of the invention is to provide a computer protection system which cannot be bypassed by a person not knowing a password. According to one aspect of the present invention, there is provided a computer comprising: a first memory of a type which is conventionally provided for storing computer configuration data including user defined configuration data; a non-volatile second memory; programming means for reprogramming the non-volatile second memory, the second memory storing said computer configuration data and user defined confidential data; and a central processing unit coupled with the first and second memories and the programming means, the first memory being accessible by the central processing unit in a standard memory-access manner and the second memory being accessible by the central processing unit in a memory-access manner different from the standard memory-access manner of the first memory, the central processing unit being operative during power on of the computer to copy into the first memory the computer configuration data, but not the user defined confidential data, stored in the non-volatile second memory, the computer configuration data adjusting the computer configuration so the computer is correctly coupled with its peripheral devices. Preferably, the cqmputer further comprises switch means coupled with the central processing unit and the non-volatile second memory for initially enabling access between the central processing unit and the non-volatile second memory at power on, the switch means being operative following copying of the configuration data from the second memory into the first memory to cut access of the central processing unit to the non-volatile second memory and to peripheral devices specified by the user defined configuration data. In one embodiment, the switch means is controlled by a flip-flop such that the switch means is closed when the flip-flop is in its first state, and open when the flip-flop is in its second state; in this case, the flip-flop is arranged to be set into its first state by a power-on reset circuit of the computer and into its second state by the central processing unit. The user defined confidential data will generally comprise a user-defined password and advantageously the computer further comprises: a further memory; means for copying said user-defined password held in the second memory to said further memory at power on; a comparator communicating with the central processing unit and said further memory and operative to compare a currently-input password provided to the comparator by the central processing unit with the copy of the user-defined password held in said further memory, the comparator operating the switch means to reestablish the cut access if the comparison is good; and means for preventing access to the further memory apart from a single write access for copying the user-defined password thereto at each power on, and read accesses by the comparator. According to another aspect of the invention, there is provided a method of protecting a computer that includes a central processing unit and a first memory of a type which is conventionally provided for storing computer configuration data including user defined configuration data, the first memory being accessible by the central processing unit in a standard memory-access manner; said method comprising the steps of: storing said computer configuration data and user defined confidential data in a reprogrammable non-volatile second memory that is accessible by the central processing unit but in a memory-access manner different from the standard memory-access manner of the first memory ; and during power on of the computer, causing the central processing unit to copy into the first memory the computer configuration data, but not the user-defined confidential data, stored in the second memory, the computer configuration data adjusting the computer configuration so the computer is correctly coupled with its peripheral devices. BRIEF DESCRIPTION OF THE DRAWINGS The foregoing and other objects, features and advantages will be described in more detail in the following description by referring to the accompanying drawings among which: Figure 1, previously described, very shematically represents a conventional computer architecture; and Figures 2 to 4 schematically represent computer architectures according to embodiments of the invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In Figure 2, the same elements as in Figure 1 are shown, designated by the same reference numbers. According to the invention, the computer comprises a non volatile electrically eraseable and programmable read only memory (EEPROM) 20 connected to the CPU 10, this memory being associated to an erasing and programming circuit 22. CMOS memory 16 need no longer be battery powered. In the EEPROM are stored the configuration data including a password and access prohibitions to peripheral devices P1. Memories EEPROM 20 and CMOS 16 are used in the following manner according to the invention. At boot time, a suitable POST program is executed. It reads the data in the EEPROM memory and transfers them, except for the password, into the CMOS memory. It asks for the password and continues its execution in a conventional manner if the provided password is good. The operator can conventionally invoke a suitable SETUP program stored in ROM. The configuration data modifications proposed by the operator are then written into the EEPROM 20. The remaining operations are conventional. A second suitable SETUP program on disk can also be invoked to modify the configuration. This SETUP program will ask for the password stored in the EEPROM memory and will carry out the modifications in the CMOS memory if the provided password is good. Thus, at each boot, the configuration data stored in the EEPROM will be overwritten in the CMOS memory. This CMOS memory 16 is in fact only kept for compatibility reasons as the operating systems must be able to use it. As it was previously mentioned, the access to the CMOS memory is standard. This access is generally achieved by writing an address in a first specific register, the data, comprised of words of a given number of bits, being read or written word by word in a second specific register. The addresses of these first and second specific registers are standard. It is thus easy to read or write in this memory without passing by the SETUP program. The EEPROM is not submitted to compatibility requirements and its access is voluntarily rendered more complex.For example, the EEPROM can be chosen with a serial access, i.e. each data word is read or written bit by bit in the EEPROM. Thus, the probability for a program to accidentally write data in this EEPROM is low and a hacker is submitted to the two following difficulties: on the first hand, it will be difficult for him to detect the presence of the EEPROM because be will be able to access, although without consequence, the CMOS memory which will appear to him as containing the data which interest him, and on the other hand, if he detects the presence of the EEPROM, it will be very difficult for him to find how to access it because the access to this memory is not standard and it will not be communicated to the public how it can be achieved. However, as the EEPROM is theoretically accessible by an operator and, as the security functions, which are generally achieved by software, can be bypassed by a competent hacker, it is provided in another embodiment of the invention shown in Figure 3 to avoid this. In Figure 3, the same elements as in Figure 2 are shown, designated by the same reference numbers. The access to the EEPROM 20 and to the peripheral devices P1 determined by the operator, can be irreversibly cut by switches 30 controlled, for example, by an RS flip-flop 31 itself controlled via the CPU 10. Switches 30 can be placed upon chip-select lines of the EEPROM memory and of the peripheral devices. The operation of this system is as follows. During a cold boot, a power-on reset circuit, generally included in the computer, provides a pulse intended to reset various circuits of the computer, the state of which is uncertain. This pulse is also provided to the reset input R of flip-flop 31, which causes all switches 30 to be closed. The POST is executed as described for Figure 2, that is, it reads the contents of EEPROM 20 and transfers them, except for the password, to the CMOS memory 16. The password is verified and the POST continues conventionally if the password is good. The operator can invoke the SETUP program stored in ROM 13 to modify in the EEPROM the configuration data and access prohibitions to peripheral devices. The POST continues and before loading the operating system, it causes the CPU 10 to send a pulse on the set input S of flip-flop 31 which opens switches 30 and cuts the access to the EEPROM and to the peripheral devices P1 determined by the data initially contained in the EEPROM. Whatever the hacker might do, it is impossible for him to access the EEPROM and the prohibited peripheral devices. Indeed, the switches 30 prohibiting this access can only be closed by the above mentioned power-on reset circuit on a cold boot, which is when the password must be provided. During a warm boot of such a computer, switches 30 remain open, still cutting the access to the data in the EEPROM, especially to the password. These data can therefore not be used by the POST which, during such a boot, must however be executed to readjust the reversible configuration, i.e. the configuration which is not affected by switches 30. Without asking for a pass-word, the POST will adjust the reversible configuration from the data stored in the CMOS merory, whereas the contents of the CMOS memory could have been modified by a hacker or a defect program. Moreover, as the POST does not block the use of the computer by a password, a hacker will be able to do a warm boot on a floppy disk in a disk drive to which the access has not been prohibited. Furthermore, if the operator wants to reconfigure his computer, be must necessarily reestablish the access to the EEPROM, i.e. he must switch the computer off and back on, which is tedious. Figure 4 shows an embodiment of the invention overcoming the above drawbacks. The same elements as in Figure 3 are shown, designated by the same reference numbers. The reset input R of flip-flop 31 is here controlled by a password verifying circuit 40. The operation of this system is as follows. At power-on, the verifying circuit 40 sends a pulse to the reset input R of flip-flop 31 which closes switches 30. A suitable POST program starts, reads the contents of the EEPROM 20 and writes them, except for the password, in the CMOS memory 16. The POST asks the operator to provide a password and continues if the password is good. The password contained in the EEPROM is copied in a memory 42 of the verifying circuit 40. This memory 42 is such that it can only be written once at power-on. This is, for example, achieved by an access attempt counter (non represented) which is reset at power-on. The POST continues conventionally. The operator can invoke the SETUP program stored in ROM as previously and update the EEPROM with new configuration data. The POST continues and, before loading the operating system, causes the CPU to send a pulse to the set input S of flip-flop 31 which opens switches 30 of the EEPROM and the selected peripheral devices P1. On a warm boot, the POST attempts to read in the EEPROM and detects that the latter does not answer. The POST still asks for the password and communicates it, via the CPU, to the verifying circuit 40 which compares it to the password stored in its memory 42. The verifying circuit transmits the result of the comparison to the CPU to allow the POST to continue if the right password is provided. If the right password is provided, the verifying circuit 40 sends a pulse to the reset input R of flip-flop 31 which closes switches 30. The continuation of the POST is authorized and the operator can invoke the SETUP program stored in ROM to modify the contents of the EEPROM. The POST causes the switches 30 to open before loading the operating system, as described for Figure 3. The operator will also be able, when the computer is on, to invoke a second suitable SETUP program stored on disk, which will ask for the password and will transmit it to the verifying circuit 40 via the CPU 10. In this case too, if the right password is provided, the verifying circuit will close switches 30 and will allow the operator to modify the data in the EEPROM. This second SETUP program is, like the POST, such that it causes switches 30 to reopen before terminating. Thus, such a system is practical for the operator which can at any time change the configuration but is invulnerable to a hacker which does not know the password. Indeed, the hacker must provide the password at cold or warm boot and, if he finds the computer on, he will nor be able to access the EEPROM, nor the prohibited peripheral devices. Moreover, the fact that it is only possible to write in memory 42 of the verifying circuit 40 at power-on, cancels the theoretical possibility that a hacker has to modify the contents of memory 42 by deleting the password or overwriting it by another password. As it can be noted in the above description, the function to be achieved by the verifying circuit 40 are the following: receiving passwords from the CPU; writing the first received password since power-on in memory 42 and cancelling any subsequent attempt to read or write im memory 42, at least at the location of the password; closing switches 30 (by sending a pulse to the reset input R of flip-flop 31) at power-on and upon receiving a subsequent password equal to the one stored in memory 42; and transmitting the equality or non-equality of the passwords to the CPU. These functions can easily be achieved by those skilled in the art with logic gates, comparators and flip-flops. It is particularly easy to achieve them with a suitably programmed microcontroller including its own memory. Preferably the microcontroller is allready provided in the computer, such as the keyboard controller. The microcontroller is then allready implemented for communicating with the CPU and its program only needs simple modifications to achieve the above functions. Connection pins of the microcontroller are usually available, one of them can thus be used for controlling the reset input R of flip-flop 31. The pulses to be sent to the set input S of flip-flop 31, to open switches 30 upon request by the CPU, can easily be achieved by providing in the computer a latch, the output of which is connected to the set input of the flip-flop. The latch is then write-selectable by an address decoder responding to an unused peripheral device address (also called input/output address). To generate a pulse, the CPU will successively write a 1 and a 0 in the latch. This pulse could also be generated by the above microcontroller. Those skilled in the art will be able to write the suitable POST, SETUP and microcontroller programs in order to achieve the described functions. Switches 30 can be achieved by logic gates. Flip-flop 31 has been described as an RS flip-flop, but those skilled in the art will be able to choose any equivalent circuit.

Claims: A computer comprising: a first memory (16) of a type which is conventionally provided for storing computer configuration data including user defined configuration data; a non-volatile second memory (20); programming means (22) for reprogramming the non-volatile second memory (20), the second memory storing said computer configuration data and user defined confidential data; and a central processing unit (10) coupled with the first and second memories (16, 20) and the programming means (20), the first memory (16) being accessible by the central processing unit in a standard memory-access manner and the second memory (20) being accessible by the central processing unit in a memory-access manner different from the standard memory-access manner of the first memory, the central processing unit (10) being operative during power on of the computer to copy into the first memory (16) the computer configuration data, but not the user defined confidential data, stored in the non-volatile second memory (20), the computer configuration data adjusting the computer configuration so the computer is correctly coupled with its peripheral devices (P1, P2). A computer according to claim 1, further comprising switch means (30) coupled with the central processing unit (10) and the non-volatile second memory (20) for initially enabling access between the central processing unit (10) and the non-volatile second memory (20) at power on, the switch means (30) being operative following copying of the configuration data from the second memory (20) into the first memory (16) to cut access of the central processing unit (10) to the non-volatile second memory (20) and to peripheral devices specified by the user defined configuration data. A computer according to claim 2, further comprising a flip-flop (31) having first and second states, the flip-flop being set into its first state by a power-on reset circuit of the computer and into its second state by the central processing unit (10), the flip-flop being operative in its first state to close the switch means (30) and in its second state to open the switch means (30). A computer according to claim 2 or claim 3, wherein the user defined confidential data is a user-defined password, the computer further comprising: a further memory (42); means for copying said user-defined password held in the second memory to said further memory (42) at power on; a comparator (40) communicating with the central processing unit (10) and said further memory (42) and operative to compare a currently-input password provided to the comparator by the central processing unit with the copy of the user-defined password held in said further memory, the comparator operating the switch means (30) to reestablish the cut access if the comparison is good; and means (40) for preventing access to the further memory (42) apart from a single write access for copying the user-defined password thereto at each power on, and read accesses by the comparator. A computer according to claim 4, wherein the further memory (42), the comparator (40) and the said means (40) for preventing access to the further memory are implemented in an available microcontroller of the computer. A method of protecting a computer that includes a central processing unit (10) and a first memory (16) of a type which is conventionally provided for storing computer configuration data including user defined configuration data, the first memory (16) being accessible by the central processing unit in a standard memory-access manner; said method comprising the steps of: storing said computer configuration data and user defined confidential data in a reprogrammable non-volatile second memory (20) that is accessible by the central processing unit but in a memory-access manner different from the standard memory-access manner of the first memory (16); and during power on of the computer, causing the central processing unit to copy into the first memory (16) the computer configuration data, but not the user-defined confidential data, stored in the second memory (20), the computer configuration data adjusting the computer configuration so the computer is correctly coupled with its peripheral devices (P1, P2). A method according to claim 6, comprising the further steps of: at power on, initially enabling access between the central processing unit (10) and the non-volatile second memory (20), following copying of the configuration data from the second memory (20) into the first memory (16), cutting access of the central processing unit (10) to the non-volatile second memory (20) and to peripheral devices specified by the user defined configuration data. A method according to claim 7, wherein the user defined confidential data is a user-defined password, the method comprising the further steps of: copying said user-defined password held in the second memory (22) to a further memory (42) at power on; comparing a currently-input password provided by the central processing unit (10) with the copy of the user-defined password held in said further memory (42), and reestablishing the cut access if the comparison is good; and preventing access to the further memory (42) apart from the single write access for copying the user-defined password thereto at each power on, and read accesses for effecting the comparing step.

Inventors: HAYS BERTRAND, LARVOIRE JEAN-FRANCOIS, RIBOLLET THIERRY, HAYS, BERTRAND, LARVOIRE, JEAN-FRANCOIS, RIBOLLET, THIERRY, Larvoire, Jean-François
Applicants: HEWLETT PACKARD CO, HEWLETT-PACKARD COMPANY
Application year: 1992
Main classification: G06F1
IPC codes: G06F21, G06F9, G06F12