METHOD AND APPARATUS FOR PREVENTING "DISEASE" DAMAGE IN COMPUTER SYSTEMS

Abstract: A method and apparatus (100) are disclosed which act to prevent damage to stored data through the operation of a computer virus. The apparatus (100) is preferably a plug-in card insertable to occupy a number of address locations within a computer system (10) to be protected. At BIOS initialization (Fig. 2) of the computer system (10), the apparatus (100) alters interrupt pointers, stored in RAM (18), to specific ROM (16) functions, to point to locations within the apparatus (100). The apparatus (100) can then monitor relevant interrupt requests for data change instructions wherein if data changes are intended, warning messages are provided to the computer user, who can then decide to continue the operation, or to abort which can prevent viral damage to stored data. In an alternative configuration selected address locations can be continually monitored and the system (10) shut down via a hardware reset (230) in the event of unauthorised address location access.

Description: METHOD AND APPARATUS FOR PREVENTING "DISEASE" DAMAGE IN COMPUTER SYSTEMS Field of the Invention The present invention relates to computer systems and, in particular, discloses a method by which "disease" damage to data stored within the computer system can be prevented. Background Art Computer viruses are known in the art and represent one form of computer disease. Viruses are essentially computer programs that have the ability of infecting the memory of computer systems, deleting or augmenting that memory, as well as being able to replicate themselves via use of communication lines or portable memory such as floppy disks. It has been found that most computer viruses are transmitted either in the sale of new floppy disks, or through the swapping of floppy disks, and by the interconnection of computers using modems and networks. If a computer system becomes infected with a computer virus, the user has the option of purchasing software that is able to Identify the virus, so that the infection can be eradicated. In such a process, it is required to establish the viral "fingerprint" which gives the computer user an indication as to how the virus works and how to prepare software that will actually combat the viral fingerprint. However, in destroying the virus, it is sometimes possible to destroy program data as well. However, to establish a viral fingerprint through the loading of appropriate software, it 1s necessary, 1n personal computers, for the disk operating system (DOS) to be operating which also allows the computer virus to operate. It has been found, that some computer viruses actually attack the software attempting to establish the viral fingerprint. At the date of this application, there are approximately 1600 viruses present throughout the world. One software manufacturer has established 475 viral fingerprints and it will be apparent to those skilled in the art, therefore, that many computer viruses cannot be effectively treated. Many computer viruses are particularly intelligent and one such virus, named STONE, has been identified as being able to be changed by human re-enginerring so as to alter Its viral fingerprint. At present, the STONE virus is also known in two mutated forms, STONE I and STONE II. There are many self-mutating (stealth) viruses, such as "1260", "V800" and "DARK AVENGER" strains. Another intelligent virus is known as FRIDAY THE 13TH and, as implied by its name, this virus only becomes active on that particular date. Such an operation Is readily available as most computer systems include a CMOS real-time clock which the intelligent virus can monitor and enable itself on a particular day. Other forms of computer "disease" take the form of "Trojans", "worms" and "logic bombs". Trojans and logic bombs have the effect of infecting a computer system, sometimes under the guise of something else (as in the Trojan Horse), and "exploding" 1n such a manner that blocks of data stored 1n memory are destroyed irretrievably. As their names imply, they have a once-only function. Worms have the effect of infiltrating many memory locations in a computer system and generally cause nuisance effects. For convenience, throughout this specification computer viruses, worms, trojans, logic bombs, and the like, are grouped together as "diseases", but where applicable, references made to "viruses", because of that terms acceptance in the art, are to be considered references to "diseases" In general . It Is an object of the present Invention to substantially overcome, or ameliorate the above mentioned difficulties through provision of a means by which actual damage caused by computer diseases, can be prevented. It will be apparent to those skilled 1n the art that disease infection of a computer system 1s generally not preventable, as the disease software is merely data and, when read from a floppy disk or via a network, the computer system sees the disease as merely one small section of data within an entire data transfer. Summary of the Invention In accordance with one aspect of the present invention there 1s disclosed a method of preventing disease damage to data stored at one or more memory locations in a computer system, said method comprising the steps of determining an advance step or steps required to access said memory location(s), continuously monitoring the operation of said computer, system to determine 1f one of said advance step(s) 1s undertaken, and before the operation of said computer system continues, in the event that one or more of said advance steps 1s undertaken, checking an intended action to follow said undertaken advance step to determine if said intended action is permitted. In accordance with another aspect of the present invention there 1s disclosed a method of preventing disease damage in a computer system, said method comprising the steps of determining which interrupt vectors of said system are accessed for memory manipulations, amending pointers to said Interrupt vectors to point to a corresponding number of dummy memory locations, and monitoring control instructions as they are loaded into said dummy locations to determine if said instructions are to implement alteration or deletion of memory whereby If said instructions are such that an alteration or deletion of memory will be caused, further processing is suspended and a message is provided to a user of said system demanding action so as to prevent or allow further processing, the prevention of further processing thereby preventing unintentional alteration or deletion of said memory. In accordance with another aspect of the present Invention there is disclosed a method for preventing disease damage to data stored at one or more memory locations 1n a computer system, said method comprising the steps of monitoring said location(s) for an attempted access threat and interrupting the operation of said system upon detection of at least one said attempted access. Brief Description of the Drawings A preferred embodiment of the present Invention will now be described with reference to the drawings 1n which: Fig. 1 is a block diagram representation of a computer system incorporating the preferred embodiment; Fig. 2 Illustrates the addressable memory locations of the system of Fig. 1; Fig. 3 1s a block diagram representation of the virus protection device motherboard (VG-MB) seen 1n Fig. 1 of one embodiment; Fig. 4 is a block diagram representation of the virus protection device daughterboard (VG-DB) seen 1n Fig. 1 of another embodiment; Fig. 5 1s a block diagram representation of the comparator unit of Fig. 4; Fig. 6 is a block diagram representation of the compare match circuit and lock-1n latches of Fig. 4; Fig. 7 is a block diagram representation of the program counter and lock-out circuit and the I/O mastering circuit of Fig. 4; Fig. 8 is a flowchart of the BIOS Initialization Procedure; Flgs. 9A to 9F show a single flowchart for a particular BIOS "08" Intercept; Fig. 10 shows a flowchart for a BIOS "09H" Intercept; Figs. 11A to 11D show a flowchart for a BIOS "13H" Intercept; Fig. 12 is a flowchart for a BIOS "40H" Intercept; Figs. 13A to 13E show a flowchart of a DOS "21H" Intercept; Fig. 14 is a flowchart of a DOS "26H" Intercept; Fig. 15 is a flowchart of a DOS "27H" Intercept; Fig. 16 is a flowchart of a DOS "2FH" Intercept; Fig. 17 is a flowchart of a DOS "20H" Intercept; Fig . 18-33 show various warning messages issued to the user by the circuit of Fig. 1 ; Figs. 34A and 34B show the reconfiguration of the interrupt vectors; Fig. 35A, 35B and 35C is a timing diagram of the operation of the daughterboard; and Figs. 36 to 48 show various configuration setup menus. Best and Other Modes for Carrying out the Invention Referring to F1g. 1, a computer system 10 is shown which includes a main processor 12 connected to other components within the system 10 via a system bus 14 having generally separate or separable data, address and control buses (seen in later Figs.). Connected to main processor 12 is a crystal 13 which acts as a system clock. Connected to the bus 14 are the major components of the system 10 which include a system ROM 16, a system RAM 18, a real-time clock 20, a hard disk controller 22 connected to a hard disk drive 24, a floppy disk controller 26 connected to a floppy disk drive 28, a video controller 30 connected to a cathode ray tube (CRT) 32, an interface adapter 34 connected to a keyboard 36, an Interface adapter 38 connected to a printer 40, a universal asynchronous receiver transmitter (UART) 42 which supplies a serial data port 44, and an SCSI port 46 which permits direct memory access (DMA) to the bus 14. Generally, the system RAM 18 can comprise a non-volatile portion 19 usually formed of CMOS memory having a battery backup configuration. This permits permanent storage in RAM. Also connected to the bus 14 are three adaptor sockets 48,52,56. Generally, there are usually 3 to 8 sockets. Insertable into the sockets 48,52,56 are printed circuit cards and the like which permits specific applications of hardware within the computer system 10. As seen in Fig. 1, an expansion RAM board 50 is insertable into the socket 48 and a math co-processor 54 is insertable into the socket 52. Other examples are VGA cards, modems permitting connection to telephone lines and the like. Each of the abovementioned components perform their normal function and enable a user to operate the computer system 10 in the usual manner. Also seen in F1g. 1, 1s a virus protection device motherboard (VG-MB) 100 which 1s insertable Into the adaptor socket 56 and which includes hardware and software components which permit prevention of damage to computer memory within the system 10 as well as within the VG-MB 100, through the operation of computer viruses. Also seen is a virus protection device daughterboard (VG-DB) 200 which in this embodiment is insertable into a connector socket 150 in the VG-MB 100. The VG-DB 200 supplements the viral protection capability of the system 10. Alternatively, the VG-DB 200 can be connected Into a further adaptor socket ( not illustrated) directly to the bus 14. In an alternative configuration, both the VG-MB 100 and VG-DB 200 can be incorporated into a single circuit 500 (shown In phantom 1n Fig 1) which 1s integral with the computer system 10 and directly connects to the bus 14. Turning now to Fig. 2, a map of addressable location within the computer system 10 1s shown. The addressable memory locations are divided amongst the system RAM 18, a space 90 for the adaptor cards 52,56, the system ROM 16, the major hardware units 20,34,38,46,30,26,22, and the expansion RAM 50. The system ROM 16 occupies a substantial portion of the memory locations. The ROM 16 comprises a Basic Instruction for Operating System (BIOS) function which includes those fundamental instructions which operate the computer system 10 at power-up. The BIOS initializes specific hardware devices such as peripheral Interface adaptors, communication ports and disk drives prior to normal operation. In addition, the BIOS establishes an Interrupt (IRQ) address map 60 in the RAM 18, seen at the bottom of Fig. 2. The IRQ address map 60 comprises pointers * which, on receipt of an Interrupt request by the main processor 12, pass control to that area of the ROM 16 vectored by the address in the IRQ address map 60. Because the IRQ address map 60 is formed within free memory of the RAM 18, such memory is vulnerable to augmentation or deletion, possibly through the action of a virus. Once the BIOS function has set up the standard components of the computer system, the BIOS function then looks into the reserved card space 90 and logs in those adaptor cards present within that space by executing internal procedural codes loaded onto each particular card. Turning now to Fig. 3, the VG-MB 100 is shown and is specifically adapted for use with the IBM PC/AT series of personal computers. The VG-MB 100 includes a control bus input 106, an address bus input 102, and a data bus input 104. The control bus 106 includes standard IBM PC/AT control lines such as memory write (MEM/W) 140, address line enable (ALE) 141, address enable (AEN) 142, Input-output write (I0W) 143, Input-output read (IOR) 144, memory write (MEM/R) 145, and reset drive (RES_DRV ) 146. The control bus 106 and address bus 102 connect to a number of buffers 108 which prevent loading of the buses 102,106. The data bus 104 also connects to a buffer 110. The buffers 108,110 can be configured using 74LS244 devices or other similar devices. The VG-MB 100 includes an address decoder 118 which connects to an internal address/control bus 124. The address decoder 118 provides memory address selection for a RAM 114 and an ROM 116. The RAM 114 and ROM 116 also connect to the internal address/control bus 124 as indicated. The RAM 114 can for example be a 6264 device and the ROM 116 a 27256 device for example. The VG-MB 100 also includes a battery charger 120 and a battery 128 which provide battery backup to the RAM 114 and data stored therein. This provides further protection in the event of a virus caused power down. A switch 130 allows the battery 128 to be selectively connected. The address decoder 118 Is used to decode addresses on the address bus 102 to make appropriate data selections within the RAM 114 and ROM 116. To permit various functions to be user selectable, a bank 132 of four switches is arranged together with pull-up resistors 134 to provide various selection Inputs to the address decoder 118. The address decoder 118 can be configured in a known manner using discrete components, or al ernatively, using a programmable logic array. An 8 bit data transceiver 112 is provided which Interfaces the data bus 104 to each of the RAM 114 and ROM 116 via an Internal data bus 126. The internal address/control bus 124, and a data bus 111 from the buffer 110 also supply the connector socket 150 thus permitting connection to, and operation of the VG-DB 200, as will be described later. The ROM 116 comprises a program which Implements specific functions of the VG-MB 100. A summary of that function 1s as follows. When the BIOS function is setting up the reserved card space as earlier described, the BIOS function allows the VG-MB 100 to execute its own internal codes, resident 1n the ROM 116, so as to initialize Itself. During initialization, the VG-MG 100 copies the IRQ pointer values out of the IRQ address map 60 and stores them within the RAM 114. It then alters the IRQ pointers 1n the IRQ address map 60 of Fig. 2 to point to dummy memory locations also within the RAM 114. This enables the VG-MG 100 to filter specific interrupt requests prior to those requests being executed by standard functions of the ROM 16 provided in the computer system 10. The reconfiguration of the interrupt vectors is Illustrated in Figs. 34A and 34B, the former showing.a standard BIOS configuration and the latter showing the configuration after initialization of the VG-MB 100 . In a specific application for the IBM PC/AT, IRQ8, IRQ13 and IRQ2F are examples of specific vectors that are re-pointed into the RAM 114. The VG-MB 100 can thereby monitor interrupt requests as they pass Into the dummy locations within the RAM 114. If the interrupt requests are ones that would cause either deletion or changes to memory, either within the RAM 18 space of Fig. 1 or at any other addressable memory location, the control program within the ROM 116 halts all further execution of the interrupt and then indicates to the operator of the computer system 10 that changes to data stored in memory, are envisaged. If the operator was not implementing a data change function, as might be occurring when reading from, or writing to disk, the evidence of a data change operation identified by the VG-MB 100 can indicate the presence of a computer virus taking action unknown to the operator. If such 1s the case, the operator can cease all further operation of the computer system 10 so as to prevent loss of data. If, however, a data operation was being executed, this will be apparent to the operator who can then choose to continue with the operation, whereby the VG-MB 100 re-po1nts the dummy vectors within the RAM 114 to the actual locations 1n the ROM 16 of the computer system indicated 1n Fig. 2. Execution of the instruction thereby continues. The foregoing method 1s effective for preventing damage caused by computer viruses in that it monitors data operations controlled by the main processor 12 and only allows data changes to occur with the full knowledge of the computer operator. Fig. 8 shows the BIOS initialization procedure which includes the initialization of the VG-MB 100 as earlier described. The BIOS initialization procedure commences with a Power On stage 300 followed by phase 1 of the BIOS Power On Self-Test (POST) 301. In this step, BIOS initialises the keyboard interface adaptor 34, a test processor (not illustrated) performs a BIOS CRC ROM check, initialises the DMA control (SCSI) 46, tests 16 KBytes of base memory within the RAM 18, Initialises an Interrupt controller (not illustrated), reads configuration data, initialises the video controller 30, tests the CRT 32, tests the Interrupt controller, initialises the real-time clock 20, tests the clock 20, tests, the keyboard 36, builds the BIOS vector table illustrated in Fig. 34A, and tests the remaining memory. After step 301, step 302 scans the reserved memory addresses 90 for optional expansion ROM's included 1n any adaptor PCBs. If expansion ROM's are found, such as in the VG-MB 100, control passes to step 303. In step 303, the ROM CRC 1s tested and if valid, control Is passed to the expansion ROM of the particular adaptor board. When the VG-MB 100 receives control the following services are monitored: all floppy diskette services to the floppy disk drive 28; all hard drive services to the hard disk drive 24; and all timer services to the real-time clock 20. In addition, the VG-MB 100 places probes for keyboard status, memory status and the pending load of the Disk Operating System (DOS). At this stage, all of the VG-MB 100 low level services are fully functional. If the VG-DB 200 is fitted, appropriate memory probes are « placed for non-BIOS HDC/FDC access and selected DMA, placing the VG-DB 200 in full working order. After initialisation, the VG-MB 100 returns control back to BIOS. After completion of step 303, step 304 1s Implemented which 1s phase 2 of the BIOS POST. This tests the floppy disk controller 26 and determines if a floppy disk drive 28 is attached. It also initialises RS232 ports such as would be used in concert with the UART 42 as well as initialising LPT ports for example with the Interface adaptors 34 and 38. Phase 2 also builds an equipment list, enables Interrupts, and then trys to load boot loader code from the floppy disk drive 28. If the floppy disk drive 28 fails to respond, then phase 2 tests the hard disk drive controller 22 for a hard disk drive 24 and attempts to load the boot loader code from the hard disk drive 24. At the completion of phase 2, DOS is loaded in step 305. In this step, DOS is loaded in four phases. Phase 1 represents a standard device driver interface, phase 2 represents an application program interface. After phase 2, the VG-MB 100 is aware of DOS and monitors selected API services. This implements high level protection facilities of the VG-MB 100. Phase 3 follows which is a user supplied device drive enhancements and phase 4 completes step 305 with command console processor functions. The VG-MB 100 also takes a photograph copy of the BIOS memory table which resides in the top portion of the ROM 16 seen in Fig. 2. This provides the VG-MB 100 with the ability to check the vector table. If a match is achieved, the interrupt processing is allowed to continue. If the photograph does not match the table, further processing is halted as this indicates a corruption of data within the VG-MB 100, which can Indicate viral damage. Figs 9 to 33 illustrate a number of operations of the VG-MB 100 which monitors operations controlled by the main processor 12. Figs. 9 to 17 show flow diagrams for the processing of various interrupt vectors by the VG-MB 100. Where applicable, certain steps indicate the corresponding Fig. number of a warning message (Figs. 18-33) that Is displayed at that particular time. Also, where a user selection is indicated, "X" means to exit or quit, and "E" means to execute, that particular function. Also, references to the API filter are to be construed as references to the VG-MB 100. Figs. 18-33 show various warning displays 16 of which can be output from the VG-MB 100 for display on the CRT 32 of the computer system 10. Also, an audio output can be sounded 1f desired. Each warning identifies a particular operation about to take place and requests appropriate action from the computer operator. If the operator's intention is to change the data, e.g. by writing to a floppy disk 28, the operator can select, to continue. If, on the other hand, whilst normal processing within the computer system 10 is taking place, a virus instructs an amendment to data stored on a floppy disk 28, an appropriate warning will be issued. The user then has the option to abort the particular function so as to prevent viral damage. Turning now to Fig. 9, the processing of the system timer vector INT 08H intercept is shown. Firstly, the intercept checks whether the BIOS vector is set and then determines whether the disk operating system (DOS) 1s loaded and operating. The INT 08H intercept also re-vectors DOS Interrupts so as to allow monitoring of DOS functions. This can be achieved in the manner shown in Fig. 16. Also as seen in Fig. 9, where the computer system 10 includes CMOS non-volatile memory 19, this can be also corrupted by viruses and a photo image of the CMOS memory 19 is also taken. This also allows for the prevention of damage to data stored in permanent RAM 19. Fig. 10 shows the optional intercept, INT 09H, for the internal function requests vector of the computer keyboard 36. This intercept has the ability to lock keyboard function to prevent further manipulation by unauthorized users. The VG-MB 100 probes the BIOS data area for keyboard status. Fig. 11 shows the intercept, INT 13H, for the diskette service data definitions vector which is applicable for the operation of floppy disks. This is particularly relevant as viral infections can enter into a computer system via one floppy disk, and exit the same system, so as to further multiply themselves via other floppy disks. Figs. 13, 14, 15, 16 and 17 show respectively the INT 21H, INT 26H, INT 27H, 2FH and 20H Intercepts for DOS functions which monitor DOS for a number of unspecified data changes. Other interrupts that can be intercepted include: INT 09H - optional keyboard; INT 16H - optional keyboard in refined mode; INT 10H - optional BIOS video; INT 01H - optional debug; INT 03H - optional debug; INT 24H - error handler for DOS - watched but not intercepted; INT 3FH - this is the last interrupt at the end of Phase 2 of BIOS loading of DOS (see Fig 8) and represents a watchdog for that stage of DOS loading - watched but not intercepted. Figs. 36 to 48 show various setup menus for the VG-MB 100 and VG-DB 00 including change of password (Setup "1","2","3") , optional control or the probed addresses on the VG-DB 200, calls to files that do not trigger the VG-MB 100 (Setup "5"), files approved for TSR (terminate and stay resident) and INT 21H (Setup "6"), files permitting low level access (Setup "7"), and other initialization requirements (Setup "8"-"13" ) . Turning now to Fig. 4, the VG-DB 200 is shown which connects to the VG-MB 100 of Fig. 3 via plugs 202 which are insertable into the connector sockets 150. Extending from the plugs 202 is an address bus 204 which supplies a probed address input of a comparator unit 210. An address bus 206 extending from the plugs 202 provides an actual address input of the comparator unit 210. Also connected to the address bus 106 is an I/O mastering unit 214 which regulates the operation of the VG-DB 200. The I/O mastering unit 214 outputs to a program counter and lock-out circuit 212 which supplies various clock signals for the operation of the comparator unit 210. The I/O mastering unit 214 also outputs various control signals to a series of lock-in latches 218 which permit various operational states to be held. The comparator unit 210 includes a number of outputs which supply a compare match circuit 216 which is configured to determine the particular status of an address access. The compare match circuit 216 interreacts with the lock-in latches 218 to permit holding of a particular state. The compare match circuit 216 outputs a kill signal 220 to two timers 224 and 228 which operate simultaneously. The timer 224 sounds an audio alarm 226 for a predetermined period of time, generally 12 seconds, whilst the timer 228 Is configured to provide an immediate hardware reset using a relay 230. The relay 230 is held closed for a period of time to allow the hardware reset to be effected and then removed so as to permit normal operation through the re-establishment of BIOS as in Fig 8. A •semiconductor switch can be used as an alternative to the relay 230. In this manner, the VG-DB 200 can be programmed to selectively monitor any address location on the system bus 14 and can thereby detect an unauthorised operation occurring at a particular address location. Accordingly, the VG-DB 200 is able to immediately cease all operation of, and reset the computer system 10, without any operator interaction, so as to prevent viral contamination of any memory which may not be preventable using the arrangement of the VG-MB 100. The relay 230 is preferably a high speed Reed relay and is held closed for a period of one second determined by the closing period of the timer 228. In the preferred embodiment, this arrangement has the ability of shutting down the operation of the computer system 10 in approximately 25 bimonths of a second. The timers 224 and 228 can be approximately configured NE 556 devices or similar. Turning now to Fig. 5, the arrangement of the comparator unit 210 is shown in which seven latches 238-244 are shown connected to the probe address input comprising the data bus 204. The latches 238-243 buffer each of the 8 data bits representing an address to be probed into a corresponding comparator 248-253. The latch 244 buffers only the 4 least significant bits from the bus 204 Into Its corresponding comparator 254. Input into each of the comparators 248-254 are various address bits as indicated. The latches 238-244 can be Implemented using 74LS374 devices and the comparators using 74LS688 devices. The latch/comparator pairs are configured to make comparisons upon particular address locations throughout the system 10 whereby the probed address is preset by a program operating In the ROM 116 of the VG-MB 100, and the actual address is that being accessed on the system bus 14. In particular, the comparators 248 and 249 access the high and low bytes respectively of the address of the hard disk controller 22. The comparators 250 and 251 access respectively the high and low bytes of the address of the floppy disk control er 26. The comparators 252, 253 and 254 are configured to monitor direct memory access (DMA) via the SCSI port 46 with the comparators 252 and 253 accessing the high and middle bytes and the comparator 254 accessing the lower 4 bits of the SCSI address or any other DMA address determined by ROM 116 (Fig. 3). Each of the comparators 248-254 are enabled from the AEN line 142 of the control bus 208. Also, each of the latches 238-244 is clocked using a clock signal dedicated to the particular address range for which the respective comparator 238-244 has been configured. In this manner, the latch 238 Is clocked using a DISK_HI_CLK 260 and the corresponding comparator 248 outputs a DISK_HI 270. A corresponding arrangement is provided for each of the remaining latch/comparator pairs. Turning now to F1g. 6, the arrangement of the compare match circuit-216 and the lock-in latches 218 is shown. Each of the outputs (270-276) from the comparator unit 210 output to the compare match circuit 216 with each of the HI byte outputs ( 270,272,274) being passed via a bank 280 of switches which connect to pull-up resistors 281 permitting various preset values to be made. The compare match circuit 216 is also input with signals from the control bus 108 including IOW 143, MEM/R 145, ALE 141, and MEM/W 140. The compare match circuit 216 is linked with three flip-flops 288, 289 and 290 which form the lock-in latches 218. The flip-flop 288 receives the MEM/R 145 signal together with an I/O HIT signal 283 from the compare match circuit 216. It outputs an I/O COMP signal 287 to the compare match circuit 216. The flip-flop 289 receives a LET signal 236, a STOP signal 234, and a RESET signal 232 each supplied from the I/O mastering circuit 214. The flip-flop 289 outputs an ASLEEP signal 284 to the compare match circuit 216. Lastly, the flip-flop 290 operates for DMA address accesses and receives a SCSI_CLR signal 286 and a SCSI_HIT signal 282 and outputs a SCSI_C0MP signal 285 to the compare match circuit 216. The compare match circuit 216 is preferably formed of a programmable logic array with its various signals having the following logic functions: SCSI_HIT -= (!SCSI_L0) & (!SCSI_MID) & (!SCSI_HI) & (ALE) & (IASLEEP); SCSI_CLR = (SCSI_L0 & ALE) # (SCSI_MID & ALE) # (SCSI_HI & ALE): I/0.HIT = (1DISKJ.0 & !DISK_HI & ALE & 1ASLEEP) # (1FL0PJ.0 & !FL0P_HI & ALE & !ASLEEP); KILL = (SCSI_C0MP & 1MEM/W) # (I/0_C0MP & !I0W) # (SCSI_COMP & !MEM/R); where: # = OR, & = AND, ! = NOT. It will be apparent from the above logic functions of the compare match circuit 216, that the VG-DB 200, through the comparators 210, monitors accesses (both read and write) to 3 selected memory locations: one in the hard disk controller 22; one In the floppy disk controller 26; and one DMA location. The KILL signal 220 Is asserted only on a write to either disk controller 22,26, or, on either a read or write via DMA. The actual address locations probed by the VG-DB 200 vary according to the particular application. For the three selected memory locations above, they are dynamically configured during initialization of the VG-DB 200 by the VG-MB 100. The VG-MB 100 analyses the type of machine (e.g. IBM PC/AT/XT, etc.) into which it is installed to determine the address locations of the hard disk controller 22, floppy disk controller 26, and I/O 46 cards and establishes default probe addresses accordingly. The user has the option to select his own addresses. Also SCSI-type drives generally use DMA in which packets of data in memory are accessed via a preamble header containing SCSI request commands. Alternatively, simple DMA can occur where a processor other than the main processor 12 has direct access to the bus 14. Turning next to Fig. 7, shown is the arrangement of the I/O mastering unit 214 and the program counted lock-out logic 212. The program counter 212 is an 8-bit binary counter such as a 74LS164 device which receives a CLOCK signal 292 and the RESET signal 232 from the I/O mastering unit 214. The program counter 212 outputs the various clock signals 260-266 to the comparator circuits 210. The highest bit (B7) of the program counter 212 provides a SETUP_END signal 294 which is returned to the I/O mastering unit 214. The I/O mastering unit 214 is input with the lowest 10 bits of the address bus 206 as well as the RES_DVR signal 146 and the AEN signal 142. The I/O mastering circuit 214 outputs a LET signal 236, and a STOP signal 234 which, together with the RESET signal 232 supply the lock-in latches 218. The I/O mastering unit 214 is preferably a programmable logic array which performs the following logic functions: CLOCK = A9 & !A8 & A7 & A6 & A5 & A4 & A3 & !A2 & Al & !A0 & !I0W & !RES_DRV & !SETUP_END & !AEN; LET = is a combined logic output of the address bus 206, control bus 208 and SETUP_END unique to each example of the VG-DB 200 which permits (lets) an operation to occur; STOP -= is a combined logic output of the address bus 206, control bus 208 and SETUP_END unique to each example of the VG-DB 200 which prevents (stops) an operation from occurring; RESET = RES.DRV; where: # = OR, & = AND; ! = NOT. The specific logic functions for LET and STOP are not shown as these are selectable and their specific disclosure herein will enable the bypassing of the VG-DB 200. Returning to F1gs. 4 and 5, the probed address locations in the VG-DB 200 can be preset within the ROM 116 and programmed during initialization of the VG-MB 100. In this manner, where a memory access is made on the system bus 14 that 1s not approved by the VG-DB 200, for example through DMA, the VG-DB 200 can detect this and shut down the system 10 prior to a read or write occurring from that address. In this manner, the VG-DB 200 1s configured to take action whilst an address is asserted (AEN 142), and before a read/write operation 1s commenced by asserting by either of the lines 140, 143, 144 or 145. Such an arrangement is shown in Figs. 35A, 35B and 35C where the VALID ADDRESS represents a valid output of the comparator 210 prior to processing by the compare match circuit 216 which performs comparisons of the signals shown in Figs. 35A, 35B and 35C. Furthermore, the comparators 210 can be periodically reprogrammed, with successive cycles of the respective clock signals output from the program counter 212, with different probe addresses thereby permitting the VG-DB 200 to continually scan address 1n the computer system 10 for unauthorised memory access. In this,manner, the VG-DB 200 1s dynamically reconfigurable. It will be apparent from the foregoing that the VG-MB 100 and the VG-DB 200 operate Independently of each other and thus can be configured separately. In such a case the VG-DB 200 requires a dedicated ROM to perform the probe address programming which 1s performed in the preferred embodiment by the ROM 116. Furthermore, the VG-DB 200 operates entirely without reliance upon the computer system. Also, 1t will be apparent that the feature of the hardware reset of the VG-DB 200 can be Incorporated into the VG-MB 100 to cause a reset upon a particular interrupt being received. Similarly, the interrupt features of the VG-MB 100 can be incorporated within the VG-DB 200 and implemented upon access to a probed address. The flowcharts of Figs. 8-17 and the warning displays of Figs. 18-33 are indicative of only a number of procedures whereby viral damage can be prevented. Those skilled in the art will appreciate that other interrupt vectors can also be accessed so as to monitor computer functions which can also indicate viral action. Also, whilst the preferred embodiment is described with particular reference to the IBM PC/AT personal computers, 1t will be understood by those skilled in the art that the same principles can be applied to other personal computers and also to major (mainframe) computing systems. Also, the present embodiment uses 74LS devices which are limited to clock speeds of about 50MHz. Higher speed operation can be obtained using 74S devices, for example. The foregoing describes only a number of embodiments of the present invention and modifications, obvious to those skilled in the art, can be made thereto without departing from the scope of the present invention.

Claims: CLAIMS : 1. A method of preventing disease damage to data stored at one or more memory locations 1n a computer system, said method comprising the steps of determining an advance step or steps required to access said memory location(s), continuously monitoring the operation of said computer system to determine if one of said advance step(s) Is undertaken, and before the operation of said computer system continues, in the event that one or more of said advance steps 1s undertaken, checking on Intended action to follow said undertaken advance step to determine if said intended action is permitted. 2. A method as claimed in claim 1, wherein one said advance step is an interrupt service operation involving memory manipulation, and said monitoring comprises amending a pointer to said Interrupt service operation to a dummy memory location, and monitoring a control instruction loaded Into said dummy location to determine if said control instruction Implements alteration of data at said one or more memory locations. 3. A method as claimed in claim 1, wherein the operation of said computer system 1s suspended with respect to said undertaken advance step to permit said checking. 4. A method as claimed in claim 1, wherein said checking comprises the steps of prompting a user of said system to determine if said intended action is permitted. 5. A method as claimed in claim 4, wherein said user can select to either continue said Intended action or to halt operation of said computer system. 6. A method as claimed in claim 1, wherein one said advance step is a direct memory access to one or more of said memory locatlon(s). 7. A method as claimed 1n claim 6, wherein said monitoring comprises the probing of accesses at said locations. 8. A method as claimed 1n claim 7, wherein said checking comprises the steps of comparing said memory location(s) directly against locations addressed 1n said Intended operation and supplying a valid comparison signal upon a valid comparison. 9. A method as claimed in claim 8, wherein said valid comparison signal causes a cessation of said Intended operation prior to actual access to said location(s). 10. A method as claimed in claim 9, wherein said cessation is achieved through a hardware reset of said computer system. 11. Apparatus for preventing disease damage to data stored at one or more memory locations 1n a computer system, said apparatus comprising: monitoring means for monitoring attempted accesses to said memory location(s); and checking means for determining If an attempted access 1s permitted and if not, suspending the operation of said computer system. 12. Apparatus as claimed in claim 11, wherein said attempted accesses are via Interrupt service operations and said monitoring means and said checking means comprise a read only memory (ROM), Including dummy locations vectored to form Interrupt vectors of said system, said ROM suspending said attempted access and displaying a message to a user of said system requesting a determination of whether or not said attempted access is intended. 13. Apparatus as claimed 1n claim 12, wherein 1f said attempted access is intended, said ROM returns control to the appropriate Interrupt service operation. 14. Apparatus as claimed in claim 12, wherein If said attempted access is not Intended, said ROM halts said attempted access. 15. Apparatus as claimed in claim 14, wherein said halting is effected by a lock-up of said computer system. 16. Apparatus as claimed 1n claim 11, wherein said monitoring means and checking means comprise: one or more comparators connected to an address bus of said system to compare an address thereon with a value representing said memory location(s); and logic means receiving outputs from said comparators and cross-referencing same with control signals of said system indicative of the type of said attempted access. 17. Apparatus as claimed in Claim 16, wherein said logic means is adapted to cause a reset of said computer system upon determination of a non-permitted attempted access. 18. Apparatus as claimed in claim 17, wherein said reset is a hardware reset and is implemented prior to actual access to said memory location(s). 19. Apparatus as claimed in claim 11, wherein said apparatus is releasably connectable to said computer system. 20. Apparatus as claimed in claim 11, wherein said apparatus is integral with said system. 21. Apparatus as claimed in claim 11, wherein said memory location(s) is/are dynamically reconflgurable. 22. A computer system comprising apparatus as claimed in claim 11. 23. A computer system operable in accordance with the method of claim 1. 24. A method of preventing disease damage to data stored at one or more memory locations 1n a computer system, said method comprising the steps of determining which interrupt vectors of said system are accessed for memory manipulations, amending pointers to said Interrupt vectors to point to a corresponding number of dummy memory locations, and monitoring control instructions as they are loaded into said dummy locations to determine if said instructions are to implement alteration or deletion of memory whereby if said instructions are such that an alteration or deletion of memory will be caused, further processing is suspended and a message is provided to a user of said system demanding action so as to prevent or allow further processing, the prevention of further processing thereby preventing unintentional alteration or deletion of said memory. 25. A method as claimed 1n claim 24, wherein said dummy memory locations reside in read-only memory (ROM) Incorporating instructions permitting said monitoring. 26. A method for preventing disease damage to data stored at one or more memory locations 1n a computer system, said method comprising the steps of monitoring said locatlon(s) for an attempted access threat and interrupting the operation of said system upon detection of at least one said attempted access. AMENDED CLAIMS [received by the International Bureau on 1 October 1992 (01.10.92); original claims 1, 11 and 25 amended; new claims 27-35 added; remaining claims unchanged (6 pages)] 1. A method of preventing disease damage to data stored at one or more memory locations throughout a computer system, said method comprising the steps of determining an advance step or steps required to access said memory location(s), continuously monitoring the operation of said computer system to determine if one of said advance step ( s ) is undertaken, and before the operation of said computer system continues, in the event that one or more of said advance steps is undertaken, checking on intended action to follow said undertaken advance step to determine if said intended action is permitted. 2. A method as claimed in claim 1, wherein one said advance step is an interrupt service operation involving memory manipulation, and said monitoring comprises amending a pointer to said interrupt service operation to a dummy memory location, and monitoring a control instruction loaded into said dummy location to determine if said control instruction implements alteration of data at said one or more memory locations. 3. A method as claimed in claim 1, wherein the operation of said computer system is suspended with respect to said undertaken advance step to permit said checking. 4. A method as claimed in claim 1, wherein said checking comprises the steps of prompting a user of said system to determine if said Intended action is permitted. 5. A method as claimed in claim 4, wherein said user can select to either continue said intended action or to halt operation of said computer system. 6. A method as claimed in claim 1, wherein one said advance step is a direct memory access to one or more of said memory location(s). 7. A method as claimed in claim 6, wherein said monitoring comprises the probing of accesses at said locations. 8. A method as claimed in claim 7, wherein said checking comprises the steps of comparing said memory location(s) directly agains* locations addressed in said intended operation and supplying a valid comparison signal upon a valid comparison. 9. A method as claimed in claim 8, wherein said valid comparison signal causes a cessation of said intended operation prior to actual access to said location(s). 10. A method as claimed in claim 9, wherein said cessation is achieved through a hardware reset of said computer system. 11. Apparatus for preventing disease damage to data stored at one or more memory locations throughout a computer system, said apparatus comprising: monitoring means for monitoring attempted accesses to said memory location(s); and checking means for determining if an attempted access is permitted and if not, suspending the operation of said computer system. 12. Apparatus as claimed in claim 11, wherein said attempted accesses are via interrupt service operations and said monitoring means and said checking means comprise a read only memory (ROM), including dummy locations vectored to form Interrupt vectors of said system, said ROM suspending said attempted access and displaying a message to a user of said system requesting a determination of whether or not said attempted access 1s intended. 13. Apparatus as claimed in claim 12, wherein 1f said attempted access 1s intended, said ROM returns control to the appropriate interrupt service operation. 14. Apparatus as claimed in claim 12, wherein 1f said attempted access is not intended, said ROM halts said attempted access. 15. Apparatus as claimed in claim 14, wherein said halting is effected by a lock-up of said computer system. 16. Apparatus as claimed in claim 11, wherein said monitoring means and checking means comprise: one or more comparators connected to an address bus of said system to compare an address thereon with a value representing said memory location(s); and logic means receiving outputs from said comparators and cross-referencing same with control signals of said system indicative of the type of said attempted access. 17. Apparatus as claimed in claim 16, wherein said logic means is adapted to cause a reset of said computer system upon determination of a non-permitted attempted access. 18. Apparatus as claimed in claim 17, wherein said reset is a hardware reset and is implemented prior to actual access to said memory location(s). 19. Apparatus as claimed in claim 11, wherein said apparatus is releasably connectable to said computer system. 20. Apparatus as claimed in claim 11, wherein said apparatus is integral with said system. 21. Apparatus as claimed in claim 11, wherein said memory location(s) is/are dynamically reconfigurable. 22. A computer system comprising apparatus as claimed in claim 11. 23. A computer system operable in accordance with the method of claim 1. 24. A method of preventing disease damage to data stored at one or more memory locations in a computer system, said method comprising the steps of determining which interrupt vectors of said system are accessed for memory manipulations, amending pointers to said interrupt vectors to point to a corresponding number of dummy memory locations, and monitoring control instructions as they are loaded into said dummy locations to determine if said instructions are to implement alteration or deletion of memory whereby If said instructions are such that an alteration or deletion of memory will be caused, further processing 1s suspended and a message is provided to a user of said system demanding action so as to prevent or allow further processing, the.prevention of further processing thereby preventing unintentional alteration or deletion of said memory. 25. A method as claimed in claim 24, wherein said dummy memory locations reside 1n random-access memory (RAM) at which data used to call a corresponding interrupt service operation is temporarily stored, whilst a read-only-memory, that incorporates instructions permitting the determination, in concert with said computer system, determines if said instruction will cause said alteration or deletion. 26. A method for preventing disease damage to data stored at one or more memory locations throughout a computer system, said method comprising the steps of monitoring said location(s) for an attempted access threat and interrupting the operation of said system upon detection of at least one said attempted access. 27. A method as claimed in claim 25, wherein if said user allows further processing, said system under control of said ROM re-vectors said data stored in said dummy memory locations to the true pointer for said interrupt vector. 28. A method as claimed in claim 1, 23 or 26, wherein said monitoring comprises monitoring a system bus of said computer system via which accesses to said memory locations are achieved. 29. A method as claimed in claim 28, wherein said accesses are instigated by a controlling processor of said computer system or, from a device external to said computer system and interfaced thereto. 30. Apparatus as claimed in claim 11, wherein said monitoring means comprises a plurality of connections to a system bus of said computer system by which accesses to said memory locations are achieved. 31. Apparatus as claimed in claim 30, wherein said memory locations reside in, or are accessible via hardware devices connected to said system bus, said hardware devices being selected from the group consisting of volatile random access memory (RAM), non-volatile RAM, a real time clock, a hard disk drive, a hard disk controller, a floppy disk drive, a floppy disk controller, a video display device, a video controller, a keyboard, a keyboard interface adaptor, a printer, a printer interface adaptor, a data transmitter/receiver, an expansion device, a direct memory access (DMA) port, and said apparatus. 32. Apparatus for preventing disease damage to data stored at one or more memory locations throughout a computer system, said apparatus comprising: connection means for connecting said apparatus to a system bus of said computer system, said system bus having control, address and data bus components; first buffer means for connection to said control and address bus components for buffering same to an address decoder and a comparator means; second buffer means and transceiver means for connection to said data bus component for interconnecting same with said comparator means and a memory means respectively, said memory means comprising random access memory (RAM) and read only memory (ROM) addressed via said address decoder; said comparator means comprising: a comparator unit having first comparator inputs connected to said address bus component via said first buffer means, second comparator inputs connected to said data bus component via second buffer means and a control input conencted to said control bus component, control means for monitoring said control and address bus components for enabling operation of said comparator unit, via said control input, and an array of latches, said latches being connected to a match circuit to which one or more outputs of said comparator unit is/are connected, and timer means connected to an output of said match circuit and providing an audible alarm output and a reset output adapted to cause a hardware reset of said computer system, wherein contained in said ROM is a controlling program which, upon initialisation of said computer system, amends pointers in a system memory of said computer system relating to interrupt vectors of said computer system, to point to a corresponding number of dummy locations in said RAM which vector monitoring instructions contained in said ROM, said monitoring instructions enabling determination of whether or not a called interrupt service operation of said computer system is implementing an alteration or deletion of memory, whereby if said instructions are such that alteration or deletion of memory will be caused, further processing 1s suspended and a message is provided to a user of said system demanding action so as to prevent or allow further processing, the prevention of further processing thereby preventing unintentional alteration or deletion of said memory, and wherein said ROM further contains at least one probe address location which is output therefrom via said transceiver means and said second buffer means and input to said second comparator input of said comparator unit, whereby said first comparator input connected to said address bus component continuously monitors said address bus component and when an address corresponding to said probe address location occurs thereon, an output of said comparator unit goes active indicating an attempted access at said probe address location, said match circuit receiving said active output and compares same with control signals provided by said control means to determine an unauthorised access to said probe address location, whereby the status of said control signals is stored in said latches and said match circuit, and upon determining an unauthorised access, said match circuit outputs a signal to said timer means to cause output of said audio alarm, and a hardware reset of said computer system during said attempted access but before actual memory access actually occurs. 33. Apparatus as claimed in claim 32 wherein said attempted access is a write operation to said probe address location. 34. Apparatus as claimed in claim 32, wherein said comparator unit continuously monitors a plurality of different probe address locations. 35. Apparatus as claimed in claim 32, wherein said probe address location is dynamically reconfigurable during operation of said system by means of said controlling program.

Inventors: HILL ANDREW ROSS, HILL, ANDREW, ROSS
Applicants: HILL QUESTA MARY, HILL WILLIAM STANLEY, HILL, QUESTA, MARY, HILL, WILLIAM, STANLEY
Application year: 1992
Main classification: G06F12
IPC codes: G06F1, G06F11, G06F12, G06F21