# US 2021/0084492 A1 · Detecting and Preventing an Adversarial Network Entity from Tracking a Wireless Device's Location

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0084492 A1
- Document ID: US20210084492A1
- Status: Published application
- Kind: A1
- Application number: 16/574,013
- Filed: 2019-09-17
- Published: 2021-03-18
- Earliest claimed: 2019-09-17
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Krishna Ram Budhathoki; Subrato Kumar De; Mattias Kaulard Huber
- Web page: https://patentgrep.com/patent/US20210084492A1

## CPC

- H04W 12/06: Authentication
- H04L 9/0869: {involving random numbers or seeds}
- H04L 9/0891: {Revocation or update of secret information, e.g. encryption key update or rekeying}
- H04L 9/12: Transmitting and receiving encryption devices synchronised or initially set up in a particular manner
- H04L 9/3213: {using tickets or tokens, e.g. Kerberos (network architectures or network communication protocols for entities authentication using tickets in a packet data network H04L63/0807)}
- H04L 9/3242: {involving keyed hash functions, e.g. message authentication codes [MACs], CBC-MAC or HMAC}
- H04W 12/03: Protecting confidentiality, e.g. by encryption
- H04W 12/069: using certificates or pre-shared keys
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Methods for detecting and preventing an adversarial network entity (e.g., fake base stations, etc.) from tracking a wireless device's location. A wireless device may be equipped with a random value (RAND) database or cache memory RAND values previously received by the wireless device. In response to receiving an authentication request message from a network component, performing AKA procedures and determining that the authentication failed, the wireless device may compare the RAND value included in the received authentication request message to RAND values stored in secure storage memory. The wireless device may generate an authentication response message that includes an error code that is different than standard error code used so that the target wireless device can't be differentiated from other wireless devices thereby preventing tracking in response to determining that the RAND value included in the received authentication request message is included in the RAND secure storage memory.

## Claims

### Claim 1

A method of detecting one or more adversarial network entities, comprising:
receiving, by a processor in a wireless device, an authentication request message that includes an authentication token (AUTN) and a random value (RAND) from a network entity;
determining whether a message authentication code (MAC) associated with the authentication token (AUTN) included in the received authentication request message is valid;
determining whether a sequence number (SQNNN) in the received authentication request message is in a valid range in response to determining that the MAC is valid;
determining whether the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in a memory of the wireless device in response to determining that the SQNNN of the received authentication request message is not in the valid range; and
determining that the network entity is an adversarial network entity in response to determining that the MAC is valid, the SQNNN of the received authentication request message is not in the valid range, and the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in the memory of the wireless device.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
generating an authentication response message that includes a standard authentication failure error code that indicates that the SQNNN of the received authentication request message is not in the valid range in response to determining that the random value (RAND) included in the received authentication request message does not match another random value (RAND) stored in the memory of the wireless device;
generating the authentication response message to include an authentication failure error code in a way so that is it not possible to differentiate the targeted wireless device from other wireless devices as there is no differentiating error code in response to determining that the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in the memory of the wireless device; and
sending the generated authentication response message to the network entity.

### Claim 3 (depends on 2)

The method of claim 2, wherein:
generating the authentication response message that includes the standard authentication failure error code that indicates that the SQNNN of the received authentication request message is not in the valid range comprises generating the authentication response message to include a synchronization failure error code in response to determining that the random value (RAND) included in the received authentication request message does not match another random value (RAND) stored in the memory of the wireless device; and
generating the authentication response message to include the authentication failure error code in a way so that is it not possible to differentiate the targeted wireless device from other wireless devices as there is no differentiating error code comprises generating the authentication response message to include a “MAC Failure” error code in response to determining that the random value (RAND) included in the received authentication request message matches another random authentication challenge value stored in the memory of the wireless device.

### Claim 4 (depends on 1)

The method of claim 1, wherein:
determining whether the MAC is valid comprises following a standard approach of determining whether the MAC associated with the authentication token (AUTN) included in the received authentication request message was generated based on a shared secret long-term key; and
determining whether the received authentication request message is recently generated comprises comparing a sequence number in the valid range used for authentication (SQNMS) stored in the memory of the wireless device with a sequence number (SQNN) associated with the authentication token (AUTN) included in the received authentication request message.

### Claim 5 (depends on 1)

The method of claim 1, wherein receiving the authentication request message that includes the random value (RAND) and the authentication token (AUTN) from the network entity comprises receiving a RAND generated by a 128-bit Pseudo Random Number Generator (PRNG).

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
determining whether the random value (RAND) included in the received authentication request message is the same as a most recently stored random value (RAND);
updating the memory of the wireless device to include the random value (RAND) included in the received authentication request message in response to determining that the random value (RAND) included in the received authentication request message is not the same as the most recently stored random value (RAND); and
forgoing updating of the memory of the wireless device in response to determining that the random value (RAND) included in the received authentication request message is the same as the most recently stored random value (RAND).

### Claim 7 (depends on 6)

The method of claim 6, wherein updating the memory of the wireless device to include the random value (RAND) included in the received authentication request message comprises:
loading an oldest-entry random value (RAND) from a secondary memory of the wireless device to an in-process memory of the wireless device; and
storing the random value (RAND) included in the received authentication request message in the secondary memory of the wireless device.

### Claim 8 (depends on 7)

The method of claim 7, wherein determining whether the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in the memory of the wireless device comprises determining whether the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in the in-process memory of the wireless device.

### Claim 9

A wireless device, comprising:
a memory; and
a processor coupled to the memory and configured with processor-executable software instructions to:
receive an authentication request message that includes an authentication token (AUTN) and a random value (RAND) from a network entity;
determine whether a message authentication code (MAC) associated with the authentication token (AUTN) included in the received authentication request message is valid;
determine whether a sequence number (SQNNN) in the received authentication request message is in a valid range in response to determining that the MAC is valid;
determine whether the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in the memory in response to determining that the SQNNN of the received authentication request message is not in the valid range; and
determine that the network entity is an adversarial network entity in response to determining that the MAC is valid, the SQNNN of the received authentication request message is not in the valid range, and the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in the memory.

### Claim 10 (depends on 9)

The wireless device of claim 9, wherein the processor is further configured with processor-executable software instructions to:
generate an authentication response message that includes a standard authentication failure error code that indicates that the SQNNN of the received authentication request message is not in the valid range in response to determining that the random value (RAND) included in the received authentication request message does not match another random value (RAND) stored in the memory;
generate the authentication response message to include an authentication failure error code in a way so that is it not possible to differentiate the targeted wireless device from other wireless devices as there is no differentiating error code in response to determining that the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in the memory; and
send the generated authentication response message to the network entity.

### Claim 11 (depends on 10)

The wireless device of claim 10, wherein the processor is further configured with processor-executable software instructions to:
generate the authentication response message that includes the standard authentication failure error code that indicates that the SQNNN of the received authentication request message is not in the valid range by generating the authentication response message to include a synchronization failure error code in response to determining that the random value (RAND) included in the received authentication request message does not match another random value (RAND) stored in the memory; and
generate the authentication response message to include the authentication failure error code in a way so that is it not possible to differentiate the targeted wireless device from other wireless devices as there is no differentiating error code by generating the authentication response message to include a “MAC Failure” error code in response to determining that the random value (RAND) included in the received authentication request message matches another random authentication challenge value stored in the memory.

### Claim 12 (depends on 9)

The wireless device of claim 9, wherein the processor is further configured with processor-executable software instructions to:
determine whether the MAC is valid by following a standard approach of determining whether the MAC associated with the authentication token (AUTN) included in the received authentication request message was generated based on a shared secret long-term key; and
determine whether the received authentication request message is recently generated by comparing a sequence number in the valid range used for authentication (SQNMS) stored in the memory with a sequence number (SQNN) associated with the authentication token (AUTN) included in the received authentication request message.

### Claim 13 (depends on 9)

The wireless device of claim 9, wherein the processor is further configured with processor-executable software instructions to receive the authentication request message that includes the random value (RAND) and the authentication token (AUTN) from the network entity by receiving a random value (RAND) generated by a 128-bit Pseudo Random Number Generator (PRNG).

### Claim 14 (depends on 9)

The wireless device of claim 9, wherein the processor is further configured with processor-executable software instructions to:
determine whether the random value (RAND) included in the received authentication request message is the same as a most recently stored random value (RAND);
update the memory to include the random value (RAND) included in the received authentication request message in response to determining that the random value (RAND) included in the received authentication request message is not the same as the most recently stored random value (RAND); and
forgo updating of the memory in response to determining that the random value (RAND) included in the received authentication request message is the same as the most recently stored random value (RAND).

### Claim 15 (depends on 14)

The wireless device of claim 14, wherein the processor is further configured with processor-executable software instructions to update the memory to include the random value (RAND) included in the received authentication request message by:
loading an oldest-entry random value (RAND) from a secondary memory to an in-process memory of the wireless device; and
storing the random value (RAND) included in the received authentication request message in the secondary memory.

### Claim 16 (depends on 15)

The wireless device of claim 15, wherein the processor is further configured with processor-executable software instructions to determine whether the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in the memory by determining whether the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in the in-process memory.

### Claim 17

A non-transitory computer readable storage medium having stored thereon processor-executable software instructions configured to cause a processor in a wireless device to perform operations comprising:
receiving an authentication request message that includes an authentication token (AUTN) and a random value (RAND) from a network entity;
determining whether a message authentication code (MAC) associated with the authentication token (AUTN) included in the received authentication request message is valid;
determining whether a sequence number (SQNNN) in the received authentication request message is in a valid range in response to determining that the MAC is valid;
determining whether the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in a memory of the wireless device in response to determining that the SQNNN of the received authentication request message is not in the valid range; and
determining that the network entity is an adversarial network entity in response to determining that the MAC is valid, the SQNNN of the received authentication request message is not in the valid range, and the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in the memory of the wireless device.

### Claim 18 (depends on 17)

The non-transitory computer readable storage medium of claim 17, wherein the stored processor-executable software instructions are configured to cause the processor in the wireless device to perform operations further comprising:
generating an authentication response message that includes a standard authentication failure error code that indicates that the SQNNN of the received authentication request message is not in the valid range in response to determining that the random value (RAND) included in the received authentication request message does not match another random value (RAND) stored in the memory of the wireless device;
generating the authentication response message to include an authentication failure error code in a way so that is it not possible to differentiate the targeted wireless device from other wireless devices as there is no differentiating error code in response to determining that the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in the memory of the wireless device; and
sending the generated authentication response message to the network entity.

### Claim 19 (depends on 18)

The non-transitory computer readable storage medium of claim 18, wherein the stored processor-executable software instructions are configured to cause the processor in the wireless device to perform operations such that:
generating the authentication response message that includes the standard authentication failure error code that indicates that the SQNNN of the received authentication request message is not in the valid range comprises generating the authentication response message to include a synchronization failure error code in response to determining that the random value (RAND) included in the received authentication request message does not match another random value (RAND) stored in the memory of the wireless device; and
generating the authentication response message to include the authentication failure error code in a way so that is it not possible to differentiate the targeted wireless device from other wireless devices as there is no differentiating error code comprises generating the authentication response message to include a “MAC Failure” error code in response to determining that the random value (RAND) included in the received authentication request message matches another random authentication challenge value stored in the memory of the wireless device.

### Claim 20 (depends on 17)

The non-transitory computer readable storage medium of claim 17, wherein the stored processor-executable software instructions are configured to cause the processor in the wireless device to perform operations such that:
determining whether the MAC is valid comprises following a standard approach of determining whether the MAC associated with the authentication token (AUTN) included in the received authentication request message was generated based on a shared secret long-term key; and
determining whether the received authentication request message is recently generated comprises comparing a sequence number in the valid range used for authentication (SQNMS) stored in the memory of the wireless device with a sequence number (SQNN) associated with the authentication token (AUTN) included in the received authentication request message.

### Claim 21 (depends on 17)

The non-transitory computer readable storage medium of claim 17, wherein the stored processor-executable software instructions are configured to cause the processor in the wireless device to perform operations such that receiving the authentication request message that includes the random value (RAND) and the authentication token (AUTN) from the network entity comprises receiving a random value (RAND) generated by a 128-bit Pseudo Random Number Generator (PRNG).

### Claim 22 (depends on 17)

The non-transitory computer readable storage medium of claim 17, wherein the stored processor-executable software instructions are configured to cause the processor in the wireless device to perform operations further comprising:
determining whether the random value (RAND) included in the received authentication request message is the same as a most recently stored random value (RAND);
updating the memory of the wireless device to include the random value (RAND) included in the received authentication request message in response to determining that the random value (RAND) included in the received authentication request message is not the same as the most recently stored random value (RAND); and
forgoing updating of the memory of the wireless device in response to determining that the random value (RAND) included in the received authentication request message is the same as the most recently stored random value (RAND).

### Claim 23 (depends on 22)

The non-transitory computer readable storage medium of claim 22,
wherein the stored processor-executable software instructions are configured to cause the processor in the wireless device to perform operations such that updating the memory of the wireless device to include the random value (RAND) included in the received authentication request message comprises:
loading an oldest-entry random value (RAND) from a secondary memory of the wireless device to an in-process memory of the wireless device; and
storing the random value (RAND) included in the received authentication request message in the secondary memory of the wireless device, and
wherein the stored processor-executable software instructions are configured to cause the processor in the wireless device to perform operations such that determining whether the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in the memory of the wireless device comprises determining whether the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in the in-process memory of the wireless device.

### Claim 24

A wireless device, comprising:
means for receiving an authentication request message that includes an authentication token (AUTN) and a random value (RAND) from a network entity;
means for determining whether a message authentication code (MAC) associated with the authentication token (AUTN) included in the received authentication request message is valid;
means for determining whether a sequence number (SQNNN) in the received authentication request message is in the valid range in response to determining that the MAC is valid;
means for determining whether the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in a memory of the wireless device in response to determining that the SQNNN of the received authentication request message is not in the valid range; and
means for determining that the network entity is an adversarial network entity in response to determining that the MAC is valid, the SQNNN of the received authentication request message is not in the valid range, and the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in the memory of the wireless device.

### Claim 25 (depends on 24)

The wireless device of claim 24, further comprising:
means for generating an authentication response message that includes a standard authentication failure error code that indicates that the SQNNN of the received authentication request message is not in the valid range in response to determining that the random value (RAND) included in the received authentication request message does not match another random value (RAND) stored in the memory of the wireless device;
means for generating the authentication response message to include an authentication failure error code in a way so that is it not possible to differentiate the targeted wireless device from other wireless devices as there is no differentiating error code in response to determining that the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in the memory of the wireless device; and
means for sending the generated authentication response message to the network entity.

### Claim 26 (depends on 25)

The wireless device of claim 25, wherein:
means for generating the authentication response message that includes the standard authentication failure error code that indicates that the SQNNN of the received authentication request message is not in the valid range comprises means for generating the authentication response message to include a synchronization failure error code in response to determining that the random value (RAND) included in the received authentication request message does not match another random value (RAND) stored in the memory of the wireless device; and
means for generating the authentication response message to include the authentication failure error code in a way so that is it not possible to differentiate the targeted wireless device from other wireless devices as there is no differentiating error code comprises means for generating the authentication response message to include a “MAC Failure” error code in response to determining that the random value (RAND) included in the received authentication request message matches another random authentication challenge value stored in the memory of the wireless device.

### Claim 27 (depends on 24)

The wireless device of claim 24, wherein:
means for determining whether the MAC is valid comprises means for following a standard approach of determining whether the MAC associated with the authentication token (AUTN) included in the received authentication request message was generated based on a shared secret long-term key; and
means for determining whether the received authentication request message is recently generated comprises means for comparing a sequence number in the valid range used for authentication (SQNMS) stored in the memory of the wireless device with a sequence number (SQNN) associated with the authentication token (AUTN) included in the received authentication request message.

### Claim 28 (depends on 24)

The wireless device of claim 24, wherein means for receiving the authentication request message that includes the random value (RAND) and the authentication token (AUTN) from the network entity comprises means for receiving a random value (RAND) generated by a 128-bit Pseudo Random Number Generator (PRNG).

### Claim 29 (depends on 24)

The wireless device of claim 24, further comprising:
means for determining whether the random value (RAND) included in the received authentication request message is the same as a most recently stored random value (RAND);
means for updating the memory of the wireless device to include the random value (RAND) included in the received authentication request message in response to determining that the random value (RAND) included in the received authentication request message is not the same as the most recently stored random value (RAND); and
means for forgoing updating of the memory of the wireless device in response to determining that the random value (RAND) included in the received authentication request message is the same as the most recently stored random value (RAND).

### Claim 30 (depends on 29)

The wireless device of claim 29,
wherein means for updating the memory of the wireless device to include the random value (RAND) included in the received authentication request message comprises:
means for loading an oldest-entry random value (RAND) from a secondary memory of the wireless device to an in-process memory of the wireless device; and
means for storing the random value (RAND) included in the received authentication request message in the secondary memory of the wireless device, and
wherein means for determining whether the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in the memory of the wireless device comprises means for determining whether the random value (RAND) included in the received authentication request message matches another random value (RAND) stored in the in-process memory of the wireless device.
