Mobile station security

Abstract: The present invention concerns a method and an equipment for restricting the right of use of a mobile station ,for example, to a communications network controlled by a certain operator. The mobile station is locked so that it can be used only with a SIM module (21) having a certain code (IMSI, GID1, GID2) and the lock can be opened with a lock open password (C 1 ) given by the network operator, said password being compared in the mobile station with a comparative password (C 2 ). In the solution according to the invention the lock open comparative password (C 2 ) is calculated in the mobile station by an algorithm (X, Y) saved to the mobile station, as input data for the algorithm being preferably used the equipment table (T 1 ), the mobile equipment identity code (IMEI) and the operator specific code N, saved to the mobile station. Correspondigly, the operator calculates the lock open password (C 1 ) with a device that preferably includes a protection module, the lock open password calculation algorithm having as input data the operator table, the mobile equipment identity code (IMEI) and the protection code of the protection module. With help of a solution in accordance with the present invention the lock open password (C 1 ) can be made operator specific and no unauthorized person can get the password by reading it from the memory of the mobile station or with help of the program used by the operator.

Description: The present invention relates to rights of use of a mobile station. In particular the invention concerns a method, an equipment and a system for restricting rights of use of a mobile station. Mobile Stations, particularly digital mobile stations, are generally provided with a mobile station specific equipment identity code saved permanently to the mobile station and with an operator/customer specific user code saved to a memory card or a smart card. In mobile communications systems the rights of use of mobile phone users connected to a telecommunication network and the utilization rate of the network must be controlled inter alia because of the invoicing relating to the use of the telecommunication network. This control is implemented with help of codes defined for the users and the operators of the telecommunication network. In addition to the rights of the users, also the right of a mobile station to be used in the network has to be controlled so as to prevent the use of stolen mobile stations and those found to be defective. This has been arranged with a mobile equipment identity code. The use of a digital mobile station can be restricted to a telecommunication network of a certain operator only. Thus, it is possible to make agreements between the user of the mobile station and the operator, according to which the mobile station is owned by the operator or the purchase cost of the mobile station is compensated to the customer by the operator, in which cases it is in the operator's interest to restrict the use of the mobile station to the operator's own network only. Also this function is based on the use of the above mentioned codes. In the following the control of the right of use of a mobile station will be exemplified in the GSM system (Global System for Mobile Communications). The GSM system has been described in more detail in the following publication: [1] M. Mouly, M-B. Pautet: The GSM System for Mobile Communications, 1992. In the GSM system the International Mobile Equipment Identity code IMEI is saved to the permanent memory of the mobile station when manufacturing the device. The code includes a Type Approval Code TAC, a Final Assembly Code FAC and a serial number. The code is for each mobile station individual. When starting the communication or during it, the data transmission network can ask the IMEI code of the mobile station and compare it with the register of authorized and/or unauthorized mobile stations. The IMEI code is used inter alia for preventing the use of stolen or defective mobile stations. In the GSM system the codes relating to the operator and the user of the telecommunication network have been stored to the so called SIM module (Subscriber Identity Module). The SIM module is generally a part of the so called SIM card having an electric coupling for attaching the card to the mobile station. The SIM module includes inter alia the information required for the communication concerning the user, the telecommunication network to be used and the encryption of the radio data transmission. The SIM module includes also the customer's invoicing data to be transferred to the telecommunication network simultaneously with the call from the mobile station. In this way the user can use the SIM card at need in different mobile stations, unless the use of the mobile station is restricted, for example, so that the mobile station can be used only if a SIM card of a certain operator is inserted to it. If the use of the mobile station or some of its features is restricted in the above mentioned way, the restriction will be implemented with codes saved to the SIM module. In the following the "lock closing" of the mobile station means a function, where the use of some or all of the features of the mobile station requires that the certain data saved to the mobile station and to the SIM module are identical. Correspondingly, the "lock opening" means that the lock in question is removed. A mobile station is usually locked when it is sold, so that the user makes an agreement with the operator of a certain telecommunication network. In that case a lock closing parameter which is a predefined field to be read from the SIM module, is saved to the memory of the mobile station. Codes generally used for the lock closing are the so called International Mobile Subscriber Identity code IMSI, and two so called Group Identification Level codes GID1 and GID2. The IMSI code saved to the SIM module consists of an operator specific part and a card specific part. The length of the IMSI code is 15 digits, in which the operator identification part consists of 5 digits. The mentioned two group identification levels GID1 and GID2 are meant as special codes of the operator, service provider or customer and they can be programmed to the mobile station only by the operator. The both group indentification levels consist of e.g. two bytes. Neither the IMSI code of the SIM module nor the contents of the group identification levels can be changed after being saved. The user of the mobile station can open the lock of the mobile station by entering to the mobile station the lock open password given by the operator. The mobile station compares then the entered lock open password with the comparative password saved to the permanent memory of the mobile station and if the passwords are identical the processor of the mobile station opens the lock. The operator calculates the above mentioned mobile station specific lock open password with a calculation program. A prior art solution according to above description is disclosed in WO-A-95 01695. Document EP-A-652 681 further discloses encryption of passwords, and document US-A-5 392 356 discloses an external device that calculates the data to be written in a mobile station. The prior art solutions require that a code that is both operator specific and mobile station specific is permanently stored in the mobile station. The problem caused by the prior art methods is that the mobile stations need to be individually programmed when the mobile station is sold. There are several problems relating to the known lock closing methods concerning the lock opening. If one and the same lock open password calculation method is used regardless of the operator, it is possible, by using the same lock open password calculation program, to find out the lock open passwords of mobile stations connected to networks of all operators. Another known solution is to use an operator specific lock open password calculation program, whereby the above mentioned problem is avoided. In this case it is not possible, however, to save comparative passwords to the mobile stations when manufacturing, but they have to be programmed when connecting the mobile station to a certain operator's network. This causes extra work for the sales organization as well as the need to invest in numerous programming devices. Further, the contents of the memory can be read after programming, which increases the risk of unauthorized lock opening. Third possibility is to program every operator's data to each mobile station already when manufacturing. The problem of this solution is, however, that there is a large number of operators and thus the permanent memory required for saving the data to the mobile station would have to be unreasonably large. Further, the need of the memory will increase, if every operator uses several different locking levels by which the mobile station can be locked to alternative codes of the SIM module. Also new operators can come on the market, in which case only mobile stations that are manufactured after the codes for the respective operators have been agreed, could be connected to the networks of the new operators. That would create problems in marketing as there would be many versions of devices. In accordance with one aspect of the present invention there may be provided a method and an equipment for an operator specific locking system, wherein the comparative password needed for checking the lock open password to be entered to the mobile station when opening the lock need not be permanently saved to the mobile station, but instead is calculated in the mobile station according to at least a mobile station specific code, operator specific code and rule e.g. when the lock is opened. Correspondingly, the operator also calculates the lock open password to be entered to the mobile station according to at least a mobile station specific code, operator specific code and rule. Exemplary embodiments in accordance with the present invention may have several advantages compared with the solutions known so far. Protection level of the mobile station may be improved because the lock open password cannot be read from the memory in order to break the lock. Secondly, the size of the memory needed for locking in the mobile station may be small because the locking data and programs saved to the mobile station when manufacturing are independent of the number of operators. Also, it may not be necessary to make changes to the mobile stations because of new operators. In addition, the operators may use the lock open password calculation program without any risk of misuse, because the lock open passwords are operator specific. For the password calculation also a separate protection module may be available, further decreasing the risk of misuse. A method according to the invention is characterised by claim 1. A mobile station according to the invention is characterised by claim 9. A system according to the invention is characterised by claim 10. The mobile station may have means for saving a first code table and means for calculating a comparative password also on the basis of the first code table. The mobile station may have identification means including identification data, at least one second activity of the mobile station being arranged to be dependent on the identification data and the activating means of the first activity being arranged to activate the change of dependence of the second activity on the identification data on the basis of a comparison. The mobile station may have a dependence identifying code, the dependence between the activity of the mobile station and the identification data read from the identification means being defined by the code identifying the dependence, whereby the mobile station may have means for saving the dependence identifying code and means for calculating the comparative password also on the basis of the dependence identifying code. The mobile station may have means for saving configuration data and means for calculating a comparative password also on the basis of the configuration data. The system may have a second code table saved to the mobile station and to the lock open password calculation device, the comparative password being calculated in the mobile station and the lock open password being calculated in the lock open password calculation device by the second algorithm also on the basis of the second code table. The system may have a lock open password calculation device consisting of a protection module for saving the protection code, memory means for saving the third code table and means for calculating the second table by the third algorithm on the basis of the protection code and the third code table. In the following exemplary embodiments in accordance with the invention are described with reference to the enclosed drawings, in which; Figure 1 illustrates one solution of the lock open procedure in accordance with the present invention as a flow diagram, Figure 2 illustrates construction of the identifying part of one mobile station in accordance with the invention as a block diagram, Figure 3 illustrates construction of one lock open password calculation device in accordance with the present invention and Figure 4 illustrates one solution for lock open password calculation in accordance with the present invention as a flow diagram. Embodiments in accordance with the invention will be described in more detail in the following with help of one embodiment relating to the GSM system. Firstly, one procedure in accordance with the invention for locking the mobile station and a respective procedure for opening the lock with help of the lock open password will be described, with reference to figures 1 and 2. After that, one system in accordance with the invention and a respective lock open calculation device will be described with reference to figures 3 and 4. The mobile station can be locked to alternative locking parameters, in other words, alternative locking levels can be used (in claims termed "dependence identifying code L") . The locking can be implemented e.g. by the following locking levels: locking to SIM modules of a certain operator, as locking parameter being the operator specific part of the IMSI code, locking to a certain service supplier, as locking parameter being the GID1 part, locking to the use of a certain company, as locking parameter being the GlD2 part or locking to a specified SIM module, as locking parameter being the IMSI code as a whole. Also combinations of the above mentioned locking levels can be used. Figure 2 illustrates construction of an identifying part of a mobile station in accordance with the present invention, including an erasable memory 24, where the information R relating to the lock closing, preferably the following, may be saved: lock status, ,for example, "closed" or "open" information of the locking parameters to which the mobile station is locked and that will be checked when using the mobile station, IMSI code or its part including operator identification data consisting of the first 5 digits and a part or all of the rest 10 digits of the IMSI code if included in the locking parameters, group identification, if icluded in the locking parameters; ,for example, 2 bytes for identifier GID1 and/or ,for example, 2 bytes for identifier GID2, lock open password entry counter for entry attempts being left (,for example, 1 digit) and operator's algorithm configuration data (,for example, 1 digit). The operator's configuration data K consists of ,for example, one digit, the default value of which is preferably zero. With this parameter the comparative password calculated by the mobile station can be changed. The above mentioned data may be saved to the erasable memory 24 of the mobile station together with a protection data of the mobile station, so that the data cannot be directly read from the memory. When reading the data, a conversion algorithm is used, to which, in addition to the above mentioned lock information, also the IMEI code of the mobile station is given as input data. For providing the lock opening in accordance with the invention, an equipment table T 1 and comparative password calculation algorithms X and Y are saved to the permanent memory 23 of the mobile station. The configuration data K, the equipment table T 1 and the calculation algorithms X and Y are described in more detail later in connection with the description of the lock open procedure. The mobile station will be locked either by connecting a PC to the mobile station and giving the needed commands to the processor of the mobile station or by entering the needed code for the lock closing through the keypad of the mobile station. When locking the mobile station with a command through the keypad, the SIM module must be inserted to the mobile station, whereupon the mobile station reads from the SIM module the values of the fields to be used as lock closing parameters. The lock can also be closed automatically when the first SIM module is inserted to the mobile station. In this case it is preferable, however, that the lock closing requires ,for example, an acceptance through the keypad, so that the lock of the mobile station would not be closed on the basis of parameters of a wrong SIM module. The lock of the mobile station can be closed ,for example, by the manufacturer or vendor of the mobile station or the network operator. When needed, the mobile station can also be programmed so that the lock closing is prevented, if locking of the mobile station to a certain network is not allowed in some communications area. Figure 1 illustrates as a flow diagram one lock open procedure of the mobile station in accordance with the invention. Figure 2 illustrates those parts of the mobile station that may be used for lock opening. The lock open procedure will be activated in the mobile station (phase 1), for example, through the keypad 22, whereupon a lock open password C 1 given by the operator is entered through the keypad (phase 2). If a SIM card 21 with no right of use of the mobile station is inserted, the mobile station can also ask the user of the mobile station to give open password C 1 needed for opening the lock. The equipment table T 1 and the operator code N that belongs to the lock closing information R have been saved to the permanent memory 23 and erasable memory 24 of the mobile station respectively. The processor 20 reads said data in phase 3. In addition, the processor reads the configuration data K from the erasable memory 24 (phase 4). After this, the processor calculates the intermediate table T 2 by algorithm X, by using said equipment table T 1 , operator code N and configuration data K as input data (phase 5). The intermediate table T 2 will be saved to the intermediate memory 25. After this the IMEI code and the locking level L are read from the permanent memory 23 and the erasable memory 24 of the mobile station respectively (phase 6). On the basis of the read IME1 code and the intermediate table T 2 the processor 20 calculates the comparative password C 2 by the second algorithm Y (phase 7). Further, the processor compares the lock open password C 1 entered through the keypad with the calculated comparative password C 2 (phase 8), and if the passwords are the same, the processor opens the lock (phase 9) and gives a message about the performed operation on the display 26 of the mobile station (phase 10). If the lock open password C 1 and the comparative password C 2 are not identical, the processor gives a message about the incorrect password on the display of the mobile station (phase 11). The processor 20 follows the number of performed lock open attempts and compares it with the maximum number of attempts M saved to the permanent memory 23 of the mobile station, which can be ,for example, 5 attempts (phase 12). If less lock open attempts have been used than the predefined maximum number of lock open attempts M, it is possible to try to open the lock again by repeating the mentioned steps. But if the maximum of lock open attempts has been used, the processor 20 does not start a new opening process according to the described procedure (phase 13), but the opening has to be performed by the operator, for example, by using a programming device (phase 14). Preferably the same device and program are used for this purpose as for defining the lock open password of the mobile station, whereby the operator can perform the both activities with the same device. The permanent memory 23 of the mobile station can be implemented ,for example, with a ROM (Read Only Memory) circuit. The configuration data K, the locking level L and the operator code N can preferably be saved to the erasable memory 24, that can be ,for example, an EEPROM (Electrically Erasable Programmable Read Only Memory) circuit, where the data can be changed with an external programming device without opening the mobile station. The intermediate memory is preferably arranged with electric RAM circuits (Random Access Memory) or with the internal memory of the processor. As memory and processor circuits are preferably the same circuits that are used for the other control operations of the mobile station. The calculation by the algorithms is preferably performed with the processor of the mobile station or alternatively with an ASIC circuit configured for that purpose. The equipment table T 1 and the intermediate table T 2 can consist ,for example, of 100 decimal digits. The larger the table that is used, the better the protection level that is reached. However, it is not necessary to use all the numbers of the table for calculating the comparative password, but it is necessary in this particular example that the selection of the numbers to be used and the algorithms are predefined. The intermediate table T 2 and the equipment table T 1 can be of same or different size. The configuration data K and the locking level L can be ,for example, parameters of one digit. The lock open password C 1 and the comparative password C 2 can be a sequence of ,for example, 10 digits. For the calculation algorithms it is preferable in this example that the calculation result is dependent on all input parameters. The algorithms X and Y can consist ,for example, of logical operations or arithmetic matrix operations like summation or multiplication. Most simply the algorithm X can be ,for example, a multiplication of the table matrix T 1 , configuration data K and the operator code N, from the result matrix of which the predefined numbers are taken to the table T 2 . Correspondingly, the algorithm Y can be a multiplication of the table matrix T 2 , the equipment identity code IMEI and the locking level L, from the result matrix of which the predefined numbers are selected to the comparative password C 2 . Figure 3 illustrates one lock open password calculation device in accordance with the present invention and figure 4 illustrates as a flow diagram the calculation procedure of the lock open password. The lock open password calculation procedure in the lock open password calculation device 36 is activated (phase 40), whereby the processor 30 seeks the operator table T 3 from the hard drive 33 (phase 41). The device is equipped with a protection module 31, where the protection code P is read (phase 42). After that the processor 30 calculates on the basis of the table T 3 and the protection code P an intermediate table T 2 by algorithm Z, that has been saved ,for example, to the hard disk 33 (phase 43). The intermediate table T 2 is saved to the intermediate memory 34. After this the equipment identity code IMEI and the eventually used locking level L are entered through the keypad 32 to the processor (phase 44). On the basis of these parameters IMEI, L and the operator table T 2 the lock open password C 1 is calculated by algorithm Y saved to the hard disk 33 (phase 45). The thus received lock open password C 1 is shown on the display 35 (phase 46). The device is preferably protected against unauthorized use so that the device is provided with a protection module 31 that cannot be easily copied and the code P of which is necessary in this example for the operation of the program of the device. If the data of the protection module and the program, however, are lost to unauthorized people, a new program configuration with respective protection module 31 can be delivered to the operator, after which the configuration data K corresponding the new configuration can be programmed to the erasable memory of new mobile stations. If necessary, the configuration data can also be changed with a programming device to the mobile stations already in use, but in that case the existing locks of the mobile stations have to be opened first. The lock open password calculation device is preferably implemented ,for example, with a microcomputer, to the serial or parallel port of which a protection module is connected. The protection module can be ,for example, a processor equipped with a permanent memory. The operator table T 3 of the lock open password calculation device can consist of, for example, 100 decimal digits. The protection code P can be ,for example, a sequence of 10 digits. The algorithm Z can be an algorithm of the same type as the algorithms X and Y. Number codes and tables with numbers were used in the described embodiments of the mobile station and the lock open password calculation device, but any other suitable characters can be used instead of numbers. The lock closing of a mobile station means may prevent the use of a mobile station, if the locking parameter read from the SIM module is not correct. Other kinds of dependences may also be used, for example, so that only a certain operation of the mobile station may require that a SIM module with a correct locking parameter is inserted to the mobile station. In the embodiment described above the lock opening is subject to identity of the lock open password and the comparative password. For the method the passwords may be compared and the lock opening may be dependent on the result of the comparison. In the embodiment described above the calculation of the comparative password is implemented by using two algorithms and the comparative password is arranged to be dependent on the equipment table T 1 , the equipment identity code IMEI, the operator code N and the configuration data K. For the calculation of the password there may be used other numbers of algorithms or only a part of above mentioned parameters and some additional parameters. Also the intermediate table may not be necessary or there may be several of them. Correspondingly, in the lock open password calculation device an arbitrary number of algorithms or only a part of the mentioned parameters and eventually some additional parameters may be used. Some embodiments in accordance with the present invention have been described in the foregoing. Naturally various modifications of the principle according to the invention can be made within the scope of protection of the claims, e.g. concerning details of the implementation and the ranges of use. Although embodiments in accordance with the present invention have been described with reference to the GSM network, the invention is equally applicable in other mobile communications systems like the DCS1800 or DCS1900 systems. Accordingly, instead of the mentioned codes used in the GSM system other codes may be used.

Claims: A method for activating a first activity in a mobile station, in which method a lock open password (C 1 ) is entered to the mobile station and compared with a predefined comparative password (C 2 ), said first activity being activated depending on the result of said comparison, wherein said first activity is comprised of a change of a right of use of at least one second activity in the mobile station, characterized in that at least two predefined codes (IMEI, N) are saved to the mobile station and said comparative password (C 2 ) is calculated in the mobile station on the basis of at least two predefined codes (IMEI, N) that are saved to the mobile station, wherein one of said at least at least two predefined codes is a mobile station specific code (IMEI) and another of said at least at least two predefined codes is an operator specific code (N). A method in accordance with claim 1, characterized in that a first code table (T 1 ) is saved to the mobile station and said comparative password (C 2 ) is calculated in the mobile station also on the basis of the code table (T 1 ). A method in accordance with claim 1 or 2, characterized in that at least one second activity of the mobile station is arranged to be dependent on the identification data (IMSI, GID1, GID2) read from the identification means (21) being a part of the mobile station or attached thereto, and the change of dependence of said second activity on said identification data (IMSI, GID1, GID2) is made depending on the result of said comparison. A method in accordance with any of the claims 1 to 3, characterized in that one of said at least two predefined codes saved to the mobile station is the mobile equipment identity code (IMEI). A method in accordance with any of the claims 1 to 4, characterized in that one of said at least two predefined codes saved to the mobile station is an operator code (N) identifying a telecommunication network. A method in accordance with claims 4 and 5, characterized in that said comparative password (C 2 ) is calculated by using a first algorithm (X) and a second algorithm (Y), whereby a second code table (T 2 ) is formed by the first algorithm (X) as function of a first code table (T 1 ) and said operator code (N), said comparative password (C 2 ) being formed by the second algorithm (Y) as function of said second table (T 2 ) and said equipment identity code (IMEI). A method in accordance with claim 6, characterized in that a dependence between the mobile station and the identification data read from the identification means (21) is defined with a dependence identifying code (L), that will be saved to the mobile station, the comparative password (C 2 ) being arranged to be dependent also on said dependence identifying code (L) by the second algorithm (Y). A method in accordance with claim 6 or 7, characterized in that configuration data (K) is saved to the mobile station said second table (T 2 ) being arranged to be dependent also on the configuration data (K) by said first algorithm (X). A mobile station having means (22) for entering a lock open password (C 1 ), means (25) for saving the lock open password (C 1 ) and a comparative password (C 2 ), means for making comparison between the lock open password (C 1 ) and the comparative password (C 2 ) and means (20) for activating a first activity in the mobile station on the basis of said comparison, wherein said first activity is comprised of a right of use of at least one second activity in the mobile station, characterized in that the mobile station has means (23, 24) for saving at least two predefined codes (N, IMEI) and means (20) for calculating said comparative password (C 2 ) on the basis of said at least two predefined codes (N, IMEI), wherein one of said at least at least two predefined codes is a mobile station specific code (IMEI) and another of said at least at least two predefined codes is an operator specific code (N). A system including at least one mobile station and at least one lock open password calculation device (36), wherein the mobile station comprises means for activating a first activity in the mobile station upon a successful completion of a lock opening procedure, wherein said first activity is comprised of a change of a right of use of at least one second activity in the mobile station, and the lock open password calculation device (36) has means for calculating a lock open password (C 1 ) to be entered to the mobile station, and the mobile station has means for comparing the lock open password with a predefined comparative password (C 2 ), wherein means for activating the first activity are arranged to activate the first activity on the basis of the result of said comparison, characterized in that the lock open password calculation device (36) comprises means for saving the at least two predefined codes (N, IMEI), and a predefined second algorithm (Y) to the lock open password calculation device (36), and the lock open password calculation device (36) is arranged to calculate the lock open password (C 1 ) according to the predefined second algorithm (Y) on the basis of said at least two predefined codes (N, IMEI), and the mobile station comprises means for saving the at least two predefined codes (N, IMEI) and the predefined second algorithm (Y) to the mobile station, and the mobile station has means for calculating the comparative password (C 2 ) according to the predefined second algorithm (Y) on the basis of said at least two predefined codes (N, IMEI), wherein one of said at least at least two predefined codes is a mobile station specific code (IMEI) and another of said at least at least two predefined codes is an operator specific code (N).

Inventors: JANHILA PERTTI, JANHILA, PERTTI
Applicants: NOKIA CORP, NOKIA CORPORATION
Application year: 1996
Main classification: H04Q7
IPC codes: H04W88