AU2011218679A1 - Gaming security system - Google Patents

Gaming security system Download PDF

Info

Publication number
AU2011218679A1
AU2011218679A1 AU2011218679A AU2011218679A AU2011218679A1 AU 2011218679 A1 AU2011218679 A1 AU 2011218679A1 AU 2011218679 A AU2011218679 A AU 2011218679A AU 2011218679 A AU2011218679 A AU 2011218679A AU 2011218679 A1 AU2011218679 A1 AU 2011218679A1
Authority
AU
Australia
Prior art keywords
code
egm
boot
memory
cpu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
AU2011218679A
Inventor
James Ross Mccoull
Robert Linley Muir
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aristocrat Technologies Australia Pty Ltd
Original Assignee
Aristocrat Technologies Australia Pty Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aristocrat Technologies Australia Pty Ltd filed Critical Aristocrat Technologies Australia Pty Ltd
Priority to AU2011218679A priority Critical patent/AU2011218679A1/en
Publication of AU2011218679A1 publication Critical patent/AU2011218679A1/en
Abandoned legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

Abstract There is provided an electronic gaming machine (EGM) comprising: a central processing unit (CPU); a memory 5 storing boot program code; and a removable memory device in data communication with the CPU and storing authentication data comprising a public key, the CPU arranged to access the memory and initiate a boot process by reading the boot program code from the memory, the boot 10 process including authenticating at least one set of code to be executed by the EGM by retrieving and employing the authentication data from the removable memory device to authenticate intermediate authentication data and employing the intermediate authentication data to 15 authenticate the at least one set of code, wherein the EGM employs a monitoring device to authenticate the removable memory device prior to employing the authentication data. 2795930_1 (GHMatters) P72338.AU.3 26/08/11 ) 220 230 270 MONITORING 240 E EXTERNAL ACTIVE SIGNED TABLE OF 240IC EXTERNAL BOSES BOOT DEVICE BIOS HASHES Figure 2

Description

AUSTRALIA Patents Act 1990 COMPLETE SPECIFICATION Standard Patent Applicant (): Aristocrat Technologies Australia Pty Limited Invention Title: Gaming security system The following statement is a full description of this invention, including the best method for performing it known to me/us: -2 A GAMING MACHINE This application is a divisional application of Australian Patent Application No. 2009202742 the disclosure of which 5 is incorporated herein by reference. Most of the disclosure of that application is included herein by reference, however, reference may be made to the specification of that application as filed or accepted to gain further understanding of the invention claimed 10 herein. Field The present invention relates to a gaming machine and a method of protecting an electronic gaming machine. 15 Background to the Invention The development of an electronic gaming machine and program code to be run on gaming machines requires a great deal of effort. Further, given the nature of gambling 20 regulations, there is a need for a high degree of confidence in the security of an electronic gaming machine. Accordingly, there is a need for electronic gaming machines that have a higher degree of security. 25 Summary of the Invention In a first aspect, the invention provides an electronic gaming machine (EGM) comprising: a central processing unit (CPU); a memory storing boot program code; and 30 a removable memory device in data communication with the CPU and storing authentication data comprising a public key, the CPU arranged to access the memory and initiate a boot process by reading the boot program code 35 from the memory, the boot process including authenticating at least one set of code to be executed by the EGM by retrieving and employing the authentication data from the 27959301 (GHMatters) P72338.AU.3 26/08/11 - 3 removable memory device to authenticate intermediate authentication data and employing the intermediate authentication data to authenticate the at least one set of code, 5 wherein the EGM employs a monitoring device to authenticate the removable memory device prior to employing the authentication data. In an embodiment, the authentication data is a public key. 10 In an embodiment, the authentication data is a certificate comprising the public key and identity data. In an embodiment, the at least one set of code comprises 15 the code stored in a disk partition. In an embodiment, the at least one set of code comprises operating system code. 20 In an embodiment, the at least one set of code comprises code of a program. In an embodiment, the monitoring device has or has access to validation code and is arranged to take at least one 25 protective action if a first code of the boot program code does not match the validation code. In an embodiment, the EGM is arranged to monitor reading of the first code by the CPU. 30 In an embodiment, the monitoring device is arranged to access the memory prior to the memory being accessed by the EGM. 35 In an embodiment, the monitoring device stores the validation code. 2795930 1 (GHMatters) P?2338.AU.3 26/08/11 - 4 In an embodiment, the protective action is that the monitoring device causes the EGM to terminate or fail booting. 5 In an embodiment, the boot program code comprises second code and the first code comprises a hash algorithm and a pre-calculated hash of the second code, the first code being arranged such that when the CPU executes the first code, the CPU calculates a hash of the second code and 10 compares it to the pre-calculated hash and proceeds if the hashes match. In an embodiment, execution halts if the hashes do not match. 15 In an embodiment, the memory storing the boot program code is read only. In an embodiment, the boot program code comprises third 20 code comprising a master private key signature of a pre calculated hash of the third code, and the second code comprises a master public key and a decryption algorithm, the second code being arranged such that when executed by the CPU, the CPU calculates a hash of the third code, 25 decrypts the signature to obtain the pre-calculated hash, compares the two hashes and proceeds if the hashes match. In an embodiment, The EGM further comprises a further memory comprising a signature of one or more external BIOS 30 hashes, and the third code is arranged such that the CPU verifies each external BIOS hash before transferring control to any of the one or more external BIOSes. In an embodiment, the third code is arranged such that the 35 CPU verifies the active boot partition on the active boot device by generating a hash of the boot partition and comparing it to a hash stored on the active boot device 2795930_1 (GHMatters) P72338.AU.3 26/08/11 before transferring control to the master boot record of the active boot partition. In a second aspect, the invention provides a method of 5 protecting an electronic gaming machine comprising: storing boot program code in a memory; storing authentication data in a removable memory; and initiating a boot process in which a central 10 processing unit reads the boot program code from the memory, the boot process including authenticating at least one set of code to be executed by the EGM by retrieving and employing the authentication data from the removable memory to authenticate intermediate authentication data 15 and employing the intermediate authentication data to authenticate the at least one set of code, wherein the method further comprises authenticating the removable memory prior to employing the authentication data. 20 In an embodiment, the authentication data is a public key. In an embodiment, the authentication data is a certificate comprising the public key and identity data. 25 In an embodiment, the at least one set of code comprises the code stored in a disk partition. In an embodiment, the at least one set of code comprises 30 operating system code. In an embodiment, the at least one set of code comprises code of a program. 35 In an embodiment, the method further comprises: monitoring initiation of the boot process in which the central processing unit reads a first code from 2795930_1 (GHMatters) P72338.AU.3 26/08/11 - 6 the memory by comparing the first code read by the central processing unit to validation code; and taking at least one protective action if the read first code does not match the validation code. 5 In an embodiment, the method further comprises comparing the first code to the validation code prior to the first code being read by the CPU. 10 In an embodiment, the boot program code comprises second code and the first code comprises a pre-calculated hash of the second code, and the method comprises calculating a hash of the second code and comparing it to the pre 15 calculated hash and proceeding if the hashes match. In an embodiment, the boot program code comprises third code comprising a master private key signature of a pre calculated hash of the third code, the second code comprises a master public key (MPK), and the method 20 comprises calculating a hash of the third code, decrypting the signature to obtain the pre-calculated hash, comparing the two hashes and proceeding if the hashes match. Persons skilled in the art will appreciate that the first 25 and second aspects of the invention may be combined with the third and fourth aspects. Brief Description of the Invention Exemplary embodiments of the invention will now be 30 described in relation to the following drawings in which: Figure 1 is a perspective view of a gaming machine; Figure 2 is a schematic diagram of the main components of 35 the gaming machine of a first embodiment that relate to implementation of a secure boot chain; 2795930_1 (GHMatters) P72338.AU.3 26/08/11 - 7 Figures 3A and 3B show a flow chart of the secure boot chain; Figure 4 is a schematic diagram of the main components of 5 a gaming machine of a second embodiment; Figure 5 is a flow chart of a method of a second embodiment; 10 Figure 6 is a further schematic diagram of a gaming machine; and Figure 7 is a memory diagram. 15 Preferred Embodiment First Embodiment Referring to the drawings, there is shown a in Figures 1 20 to 3, a first embodiment of an electronic gaming machine arranged to implement a secure boot chain during which a series of code portions are validated. A gaming machine 10 is illustrated in Figure 1. The gaming 25 machine 10 includes a console 12 having a display 14 on which is displayed representations of a game 16 that can be played by a player. A mid-trim 20 of the gaming machine 10 houses a bank of buttons 22 for enabling a player to interact with the gaming machine, in particular 30 during game play. The mid-trim 20 also houses a credit input mechanism 24 which in this example includes a coin input chute 24A and a bill collector 24B. Other credit input mechanisms may also be employed, for example, a card reader for reading a smart card, debit card or credit 35 card. A reading device may also be provided for the purpose of reading a player tracking device, for example as part of a loyalty program. The player tracking device 2795930_1 (GHMatters) P72338.AU.3 26/08/11 -8 may be in the form of a card, flash drive or any other portable storage medium capable of being read by the reading device. 5 A top box 26 may carry artwork 28, including for example pay tables and details of bonus awards and other information or images relating to the game. Further artwork and/or information may be provided on a front panel 29 of the console 12. A coin tray 30 is mounted 10 beneath the front panel 29 for dispensing cash payouts from the gaming machine 10. The display 14 shown in Figure 2 is in the form of a video display unit, particularly a cathode ray tube screen 15 device. Alternatively, the display 14 may be a liquid crystal display, plasma screen, any other suitable video display unit, or the visible portion of an electromechanical device. The top box 26 may also include a display, for example a video display unit, which may be 20 of the same type as the display 14, or of a different type. As illustrated in Figures 2 and 3, the electronic gaming machine has a central processing unit (CPU) 210. Boot 25 program code forms a BIOS and is stored in a read only memory 220. Logically the boot program code consists of first, second and third code referred to hereafter as a pre-boot-loader, a boot-loader and a BIOS-control-program. 30 The different portion of code contains components for different security features. Specifically: the pre-boot loader contains a SHA 1 hash of the boot-loader;. the boot loader contains a DSA master public key; and the BIOS control program contains a DSA signature of the BIOS 35 control program SHA 1 hash that is signed by the DSA master private key corresponding to the DSA master public key. 27959301 (GHMatters) P72338.AU.3 26/08/11 - 9 As illustrated in respective Figure 3, when the electronic gaming machine is reset, the CPU 210 of electronic gaming machine begins executing the first instruction of the pre 5 boot-loader stored in the BIOS 220. The monitoring device 230 snoops every read access to the pre-boot-loader to thereby monitor reading of the pre-boot-loader by the CPU 305. The monitoring device is implemented by a field programmable gateway and contains a duplicate copy of the 10 pre-boot-loader monitors access to the BIOS 220 that provides validation code that can be used to determine that the pre-boot-loader is valid. The monitoring device verifies that the pre-boot-loader read out by the CPU matches 310 the validation copy of the pre-boot-loader 15 stored in the monitoring device. If it does not match, the monitoring device halts operation in such a manner that this will ultimately cause the electronic gaming machine to fail booting 315. Thus, this ensures that the electronic gaming machine is running a valid, unmodified 20 copy of the pre-boot-loader and hence that the code to check the validity of the boot-loader (as described in further detail below) is still present and will be executed by CPU 210. 25 The pre-boot-loader then copies the boot loader to random access memory 270. The pre-boot-loader calculates a SHA 1 hash of the boot-loader copy that is held in RAM. The pre-boot-loader verifies that the calculated hash matches the pre-calculated hash that is stored in the pre-boot 30 loader is described above. If following calculation of the hash the boot-loader 320 it is determined at step 325 that there is no match 325, the boot sequence fails 330. If there is a match, execution is transferred to the boot loader copy in RAM. 35 These set of steps ensure that the electronic gaming machine is running an unmodified copy of the boot-loader 2795930_1 (GHMatters) P72338.AU.3 26/08/12 - 10 and that the code to check the validity of the BIOS control-program is still present and will be executed. The boot-loader runs from RAM to eliminate the risk of removing the boot program stored in the BIOS socketed 5 device between verification and execution. At step 335 the boot-loader calculates a hash of the BIOS control program and copies the BIOS control program to RAM. The boot-loader then retrieves a DSA signature from 10 the BIOS-control-program and retrieves the DSA master public key from the boot-loader. The boot-loader decrypts the signature of the BIOS-control-program hash 340 and determines 345 whether the hashes match. If the hashes fail to match booting is failed 350. Otherwise the 15 verification is successful and execution is transferred to the BIOS-control-program now stored in RAM. The BIOS control-program then seeks to verify any external BIOS 240 by reference to a signed table of external BIOS hashes 250. The CPU 220 calculates a hash of each external BIOS 20 360. It decrypts the signed table of external BIOS hashes 250 using DSA and the DSA master public key contained in the boot-loader. Each external bios 240 is hashed and compared to the now decrypted stored hash 365. Any external BIOSES not matched are ignored at step 370. 25 Otherwise control is transferred to the external BIOSes. These steps ensure the electronic gaming machine is running a BIOS control program.that has been signed by a master private key. 30 Next before the BIOS-control-program transfers control to the master boot record of the active boot partition on the active boot device 260 it verifies the active boot partition 375 by calculating a hash at the active boot 35 partition and verifying the hash against the DSA signature stored on the active boot device using the DSA master key and DSA. If it does not match at step 380 the boot is 2795930_1 (GHMatters) P72338.AU.3 26/08/11 - 11 failed at 385. Otherwise the process proceeds to load and execute the operating system at step 390. These steps ensure the electronic gaming machine is running an operating system and system software that had previously 5 signed by the DSA master key. Persons skilled in the art will appreciate that the exact sequence of step may vary with a particular BIOS implementation but will in force that code passes a DSA 10 signature verification step before it is executed. Persons skilled in the art will appreciate that there maybe variations on the above boot sequence. For example, while the above embodiment employs SHA 1 hashes and DSA 15 signatures, other crypto graphic hashes and signatures maybe employed. For example SHA 1-HMAC or RSA or a mixture of techniques. Further, while we have described the use of RAM to avoid hot swapping cache memory could be used instead. There may also be some additional steps 20 carried out before software is executed. For example, the signature of system and game software components may be checked by checking the entire disk partitions, directories or individual files. Such checks may be performed on demand, that is immediately prior to a 25 component being loaded or in advance, that is prior to any components being accessed. Further in some instances it may be appropriate to check components with multiple signatures. This allows the loading of a component to be prevented if it has not be signed by all required parties 30 which may include the manufacture of the gaming machine, a regulatory body or a third party developer. Further, certificates rooted in the master public key may be stored with the software components than the public 35 keys. Herein the term "authentication data" is used to refer collectively to a public key, a certificate rooted in the public key, or other authentication data including 2795930_1 (GHMatters) P72338.AU.3 26/08/11 - 12 a public key. Second Embodiment 5 Figure 4 shows a second embodiment where the boot loader acquires a public key from a removable storage device 410 such as an authenticated smart card. In the remainder of Figure 4 the same numbering is used as in the first embodiment. As discussed above, the boot loader can be 10 used to verify a signature of system and game software either individually or by verifying the partitions on which they are stored. Accordingly, the key (or alternatively a certificate rooted in the public key) is retrieved from the smart card and employed to verify the 15 signatures of the programs or partitions. This allows the approximation of revocation of previously signed program by not producing any smart cards with the relevant matching public key. This can be used in order to revoke incorrectly signed software before it is released. 20 Further, it allows control of the number of software images in active use. A person skilled in the art will appreciate that while it has been described above that the key stored on the smart 25 card is used to verify signatures of programs/partitions it can equally be used to verify certificates of public keys that are in turn used to verify signatures of programs/partitions. 30 In an embodiment, the credentials of the smart card are as established as earlier as possible in the boot sequence. For example by employing the monitoring device to determine whether the smart card is valid in a similar manner in relation to which the first code is processed 35 above. Further, rather than relying on keys being encoded within the BIOS, in some implementations it may be desirable to retrieve a key or keys stored on the smart 2795930_1 (GHMatters) P72338.AU.3 26/08/11 - 13 card to use in an earlier part of the boot sequence for example, to verify the external BIOSes. The process 500 is summarised in Figure 5. Boot code is 5 stored in memory 510 and authentication data is stored in a removable memory 520. The boot process is initiated 530 and authentication data is retrieved 540 from the removable storage device. The method then involves authenticating 550 at least one set of code with the 10 authentication data. The key from the smart card is then trusted until the next boot. A person skilled in the art will appreciate that the removable storage device should be readily removable such 15 as a smart card, USB token, or the like. Third Embodiment In a third embodiment an Application Specific Integrated 20 Circuit (ASIC) is used instead of the FPGA of the first embodiment as the monitoring device. As in the first embodiment, a boot memory contains the software that is first executed by the CPU when it exits the reset state. Monitored memory (or hash checked memory) may also be used 25 to store those parts of the software that access critical security functions. For example the ASIC may contain logic which can enable or disable access to cash payment mechanisms or auditing information. By putting the enabling switch in monitored 30 memory it becomes possible to check the security and authentication of the machine software before enabling or disabling these features. The boot program is checked by monitoring the CPU address 35 and data buses 611, as shown in Figure 6. The ASIC 612, which monitors the buses 611 contains a copy (in internal ROM) of the data in a portion 614 of the boot EPROM 613. 27959301 (GHMatters) P72338.AU.3 26/08/11 - 14 When each word of data is fetched from EPROM 613 by the CPU a compare function 616 of the ASIC 612 first checks the address to see if it is within that area duplicated in the internal ROM 617, and if it is it then checks the data 5 word that the CPU 615 is reading from the EPROM 613 against the appropriate word in the internal ROM 617. If the data is the same then the CPU 615 is using the correct data from EPROM 613, but if it is different then there is either an accidental error or deliberate tampering. In 10 this event the ASIC 612 takes appropriate action which may include resetting the board and/or stopping other operations of the ASIC 612 internally. In the preferred implementation the CPU address and data 15 bus 611 are multiplexed together to reduce the number of pins used. Non-multiplexed buses may also be used. The ASIC 612 may also contain logic to ensure that all memory locations in the monitored memory are checked. If all locations within the monitored area are not checked 20 when an inappropriate access is made outside the monitored area the check fails and the board locks up. An inappropriate access is an instruction fetch or write cycle. Read cycles are allowed, to enable the software in the monitored region to check other parts of memory. 25 Two implementations of this are: 1. The address bus 611 is monitored and a register is used to store a scanned address value location. 30 Whenever the address from the CPU matches the value in this register the register is incremented. The memory check is complete when the address register reaches the end of the monitored memory. 35 2. A signature of address accesses may be implemented. Each address is combined in some form with the previous addresses to generate a fixed pattern. If the 2795930_1 (GHMatters) P72338.AU.3 26/08/11 - 15 sequence of addresses is not the same as the original stored pattern then the check fails. For example each address may be combined using a CRC algorithm with the previous address's although preferably a more secure 5 algorithm would be used. Other implementations of monitored memory are possible: 1. Instead of checking the program as it is 10 executed, the ASIC disables the EPROM and substitutes data to the CPU from its internal ROM. The ASIC thus acts as a memory device. 2. The ASIC reads the contents of the monitored 15 EPROM area before the CPU exits the reset state and generates a cryptographic hash of the data. Only if this hash matches a predefined value is the test passed. 3. Instead of checking the data as it is read from 20 EPROM the ASIC reads the EPROM contents and verifies it before allowing the CPU out of the reset state. 4. In a variation of the above two implementations, the ASIC allows the CPU to fetch the first word of a 25 program after exiting reset, but inserts into this read cycle the verification reads from EPROM. It is more difficult to tamper with this method as the cycles are not separated clearly. 30 To provide further protection the monitored boot area may be read and monitored at a later time after the test has passed and game software is running. This provides protection against some forms of tampering where tampered memory is substituted for the original memory after the 35 test passes. This scheme is most effective with as much functionality 27959301 (CHMatters) P72338.AU.3 26/08/11 - 16 of the board as possible implemented in the ASIC. One method of tampering is to replace the entire ASIC, but if significant other functionality is included it becomes a serious technical problem to redesign the ASIC. 5 Additionally the more critical the ASIC is to the functioning of the board then the more difficult it is to get the board working again if the monitoring circuit disables the operation of the ASIC internally. 10 If the monitored memory test fails, the board and ASIC are typically reset to protect the gaming machine. Alternately program execution is allowed to continue but certain features of the ASIC are disabled, preventing the board 15 from being used in its full capacity. This allows the software to display appropriate errors messages (especially in the case of accidental memory errors), but effectively stops tampering having any real consequence. In the case of gaming machines, certain critical functions 20 will also be inhibited such as software access to hardware meters 641, and inhibiting input and output of credit or the like, such as by way of the credit card reader 642 or ticket reader/writer 643. 25 The internal ROM of the ASIC is expected to be small compared to the size of the boot EPROM to reduce cost, although it could be the same size. Alternately, and as described above, the cryptographic hash check may be embedded in the ASIC. 30 The size of the EPROM to be securely checked can be increased to the total size of the memory in the system without increasing the size of the ASIC internal ROM by embedding a checking program in the area of EPROM that is 35 checked by the ASIC. The checking program generates a cryptographic hash over the entire memory area to be checked (which may include the area monitored by the ASIC) 2795930_1 (GHMatters) P72338.AU.3 26/08/11 - 17 and compares it to a pre-computed value. If it matches then the entire region is assumed to be unmodified. The method relies on it being difficult to tamper with the data which is included in the hashed area while retaining 5 the same hash value and that the ASIC monitors the program which generates and checks the hash. The advantage of this method is that the hash checking program is relatively small, and can be expected to be 10 smaller than a comparable signature checking program. Therefore the size of the ROM in the ASIC can be reduced in size with this method. A non-cryptographic checking algorithm may be used instead 15 of the hash function, but algorithms such as checksum or CRC are relatively easy to tamper with and are not preferred. The data to be checked, either directly by the ASIC or 20 included in the hash-checked region, may include program or data. The data may include text messages such as "* Aristocrat Leisure Industries" or "This software is authorized by Aristocrat Leisure Industries". 25 Once the initial part of the boot memory has been authorized it can then securely check the rest of the memory in the system. The monitored memory area may use a hash mechanism to 30 check more memory as described in the previous section or it may implement a digital signature check. The advantage with a digital signature check is in minimizing the amount of boot code that can never be changed without changing the ASIC. The advantage of a hash check is that a hash is 35 simpler and therefore requires less program space for monitored memory than digital signature software. Digital signatures are also used to authorize all other 2795930_1 (GHMatters) P72338.AU.3 26/08/11 - 18 modules of software and data in the system, including system software and games. Each authorized EPROM or file has an associated digital signature which is checked. If invalid signatures are found the data will not be used and 5 appropriate action will be taken, such as the machine locking up and displaying a message. Figure 7 shows a schematic of a memory map in which a first section of the memory space 721 is checked by the 10 ASIC 612, a second part of the memory space 722 is checked by a hashed code and a third part of the memory space 623 is checked by digital signature. The memory space checked by the checking software may include or exclude the area in which the checking software resides. In the example 15 illustrated in Figure 7 the signature checked memory space 723 does not encompass the memory space 721 containing the checking software (i.e. the space monitored by the ASIC) but the hash checked memory space 722 does encompass the memory space 721. 20 In an embodiment, continuous monitoring of the authenticity of software provides extra security. The memory contents are periodically rechecked to ensure that changes have not occurred. 25 Continuous monitoring requires a method of getting the CPU to start executing software within the monitored (or alternately hash checked, although this is not as secure) memory area. 30 Once the CPU starts executing software within this secure area it can again perform authorization checks of the system as required. A watchdog type monitor is implemented in the ASIC which must be accessed periodically from 35 software executing within the secured memory area otherwise the ASIC will force the system to shutdown. This transfer to secure area may be simply by software jumping 2795930_1 (GHMatters) P72338.AU.3 26/08/11 - 19 to an address periodically or caused by an interrupt from the ASIC. The ASIC is able to detect that software is executing from 5 the monitored area. The method used depends on the processor implementation. For processors which support identification of external bus cycles an instruction fetch from a predefined address is used. For processors without identification of bus cycles and also without internal 10 cache memory a sequence of memory accesses is detected that may only be generated by software executing within the monitored area. For CPU without bus cycle identification and also with cache it may not be possible to guarantee detection of monitored area software 15 execution. Tampering could take place by execution of software within the cache so that external cycles appeared to be the correct software accesses. An alternate method of guaranteeing execution within 20 monitored memory is to periodically reset the CPU. In this implementation the CPU is able to be reset separately from the rest of the system. Prior to being reset, the CPU saves it's operational state in memory for restoration after the authentication checks have been completed. After 25 the ASIC has reset the CPU then the CPU must be executing from monitored memory. A flag in the ASIC indicates the cause of the reset so the CPU knows whether to execute cold start reset code or continuous monitoring code. While the CPU is in the reset state the ASIC checks the state of 30 the relevant pins to ensure that the CPU actually has been reset. In the preferred implementation the ASIC contains a timer which is initialized after each reset and which locks up the board when it reaches a predefined count. The timer would require that the CPU be reset every five 35 minutes for example. Periodically and at least less than every 5 minutes the system software saves the system state and instructs the ASIC to reset the CPU and also timer. 2795930_1 (GHMatters) P72338.AU.3 26/08/11 - 20 The system software can choose a point in it's operation where a slight delay while the CPU resets is not noticeable. Alternately the ASIC generates an interrupt periodically which the system software responds to by 5 saving the CPU state and then the CPU resets. These authentication checks are as described in the rest of the document. The authentication check can be divided into a number of these execution periods to divide the CPU 10 loading over time. In this case the check software may need to store information between the periods (such as the last memory location checked). Although this data may be stored in RAM, it is accessible by any software running on the machine and could be tampered with. Preferably the 15 ASIC implements some RAM that is only accessible by software running within the monitored memory area. One possible method of tampering is to find start execution code within the monitored area, which was not 20 intended as a start address for the routine and which has side effects unintended by the system programmers. This side effect would access the flag in the ASIC without running the security check. One method of preventing this 25 is to implement an address signature check as described for "ASIC Monitored Memory". A significant section of code must be executed correctly for the signature to be correct and it must be from the correct address. Many other methods are possible. 30 One method of tampering with the system is to allow the correct boot code to be executed after reset and during authentication, then at an appropriate point map into the program memory a new section of code (e.g. in hardware 35 swap EPROMS with a multiplexer circuit). This memory-may be automatically mapped in an out of memory space depending on where program execution is being performed. 2795930_1 (GHMatters) P72338.AU.3 26/08/11 - 21 The authentication check reads the original data and passes, but when control is passed elsewhere a different program is executed. To prevent this attack, at a random time the ASIC reads from the CPU data bus the instruction 5 fetched from memory, and stores it in a register together with the address from which it was read. When the periodic authentication check is performed it reads these registers and compares them with the data it reads from the same location. If the data is different then tampering has 10 taken place. This test will eventually, at a random time, detect tampering. To speed up this test more than one data location may be sampled. Because it may take some time before tampering is detected it is preferable that when tampering is detected this information is stored so that 15 the machine cannot be used until this condition is acknowledged by the operator and fixed. It should be stored in non- volatile memory, and preferably non erasable memory. 20 True random number generation is not usually feasible in an ASIC and instead pseudo-random numbers are typically used instead. The pseudo-random number may be randomized further by combining it with some external information, such as the contents of the data or address bus. 25 An alternate method is to use DMA or bus mastering by the ASIC to automatically read the contents of memory and verify the data. This method is most suitable for the boot code, as the complexity of the design for more equivalent 30 functionality to that easily achieved in secure software to very high - although it is possible. These methods allow the verification of programs and data in boot memory and which is not possible to tamper with by 35 simply changing the program memory. An advantage of these security systems is that non 27959301 (GHMatters) P72338.AU.3 26/08/11 - 22 volatile re-writable memory can be used to hold the boot program. Even if tampered code were somehow loaded into memory the security mechanisms would prevent it being executed. 5 An advantage of Application Specific Integrated Circuit (ASIC) monitored memory and hash checked memory security mechanisms is that relatively simple logic is required in the ASIC and the rest of the security mechanism is in 10 software. If the entire mechanism were placed in the ASIC it would be far more complex, costly, less flexible and -take longer to design. Fourth Embodiment 15 The above methods may also be supplemented by a further method that involves embedding into the authorized software a message which makes a legal statement about that software and it's ownership or authorization. Such a 20 statement might include a text message such as "This Software Is Authorized By Aristocrat Leisure Industries" or "* Aristocrat Leisure Industries" The authentication hardware or software requires that the 25 message be embedded in the program/data it is authenticating. If the message is not present in the appropriate place the authentication test fails and the data/program is not used. Unlike digital signatures this method is technically easy to cheat, by embedding the 30 message, but provides legal recourse to the manufacturer if it is detected. Digital signatures are technically difficult but potentially legally weak. The two methods may be combined to provide both legal and technical security. 35 Referring to Figure 6, components of a gaming machine are shown. After the secure boot routines held in the EPROM 2795930_1 (GHMatters) P72338.AU.3 26/08/11 - 23 613 have been verified as discussed below, these routines can be used to load programs from a mass storage system 631 such as a hard disk drive 633 and controller / interface 632. Other mass storage systems can also be used 5 such as a CD or DVD ROM drive, a floppy disk drive or ZIP" drive. The mass storage system 631 may be local to the CPU and read via the buses 611, or may be remote and data sent to a writable memory local to the CPU over a network. The program will be loaded from the mass storage device into 10 RAM by a loader program, which is preferably held in EPROM 613, but could also be held in a ROM associated with a logic circuit such as the ROM 617 of the Application Specific Integrated Circuit (ASIC) 612. In alternative embodiments, the ASIC 612 may be replaced by a Field 15 Programmable Gate Array (FPGA). As the program is read from the mass storage device 631, the loaded code is scanned for a predetermined text string embedded in the code such as "* Aristocrat Leisure Industries". 20 The scanning may either be performed in software by a routine in the loader program, or alternatively the ASIC 612 may be programmed to scan the data flowing over the buses 611 and locate the text string. In another embodiment, a hard wired scanning circuit can be connected 25 to the busses 611 to scan for the string. This method of verification may be used instead of a hash code or encrypted signature, but in the preferred embodiment is used as well as an encrypted signature or hash code verification method. 30 Once the loaded program has been verified, the embedded text string will be displayed on a display device 634 such as the video display screen of a gaming machine on which the program is running, such that visual confirmation of 35 the validation is provided. This display function is performed by the loaded program thereby also enabling detection of fraudulent use of software on other 2795930_1 (GHMatters) P72338.AU.3 26/08/11 - 24 manufacturers hardware. The loaded program also performs internal consistency checks to prevent alteration or deletion of the text string. 5 Fifth Embodiment The Multigame authorization system allows games to be used only on the system for which they are authorized. The System program confirms the authorization of the game 10 before it is allowed to be used. Preferably game authorization comprises one or more of the following steps: e The header section of the game memory is checked 15 to confirm that it is an appropriate game (e.g. not another system EPROM incorrectly used, has valid version numbers, etc). * The game header is checked for the legal authorization message. 20 * The game header checksum or CRC is checked to ensure memory integrity. * If the games are digitally signed, then the digital signature(s) are validated. e The authorization of the game to run on this 25 particular gaming machine is checked. If the authorization fails the gaming machine may either continue without allowing that game to be used, stop and ask the operator to remove the game from the machine, or 30 run that game only in demonstration mode. Preferably each gaming machine contains a unique identification number which the CPU can read and use as part of the authorization code. 35 This can be implemented using a Dallas Semiconductor serial identification chip (e.g. DS2401). 2795930_1 (GHMatters) P72338.AU.3 26/08/11 - 25 If the authorization fails games may run in a limited mode and display an appropriate message on the screen. The limited mode may prevent the machine accepting or paying 5 out money or updating critical auditing information. Sixth Embodiment An EPROM authorization message is created by applying a 10 digital signature to a message composed of the unique Game Identifier, a unique Gaming Machine identifier and any usage restrictions that may be required (e.g. date restriction on game operation). The signature is generated in a secure environment and sent to the gaming machine 15 where it is stored in non-volatile memory for later use. The secure environment may be: e Within a smartcard. A service technician or operator may authorize the game to run on the machine by 20 connecting the smartcard to the machine where the game is installed. To limit accidental or deliberate fraud the smartcard preferably contains a limit on the number of games that can be authorized. The smartcard may be inserted into a special purpose interface on the gaming 25 machine, a general purpose interface such as is used for player marketing cards or via a PC and communication interface (e.g. RS232 or Ethernet) with a smartcard reader. e The gaming machine supplier may generate the 30 authorization key and supply it to the service technician/operator for entry into the gaming machine. e The authorizations may be encoded into a removable EEPROM chip which is supplied to the operator with the new games. 35 Persons skilled in the art will appreciate that various of the above embodiments may be combined with other 2795930_1 (GHMatters) P72338.AU.3 26/08/11 - 26 embodiments or modified to incorporate features of other embodiments. These and other variations will be apparent to persons 5 skilled in the art and should be considered as falling within the invention described herein. 2795930_1 (GHMatters) P72338.AU.3 26/08/11

Claims (27)

1. An electronic gaming machine (EGM) comprising: a central processing unit (CPU); 5 a memory storing boot program code; and a removable memory device in data communication with the CPU and storing authentication data comprising a public key, the CPU arranged to access the memory and 10 initiate a boot process by reading the boot program code from the memory, the boot process including authenticating at least one set of code to be executed by the EGM by retrieving and employing the authentication data from the removable memory device to authenticate intermediate 15 authentication data and employing the intermediate authentication data to authenticate the at least one set of code, wherein the EGM employs a monitoring device to authenticate the removable memory device prior to 20 employing the authentication data.
2. An EGM as claimed in claim 1 wherein the authentication data is a public key. 25
3. An EGM as claimed in claim 1 wherein the authentication data is a certificate comprising the public key and identity data.
4. An EGM as claimed in any one of claims 1 to 3 30 wherein the at least one set of code comprises the code stored in a disk partition.
5. An EGM as claimed in any one of claims 1 to 4 wherein the at least one set of code comprises operating 35 system code.
6. An EGM as claimed in any one of claims 1 to 5 2795930_1 (GHMatters) P72338.AU.3 26/08/112 - 28 wherein the at least one set of code comprises code of a program.
7. An EGM as claimed in claim 1, wherein the 5 monitoring device has or has access to validation code and is arranged to take at least one protective action if a first code of the boot program code does not match the validation code. 10
8. An EGM as claimed in claim 7, wherein the EGM is arranged to monitor reading of the first code by the CPU.
9. An EGM as claimed in claim 7 wherein the monitoring device is arranged to access the memory prior 15 to the memory being accessed by the EGM.
10. An EGM as claimed in claim 7 wherein the monitoring device stores the validation code. 20
11. An EGM as claimed in any one of claims 7 to 10 wherein the protective action is that the monitoring device causes the EGM to terminate or fail booting. 25
12. An EGM as claimed in any one of claims 7 to 11 wherein the boot program code comprises second code and the first code comprises a hash algorithm and a pre calculated hash of the second code, the first code being arranged such that when the CPU executes the first code, 30 the CPU calculates a hash of the second code and compares it to the pre-calculated hash and proceeds if the hashes match.
13. An EGM as claimed in claim 12 wherein execution 35 halts if the hashes do not match.
14. An EGM as claimed in any one of claims 7 to 13 2795930_1 (GHMatters) P72338.AU.3 26/08/11 - 29 wherein the memory storing the boot program code is read only.
15. An EGM as claimed in claim 11 wherein the boot 5 program code comprises third code comprising a master private key signature of a pre-calculated hash of the third code, and the second code comprises a master public key and a decryption algorithm, the second code being arranged such that when executed by the CPU, the CPU 10 calculates a hash of the third code, decrypts the signature to obtain the pre-calculated hash, compares the two hashes and proceeds if the hashes match.
16. An EGM as claimed in claim 15 further comprising 15 a further memory comprising a signature of one or more external BIOS hashes, and the third code is arranged such that the CPU verifies each external BIOS hash before transferring control to any of the one or more external BIOSes. 20
17. An EGM as claimed in claim 15 wherein the third code is arranged such that the CPU verifies the active boot partition on the active boot device by generating a hash of the boot partition and comparing it to a hash 25 stored on the active boot device before transferring control to the master boot record of the active boot partition.
18. A method of protecting an electronic gaming 30 machine comprising: storing boot program code in a memory; storing authentication data in a removable memory; and initiating a boot process in which a central 35 processing unit reads the boot program code from the memory, the boot process including authenticating at least one set of code to be executed by the EGM by retrieving 2795930_1 (GHMatters) P72338.AU.3 26/08/11 - 30 and employing the authentication data from the removable memory to authenticate intermediate authentication data and employing the intermediate authentication data to authenticate the at least one set of code, 5 wherein the method further comprises authenticating the removable memory prior to employing the authentication data.
19. A method as claimed in claim 18 wherein the 10 authentication data is a public key.
20. A method as claimed in claim 18 wherein the authentication data is a certificate comprising the public key and identity data. 15
21. A method as claimed in any one of claims 18 to 20 wherein the at least one set of code comprises the code stored in a disk partition. 20
22. A method as claimed in any one of claims 18 to 20 wherein the at least one set of code comprises operating system code.
23. A method as claimed in any one of claims 18 to 20 25 as wherein the at least one set of code comprises code of a program.
24. A method as claimed in claim 18, comprising: monitoring initiation of the boot process in 30 which the central processing unit reads a first code from the memory by comparing the first code read by the central processing unit to validation code; and taking at least one protective action if the read first code does not match the validation code. 35
25. A method as claimed in claim 24 comprising comparing the first code to the validation code prior to 2795930_1 (GHMatter) P72338.AU.3 26/08/11 - 31 the first code being read by the CPU.
26. A method as claimed in claim 24 wherein the boot program code comprises second code and the first code 5 comprises a pre-calculated hash of the second code, and the method comprises calculating a hash of the second code and comparing it to the pre-calculated hash and proceeding if the hashes match. 10
27. A method as claimed in claim 24 wherein the boot program code comprises third code comprising a master private key signature of a pre-calculated hash of the third code, the second code comprises a master public key (MPK), and the method comprises calculating a hash of the 15 third code, decrypting the signature to obtain the pre calculated hash, comparing the two hashes and proceeding if the hashes match. 2795930_1 (GHMdtters) P72338.AU.3 26/08/11
AU2011218679A 2006-07-13 2011-08-31 Gaming security system Abandoned AU2011218679A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
AU2011218679A AU2011218679A1 (en) 2006-07-13 2011-08-31 Gaming security system

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
AU2006903776 2006-07-13
AU2006907047 2006-12-18
AU2007903196 2007-06-14
AU2011218679A AU2011218679A1 (en) 2006-07-13 2011-08-31 Gaming security system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
AU2009202742A Division AU2009202742B2 (en) 2006-07-13 2009-07-07 Gaming security system

Publications (1)

Publication Number Publication Date
AU2011218679A1 true AU2011218679A1 (en) 2011-09-22

Family

ID=45441914

Family Applications (1)

Application Number Title Priority Date Filing Date
AU2011218679A Abandoned AU2011218679A1 (en) 2006-07-13 2011-08-31 Gaming security system

Country Status (1)

Country Link
AU (1) AU2011218679A1 (en)

Similar Documents

Publication Publication Date Title
US7827397B2 (en) Gaming machine having a secure boot chain and method of use
US9026802B2 (en) Gaming security system
US7874916B2 (en) Security of gaming software
AU2004227890B2 (en) Secure gaming system
CA2844557C (en) Multi-tiered static chain of trust
US8407147B2 (en) Gaming machine
US20090191961A1 (en) Electronic gaming machine including a smartcard for protection, and method of use
AU2009202742B2 (en) Gaming security system
AU2011218679A1 (en) Gaming security system
AU2013205523A1 (en) Electronic casino gaming system with improved play capacity, authentication and security
AU778171B2 (en) Gaming security system
AU2017200604B2 (en) A gaming machine
AU2017204350B2 (en) An electronic gaming machine
US20120208635A1 (en) Method and gaming device for controlling use of one or more peripheral devices
AU2011253943A1 (en) A gaming machine
AU2012211355A1 (en) A method and gaming device for controlling use of one or more peripheral devices

Legal Events

Date Code Title Description
MK5 Application lapsed section 142(2)(e) - patent request and compl. specification not accepted