SECURITY OF DATA CONNECTIONS

Abstract: The invention concerns the security of the data connections of a telephone user. The basic idea of the invention is to forward the authentication of a telephone system to the leg between two private data networks connected via an arbitrating network. When establishing the connection, the private network connected to the telephone system forwards the authenticated subscriber identity to the other private network. To provide the identity forwarded with authenticity, the message containing the identity is signed. To provide encryption of the subscriber identity, the message is encrypted using a public key method. In response the second private network generates a session key to be used in the connection. This key is signed and encrypted using a public key method and sent to the first private network. During the connection, a symmetrical encryption method with the session key is used.

Description: Security of data connections Field of the invention This invention relates to the securing of data connections in data networks connected to telephone networks, especially mobile telecommuni- cation networks. Background of the invention An arrangement for connecting a mobile telecommunication subscriber to data services is shown in Figure 1. In the figure, the subscriber has connected his computer PC (Personal Computer) to his GSM Mobile Station MS. The MS has established a connection to a Base Transceiver Station BTS of the GSM network. The BTS forwards the information sent by the MS to the Base Station Controller BSC, which in turn forwards the information to the Mobile Switching Center MSC. The MSC is connected to the private data network of the operator using the LAN access unit. In the private network, the Intelligent Data Agent IDA provides intelligence for purposes such as billing and the operation and maintenance of data connections. The private network is connected to other networks such as ATM (Asynchronous Transfer Mode), X.21 , Frame Relay FR and Internet. An arrangement whereby the subscriber uses the services pro- vided by a server in another private network is shown in Figure 2. According to the figure, the second private network is connected to the operator network via an arbitrating network or a plurality of arbitrating networks. When the private network is a private network of a company, for example, the security of the data connection from the subscriber to the server must be en- forced. The GSM system provides authentication and secure data transmission between the mobile subscriber MS and the mobile switching center MSC. In GSM, the authentication process is based on a challenge- response process, whereby the network sends the Subscriber Identity Mod- ule SIM installed in the mobile station a random challenge. The mobile station replies with a response according to calculations based on the random challenge and a secret key known only by the authentication center of the network and the SIM. The response of the random challenge and the secret key is calculated in the authentication center also. If the responses calcu- lated by the SIM and the authentication center are identical, mobile subscriber authenticity has been established by the authentication process. Data transmission between the base station and the mobile station is encrypted with a secret encryption key calculated on the basis of the random challenge and the secret key. This method of secret key encryption, which is also called the symmetrical encryption method, will be described in more detail later. Although it may be assumed that the GSM connections are secure, the connection between the subscriber and the server is insecure if no authentication and encryption are used over the arbitrating network. A plurality of methods for securing a connection between two network elements is known in prior art. Figures 3 and 4 of the attached drawings show block diagrams of two known encryption algorithms which can be used to protect a transmission: a symmetric and an asymmetric algorithm. Figure 3 shows a symmetric encryption process based on a secret key shared between the participants. At party A's end the message to be sent to party B is encrypted with the shared secret key. The message is sent over a transmission route in encrypted form. The receiving party B decrypts the encrypted message with the same secret key K to retrieve the original message. An intruder eavesdropping the transmission needs to learn the secret key in order to be able to read and understand the encrypted message which has been transmitted. Another alternative is to find a weakness in the algorithm itself. Therefore, it is preferable to use publicly analyzed algorithms, such as the DES (Data Encryption Standard) algorithm. The encryp- tion and decryption of the symmetric process can be expressed by the equations: C = E K (M) and M = D K (C), where C is the encrypted message, M is the message in plain text, E κ is the encryption with key K, and D κ is the decryption with key K. Figure 4 shows a public key encryption process which is an asymmetric approach. This algorithm is based on two keys: a public key and a private key. These two keys are related in such a manner that a message encrypted with a public key can only be decrypted with the corresponding private key and vice versa. The public key can be easily calculated by using the corresponding private key. However, it is computationally unfeasible to calculate a private key based on the corresponding public key. In Figure 4 a message is encrypted at party A's end with the public key of the intended receiver, that is party B. The encrypted message is transmitted over a transmission line to party B's end, where it is decrypted with the corresponding party B's private key and the original message is retrieved. Again, publicly analyzed algorithms, such as the RSA (River-Shamir-Adleman) algorithm are preferred. The encryption and decryption of the asymmetric algorithm can also be expressed by the following equations: C = E B + (M) and M = D B " (C), where C is the encrypted message, M is the message in plain text, E B is encryption with the receiver's public key K B , and D B ~ is decryption with the receiver's private key K B \ Due to the properties of the encryption function E, it is computationally unfeasible to decrypt a message encrypted using the public key of the recipient if the private key is not known. Since asymmetric keys are usually much longer than symmetric keys, the asymmetric algorithm requires much more processing capacity. Thus, asymmetric algorithms are unsuitable for encrypting large amounts of data, since the public key process may be too slow for networks enabling very high transmission speeds. Hybrid cryptography uses both the above algorithms together. For example, only session keys are exchanged using the public key algorithm, and the rest of the communication is encrypted applying the symmetric method. In a public key algorithm the encryption of a message with the private key of the message sender acts as a digital signature, since anyone can decrypt the message with the known public key of the sender. This feature can be utilized to provide message integrity and authentication in a connec- tion. Use of digital signatures is shown in Figures 5 and 6. The procedure for generating a digital signature is shown in Figure 5. The sender calculates from the message a message digest using a cryp- tographically strong one-way hash function. The message digest is somewhat analogous to the error checking codes widely used in telecommunica- tions. But contrary to the error checking codes, it is believed to be computa- tionally unfeasible to substitute one message with another so as to produce an identical message digest. The message digest is encrypted using the private key of the sender and the encrypted message digest is used as a digital signature. The digital signature is then sent to the receiver together with the message. The procedure for the receiving party to verify a digital signature is shown in Figure 6. Having received the message and the digital signature, the receiver calculates the message digest of the message using the message digest algorithm. If no alterations have occurred in the message, the resulting message digest is identical to the message digest calculated by the sender. On the other hand, due to the properties of the algorithm, it would be computationally unfeasible for an intruder to substitute the message with another that would produce an identical message digest. The received digital signature is the message digest encrypted by using the private key of the sender. The message digest can thus be retrieved by decrypting the digital signature using the public key of the sender, which is known by the receiver. If decryption has taken place using the private key which corresponds to the public key of the assumed sender, the recovered message digest will be identical to the message digest calculated by the sender. This in turn is identical to the message digest calculated by the receiver only when no changes in the message have occurred. Thus, if the comparison shows that the message digest calculated from the received message and the message digest calculated by decrypting the digital signature are identical, it can be deduced that the message has not been altered and that it was sent by the claimed sender. In the methodology of secret key encryption, message authentication can be provided using a Message Authentication Code MAC similar to the digital signature. For example, MAC can be calculated with a one-way hash algorithm in the following way: MAC = H(K, M, K), where K is the key, M is the message, and H is a hash function. The input cannot be deduced from the output. When MAC is attached to a message, the message cannot be corrupted or impersonated. The receiving party calculates MAC using the received message and the same hash func- tion and key as the transmitting party and then compares this calculated MAC to the MAC attached to the message in order to verify it. In this application, the term authenticity code is used as a common name for all codes providing a message with authenticity and integrity, i.e. for both the digital signatures and message authentication codes. Prior art provides a means for secure data connection from the subscriber to the GSM network as well as from the private network of the operator to another private network such as a company network, as illustrated in Figure 7. However, the operator network can be used by a plurality of users not all of whom are entitled to the services of the company network. In prior art, their access to the company network must be denied by using a password based authentication procedure between the subscriber and the company network. This is inconvenient because the password must be transferred whenever the connection is established. The objective of the present invention is to solve the above problem. This objective is achieved by using the method and apparatus defined in the independent claims. Summary of the invention The basic idea of the invention is to forward the authentication of the telephone system to the leg between the private networks. According to the invention, a trusted operator network connected to the telephone system comprises an authentication server. Also a second private network which is here termed the company network, comprises a similar authentication server. The authentication procedure is initiated when the subscriber requests a service provided by a server in the company network. During this procedure, the authentication server AS_O of the operator network signs a authenticated identification of the subscriber digitally using its own private key and forms a message comprising the identification and the signature. An example of identification suitable for the purpose of identifying the subscriber is the MSISDN (Mobile Subscriber Integrated Services Digital Network) number of the subscriber. The signature establishes authenticity the mes- sage. Preferably, the message is additionally encrypted using the public key of the authentication server AS_C of the company network. The encryption prevents an eavesdropper from identifying the user requesting a service. The signed and encrypted message is sent to the authentication server of the company network via the arbitrating network. The authentication server of the company network receives the message and verifies the signature in order to establish the authenticity of the message. If encryption has been used, the message is decrypted using the private key of AS_C. The authentication server checks the subscriber's rights to the data service, and if the subscriber is entitled to the service, it generates the session key to be used in the connection. A message comprising the session key is transferred to the operator network preferably encrypted using the public key of AS_O and preferably signed using the private key of AS_C. Additionally, the session key is transferred to the server. AS_O receives the encrypted and signed session key, decrypts the key using its own private key and verifies the authenticity of the key using the public key of AS_C. If the authentication procedure is successful, the session key is transferred to the network element handling the encryption of the data traffic, and the data traffic begins. Brief description of the figures The invention is described more closely with reference to the accompanying schematic drawings, in which Figure 1 shows a mobile telecommunication system connected to data networks; Figure 2 shows two private data networks connected via arbitrating networks; Figure 3 shows a symmetric encryption procedure; Figure 4 shows an encryption procedure based on a public key; Figure 5 shows the generation of a digital signature; Figure 6 shows the verification of a digital signature; Figure 7 shows an authentication method; Figure 8 shows two private data networks connected via arbitrating networks; Figure 9 shows an authentication procedure; Figure 10 shows an encryption procedure; Figure 11 shows forwarded authentication; Figure 12 shows secure data transfer; Figure 13 shows the authentication server of the operator network; and Figure 14 shows the authentication server of the company network. Detailed description of the invention Figure 8 shows two networks, an operator network and a company network, which are connected to each other via an arbitrating network. The operator network is connected to the user via a telephone system such as the GSM system. In both the operator network and the company network authentication servers have been added. The servers are called AS_O (Authentication Server in the Operator network) and AS_C (Authentication Server in the Company network). In addition, the authentication servers are connected to key databases. The key database connected to the authentica- tion server AS_O of the operator network contains the following information: •public keys of the authentication servers, such as AS_C of the company networks the operator network can be connected to and •both the public and the private key of AS_O. The key database connected to the authentication server AS_C of the company network contains the following information: •the public key AS_O. •both the public and the private key of AS C. This guarantees that no confidential information, such as private keys need to be transferred through the insecure arbitrating network. As ex- plained earlier in this application, the public keys can be disclosed without any risk. Let us next study examples of authentication and encryption procedures according to the invention. The authentication procedure is shown in Figure 9. The procedure is triggered by a request for an incoming data call. The MSISDN number of the calling subscriber is forwarded to the IDA. Through mapping of the MSISDN number, the IDA establishes the identity of the server to whose services the subscriber requests access as well as the identity of the authentication server AS_C of the company network in which the server is located. This information is then forwarded to the authentication server AS_O at stage 11. In response to having received the MSISDN number of the calling subscriber and the identity of the authentication server OA_C, AS_O 1. generates a digital signature based on the MSISDN number with its own private key (stage O01), 2. encrypts the MSISDN number and the digital signature using a public key method and the public key of AS_C stored in the key database (stage O02), and 3. sends the encrypted MSISDN number and the signature to AS_C (stage O03). An example of a public key encryption method suitable for use in this invention is the well known RSA algorithm. It is to be noted that if the digital signature is calculated only on the basis of the MSISDN number, all the messages comprising the same MSISDN number are identical. This makes it possible to track the traffic of a subscriber. To overcome this problem, it is preferable that the digital signature not be calculated on the basis of the MSISDN number only, but that the MSISDN number is signed together with a random number. Thus, the messages identifying the same subscriber are not identical, making tracking of the subscriber impossible or at least much more difficult. AS_C receives the signed and encrypted message at stage C01. At stage C02 it decrypts the message using its own private key stored in its key database. Having now retrieved the message and the digital signature in plain text, at stage P03 AS_C verifies the digital signature using the public key of AS_O in order to establish the authenticity of the message. AS_C now holds the identification of the subscriber requesting the data service and has established that the request was received from a trusted network, i.e. the operator network. At stage C04 AS_C consults its database and checks the access permission attached to that subscriber, i.e. that MSISDN number. If the subscriber is entitled to the service, a session key for this particular session is generated at stage C05. The key is sent to the server, which receives it at stage S1. To provide the session key with secure transmission over the arbitrating network to the authentication server AS_O of the operator network, the public key algorithm together with a digital signature is used. The digital signature is generated using the private key of AS_C at stage P06. To make it even more difficult for an intruder to learn the session key, the session key is preferably signed together with a random number. The message and the digital signature are then encrypted using the public key of AS_O at stage P07. The signed and encrypted message is then sent to AS_O via the arbitrating network at stage P08. AS_O receives the signed and encrypted message containing the session key at stage 011. It decrypts the message using its own private key at stage 012. Having now retrieved the session key in plain text and the digital signature, AS_O verifies the signature using the public key of AS_C at stage 013. This verification proves the authenticity of the message. If the verification shows that the session key was sent by the claimed sender, i.e. AS_C, AS_O forwards the session key to the IDA at stage 013. The IDA receives the key at stage 12. It is to be noted that the order of signing the message digitally and encrypting the message may vary. Likewise, it must be noted that the signing procedures can be replaced by other procedures such as the use of message authentication code . The session key is now held by both the server providing the requested data service and the IDA. The actual data transmission can now take place. The data is transferred over the arbitrating network in encrypted form. The encryption procedure is shown in Figure 10. In the data connection, the data is first sent from the mobile station of the subscriber to the mobile switching center MSC using the GSM service and its data security functions. The MSC forwards the data DATA1 sent by the mobile station to the IDA. The IDA receives the data and encrypts it using a symmetric encryption method and the session key KEY received from AS_O. An example of a symmetric encryption algorithm suitable for use is the well known DES algorithm. The encrypted message E1 is sent to the server over the arbitrating network. The server receives the encrypted message and retrieves the sent data DATA1 by decrypting the encrypted message E1 using the session key KEY which it received from AS_C during the authentication procedure at stage S1 of Figure 9. The retrieved data is forwarded to the server application. As the server application sends data DATA2 to the subscriber, the encryption algorithm running at the server encrypts the data using the session key KEY. The encrypted data message is then sent to the IDA at the operator network. The IDA of the operator network receives the message and de- crypts it using the session key. Now having the message in plain text, the IDA sends it to the subscriber via the mobile switching center. The process of forwarded authentication is shown in Figure 11. The leg between the mobile subscriber MS and the mobile switching center MSC is authenticated by means of the GSM authentication procedure. With the help of this procedure, the mobile switching center can establish that the identifying information provided by the mobile subscriber is correct, i.e. truly own MSISDN number. AS_O is connected to the MSC via the trusted private data network of the operator. Therefore, AS_O can ascertain that the subscriber is indeed identifying himself correctly. To establish a connection to the server, the AS_O sends AS_C the MSISDN number over the arbitrating network in an encrypted and signed form. The encryption ensures that the message can only be read by the recipient intended, i.e. the trusted network element AS_C of the company network. The signature authenticates AS_O to AS_C. In response to successful verification of the signature of the message AS_C thus establishes that the message is from a trusted network element AS_O. Therefore, also the identity of the subscriber requesting the service can be trusted. Thus, the mobile subscriber is authenticated to AS_C. Both AS_C and the server are in the same company network, and the network elements inside the company network trust each other. Therefore, also the server can be assured that the subscriber is revealing his true identity. The preferred embodiment of the invention provides authentication of AS_C of the company network to AS_O of the operator network. This is achieved by using the public key encryption method when sending the message containing information of the subscriber identity from AS_O to AS_C. In addition or alternatively authenticity is verified by means of the digital signature of the message containing the session key and sent from AS_C to AS_O. If the operator network is authenticated to the MS, the authenticity of AS_C is also forwarded to the subscriber. This means that the company network can be sure of the identity of the subscriber and the sub- scriber can be sure of the identity of the company network. The basis for the security of data transfer can be studied with reference to Figure 12. On the leg between the mobile station MS and the base station BTS an encryption method according to GSM specifications is used. From BTS to the IDA, the transmission path is trusted. On the leg from the IDA over the arbitrating network to the server, the symmetric encryption method is used. The encryption chain is similar in both transmission direc- tions, i.e. from the MS to the server and vice versa. Thus, end to end connection between the mobile station and the server is secure. The functionalities needed in the authentication servers are presented in Figures 13 and 14. Figure 13 depicts the functionalities of the authentication center AS_O in the operator network. The server has •receiving means for receiving the subscriber identity from the telecommunication network, •determining means responsive to the receiving means for determining the identity of a second authentication server on the basis of the identity of the subscriber, •signing means responsive to the receiving means for generating a digital signature, and •sending means responsive to the receiving means, the determining means and the signing means and having the functionality of sending the identity and the signature to the authentication server of the company network. The mapping means and the signing means need information about the subscriber's services and the private key of the server, which can be found in the database DB. To encrypt the subscriber identity according to the preferred embodiment before sending it over the arbitrating network, encryption means responsive to the signing means is also needed. It must be noted that the order of signing and encryption may vary. The encryption means requires the public key of the authentication server of the company network, and is therefore connected to the database DB. To be able to receive the session key from the other authentication server, the authentication server has also second receiving means for receiving an encrypted session key from the authentication server of the company network, and decrypting means responsive to the second receiving means for decrypting the encrypted session key. If the authentication server of the company network signs the session keys according to the preferred embodiment, the authentication server of the operator network must in addition have verifying means responsive to the second receiving means for verifying the a digital signature calculated from the session key. The means needed in the authentication server of the company network are shown in Figure 14. The authentication server has •receiving means for receiving a subscriber identity and a digital signature calculated from the subscriber identity and the identification of a service requested by the subscriber from the authentication server of the operator network, »verification means responsive to the receiving means for verifying the digital signature, •checking means responsive to the receiving means for checking whether the subscriber is entitled to the requested service, •generation means responsive to the checking means for gener- ating a session key, •encryption means responsive to the generation means for encrypting the session key, and •sending means responsive to the encryption means for sending the encrypted message to another authentication server. If the subscriber identity is encrypted before it is sent it to the company network, the authentication server has in addition a means responsive to the receiving means for decrypting the subscriber identity using the private key of the authentication server. Further, if the authentication server of the company network is to sign the session key before sending it to the authentication server of the operator network, the authentication server must in addition have a signing means responsive to the generating means for signing the session key using the private key of the authentication server. It must be noted that the scope of this invention is not limited to the above described exemplary embodiments. For example, identification other than a MSISDN number can be used when contacting the company network. The word "company network" is only used for clarity, as it can be any private network, not necessarily a closed data network of a company. It can as well be a private network operated by a network operator and requesting user authentication, for example. This can be implemented by de- termining the identification used in the company network on the basis of the MSISDN number of the subscriber. The mapping can be done in AS_O, for example. The order of signature generation and encryption may also differ from the order used in the examples. That is, the messages may be encrypted first and then signed. In the examples for this application, the authentication server, the IDA and the LAN access unit were described as separate network elements. However, this is not crucial for the invention, and a plurality of these functionalities may be implemented in a single network element. Also, one functionality may be distributed over a plurality of network elements. Likewise, the signature can be sent in plain text. In this embodiment the message is encrypted and the signature is attached to the encrypted message without encryption. It must as also understood that use of the invention is not limited to a GSM system the system used in the examples for this application, but the invention can be used, with any telecommunication system in which sub- scribers are authenticated securely and which is connected to a private network. One example of such a telephone system is the fixed telephone system. Another example of a mobile telecommunication system is the GPRS (General Packet Radio System).

Claims: Claims 1. Method of providing security of data connections in an arrangement comprising a telecommunication network comprising subscribers, a first private data network connected to the telecommunication network, a second private data network comprising a server providing data services, in which method the subscriber is authenticated for the first private data network using the authentication method of the telecommunication network, ch a racterized in that in addition to the identification of the subscriber is added an authenticity code in the first private data network and a message comprising the subscriber identity and the authenticity code is sent to the second private data network, and in response to having received the message in the second private data network: the authenticity code is verified, the identified user's right to the requested service is checked, and if the user is entitled to the requested service, a reply is generated and sent to the first private data network. 2. A method according to claim 1, characterized in that the telecommunication network is a mobile telecommunication network. 3. A method according to claim 1, characterized in that the subscriber identification is the phone number, such as the MSISDN number of the subscriber. 4. A method according to claim ^ characterized in that the authenticity code is a message authentication code MAC. 5. A method according to claim 1, characterized in that the authenticity code is a digital signature. 6. A method according to claim 5, characterized in that the identification of the subscriber is signed digitally in an authentication server installed in the first private data network. 7. A method according to claim 6, characterized in that the identification is signed digitally using the private key of the authentication server. 8. A method according to claim 7, characterized in that the key is stored in a key database attached to the authentication server. 9. A method according to claim 1, cha racterized in that in addition the subscriber identity is encrypted using a public key encryption method before it is sent from the first private data network to the second private data network. 10. A method according to claim 9, characterized in that the subscriber identity is encrypted in an authentication server installed in the first private data network. 11. A method according to claim 10, characterized in that an authentication server is installed in the second private data network, and the identification is encrypted using the public key of the authentication server of the second private data network. 12. A method according to claim 11, characterized in that the key is stored in a key database attached to the authentication server of the first private network. 13. A method according to claim 1, characterized in that an authentication server is installed in the second private data network, and the authenticity code is verified, the user's right to the requested service is checked, and a reply is generated in the authentication server. 14. A method according to claim 13characterized in that an authentication server is installed in the first private data network and the authenticity code is verified by means of the public key of the authentication server of the first private data network. 15. A method according to claim 14 characterized in that the public key of the authentication server of the first private data network is stored in a key database attached to the authentication server of the second private data network. 16. A method according to claim ^ cha racterized in that the reply comprises a session key to be used to encrypt the data traffic on the leg between the first and the second private data networks in a connec- tion to be established between the subscriber and the server. 17 A method according to claim 16, cha racterized in that the reply comprising the session key is signed digitally in the second private data network 18 A method according to claim 17, characterized in that an authentication server is installed in the second private data network, and the reply comprising the session key is signed using the private key of the authentication server 19. A method according to claim 16, characterized in that an authentication server is installed in the first private data network and the reply comprising the session key is encrypted using a public key of the authentication server of the first private data network. 20 A method according to claim 19, characterized in that an authentication server is installed in the second private data network, and the reply comprising the session key is encrypted in the authentication center of the second private data network. 21. An authentication server for a data network connected to a telecommunication network cha racterized in that the authentication server has receiving means for receiving a subscriber identity from the tele- communication network, determining means responsive to the receiving means for determining the identity of a second authentication server on the basis of the identity of the subscriber, signing means responsive to the receiving means for generating a digital signature, sending means responsive to the receiving means, the determining means, and the signing means, which has the functionality of sending the identity and the signature to the second authentication server. 22 An authentication server according to claim 21, charac- t e r i z e d in that the authentication server has in addition encryption means responsive to the receiving means and the mapping means for encrypting the identity using the public key of the second authentication server. 23 An authentication server according to claim 21, characterized in that in addition the authentication server has a second receiving means for receiving an encrypted session key from the second authentication server, and decrypting means responsive to the second receiving means for decrypting the encrypted session key. 24. An authentication server according to claim 23, cha racterized in that in addition the authentication server has verifying means responsive to the second receiving means for verifying a digital signature calculated on the basis of the session key. 25. An authentication server for a data network characterized in that the authentication server has receiving means for receiving a subscriber identity and a digital signature calculated from the subscriber identity and the identification of a service requested by the subscriber, verification means responsive to the receiving means for verifying the digital signature, checking means responsive to the receiving means for checking the subscriber's right to the requested service, generation means responsive to the checking means for generating a session key, encryption means responsive to the generation means for encrypting the session key, and sending means responsive to the encryption means for sending the encrypted message to another authentication server. 26. An authentication server according to claim 25, characterized in that the authentication server has in addition means responsive to the receiving means for decrypting the subscriber identity using the private key of the authentication server. 27. An authentication server according to claim 25, characterized in that the authentication server has in addition signing means responsive to the generating means for signing the session key using the private key of the authentication server.

Inventors: LEIWO JUSSIPEKKA, LEIWO, JUSSIPEKKA
Applicants: LEIWO JUSSIPEKKA, NOKIA TELECOMMUNICATIONS OY, LEIWO, JUSSIPEKKA
Application year: 1998
Main classification: H04L9
IPC codes: H04L9, H04L29, H04M3, H04W12