# US 2023/0413057 A1 · Method and apparatus for mitigating man in the middle attack in wireless network

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

- Number: US 2023/0413057 A1
- Document ID: US20230413057A1
- Status: Published application
- Kind: A1
- Application number: 18/252,501
- Filed: 2021-11-10
- Published: 2023-12-21
- Earliest claimed: 2020-11-10
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Rajavelsamy RAJADURAI; Nivedya PARAMBATH SASI; Rohini RAJENDRAN
- Web page: https://patentgrep.com/patent/US20230413057A1

## CPC

- H04W 12/121: Wireless intrusion detection systems [WIDS]; Wireless intrusion prevention systems [WIPS]
- H04W 12/69: Identity-dependent
- H04W 12/122: Counter-measures against attacks; Protection against rogue devices
- H04W 48/12: using downlink control channel
- H04W 48/18: Selecting a network or a communication service
- H04W 60/04: using triggered events
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

The present disclosure relates to a communication method and system for converging a 5th Generation (5G) communication system for supporting higher data rates beyond a 4th Generation (4G) system with a technology for Internet of Things (IoT). The method includes comparing plurality of parameters (e.g. TAI) received in message (e.g. initial NAS message, registration request, first protected NAS message) from UE and plurality of parameters (e.g. TAI) broadcasted/received/stored by AMF entity and/or genuine gNB. AMF entity and/or genuine gNB sends an accept message (e.g. NAS accept) or reject message (e.g. NAS reject, RRC reject or RRC reconfiguration.) with appropriate error cause value to UE to mitigate the MitM attack. Based on received message from AMF entity and/or genuine gNB, UE detects that UE is camped on genuine gNB or fake gNB. UE performs action(s) (e.g. cell reselection), when UE is camped on fake gNB/eNB to mitigate MitM attack.

## Claims

### Claim 1

A method performed by an access and mobility management function (AMF) entity in a wireless network, the method comprising:
receiving an initial non-access stratum (NAS) message from a user equipment (UE) and an N2 message from a genuine base station;
identifying a plurality of parameters received in the initial NAS message, and a plurality of parameters received in the N2 message;
determining whether the plurality of parameters received in the initial NAS message match with the plurality of parameters received in the N2 message; and
performing one of:
sending a NAS accept message with indication to the UE in response to identifying that the plurality of parameters received in the initial NAS message match with the plurality of parameters received in the N2 message; or
sending a NAS reject message with an error cause value to the UE to mitigate a man in the middle (MitM) attack in response to identifying that the plurality of parameters received in the initial NAS message do not match with the plurality of parameters received in the N2 message.

### Claim 2 (depends on 1)

The method of claim 1, further comprising
storing at least one of the plurality of parameters received in the initial NAS message and the plurality of parameters received in the N2 message.

### Claim 3 (depends on 1)

The method of claim 1, wherein a plurality of parameters associated with at least one of the initial NAS message and the N2 message comprise at least one of a tracking area identity (TAI), a closed access group identifier (CAG ID), and a physical cell identifier (PCI).

### Claim 4 (depends on 1)

The method of claim 1, wherein the initial NAS message is protected based on a NAS security context.

### Claim 5

A method performed by a user equipment (UE) in a wireless network, the method comprising:
receiving a system information block (SIB) from one of a genuine base station and a fake base station, wherein the SIB comprises at least one of a tracking area identity (TAI), and a closed access group identifier (CAG ID);
including the at least one of the TAI and the CAG ID in an initial non-access stratum (NAS) message, wherein the at least one of the TAI and the CAG ID is selected by one of the genuine base station and the fake base station based on a signal strength of the one of the genuine base station and the fake base station; and
sending the initial NAS message with the at least one of the TAI and the CAG ID to an access and mobility management function (AMF) entity.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
receiving at least one of a NAS accept message and a NAS reject message from the AMF entity; and
performing one of:
detecting that the UE is camped on the genuine base station in response to receiving the NAS accept message from the AMF entity, or
detecting that the UE is camped on the fake base station in response to receiving the NAS reject message from the AMF entity and performing at least one action to mitigate a man in the middle (MitM) attack.

### Claim 7 (depends on 6)

The method of claim 6, wherein performing the at least one action comprises:
performing a cell-reselection procedure, and selecting a suitable cell other than a current cell;
entering a 5th generation mobility management (5GMM) deregistered limited service state or a 5GMM deregistered public land mobile network (PLMN) search state;
performing a radio resource control (RRC) re-establishment procedure in the suitable cell; and
performing a registration procedure for a mobility registration and a periodic registration update from the suitable cell.

### Claim 8

An access and mobility management function (AMF) entity in a wireless network, comprising:
a memory;
a processor; and
a man in the middle (MitM) controller, operably connected to the memory and the processor, configured to:
receive an initial non-access stratum (NAS) message from a user equipment (UE) and an N2 message from a genuine base station;
identify a plurality of parameters received in the initial NAS message, and a plurality of parameters received in the N2 message;
determine whether the plurality of parameters received in the initial NAS message match with the plurality of parameters received in the N2 message; and
perform one of:
sending a NAS accept message with indication to the UE in response to identifying that the plurality of parameters received in the initial NAS message match with the plurality of parameters received in the N2 message; or
sending a NAS reject message with an error cause value to the UE to mitigate a man in the middle (MitM) attack in response to identifying that the plurality of parameters received in the initial NAS message do not match with the plurality of parameters received in the N2 message.

### Claim 9 (depends on 8)

The AMF entity of claim 8, wherein the MitM controller is further configured to store at least one of the plurality of parameters received in the initial NAS message and the plurality of parameters received in the N2 message.

### Claim 10 (depends on 8)

The AMF entity of claim 8, wherein a plurality of parameters associated with at least one of the initial NAS message and the N2 message comprise at least one of a tracking area identity (TAI), a closed access group identifier (CAG ID), and a physical cell identifier (PCI).

### Claim 11 (depends on 8)

The AMF entity of claim 8, wherein the initial NAS message is protected based on a NAS security context.

### Claim 12

A user equipment (UE) in a wireless network, comprising:
a memory;
a processor; and
a man in the middle (MitM) controller, operably connected to the memory and the processor, configured to:
receive a system information block (SIB) from one of a genuine base station and a fake base station, wherein the SIB comprises the at least one of a tracking area identity (TAI), and a closed access group identifier (CAG ID);
include the at least one of the TAI and the CAG ID in an initial non-access stratum (NAS) message, wherein the at least one of the TAI and the CAG ID is selected by one of the genuine base station and the fake base station based on a signal strength of the one of the genuine base station and the fake base station; and
send the initial NAS message with the at least one of the TAI and the CAG ID to an access and mobility management function (AMF) entity.

### Claim 13 (depends on 12)

The UE of claim 12, wherein the MitM controller is further configured to:
receive at least one of a NAS accept message and a NAS reject message from the AMF entity; and
perform one of:
detecting that the UE is camped on the genuine base station in response to receiving the NAS accept message from the AMF entity, or
detecting that the UE is camped on the fake base station in response to receiving the NAS reject message from the AMF entity and performing at least one action to mitigate the MitM attack.

### Claim 14 (depends on 12)

The UE of claim 12, wherein the MitM controller is configured to:
perform a cell-reselection procedure, and select a suitable cell other than a current cell,
enter a 5th generation mobility management (5GMM) deregistered limited service state or a 5GMM deregistered public land mobile network (PLMN) search state,
perform a radio resource control (RRC) re-establishment procedure in the suitable cell, and
perform a registration procedure for a mobility registration and a periodic registration update from the suitable cell.
