Abstract:
An authentication method including operation of a personal token, a personal token for a terminal in a communication network, an authentication server, and a computer program for an authentication server. The secure server producing derived key material on the basis of a random and a secret key (K), said personal token including program instructions for re-computing the derived key material (Ck, Ik) on the basis of the received random and the secret key (K) as stored in the personal token. The personal token includes program instructions for using a re-computed part of the derived key material in order to interpret the received additional data.

Description:
BACKGROUND OF THE INVENTION 
     1. Field of the Invention 
     The invention relates to communication networks and in particular to authentication and key agreement protocols in such networks. 
     2. Description of the Related Art 
     Authentication and Key Agreement (AKA) protocols are widely used in wired and wireless environments to provide key material and proof of the identity between two connected entities. A typical example is a wireless subscriber accessing a Cellular Network who is authenticated towards an authentication server in the network. 
     Different entities or devices are involved in an AKA procedure. 
     A terminal HT which hosts a personal token (e.g. a mobile phone) and an authentication server (AS) communicate together. The personal token and a secure server store a same secret key K, also known as the master key. 
     In the usual AKA protocol (e.g. for implementing a secure data transfer), both the authentication server and the hosting terminal HT are able to use keys which are derived from a master key i.e. an integrity key Ik and a ciphering key Ck. Such keys Ik and Ck are derived from a master key which is shared by a secure server on one hand and the personal token on the other hand. 
     In other circumstances, i.e. a special AKA procedure, both the hosting terminal may be deprived from use of the Integrity key Ik and the ciphering key Ck, i.e. these derived keys be considered as sensitive data which must not be disclosed to the hosting terminal. 
     The procedure for performing a usual AKA procedure will now be described in reference to  FIG. 1 . 
     Typically, a secure server SS chooses a randomized array RAND. Using RAND with an algorithm called AKAAIg and the secret key K which is shared only by the secure server SS and the personal token, the secure server SS produces an authentication vector (AV). 
     The authentication vector AV is composed at least of the following components: the initial RAND, a result value (RES), some derived key material (DKM) i.e. typically the derived keys Ik and Ck, and a message authentication code (MAC). The authentication vector AV is then delivered to the authentication sever AS. 
     The authentication server AS sends the values RAND, MAC values and possibly other data to the hosting terminal HT. The hosting terminal then sends them to the personal token SE. 
     The personal token SE runs AKAAIg algorithm using the stored secret key K and the received parameters (at least RAND, MAC). 
     The personal token SE re-computes a MACT on the basis of the shared secret key K, and on the basis of the received RAND. 
     The personal token SE then compares the re-computed MACT value with the received MAC value (is MAC=MACT ?) in order to perform some integrity check and possibly an authentication procedure of the authentication server. 
     Then the personal token SE computes RES. 
     The hosting terminal sends RES to the authentication server so that the personal token becomes authenticated by the server. At the end, the authentication server AS authenticates the personal token by comparing the RES received from the hosting terminal with the XRED value received from the secure server SS. 
     The personal token SE also computes the derived keys Ik and Ck and sends them together with RES to the hosting terminal. The hosting terminal uses the derived keys to perform any further security operation towards the AS. 
     An example of this basic authentication AKA procedure is UMTS AKA as defined in 3GPP TS 33.102. 
     The explained AKA usual procedure is well adapted for providing secure authentication and sharing of key material between both the hosting terminal HT and the authentication server AS. However, in some specific circumstances, it is needed that the algorithm AKAAIg be processed in a different way within the personal token. For instance, under some specific circumstances, it is required that the derived keys Ik and Ck or part of them be regarded as sensitive data and therefore be prevented from being disclosed to the hosting terminal, i.e. that the derived keys Ik and Ck be kept inside the personal token instead of being delivered to the hosting terminal. 
     In these specific cases, a basic requirement for lots of situations is that the hosting terminal could not retrieve the derived keys using the standard AKA or any other procedure. 
     The aim of the invention is to provide a solution for avoiding the disclosure of the derived keys to the hosting terminal. 
     More generally some specific authentication procedure exist which are based on the usual AKA procedure but which differ in some aspects which may be of any kind. A same personal token may be subject to different reactions according to different possible AKA procedures encountered during its lifetime. 
     A second aim of the invention is to propose a way to efficiently signalize that a particular authentication procedure is required to the personal token. 
    
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
       Other purposes, features and advantages of the invention will appear on reading the description which follows of a preferred implementation of the invention and of an embodiment of a system designed for this implementation, given as a non-limiting example, and referring to the attached drawings in which: 
         FIG. 1  is a schematic view of different steps of a known AKA procedure; 
         FIG. 2  is a schematic view of different steps of a procedure according to the present invention based on AKA. 
     
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
     The system according to the present invention as seen from  FIG. 2  comprises different entities or devices, the same as those involved in an AKA procedure. 
     The system comprises a terminal HT which hosts a personal token SE. In a particular embodiment, the hosting terminal HT can be a mobile phone or more generally a personal token accepting device; the personal token accepting device may have the form of a housing provided with an aperture or slot to receive the personal token but also any form allowing the personal token to communicate with the personal token accepting device; 
     The system comprises an authentication server AS and a secure server SS with which the authentication server communicates and in which secure server a secret key or master key K is kept; 
     The personal token or secure element SE is hosted in the terminal HT. The hosting terminal HT communicates with the token. 
     The secret key K is kept also in the token but not disclosed to the hosting terminal HT. As well-known, the secret key K is a shared secret between the personal token and the secure server. 
     In a particular embodiment, the personal token (SE) is a card with integrated circuit also called smart card. 
     The present invention consists in securing an authentication and key agreement (AKA) procedure, i.e. a procedure allowing to establish key material and to provide proof of the identity between two connected entities. 
     The present embodiment allows to avoid the disclosure of derived keys such as the integrity key Ik or the ciphering key Ck to the hosting terminal HT, i.e. to avoid disclosure of derived key material or part of it to the hosting terminal HT. 
     The procedure according to the present embodiment comprises the following steps: 
     The hosting terminal HT sends an HTTP request towards the authentication server, requesting an AKA procedure. The AKA procedure may also be requested by the authentication server. 
     The AS is provided with a standard authentication vector (AV) from the Secure server (SS) (step  1  on  FIG. 2 ). 
     The authentication vector (AV) is composed of at least the following components: the initial RAND, a result value RES, and derived key material referenced DKM in the following, i.e. derived keys Ik and Ck, and a message authentication code (MAC). 
     In an advantageous embodiment, the authentication server AS determines whether modification of the MAC is necessary or not in accordance with the nature of the encountered personal token (also called authentication token), and in particular based on user security settings (USSs) associated with the encountered personal token. Such settings may be prestored on the side of the authentication server, or may be received from the personal token through the terminal HT. 
     For some types of personal tokens for which Ik and Ck are not considered as sensitive data, the usual AKA procedure is to be applied, i.e. the un-modified MAC be transmitted to the token with the RAND value, and the derived keys will then be transmitted by the personal token to the hosting terminal HT. 
     Should the derived keys be however hidden according to the user security settings, the authentication server AS takes MAC value from the authentication vector AV and computes a modification of said MAC by using one of the derived keys. The Mac is thus modified by using at least part of the derived key material DKM. 
     As an example of such modification of the MAC using derived key material, this modification may be MAC*=M(MAC, DKM*) where DKM* is a modified part of derived key material DKM, for example a modified value Ik* based on value of the integrity key Ik. 
     Both the integrity key Ik and the Ciphering Key Ck are derived from the master key K and the RAND by a computation performed by the secure server. 
     As will be explained later, said secret master key K is also stored in the personal token SE and such derivation is also possible in the personal token as far as the token has received the RAND. Master key K therefore constitutes a shared secret between the personal token and the secure server. 
     Based on one of the derived keys Ik and Ck received from the secure server SS, the authentication server AS computes a modification of at least part of the derived key material, i.e. computes the DKM* parameter expressed here-above. For instance, the authentication server AS takes the first 64 bits of the well-known function (sha-1) applied to the integrity key Ik:
 
 Ik*=Trunc ( SHA -1( IK ))
 
Trunc denotes the truncation on the bit output of (SHA-1) and (SHA-1) is a well-known hash function applied to the integrity key Ik.
 
     MAC* can be computed in the following fashion (step  3  on  FIG. 2 ):
 
MAC*=MAC XORTrunc ( SHA -1( IK ))
 
     The modification of the MAC is preferably reversible depending on knowledge of said modified part of the derived key material DKM*, in the formula MAC*=MAC XOR DKM*; 
     Once the modified value MAC* is computed by the authentication server AS, the authentication server AS sends RAND together with MAC* and together with values such as SQN, AK, AMF to the hosting terminal HT (step  4  on  FIG. 2 ). A same message is for instance used for sending those different data. 
     The value RES remains stored in the authentication server. 
     The hosting terminal HT then sends RAND, MAC*, SQN, AK, AMF (and possibly other values) to the personal token SE (step  5  on  FIG. 2 ). 
     An additional algorithm AKAAIg is performed in the personal token SE in the following way: 
     The personal token SE computes the derived keys Ck, Ik and the value RES which calculations are possible in the personal token because the personal token stores the master key K and has just received the RAND which are both necessary for computing Ck and Ik and for computing RES. 
     At this moment, Ck and Ik are present in the authentication server AS and in the personal token SE, but not in the hosting terminal HT. Until then such keys Ck and Ik can therefore be considered as sensitive data because they are not disclosed them to the hosting terminal HT. 
     In the present example, the personal token then performs computation of the non-modified MAC on the basis of the received MAC* and on the basis of the re-computed Ik. 
     To this end, the personal token SE computes the modified integrity key Ik*, i.e. the modified part DKM* of the derived key material DKM.
 
 Ik*=Trunc ( sha -1( Ik ))
 
     Then the personal token computes the MAC value corresponding to the received modified value MAC*: 
     MACC=M′(MAC*, Ik*), i.e. MACC=M′(MAC*, DKM*) where M′ is the inverse function of M used by AS i.e. MACC=MAC* XOR Ik* in the present case (step  6  on  FIG. 2 ). The reversible function M′ is known beforehand by both the personal token SE and the authentication server AS. 
     The M′ computation is, in the detailed example given above, the following computation: MACC=MAC* XOR Trunc(SHA-1 (IK)) 
     The token also computes MACT, i.e. the MAC value calculated on the basis of both the RAND and the master key K. Typically the MAC will depend also on the transmitted parameters SQN and AMF. 
     MACT is then compared with MACC (step  7  on  FIG. 2 ). 
     As described above, M is preferably a reversible function while the derived key used in computation of the modified MAC is known on both sides. 
     In another embodiment of the present invention, M may not be reversible. In such a case the personal token re-computes the MAC value, then re-computes the modification of the MAC value and then compares the received modified MAC value with the re-computed and re-modified MAC value. 
     A way to compare MACC with MACT is to compare a concatenation of MACT with other values, for example compare (SQN xor AK∥AMF∥MACT) with a concatenation of MACT with other values, for example (SQN xor AK∥AMF∥MACC), in which formulas ∥ is the concatenation symbol. 
     In case the MAC comparison is unsuccessful, i.e. MACT appears to be different from MACC, the personal token informs the hosting terminal HT that the MAC comparison is unsuccessful. 
     In case the MAC comparison is successful, the personal token SE computes and sends RES to the hosting terminal (step  8  on  FIG. 2 ) and keeps the other data (DKM, i.e. Ik and Ck in the present example) or a part of it hidden in the token. The hosting terminal then sends RES to the authentication server AS (step  9  on  FIG. 2 ) for authentication of the personal token SE by the authentication server AS. 
     In the present example, both the personal token SE and the authentication server AS shall use a concatenation of Ik and Ck named Ks to derive internal and external NAF-specific keys Ks_ext_NAF and Ks_int_NAF. 
     The internal NAF-specific key Ks_int_NAF is used for establishing a secure channel between the personal token and a remote server through the terminal HT but hidden from the terminal HT. 
     The external NAF-specific key Ks_ext_NAF is used for establishing a secure channel between the hosting terminal HT and a remote server. 
     In the case the MAC is not modified by the authentication server AS before being sent to the personal token SE through the terminal, the personal token SE behaves according to the usual procedure, i.e. re-computes and checks the value of the MAC and after authentication provides the derived keys Ik and Ck to the terminal. 
     Such modification of the MAC or any other data associated with the RAND in the authentication procedure by use of derived key material or part of it provides many advantages by itself, independently of the possibility of triggering one special procedure among two provided ones. 
     That is why the modification of the MAC may be systematically applied without possibility for different procedures depending on modification or not of the MAC. 
     Modification of the MAC has the advantage of hiding the true value of the MAC, thereby preventing any interpreting of the MAC with the associated RAND by a fraudulous entity which may then deduce some value of sensitive data. 
     Although hidden by such modification, the MAC nevertheless remains able to be interpreted by the personal token, i.e. the token can still check the validity of the MAC because the personal token embeds derived key material which is necessary for checking such validity. 
     Modification of the MAC has also the advantage of preventing that a fraudulous entity may pick up a transmitted (RAND, MAC) couple and may replay it to the token, so as to gain the value of Ck and Ik in return. 
     All these advantages are also true for other data transmitted with the RAND. 
     Independently from the hiding advantages explained above, possibility of opting or not as to modification of the MAC or of another data transmitted with the RAND in the authentication procedure has the advantage of efficiently signalizing a special procedure to be performed by the card in response to such modification. 
     In the present case, such modification of the MAC signalizes a necessity to keep the sensitive data Ik and Ck inside the card. Same signalizing may be applied for indicating a particular procedure to be carried out in the token, whatever the procedure which may be different from hiding derived key material. A modified MAC may be interpreted by the token as triggering a special behaviour to be performed by the token in response to said signalizing. 
     Also in the case of hiding derived key material, the signalizing through modification may consist in inducing the token to consult a flag such as the AMF parameter which is sent to the token together with the RAND. A special value of the AMF may then be read by the token as a particular meaning, for example commanding the hiding of Ck and Ik by the token or any other procedure. In absence of such modified MAC and therefore any redirection to the AMF flag, the same card will be allowed to disclose the Ck and Ik values. 
     In such an example, many combinations exist between the meaning of the MAC being modified or not and the particular value of the AMF flag on which fla the token is redirected by the MAC being modified. 
     Same procedures as described above may be applied by using a modification of any value which is transmitted with the RAND. Such another value as the MAC may be a value which is used in the computation of the MAC. However, such value is preferably not used in the computation of any derived key material. 
     Such other data that may be modified can be the SQN as an example. SQN may be modified in the following way, i.e.: 
     The authentication server modifies SQN, for example as follows: SQN*=SQN XOR DKM* and then transmits RAND, SQN * and the unmodified MAC (computed by the SS from the unmodified SON value and Rand). Then the token performs the following operations. 
     First the token checks that the received SQN (either the unmodified SON or the modified SQN*) is in a correct range according to SQN management rules. 
     Second the token manages two possible cases. In the first case, the token supposes that SQN was not modified. 
     Then the token checks that SQN is in the correct range. In the case SQN is in the correct range, then the token computes MACT as a function of the RAND, the master key and typically the SON and the AMF and compares MACT with the received MAC. The MAC value is preferably computed with the unmodified data, i.e. the unmodified RAND, SQN, and AMF. 
     If MAC=MACT then the token identifies that the usual AKA is taking place, and thus CK and DK are disclosed. 
     Otherwise, the token manages the second case. 
     The token supposes that SQN was modified, and thus that SQN* was the received value. 
     Then the token computes DKM, computes DKM*, compute SQN=SQN*XOR DKM*, computes MACT as a function of the master key, the RAND, and typically the SQN and the AMF flag and then compares MACT with the received MAC. 
     If MACT is different from MAC then the authentication is rejected. 
     Otherwise the token verifies that SON is in the correct range and then does not disclose CK and IK. 
     SQN or SQN* may be sent concealed by AK (thus SQN xor AK or SQN xor DKM* xor AK is sent). 
     AMF can be modified at the same time as SQN, for instance performing SQN_AMF*=(SQN∥AMF) xor DKM*. 
     SQN, AMF and MAC can be also modified at the same time AUTH*=(SQN∥AMF∥MAC) xor DKM*. 
     However, RAND should not be modified as it is used to compute DKM. 
     Same signalizing may be applied for indicating to the hosting terminal through the card that a specific usage needs to be enforced as to some sensitive data, typically as to the derived key material. In this case, even though the derived key material exits the SE, the hosting terminal may perform the described MAC procedures by itself after the AKAAIg has taken place in the personal token.