Tech-invite3GPPspaceIETFspace
21222324252627282931323334353637384‑5x

Content for  TS 33.102  Word version:  18.0.0

Top   Top   Up   Prev   Next
1…   4   5…   6…   6.4…   6.5…   6.6…   6.8…   6.8.4…   6.8.8…   8…   B…   C…   F…

 

6  Network access security mechanismsp. 18

6.1  Identification by temporary identitiesp. 18

6.1.1  Generalp. 18

This mechanism allows the identification of a user on the radio access link by means of a temporary mobile subscriber identity (TMSI/P-TMSI). A TMSI /P-TMSI has local significance only in the location area or routing area in which the user is registered. Outside that area it should be a accompanied by an appropriate Location Area Identification (LAI) or Routing Area Identification (RAI) in order to avoid ambiguities. The association between the permanent and temporary user identities is kept by the Visited Location Register (VLR/SGSN) in which the user is registered.
The TMSI/P-TMSI, when available, is normally used to identify the user on the radio access path, for instance in paging requests, location update requests, attach requests, service requests, connection re-establishment requests and detach requests.
The procedures and mechanisms are described in TS 43.020 and TS 23.060. The following clauses contain a summary of this feature.
Up

6.1.2  TMSI reallocation procedurep. 18

The purpose of the mechanism described in this subclause is to allocate a new TMSI/LAI pair to a user by which he may subsequently be identified on the radio access link.
The procedure should be performed after the initiation of ciphering. The ciphering of communication over the radio path is specified in clause 6.6. The allocation of a temporary identity is illustrated in Figure 3.
Reproduction of 3GPP TS 33.102, Fig. 3: TMSI allocation
Up
The allocation of a temporary identity is initiated by the VLR.
The VLR generates a new temporary identity (TMSIn) and stores the association of TMSIn and the permanent identity IMSI in its database. The TMSI should be unpredictable. The VLR then sends the TMSIn and (if necessary) the new location area identity LAIn to the user.
Upon receipt the user stores TMSIn and automatically removes the association with any previously allocatedTMSI. The user sends an acknowledgement back to the VLR.
Upon receipt of the acknowledgement the VLR removes the association with the old temporary identity TMSIo and the IMSI (if there was any) from its database.
Up

6.1.3  Unacknowledged allocation of a temporary identityp. 18

If the serving network does not receive an acknowledgement of the successful allocation of a temporary identity from the user, the network shall maintain the association between the new temporary identity TMSIn and the IMSI and between the old temporary identity TMSIo (if there is any) and the IMSI.
For a user-originated transaction, the network shall allow the user to identify itself by either the old temporary identity TMSIo or the new temporary identity TMSIn. This allows the network to determine the temporary identity stored in the mobile station. The network shall subsequently delete the association between the other temporary identity and the IMSI, to allow the temporary identity to be allocated to another user.
For a network-originated transaction, the network shall identify the user by its permanent identity (IMSI). When radio contact has been established, the network shall instruct the user to delete any stored TMSI. When the network receives an acknowledgement from the user, the network shall delete the association between the IMSI and any TMSI to allow the released temporary identities to be allocated to other users.
Subsequently, in either of the cases above, the network may initiate the normal TMSI reallocation procedure.
Repeated failure of TMSI reallocation (passing a limit set by the operator) may be reported for O&M action.
Up

6.1.4  Location updatep. 19

In case a user identifies itself using a TMSIo/LAIo pair that was assigned by the visited VLRn the IMSI can normally be retrieved from the database. If this is not the case, the visited VLRn should request the user to identify itself by means of its permanent user identity. This mechanism is described in 6.2.
In case a user identifies itself using a TMSIo/LAIo pair that was not assigned by the visited VLRn and the visited VLRn and the previously visited VLRo exchange authentication data, the visited VLRn should request the previously visited VLRo to send the permanent user identity. This mechanism is described in 6.3.4, it is integrated in the mechanism for distribution of authentication data between VLRs. If the previously visited VLRo cannot be contacted or cannot retrieve the user identity, the visited VLRn should request the user to identify itself by means of its permanent user identity. This mechanism is described in 6.2.
Up

6.2  Identification by a permanent identityp. 19

The mechanism described in here allows the identification of a user on the radio path by means of the permanent subscriber identity (IMSI).
The mechanism should be invoked by the serving network whenever the user cannot be identified by means of a temporary identity. In particular, it should be used when the user registers for the first time in a serving network, or when the serving network cannot retrieve the IMSI from the TMSI by which the user identifies itself on the radio path.
The mechanism is illustrated in Figure 4.
Reproduction of 3GPP TS 33.102, Fig. 4: Identification by the permanent identity
Up
The mechanism is initiated by the visited VLR/SGSN that requests the user to send its permanent identity. The user's response contains the IMSI in cleartext. This represents a breach in the provision of user identity confidentiality.

6.3  Authentication and key agreementp. 19

6.3.1  Generalp. 19

The mechanism described here achieves mutual authentication by the user and the network showing knowledge of a secret key K which is shared between and available only to the USIM and the AuC in the user's HE. In addition the USIM and the HE keep track of counters SQN MS and SQN HE respectively to support network authentication. The sequence number SQN HE is an individual counter for each user and the sequence number SQN MS denotes the highest sequence number the USIM has accepted.
The method was chosen in such a way as to achieve maximum compatibility with the current GSM security architecture and facilitate migration from GSM to UMTS. The method is composed of a challenge/response protocol identical to the GSM subscriber authentication and key establishment protocol combined with a sequence number-based one-pass protocol for network authentication derived from ISO/IEC 9798-4 [10] (clause 5.1.1).
An overview of the mechanism is shown in Figure 5.
Copy of original 3GPP image for 3GPP TS 33.102, Fig. 5: Authentication and key agreement
Figure 5: Authentication and key agreement
(⇒ copy of original 3GPP image)
Up
Upon receipt of a request from the VLR/SGSN, the HE/AuC sends an ordered array of n authentication vectors (the equivalent of a GSM "triplet") to the VLR/SGSN. The authentication vectors are ordered based on sequence number. Each authentication vector consists of the following components: a random number RAND, an expected response XRES, a cipher key CK, an integrity key IK and an authentication token AUTN. Each authentication vector is good for one authentication and key agreement between the VLR/SGSN and the USIM.
When the VLR/SGSN initiates an authentication and key agreement, it selects the next authentication vector from the ordered array and sends the parameters RAND and AUTN to the user. Authentication vectors in a particular node are used on a first-in / first-out basis. The USIM checks whether AUTN can be accepted and, if so, produces a response RES which is sent back to the VLR/SGSN. The USIM also computes CK and IK. The VLR/SGSN compares the received RES with XRES. If they match the VLR/SGSN considers the authentication and key agreement exchange to be successfully completed. The established keys CK and IK will then be transferred by the USIM and the VLR/SGSN to the entities which perform ciphering and integrity functions.
VLR/SGSNs can offer secure service even when HE/AuC links are unavailable by allowing them to use previously derived cipher and integrity keys for a user so that a secure connection can still be set up without the need for an authentication and key agreement. Authentication is in that case based on a shared integrity key, by means of data integrity protection of signalling messages (see 6.4).
The authenticating parties shall be the AuC of the user's HE (HE/AuC) and the USIM in the user's mobile station. The mechanism consists of the following procedures:
A procedure to distribute authentication information from the HE/AuC to the VLR/SGSN. This procedure is described in 6.3.2. The VLR/SGSN is assumed to be trusted by the user's HE to handle authentication information securely. It is also assumed that the intra-system links between the VLR/SGSN to the HE/AuC are adequately secure. It is further assumed that the user trusts the HE.
A procedure to mutually authenticate and establish new cipher and integrity keys between the VLR/SGSN and the MS. This procedure is described in 6.3.3.
A procedure to distribute authentication data from a previously visited VLR to the newly visited VLR. This procedure is described in 6.3.4. It is also assumed that the links between VLR/SGSNs are adequately secure.
Up

6.3.2  Distribution of authentication data from HE to SNp. 21

The purpose of this procedure is to provide the VLR/SGSN with an array of fresh authentication vectors from the user's HE to perform a number of user authentications.
Copy of original 3GPP image for 3GPP TS 33.102, Fig. 6: Distribution of authentication data from HE to VLR/SGSN
Up
The VLR/SGSN invokes the procedures by requesting authentication vectors to the HE/AuC.
The authentication data request shall include the IMSI and the requesting node type (PS or CS).
Upon the receipt of the authentication data request from the VLR/SGSN, the HE may have pre-computed the required number of authentication vectors and retrieve them from the HLR database or may compute them on demand. The HE/AuC sends an authentication response back to the VLR/SGSN that contains an ordered array of n authentication vectors AV(1..n). The authentication vectors are ordered based on sequence number.
Figure 7 shows the generation of an authentication vector AV by the HE/AuC.
Copy of original 3GPP image for 3GPP TS 33.102, Fig. 7: Generation of authentication vectors
Figure 7: Generation of authentication vectors
(⇒ copy of original 3GPP image)
Up
The HE/AuC starts with generating a fresh sequence number SQN and an unpredictable challenge RAND.
For each user the HE/AuC keeps track of a counter: SQN HE
The HE has some flexibility in the management of sequence numbers, but some requirements need to be fulfilled by the mechanism used:
  1. The generation mechanism shall allow a re-synchronisation procedure in the HE described in clause 6.3.5.
  2. In case the SQN exposes the identity and location of the user, the AK may be used as an anonymity key to conceal it.
  3. The generation mechanism shall allow protection against wrap around of the counter SQN in the USIM.
A method how to achieve this is given in informative Annex C.2.
The mechanisms for verifying the freshness of sequence numbers in the USIM shall to some extent allow the out-of-order use of sequence numbers. This is to ensure that the authentication failure rate due to synchronisation failures is sufficiently low. This requires the capability of the USIM to store information on past successful authentication events (e.g. sequence numbers or relevant parts thereof). The mechanism shall ensure that a sequence number can still be accepted if it is among the last x = 32 sequence numbers generated. This shall not preclude that a sequence number is rejected for other reasons such as a limit on the age for time-based sequence numbers.
The same minimum number x needs to be used across the systems to guarantee that the synchronisation failure rate is sufficiently low under various usage scenarios, in particular simultaneous registration in the CS- and the PS-service domains, user movement between VLRs/SGSNs which do not exchange authentication information, super-charged networks.
The use of SQN HE is specific to the method of generation sequence numbers. A method is specified in Annex C.1 how to generate a fresh sequence number. A method is specified in Annex C.2 how to verify the freshness of a sequence number.
An authentication and key management field AMF is included in the authentication token of each authentication vector. Annex H defines the usage of the AMF. Example uses of the proprietary part of the AMF are included in Annex F.
Subsequently the following values are computed:
  • a message authentication code MAC = f1K(SQN || RAND || AMF) where f1 is a message authentication function;
  • an expected response XRES = f2K (RAND) where f2 is a (possibly truncated) message authentication function;
  • a cipher key CK = f3K (RAND) where f3 is a key generating function;
  • an integrity key IK = f4K (RAND) where f4 is a key generating function;
  • an anonymity key AK = f5K (RAND) where f5 is a key generating function or f5 ≡ 0.
Finally the authentication token AUTN = SQN * AK || AMF || MAC is constructed.
Here, AK is an anonymity key used to conceal the sequence number as the latter may expose the identity and location of the user. The concealment of the sequence number is to protect against passive attacks only. If no concealment is needed then f5 ≡ 0 (AK = 0).
Up

6.3.3  Authentication and key agreementp. 23

The purpose of this procedure is to authenticate the user and establish a new pair of cipher and integrity keys between the VLR/SGSN and the USIM. During the authentication, the USIM verifies the freshness of the authentication vector that is used.
Copy of original 3GPP image for 3GPP TS 33.102, Fig. 8: Successful UMTS Authentication and Key Agreement
Up
The VLR/SGSN invokes the procedure by selecting the next unused authentication vector from the ordered array of authentication vectors in the VLR/SGSN database. Authentication vectors in a particular node are used on a first-in / first-out basis. The VLR/SGSN sends to the USIM the random challenge RAND and an authentication token for network authentication AUTN from the selected authentication vector.
Upon receipt the user proceeds as shown in Figure 9.
Copy of original 3GPP image for 3GPP TS 33.102, Fig. 9: User authentication function in the USIM
Figure 9: User authentication function in the USIM
(⇒ copy of original 3GPP image)
Up
Upon receipt of RAND and AUTN the USIM first computes the anonymity key AK = f5K (RAND) and retrieves the sequence number SQN = (SQN * AK) * AK.
Next the USIM computes XMAC = f1K (SQN || RAND || AMF) and compares this with MAC which is included in AUTN. If they are different, the user sends an authentication failure message back to the VLR/SGSN with an indication of the cause and the user abandons the procedure. In this case, VLR/SGSN shall initiate an Authentication Failure Report procedure towards the HLR as specified in clause 6.3.6. VLR/SGSN may also decide to initiate a new identification and authentication procedure towards the user, cf. TS 24.008.
Next the USIM verifies that the received sequence number SQN is in the correct range.
If the USIM considers the sequence number to be not in the correct range, it sends synchronisation failure back to the VLR/SGSN including an appropriate parameter, and abandons the procedure.
The synchronisation failure message contains the parameter AUTS. It is AUTS = Conc(SQN MS ) || MAC-S. Conc(SQN MS) = SQN MS ⊕ f5*K(RAND) is the concealed value of the counter SQN MS in the MS, and MAC-S = f1*K(SQN MS || RAND || AMF) where RAND is the random value received in the current user authentication request. f1* is a message authentication code (MAC) function with the property that no valuable information can be inferred from the function values of f1* about those of f1, ... , f5, f5* and vice versa. f5* is the key generating function used to compute AK in re-synchronisation procedures with the property that no valuable information can be inferred from the function values of f5* about those of f1, f1*, f2, ... , f5 and vice versa.
The AMF used to calculate MAC-S assumes a dummy value of all zeros so that it does not need to be transmitted in the clear in the re-synch message.
The construction of the parameter AUTS in shown in the following Figure 10:
Copy of original 3GPP image for 3GPP TS 33.102, Fig. 10: Construction of the parameter AUTS
Figure 10: Construction of the parameter AUTS
(⇒ copy of original 3GPP image)
Up
If the sequence number is considered to be in the correct range however, the USIM computes RES = f2K (RAND) and includes this parameter in a user authentication response back to the VLR/SGSN. Finally the USIM computes the cipher key CK = f3K (RAND) and the integrity key IK = f4K (RAND). Note that if this is more efficient, RES, CK and IK could also be computed earlier at any time after receiving RAND. If the USIM also supports conversion function c3, it shall derive the 64-bit GSM cipher key Kc from the UMTS cipher/integrity keys CK and IK. UMTS keys are sent to the MS along with the derived 64-bit GSM key for UMTS-GSM interoperability purposes. USIM shall store original CK, IK until the next successful execution of AKA.
Upon receipt of user authentication response the VLR/SGSN compares RES with the expected response XRES from the selected authentication vector. If XRES equals RES then the authentication of the user has passed. The SGSN shall compute the 128-bit GSM ciphering key Kc 128 according to Annex B.5 if it is to use a 128-bit GSM ciphering algorithm. The VLR/MSC shall compute the 128-bit GSM ciphering key Kc 128 according to Annex B.5 if it signals a 128-bit GSM ciphering algorithm as a permitted GSM ciphering algorithm to the BSS. The VLR/SGSN also selects the appropriate cipher key CK and integrity key IK from the selected authentication vector. If XRES and RES are different, VLR/SGSN shall initiate an Authentication Failure Report procedure towards the HLR as specified in clause 6.3.6. VLR/SGSN may also decide to initiate a new identification and authentication procedure towards the user, cf. TS 24.008.
Re-use and re-transmission of (RAND, AUTN)
The verification of the SQN by the USIM will cause the MS to reject an attempt by the VLR/SGSN to re-use a quintet to establish a particular UMTS security context more than once. In general therefore the VLR/SGSN shall use a quintet only once.
There is one exception however: in the event that the VLR/SGSN has sent out an authentication request using a particular quintet and does not receive a response message (authentication response or authentication failure) from the MS, it may re-transmit the authentication request using the same quintet. However, as soon as a response message arrives no further re-transmissions are allowed. If after the initial transmission or after a series of re-transmissions no response arrives, retransmissions may be abandoned. If retransmissions are abandoned then the VLR/SGSN shall delete the quintet. At the MS side, in order to allow this re-transmission without causing additional re-synchronisation procedures, the ME shall store for the PS domain (and optionally the CS domain) the last received RAND as well as the corresponding RES, CK and IK. If the USIM returned SRES and Kc (for GSM access), the ME shall store these values. When the ME receives an authentication request and discovers that a RAND is repeated, it shall re-transmit the response. The ME shall delete the stored values RAND, RES and SRES (if they exist) as soon as the 3G security mode command or the GSM cipher mode command is received by the ME or the connection is aborted. If the ME can handle the retransmission mechanism for CS domain then it shall be able to handle the retransmission for both PS and CS domain simultaneously.
Up

6.3.4  Distribution of IMSI and temporary authentication data within one serving network domainp. 26

The purpose of this procedure is to provide a newly visited VLR/SGSN with temporary authentication data from a previously visited VLR/SGSN within the same serving network domain.
The procedure is shown in Figure 11.
Copy of original 3GPP image for 3GPP TS 33.102, Fig. 11: Distribution of IMSI and temporary authentication data within one serving network domain
Up
The procedure shall be invoked by the newly visited VLRn/SGSNn after the receipt of a location update request (resp. routing area update request) from the user wherein the user is identified by means of a temporary user identity TMSIo (resp. P-TMSIo) and the location area identity LAIo (resp. routing area identity RAIo) under the jurisdiction of a previously visited VLRo/SGSNo that belongs to the same serving network domain as the newly visited VLRn/SGSNn.
The protocol steps are as follows:
  1. The VLRn/SGSNn sends a user identity request to the VLRo/SGSNo, this message contains TMSIo and LAIo (resp. P-TMSIo and RAIo).
  2. The VLRo/SGSNo searches the user data in the database.
    If the user is found, the VLRo/SGSNo shall send a user identity response back that:
    1. shall include the IMSI,
    2. may include a number of unused authentication vectors (quintets or triplets) ordered on a first-in / first-out basis, and
    3. may include the current security context data: CK, IK and KSI (UMTS) or Kc and CKSN (GSM).
    The SGSNn shall derive Kc 128 from the current security context data according to Annex B.5 if it received a CK/IK pair and KSI from the SGSNo and if the SGSNn is to use a 128-bit GSM ciphering algorithm in GSM. The VLRn shall derive Kc 128 from the current security context data according to Annex B.5 if it received a CK/IK pair and KSI from the VLRo and if the VLRn is to signal a 128-bit GSM ciphering algorithm as a permitted ciphering algorithm to the BSS in GSM.
    The VLRo/SGSNo subsequently deletes the authentication vectors which have been sent and the data elements on the current security context.
    If the user cannot be identified the VLRo/SGSNo shall send a user identity response indicating that the user identity cannot be retrieved.
  3. If the VLRn/SGSNn receives a user identity response with an IMSI, it creates an entry and stores any authentication vectors and any data on the current security context that may be included.
    If the VLRn/SGSNn receives a user identity response indicating that the user could not be identified, it shall initiate the user identification procedure described in 6.2.
Up

6.3.5  Re-synchronisation procedurep. 27

A VLR/SGSN may send two types of authentication data requests to the HE/AuC, the (regular) one described in subclause 6.3.2 and one used in case of synchronisation failures, described in this subclause.
Upon receiving a synchronisation failure message from the user, the VLR/SGSN sends an authentication data request with a "synchronisation failure indication" to the HE/AuC, together with the parameters:
  • RAND sent to the MS in the preceding user authentication request, and
  • AUTS received by the VLR/SGSN in the response to that request, as described in subclause 6.3.3.
An VLR/SGSN will not react to unsolicited "synchronisation failure indication" messages from the MS.
The VLR/SGSN does not send new user authentication requests to the user before having received the response to its authentication data request from the HE/AuC (or before it is timed out).
When the HE/AuC receives an authentication data request with a "synchronisation failure indication" it acts as follows:
  1. The HE/AuC retrieves SQN MS from Conc(SQN MS) by computing Conc(SQN MS) * f5*K(RAND).
  2. The HE/AuC checks if SQN HE is in the correct range, i.e. if the next sequence number generated SQN HE using would be accepted by the USIM.
  3. If SQN HE is in the correct range then the HE/AuC continues with step (6), otherwise it continues with step (4).
  4. The HE/AuC verifies AUTS (cf. subclause 6.3.3).
  5. If the verification is successful the HE/AuC resets the value of the counter SQN HE to SQN MS.
  6. The HE/AuC sends an authentication data response with a new batch of authentication vectors to the VLR/SGSN. If the counter SQN HE was not reset then these authentication vectors can be taken from storage, otherwise they are newly generated after resetting SQN HE. In order to reduce the real-time computation burden on the HE/AuC, the HE/AuC may also send only a single authentication vector in the latter case.
Whenever the VLR/SGSN receives a new batch of authentication vectors from the HE/AuC in an authentication data response to an authentication data request with synchronisation failure indication it deletes the old ones for that user in the VLR/SGSN.
The user may now be authenticated based on a new authentication vector from the HE/AuC. Figure 12 shows how re-synchronisation is achieved by combining a user authentication request answered by a synchronisation failure message (as described in clause 6.3.3) with an authentication data request with synchronisation failure indication answered by an authentication data response (as described in this clause).
Copy of original 3GPP image for 3GPP TS 33.102, Fig. 12: Resynchronisation mechanism
Figure 12: Resynchronisation mechanism
(⇒ copy of original 3GPP image)
Up

6.3.6  Reporting authentication failures from the SGSN/VLR to the HLRp. 28

The purpose of this procedure is to provide a mechanism for reporting authentication failures from the serving environment back to the home environment.
The procedure is shown in Figure 13.
Copy of original 3GPP image for 3GPP TS 33.102, Fig. 13: Reporting authentication failure from VLR/SGSN to HLR
Up
The procedure is invoked by the serving network VLR/SGSN when the authentication procedure fails. The authentication failure report shall contain:
  1. Subscriber identity;
  2. Failure cause code. The possible failure causes are either that the network signature was wrong or that the user response was wrong;
  3. Access type. This indicates the type of access that initiated the authentication procedure;
  4. Authentication re-attempt. This indicates whether the failure was produced in a normal authentication attempt or it was due to an authentication reattempt (there was a previous unsuccessful authentication). Details are provided in subclause 6.3.6.1;
  5. VLR/SGSN address;
  6. RAND. This number uniquely identifies the specific AV that failed authentication.
The HE may decide to cancel the location of the user after receiving an authentication failure report and may store the received data so that further processing to detect possible fraud situations could be performed.
Up

6.3.6.1  Authentication re-attempt |R6|p. 28

The serving network sets the Authentication re-attempt to "true" if the second authentication described in the following cases results in an authentication failure report:
  • authentication with (P-)TMSI failed in MS (reject cause 'MAC failure') and new authentication procedure (re-attempt) is taken because an IMSI obtained by the followed IDENTITY REQUEST procedure does not match to the original IMSI that linked with (P-)TMSI.
  • authentication failed in MS (reject cause 'GSM authentication unacceptable') and new authentication procedure (re-attempt) is taken after MSC obtains UMTS authentication vectors from HLR.
  • authentication failed in MS (reject cause 'synch failure') and new authentication procedure (re-attempt) is taken after MSC obtains new authentication vectors from HLR for re-synchronisation.
  • SRES mismatches with (P-)TMSI in VLR/SGSN and new authentication procedure (re-attempt) is taken because an IMSI obtained by the followed IDENTITY REQUEST procedure does not match to the original IMSI that linked with (P-)TMSI.
Otherwise Authentication re-attempt is set to "False".
Up

6.3.7  Length of authentication parametersp. 29

The authentication key (K) shall have a length of 128 bits or 256 bits.
The random challenge (RAND) shall have a length of 128 bits.
Sequence numbers (SQN) shall have a length of 48 bits.
The anonymity key (AK) shall have a length of 48 bits.
The authentication management field (AMF) shall have a length of 16 bits.
The message authentication codes MAC in AUTN and MAC-S in AUTS shall have a length of 64 bits.
The cipher key (CK) shall have a length of 128 bits.
The integrity key (IK) shall have a length of 128 bits.
The authentication response (RES) shall have a variable length of 4-16 octets.
Up

Up   Top   ToC