Method and device for authenticating a primary station - Patents.com

By verifying multiple system information messages and inferring a local time reference, the method effectively filters out fake base stations, enhancing network security and ensuring freshness of messages, thus protecting against impersonation attacks in wireless communication networks.

JP7550960B2Active Publication Date: 2024-09-13KONINKLIJKE PHILIPS NV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023507647
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2021-06-08
Filing Date
2021-08-04
Publication Date
2024-09-13
Estimated Expiration
2041-08-04

AI Technical Summary

Technical Problem

Existing wireless communication networks are vulnerable to attacks where attackers impersonate primary stations (e.g., base stations) by using fake base stations (FBS) to conduct denial-of-service attacks, obtain private user data, perform man-in-the-middle attacks, and disrupt network operations, as current security measures are insufficient in detecting and mitigating such threats.

Method used

A method for secondary stations to enhance security by receiving and verifying multiple system information messages from primary stations, checking the validity of signatures, and inferring a local time reference to filter out fake base stations using time reference information from primary stations with valid signatures, thereby ensuring freshness and authenticity of messages.

Benefits of technology

This approach significantly enhances the network's resilience against fake base station attacks by accurately identifying and filtering out impostors, ensuring the secondary station obtains correct timing information for network operation and maintaining network security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007550960000008
    Figure 0007550960000008
  • Figure 0007550960000009
    Figure 0007550960000009
  • Figure 0007550960000010
    Figure 0007550960000010
Patent Text Reader

Abstract

The present invention relates to a method for a secondary station in a cellular network to obtain a time reference for verifying the freshness of received messages, the method comprising the steps of receiving a plurality of system information SI messages from a plurality of primary stations, the SI messages each containing respective time reference information for a corresponding primary station, checking the validity of the received signature for each of the primary stations, checking a cell identifier for each primary station with a valid signature, ignoring time reference information from a primary station with a cell identifier that is identical to and has an earlier value than those from other primary stations, and inferring a local time reference from one or more of the time reference information originating from the primary stations with valid signatures.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to the field of wireless communications, and in particular to security aspects of communications between primary stations, e.g. base stations, and secondary stations, e.g. terminals or mobile stations, forming a network and other entities present in such a network, such security entities. [Background technology]

[0002] In wireless networks, terminals connect to the network to exchange data. Security is very important, especially for wireless devices where no physical interaction is required to access the network. Wireless networks must thus implement several measures to be able to exclude devices that are not allowed on the network.

[0003] A traditional attack involves an attacker impersonating an entity of the wireless network, in particular a primary or base station. Thus, many countermeasures aim at authenticating the identity of the various entities of the network.

[0004] 3GPP is an organization in charge of standardizing global solutions for mobile telecommunication systems. Telecommunication systems developed under the 3GPP partnership are no exception. In particular, in 5G, security measures are being discussed to enhance network security.

[0005] In these telecommunication systems shown in Fig. 1, secondary stations 100 act as terminals or end devices (also referred to as user equipment UE in 5G). The secondary stations have access to various types of services, including voice and data services, through primary stations 110 acting as base stations (also referred to as gNB in ​​5G) deployed in the field. Each primary station 110 serves and communicates with secondary stations 100 present in an area also referred to as a cell 111. The primary stations are connected to a Core Network (CN) 120, which controls the telecommunication system, coordinates the transmission of services and is managed by a network operator.

[0006] As mentioned above, an attacker can masquerade as a network entity, such as a primary station, by using a "fake" base station (FBS) to attack secondary stations in many ways. The FBS acts as a proper primary station managed by the network operator and aims to attract UEs with different goals, such as: - Conduct a DoS attack. - Obtain private user data. - Conducting Man-in-the-Middle (MitM) attacks and follow-on attacks (e.g. aLTEr, imp4gt, network misconfigurations, etc.). - Conducting authenticated relay attacks. - Conduct self-organizing network poisoning attacks. - Sending false official warning information.

[0007] Annex E of 3GPP TS 33.501 already describes how the network performs "UE-assisted network-based detection of fake base stations" using information sent in measurement reports in RRC_CONNECTED mode.

[0008] One solution currently being discussed by 3GPP consists in the implementation of a signature generator 121 as part of a Digital Signature Network Function (DSnF) that is part of the core network 120 and can protect broadcast messages, in particular to ensure source authentication. Thus, as shown in Fig. 2, when the primary station 110 has to broadcast system information it sends a request 201 to the core network 120, which forwards a corresponding request 202 to the signature generator 121. The signature generator 121 then calculates 203 a corresponding signature and provides the primary station 110 with a signed message 204 that is broadcast at a later point in time 205 through the core network 120.

[0009] 3GPP is currently investigating the issue of FBS and discussing different solutions. One of the solutions that is receiving more attention and support is the implementation of a Digital Signature Network Function DSnF that is part of the CN and can protect broadcast messages (origin authentication). When a gNB has to broadcast system information, it sends a request to the DSnF, which provides the gNB with a signed message that is broadcast at a later point in time.

[0010] In a 5G-like network, the overall process proposed for a UE is thus as follows: i) Scan the frequencies. ii) Removing or ignoring configuration messages such as System Information (SI) messages that have duplicate PCIs (Physical Cell Identifiers), i.e. point to the same cell identifiers, meaning that at least one of them is a fake base station. iii) Obtain configuration messages (e.g., MIB / SIB). iv) Checking the signature associated with the configuration message. v) Check whether the time marker indicates that the message was actually sent recently to determine the freshness of the message. This is useful in the case of a message that was originated by a real primary station but repeated or relayed (usually once tampered with) by a fake base station. vi) If the UE does not have a concept of time or if the freshness check fails, it uses information from multiple cells to check the consistency of time.

[0011] However, this protocol presents some weaknesses that can be used by an attacker. In particular, it is possible to exploit one of the countermeasures against the system. For example, if an attacker uses several fake base stations with the same identifier (e.g. PCI) as a real base station, both the real base station and the FBS are excluded. It is then enough for the attacker to add another FBS with a different identifier, which becomes the only available option for the UE in the cell. Such a UE then uses false information provided by the FBS, for example a false time once in operation, which makes the freshness check useless. Summary of the Invention [Problem to be solved by the invention]

[0012] One object of the present invention is to alleviate the above-mentioned problems.

[0013] Another object of the present invention is to provide a method that allows an attacker to increase the difficulty of accessing or impersonating an entity in a network.

[0014] Yet another object of the invention is a secondary station that is able to detect a false base station and ignore its messages. [Means for solving the problem]

[0015] Thus, according to a first aspect of the invention, a method is proposed as claimed in claim 1 for a secondary station in a cellular network to obtain a time reference. According to this first aspect, the method comprises: receiving a plurality of system information (SI) messages from a plurality of primary stations, each of the SI messages including respective time reference information for a corresponding primary station; checking the validity of the received signature for each of the primary stations; checking a cell identifier for each primary station having a valid signature and ignoring time reference information from a primary station having a cell identifier that is identical to and has an earlier value than those from the other primary stations; The method includes the step of inferring a local time reference from one or more of the time reference information originating from primary stations having valid signatures.

[0016] In this way, any fake base station using an existing identifier can be initially ruled out by not deleting configuration messages originating from a primary station with the same identifier before signature verification. In this way, it is no longer possible for an attacker to make a secondary station rule out a real primary station by this check. As a result, this allows the secondary station to obtain the correct timing information required for the freshness check once it is operational in the network.

[0017] In a first variant of the first aspect, the time reference information is at least one of a time offset representing the difference between a clock value at the primary station and a clock value at a signature generator of the network, a clock value at the primary station, and a clock value at the signature generator.

[0018] This makes communication of time efficient in terms of overhead, since it can be coded as a deviation (or offset) from the already available time of the primary station.

[0019] In another variation of the first aspect, the step of inferring the local time reference includes calculating an average from multiple time reference information originating from primary stations having valid signatures and having no overlapping cell identifiers with previous times.

[0020] This therefore allows for a reduction in time errors or deviations, which also makes attacks more difficult since the calculated times are only partially based on fake base stations, and a larger number of them should be practically harmful.

[0021] In yet another variation of the first aspect of the invention, the step of inferring the local time reference comprises selecting the time reference information having the most recent value originating from a primary station having a valid signature.

[0022] This variation thus uses the most recent time as indicated by various verified primary stations, thus helping to prevent a bogus base station from using an old time value to replay past messages and pass the freshness criteria once in operation.

[0023] Furthermore, according to another aspect of the invention, which can be used independently or in combination with the first aspect and its variants, a secondary station, upon initial connection to the network, sends a request for a time reference, said request being directed to the signature generator; The request for a time reference includes a randomly generated number used as a nonce, receiving a time base and a nonce, the time base and the nonce being signed with a nonce signature; Checking the authenticity of received messages using the nonce and the nonce signature; A method is proposed for the secondary station, which comprises configuring a clock at the secondary station using a received time reference.

[0024] In a variation of this aspect of the invention, the request is part of an initial radio resource communication (RRC) setup request message, or the request is part of a NAS identity response message sent in response to a network access stratum (NAS) identity request.

[0025] This aspect of the invention can be used in combination with the first aspect of the invention to make the system even more robust against attacks, but offers the advantage of early integration. Thus, this solution does not leak secondary station information, even though it adds some steps to the radio resource control (RRC) setup procedure and state machine at the primary station.

[0026] In a variant that can be used in combination with all previous aspects of the invention and their variants, the received signature is checked using at least one of the following algorithms: Public Key Infrastructure PKI algorithm, Boneh-Lynn-Shacham, BLS signature algorithm, Boneh-Gentry-Lynn-Shacham, BGLS signature algorithm, Elliptic Curve Digital Signature Algorithm ECDSA, Falcon signature algorithm, Rainbow signature algorithm, and Large Multivariate Short Signature GeMSS algorithm.

[0027] According to a second aspect of the invention, a secondary station as claimed in claim 9 is proposed, comprising: a receiver adapted for communicating in a network and adapted to receive a number of system information SI messages from a number of primary stations, each said SI message including a respective time reference information associated with a corresponding primary station; a controller configured to check the validity of the received signature for each of the primary stations, check a cell identifier for at least each of the primary stations having a valid signature, and ignore time reference information from a primary station having a cell identifier that is identical to and has an earlier value than those from the other primary stations; The controller is adapted to infer a local time reference from one or more of the time reference information originating from primary stations having valid signatures.

[0028] In this way, any fake base station using an existing identifier can be initially ruled out by not deleting configuration messages originating from a primary station with the same identifier before signature verification. In this way, it is no longer possible for an attacker to make a secondary station rule out a real primary station by this check. As a result, this allows the secondary station to obtain the correct timing information required for the freshness check once it is operational in the network.

[0029] It is noted that the above apparatus may be implemented based on a discrete hardware circuit having discrete hardware components, an integrated chip, or a chip module, or based on a signal processing device or chip controlled by a software routine or program stored in a memory, written onto a computer readable medium, or downloaded from a network such as the Internet.

[0030] It shall be understood that the method of claim 1 and the secondary station of claim 9 have similar and / or identical preferred embodiments, in particular as defined in the dependent claims.

[0031] It shall be understood that a preferred embodiment of the invention may also be any combination of the dependent claims or the above embodiments with the respective independent claim.

[0032] These and other aspects of the invention will be apparent from and elucidated with reference to the embodiment(s) described hereinafter. [Brief description of the drawings]

[0033] [Figure 1] 1 is a block diagram, already described, representing a cellular network in which the present invention can be implemented; [Diagram 2]FIG. 1 is the already described logical time diagram illustrating the message exchange according to the protocol proposal. [Diagram 3] 1 is a flow chart illustrating a method according to a first embodiment of the present invention. [Figure 4] 5 is a flow chart illustrating a method according to a second embodiment of the present invention. [Diagram 5] FIG. 2 is a block diagram illustrating a secondary station according to a first embodiment of the present invention. [Figure 6] 5 is a flow chart illustrating a method according to a third embodiment of the present invention. [Figure 7] 10 is a flow chart illustrating a method according to another aspect of the third embodiment of the present invention. [Figure 8] FIG. 10 is a block diagram illustrating a secondary station and a signature generator according to a third embodiment of the present invention. [Figure 9] 10 is a flowchart illustrating a method according to another aspect of the fourth embodiment of the present invention. [Figure 10] FIG. 11 is a time diagram illustrating a protocol for the transmission of successive messages and corresponding signatures according to a fourth embodiment of the invention. [Figure 11] FIG. 11 is a time diagram illustrating an alternative protocol of successive messages and corresponding signatures according to a variant of the fourth embodiment of the present invention. [Figure 12] FIG. 13 is a block diagram showing a network according to a first example of the fifth embodiment. [Figure 13] FIG. 13 is a block diagram showing a network according to a second example of the fifth embodiment. [Figure 14] FIG. 13 is a block diagram illustrating a network according to a sixth embodiment of the present invention. [Figure 15] FIG. 11 is a time diagram illustrating an alternative protocol for successive messages and corresponding signatures according to a further embodiment of the present invention. [Figure 16] FIG. 11 is a time diagram illustrating an alternative protocol of successive messages and corresponding signatures according to a variant of this further embodiment of the invention. [Figure 17] 11 is a flow chart illustrating a protocol for system information protection according to yet another embodiment of the present invention. [Figure 18] 11 is a flow chart illustrating a protocol for system information protection according to yet another embodiment of the present invention. [Figure 19] 11 is a flow chart illustrating a protocol for system information protection according to yet another embodiment of the present invention. [Figure 20] 11 is a flow chart illustrating a protocol for system information protection according to yet another embodiment of the present invention. [Figure 21] 11 is a flow chart illustrating a protocol for system information protection according to yet another embodiment of the present invention. [Figure 22] 11 is a flow chart illustrating a protocol for system information protection according to yet another embodiment of the present invention. [Diagram 23] FIG. 1 is a block diagram illustrating three types of MitM devices and a specified attack scenario using a MitM device. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0034] As seen above, the present invention can be implemented in a cellular network, for example as a 5G network. As seen with respect to Fig. 1, such a cellular network comprises a number of terminals or secondary stations 100, which are mobile devices (or UEs) moving from one network cell to another 111. Each cell 111 is served by a primary station 110 (or gNodeB) which forms the interface between the secondary stations 100 and the core network 120.

[0035] Thus, the secondary station 100 communicates with the primary station 110 over various wireless channels, an uplink (from the secondary station to the primary station) and a downlink (from the primary station to the secondary station). Other wireless channels may exist, for example between secondary stations (e.g., sidelink channels) and between primary stations (e.g., the X2 interface), but are not depicted for simplicity in Fig. 1. Although embodiments of the present invention are applicable to these interfaces as well, we focus the following part of the description on the link between the secondary station and the primary station.

[0036] To allow secondary stations to connect to the network, the primary station 110 broadcasts some configuration information over the cell 111. This configuration information includes a Master Information Block (MIB) and a System Information Block. First, the MIB is a message broadcast periodically (e.g., every 80 ms) that contains all the necessary information to allow decoding of the next SIB.

number

[0037] Once the secondary station has the MIB, it can decode several system information blocks that can be sent periodically (e.g. every 80 ms, 160 ms) or on request from the secondary station. These SIBs describe the operation and parameters of the network. To improve the security of the entire network, it is proposed to add a digital signature to these SIBs to prevent anyone from impersonating the primary station. A digital signature is a technique that binds an entity to digital data. This binding can be independently verified by the receiver as well as any third party. Thus, a digital signature is a cryptographic value that is calculated from the data and a private key that is only known by the signer. The data in this case corresponds to the payload carried in the SIB itself. With this signature, the secondary station can have the assurance that the message belongs to the primary station.

[0038] In the 5G example, one available option is for a digital signature generator in the core network 120 to generate and provide a signature to the primary stations 110 for each message upon request from these primary stations. Another option is for a digital signature generator to be included in each of the primary stations. This solution would reduce the load on the digital signature generator in the core network, since it can be used for at least some of the messages.

[0039] One of the aspects of these signatures is to ensure that the signature was not added by a third party, for example an attacker replaying the message and impersonating the real primary station. To avoid this, a freshness value is added to the signature to ensure that it was generated recently. Thus, one option to verify the freshness of the information is by synchronizing clocks to check that the information is not too old. The time is based on the time possessed by the signature generator (DSnF), and the secondary station (UE) must know this time. This time may be different from other times available to the secondary station or from the time available to the primary station. However, this requires that the secondary station and the entity generating the signature are somehow synchronized.

[0040] From a network-wide perspective, the operation of the signature generator (DSnF), the primary station (gNB), and the secondary station to handle the time difference may be as follows. - When the primary station sends a signature request to the signature generator for at least some of its parameters, e.g. its static parameters, i.e. parameters that remain unchanged during a long interval, the primary station includes its own time. The primary station and the signature generator then run a time protocol (such as the Simple Network Time Protocol SNTP) to correct timing errors due to delays in message transmission or different local times. The signature generator signs the time difference between the primary station's clock value and the signature generator's clock value, e.g. the gNB_DSnF_time_difference field. This value should not deviate significantly over time, so it is a static field unless the difference between the clocks deviates by more than a threshold value.

[0041] Typically, the times should remain synchronized for long intervals. If this assumption does not hold, the primary station again requests the signature generator to sign the time difference. The signature generator may then include in each signed message the latest static time difference with the primary station as well as the current time.

[0042] During operation, the primary station periodically broadcasts a signed message containing the time difference between the primary station and the signature generator. The primary station's time may be broadcast in the system information block 9 SIB9 or in other system information messages. To reduce communication overhead, this time may also be included in SIB1. The time in SIB9 may include UTC time and GPS time, which can be calculated as GPS time (in seconds) = timeInfoUTC (in seconds) - 2,524,953,600 (seconds) + leap seconds, as defined in SIB9. Alternatively, it may include a signed time owned by the signature generator (DSnF).

[0043] Upon receiving the timing information in SIB1 and SIB9, the secondary station gets the signature generator time and checks if the received message is too old, i.e. not older than the signature validity period, e.g. less than the System Frame Numbering / Hyperframe Numbering (SFN / HFN) period (2 hours 54 minutes 45 seconds). In other words, a signed message is only valid for about 3 hours.

[0044] In the absence of other time sources, this time is used to synchronize the clocks of secondary stations once they join the primary and establish a secure connection with the core network. The time distributed by the primary provides a synchronization error of about 10 ms, which is sufficient for the purpose of secure broadcast of system information. In practice, MIB and SIB1 are distributed with a periodicity of at least 80 ms. Once a device joins a trusted primary and has access to the trusted signature generator's time, a) Devices should further improve their time synchronization using standard techniques. b) Thereafter, the device will not update its time unless it detects that it has lost synchronization for other reasons.

[0045] Furthermore, since the time precision may not be sufficient or an attacker may be able to replay old signed messages from a valid primary station, the secondary station requires an external source of data to further verify its time. The following options are feasible: - If the signature generator has a GPS associated time and this association is known, the secondary station can obtain the time. However, not all devices have a GPS unit or reception of a GPS signal is possible in some locations. - In the absence of a time reference and before joining any primary station, the secondary station can learn the SI broadcasted from several primary stations, check their similarity and take the latest time. This has the problem that an attacker may place several fake base stations so that the secondary station gets the wrong time. Another problem arises if the secondary station rejects a primary station with a duplicate cell identifier (PCI) before any signature verification. This entails additional challenges in addition to the fact that the duration of the cell selection process can be long, since the process cannot be finished until all frequencies have been scanned. If this is done, the attacker will only advertise fake base stations that are duplicates of real base stations, i.e., the secondary station will not fully consider good time measurements from those primary stations, since signatures are not required with the same PCI. In this case, the secondary station should first check the signature and reject system information that is not properly signed. After this step, if there is system information broadcasted from two different primary stations with the same PCI, the secondary station should take the value with the latest system information. If there are several primary stations broadcasting system information that are correctly signed and close in time, for example within 80 ms, the approach is to take the highest time as the correct one. However, this may mean that the primary stations are slightly out of sync.Another approach is for the secondary stations to calculate the time as the average of the received times.

[0046] Thus, according to a first embodiment of the present invention, it is proposed that the secondary station derives a time reference for maintaining synchronization based on signals obtained only from validly signed primary stations, as shown in Fig. 3. To do this, the secondary station 100 first receives, in step S301, a number of system information SI messages from a number of primary stations 110, for example serving all neighboring cells. These SI messages each contain respective time reference information for the corresponding primary station. This time reference is typically the clock value at the signature generator at the time of signing the message or the clock value of the primary station at the time of sending the SI message. The time reference may be combined with a timing mapping reference that allows the secondary station to calculate the absolute time based on the system frame number and / or subframe number in which the SI message was sent.

[0047] In step S302, the secondary station checks the validity of the received signature for each of the primary stations. Primary stations whose signature is not found to be valid are then ignored for the calculation of timing information. In step S303, the secondary station then checks the cell identifier of each of the primary stations with a valid signature and ignores the time reference information from primary stations with a cell identifier that is identical to another primary station. For example, primary stations with an earlier value than a primary station sharing the same cell identifier are excluded. This means that in step S303, the secondary station compares the cell identifiers of all primary stations. If there are duplicated cell identifiers, the secondary station assumes that the primary station showing the previous time value and the duplicated cell identifier is a fake base station replaying a past message.

[0048] In step S304, the secondary station infers a local time reference from one or more of the time reference information originating from the primary stations with valid signatures. In this way, the secondary station can trust the remaining primary stations after filtering out the fake base stations in steps S302 and S303, and obtain a time reference based on the inferred time to which the secondary station can synchronize its own clock, at least for the purpose of checking the freshness of received messages.

[0049] As mentioned above, the time reference information is the clock value at the primary station or the clock value at the signature generator. Alternatively, the time reference may be a time offset representing the difference between the clock value at the primary station and the clock value at the network signature generator. In this way, the secondary station can subsequently infer the clock value of the signature generator from the clock value of the primary station or from the system frame number of the message.

[0050] The calculation of the local time reference in step S304 is performed by calculating the average of some or all of the time reference information originating from primary stations that have a valid signature and that have no overlapping cell identifiers with the previous time. It may be advantageous to prefer the first few of the detected primary stations, for example based on some priority or trust credit (for example based on hardware or firmware version). Alternatively, step S304 involves selecting the time reference information with the most recent value originating from a primary station that has a valid signature but no overlap with the previous time.

[0051] 5 is a block diagram illustrating a secondary station 500 according to a first embodiment of the invention. The secondary station comprises a communication unit 501 including a receiver 502 and a transmitter 503 adapted to communicate in a network, for example a 5G cellular network.

[0052] The receiver 502 comprises at least one antenna or an antenna array with multiple antennas. The receiver is adapted to receive messages sent from multiple primary stations. Such messages may be messages of system information SI for the configuration of the secondary station communication unit 501 in the communication network. These SI messages each contain respective time reference information related to each primary station. The secondary station 500 also comprises a controller 504 for controlling the operation of the secondary stations. The controller is a computer programming unit or other combination of hardware and software. The controller 504 is configured to check the validity of the received signature for each of the primary stations and to check a cell identifier for at least each of the primary stations with a valid signature. The controller 504 then ignores time reference information from a primary station whose cell identifier is identical to another primary station and has an earlier value than that from the other primary stations. Finally, the controller 504 infers a local time reference from one or more of the time reference information originating from the primary stations with a valid signature.

[0053] In a second embodiment, which can be implemented independently of the first embodiment but may also be combined with the first embodiment, it is proposed that the secondary station has direct access to the signature generator time. When the secondary station first connects to a network, for example a 5G system, and / or if there is no trusted time and / or after being offline for a long period of time, the secondary station can join the primary station even if the time verification check is wrong. In this case, the first action performed by the secondary station is to directly access the signature generator time. No other actions need to be performed before this happens. For this purpose, the secondary station can initiate a secure time request connection with the core network. In the first message of the time request connection, the secondary station includes a nonce (for example a randomly generated value of 128 bits or more) to ensure the freshness of the handshake. The secondary station also starts a local timer. This message does not need to be secure from the secondary station's point of view. This message is forwarded to the signature generator (DSnF), which signs the current time and the received nonce. The message is then sent to the secondary station through the primary station. When the message is received, the secondary station checks the validity of the signature and the presence of a nonce so that it knows that this message is not replayed and is new. The secondary station can check if it accepts the message if the timer does not exceed a given value, for example 20 ms. The secondary station then corrects the received signature generator time by adding timer / 2. Given this time, the secondary station can proceed to check the validity of the signed system information and the time. If the received system information is up to date, it can join the primary station. If it is not up to date, the secondary station disconnects from the primary station. An alternative to the above handshake is to do another secure time synchronization protocol with the signature generator to contain its time. The risk of this protocol is that it can be exploited by an attacker to flood the signature generator with many time requests, which may be blocked in a different part of the system, for example the primary station, if a given threshold (amount of requests per second) is exceeded.

[0054] This protocol can be integrated into the early RRC setup procedure. The approach is to include the nonce in the RRCSetupRequest. The signed answer from the signature generator is included in the RRCSetup message by the primary station. The advantage of such early integration is that no information is leaked to the secondary station. However, it makes the RRC setup procedure and state machine at the primary station more complicated. Alternatively, the nonce may be included in the NAS Identity Response message sent by the secondary station as an answer to the NAS Identity Request. When the core access and mobility management function (AMF) receives a message with this nonce, the AMF forwards it to the signature generator for time signing. The answer should be provided before or at the same time that the AMF sends a NAS authentication request to the secondary station. In this way, the secondary station can verify the time and the primary station certificate before engaging in any further communication.

[0055] Thus, as seen above, in a second embodiment described herein with reference to Figure 4, which can be implemented in combination with or independently of the first embodiment, the secondary station also sends a request for a time reference in step S401 on initial connection to the network, said request being addressed to the signature generator. This request may optionally be forwarded by the primary station to the signature generator if this signature generator is in a separate entity from the primary station. The request for a time reference includes a randomly generated number used as a nonce created by the secondary station.

[0056] In step S402, the secondary station receives a response message including a time reference and a nonce. The time reference and the nonce are signed with a nonce signature created by a signature generator. The secondary station then checks the authenticity of the received message using the nonce and the nonce signature in step S403. Finally, the secondary station uses the received time reference to configure a clock at the secondary station.

[0057] In this embodiment, the request is part of an initial Radio Resource Communication RRC Setup Request message or a NAS Identity Response message sent in response to a Network Access Stratum NAS Identity Request.

[0058] It should be noted that in any of the previous embodiments, the received signature is created by the signature generator using at least one of the following algorithms: Public Key Infrastructure PKI algorithm, Boneh-Lynn-Shacham, BLS signature algorithm, Boneh-Gentry-Lynn-Shacham, BGLS signature algorithm, Elliptic Curve Digital Signature Algorithm ECDSA, Falcon signature algorithm, Rainbow signature algorithm, and Large Multivariate Short Signature GeMSS algorithm. Similarly, the secondary station verifies the validity of the signature using the corresponding algorithm.

[0059] Furthermore, in addition to the above solutions, if the signature generator relies on time from a trusted external source (e.g., time from a current NIST beacon or known reference source), the secondary station can get the current time directly if it has a different type of connectivity, e.g., WiFi. The signature generator itself may have a known API that may be known / pre-configured to the secondary station so that it can access the time source whenever it has access to the Internet.

[0060] According to a third embodiment, which can be used in combination with or independently of any of the first and / or second embodiments, it is proposed to use different signatures depending on the type of parameters contained in the system information block. Indeed, it has been recognized that some parameters contained in the configuration messages are static and are unlikely to require frequent updates. In this way, it is possible to sign the static parameters once and to reuse the obtained signature for the following messages.

[0061] In fact, current solutions do not take advantage of the fact that some fields in the System Information Block (SIB) remain static while others keep changing. The currently used option is to always sign everything. However, this can be inefficient.

[0062] Therefore, according to a first example of the third embodiment, it is proposed to calculate the signature as follows: DSA(HASH(HASH(fixed_field)|changing_field)) Here, DSA is a digital signature algorithm, e.g., ECDSA, and HASH is a hash function, e.g., a hash, a hash chain, or a Merkle tree. The fixed_field is a field that may contain one or more parameter values ​​whose values ​​are essentially static. By static, we mean that changes to this static parameter configuration are unlikely to occur, e.g., because they are tied to the ground configuration of the cell. Conversely, the changing_field contains parameter values ​​that are typically more dynamic, likely to be adjusted periodically, e.g., based on the current load or interference conditions of the cell.

[0063] This approach also reduces communication overhead, since the fixed fields do not need to be submitted to the signature generator for every single message. Instead, it can communicate which fields remain constant, for how long, and the values ​​of the fields that change. Similarly, when communicating with the signature generator, the primary station has no choice but to send HASH(fixed_fields). Obviously, this carries the risk that the signature generator will not have a chance to verify the system information. This verification can be done by the signature generator once, and in subsequent iterations, the signature generator can only check that the hash of the fixed fields does not change.

[0064] Similarly, the signature may be calculated for each MIB and SIB. However, it may also be calculated over several blocks of SI, including, for example, MIB, SIB1, SIB2. A single signature is obtained for both MIB and SIB1, which form, for example, the MSI, at the secondary station. The signature itself may be included in SIB1, and to verify the signature, both MIB and SIB1 need to be obtained. This is actually advantageous, since the MIB is very small and it is unlikely that a long signature will fit. However, it is important to verify the information transmitted in the MIB. Similarly, other information, such as the PCI, may also be verified. In one example of this embodiment, the detected PCI, MIB and SIB1 may be concatenated and signed together. The resulting signature may be included in SIB1.

[0065] Similarly, the signatures could be located in a new SIB that is obtained on demand by the secondary. This helps address backward compatibility and reduces communication overhead since they are only exchanged on demand. In this case, the secondary can send a request to the signature generator for signing, including the nonce forwarded by the primary. This approach ensures the freshness of the signed information.

[0066] Similarly, signatures may be computed at the root of a Merkle tree whose leaves are different SIBs. In this way, it is possible to verify different SIBs individually while minimizing overhead. SIB1 contains the root of the signed Merkle tree. When a device requests a different SIB, it is verified at the root of that Merkle tree.

[0067] Thus, according to a third embodiment, illustrated in FIG. 6, a method for checking the authenticity of a set of information is proposed, comprising: In step S601, at a secondary station, at least one configuration message is received from a primary station, the configuration message including a number of fields for respective parameters; Step S602 comprises receiving at the secondary station a received signature for authenticating the configuration message from the primary station. Steps S601 and S602 may be performed in a single step, for example if the signature of the message received in step S601 is attached. However, it is also possible that a single signature is used to sign multiple messages. In such a case, the signature is sent after or at the end of these messages. Indeed, the step of receiving at least one configuration message may include receiving multiple configuration messages, the received signature authenticating the multiple configuration messages.

[0068] The method of the third embodiment includes, in step S603, obtaining a first hash value based on a first subset of fields, the first subset of fields being one or more first fields associated with a parameter having a static value; In step S604, applying a second hash operation on a combination of the first hash value and the second subset of fields to obtain a second hash value, the second subset of fields consisting of one or more second fields associated with a parameter having a variable value; Step S605 further includes verifying the received signature based on the second hash value to authenticate the received configuration message.

[0069] In one example of the third embodiment, step S605 is performed by comparing the received signature with a signature derived from the second hash value to authenticate the received configuration message.

[0070] This embodiment therefore allows reducing the amount of messages that the signature generator has to sign, and also reduces the computational burden on the secondary station, since a stronger signature algorithm can be used to sign the static parameters of the configuration message, while still maintaining at least the same level of protection.

[0071] It should be noted that the step S603 of obtaining the first hash value also involves retrieving a previously calculated first hash value stored in the secondary station's memory. In fact, the first hash value may have been calculated for an initial message and reused for each of the subsequent constituent messages. This avoids recalculating this first hash value multiple times.

[0072] Indeed, for an initial message carrying (new) static parameters, the step S603 of obtaining a first hash value comprises applying a first hash operation on a first subset of fields to obtain a first hash value and storing the first hash value for subsequent use.

[0073] In a variation of this third embodiment, in step S603, it may be determined whether a valid stored first hash value exists in the memory of the secondary station, and if a valid first hash value exists, such first hash value may be retrieved from the memory. Otherwise, the secondary station may apply a first hash operation on a first subset of fields to obtain a first hash value, and if a valid first hash value does not exist, store the first hash value in memory for subsequent use. In such a variation, the first hash value is considered valid if one or more of the following conditions are met: the time elapsed since its generation falls below a validity threshold, the identity of the primary station is authenticated, and the primary station is the currently serving primary station.

[0074] Such a validity threshold may be signalled from the primary station or may be equal to the periodicity of some system information message.

[0075] In step S604, the method of the third embodiment includes deriving a derived signature by applying a digital signature algorithm on the second hash value.

[0076] As in the previous embodiment, the digital signature algorithm is the Elliptic Curve Digital Signature Algorithm (ECDSA).

[0077] In a further aspect of the third embodiment shown in FIG. 7, a method for generating a signature for authenticating a set of information is proposed, the method comprising: In step S701, at least one configuration message for configuring the secondary station with a signature generator is received from the primary station, said configuration message including a number of fields for each parameter. The signature generator then obtains a first hash value based on a first subset of the fields in step S702, the first subset of the fields consisting of one or more first fields being associated with parameters having static values. The signature generator can then apply a second hash operation on a combination of the first hash value and a second subset of the fields in step S703 to obtain a second hash value, the second subset of the fields consisting of one or more second fields being associated with parameters having variable values, and generate a signature derived from the second hash value to authenticate the configuration message. Alternatively, this step may be performed in the primary station after receiving the first hash value.

[0078] In step S704, the signature generator sends the signature to the primary station.

[0079] In such a case, the step of obtaining the first hash value may include the following: receiving a first hash value from a primary station; retrieving the previously calculated first hash value stored in a memory of the secondary station; or The method includes one of applying a first hash operation on a first subset of the fields to obtain a first hash value.

[0080] The structure of such a secondary station and digital signature entity is shown in Fig. 8. On Fig. 8, a secondary station 801 comprises a communication unit 802 including a receiver 803 adapted to receive at least one configuration message from a primary station, where said configuration message includes a number of fields associated with respective parameters. The receiver is also configured to receive from the primary station a reception signature for authenticating the configuration message.

[0081] The secondary station also includes a controller 804 configured to obtain a first hash value based on a first subset of the fields, the first subset of the one or more first fields being associated with parameters having static values. The controller is a computer programming unit or other combination of hardware and software. The controller can perform a second hash operation on a combination of the first hash value and a second subset of the fields to obtain a second hash value, the second subset of the one or more second fields being associated with parameters having variable values, and then verify a received signature based on the second hash value to authenticate the received configuration message.

[0082] The signature generator 811 of Fig. 8 is adapted to generate a signature for authenticating a set of information. In particular, the signature generator 811 comprises a receiver 812 adapted to receive from a primary station at least one configuration message for configuring a secondary station, said configuration message comprising a number of fields related to respective parameters. This receiver 812 typically comprises an antenna or an antenna array connected wirelessly to the primary station. However, the signature generator can be part of the core network, so that this communication unit is for example hardwired based on an Ethernet or optical fibre connection linking it to the primary station. Furthermore, in a variant of this embodiment, it is possible for the signature generator to be present in the primary station itself. In such a case, the receiver is a logical receiver that receives packets from the upper layers and is processed by the signature generator 811.

[0083] The signature generator comprises a controller 813 for deriving a first hash value based on a first subset of fields, the first subset of fields consisting of one or more first fields being associated with parameters having static values. The signature generator controller 813 can apply a second hash operation on a combination of the first hash value and a second subset of fields to obtain a second hash value, the second subset of fields consisting of one or more second fields being associated with parameters having variable values. The controller is configured to generate a signature derived from the second hash value to authenticate the configuration message.

[0084] Finally, the signature generator comprises a sender 814 that sends the signature to the primary station. As seen before, in a variation of this embodiment, the signature generator can reside in the primary station itself. In such a case, the sender is a logical sender that sends the packet to the lower layers of the primary station.

[0085] According to a fourth embodiment of the invention, which can be implemented independently or in combination with the previously discussed embodiments, a method is proposed for checking the authenticity of a set of information in which different signature verification algorithms are selected depending on the time.

[0086] Indeed, when considering, for example, efficient quantum-resistant signature algorithms, it is important to realize that currently known quantum-resistant (QR) signature algorithms are bulky, either in their public keys, their signatures, or both. As a comparison, one must consider that the Master Information Block (MIB), as seen before, has a total size of 23 bits, and that SIB1 (SI message) is limited to a maximum of 2976 bits at the physical layer. This maximum physical size limits the applicability of most of the available QR algorithms. In fact, GeMSS and Rainbow are the only viable quantum-resistant options with signature sizes between 34 and 64 bytes long, assuming that their very bulky public keys can be pre-configured on the end device. Moreover, further scrutiny may reduce or even break the efficiency of these solutions.

[0087] This fourth embodiment details a more efficient and potentially quantum-resistant solution. The proposed signature solution is based on a combination of a strong (QR) Digital Signature Algorithm (DSA) and a lightweight DSA. The strong (QR) DSA can be, for example, an ECDSA using a long key equivalent to AES128 or higher. The lightweight DSA can be an ECDSA using a small key that is strong enough to sign information in a short period of time. Alternatively, the lightweight DSA can be based on a lightweight signature algorithm based on a hash chain. This example is the method used in the rest of the description, but it can be replaced by an ECDSA with a short key or other DSA combinations.

[0088] According to a fourth embodiment, a method for checking the authenticity of a message as described in Fig. 9 is proposed. Such a method comprises a step S901 of receiving at a secondary station a sequence of configuration messages from a primary station. In step S902, the secondary station receives for each configuration message at least one corresponding signature. Alternatively, a single signature may be used for a set of configuration messages (e.g. MIB+SIB1). In step S903, the secondary station selects at least one digital signature algorithm from a set of digital signature algorithms depending on a time reference. This means that depending on the instant, one or the other DSA algorithm is selected and used to verify the received messages.

[0089] Then, in step S904, the secondary station verifies the received signature based on the selected digital signature algorithm, and optionally uses a public key to verify the received signature.

[0090] In a first variant of the fourth embodiment, the first digital signature algorithm is selected more frequently than the second digital signature algorithm. For example, shorter signatures are used more frequently, since they reduce overhead. Then, longer signatures are used with a longer periodicity. As another example, the first signature algorithm is less complex than the second digital algorithm. This means that the first algorithm requires less computational power to generate and / or verify a signature than the second algorithm. In one example, the periodicity with which the second algorithm is used is equal to k times the configuration period. This configuration period is, for example, the periodicity of a variable parameter. The second period may be, for example, the SFN period. The second algorithm may be ECDSA. The first signature algorithm is based on a hash, for example a hash chain, which is used with a shorter interval if the second signature algorithm is not used. Alternatively, the first signature algorithm is always included, meaning that if the second algorithm is used, the configuration message includes two signatures.

[0091] Additionally, it should be noted that a preferred variation of the fourth embodiment is that the message in the second period may include a signature of fields that remain static during the second period, one of those fields being the public key used to verify the configuration message sent with the configuration period, as in the third embodiment.

[0092] Thus, as seen previously, the configuration message may be sent periodically with a configuration period, and a second digital signature algorithm is selected periodically once every second period, where the second period is a multiple of the configuration period, said multiple being at least 2. The first digital signature algorithm is selected otherwise or for each message.

[0093] The first algorithm may be based on at least one of the following: a hash chain algorithm, a Boneh-Lynn-Shacham, a BLS signature algorithm, a Boneh-Gentry-Lynn-Shacham, a BGLS signature algorithm, and the second algorithm may be at least one of the following: an Elliptic Curve Digital Signature Algorithm ECDSA, a Falcon signature algorithm, a Rainbow signature algorithm, and a Large Multivariate Short Signature GeMSS algorithm. In a specific exemplary implementation, the first algorithm is an Elliptic Curve Digital Signature Algorithm ECDSA, and the second algorithm is also ECDSA, but the first algorithm uses a shorter key than the second algorithm.

[0094] As discussed above, the third embodiment may be combined with this embodiment in the following way: the configuration message thus includes a number of fields associated with respective parameters. In this example, the first digital algorithm of the digital signature algorithm includes a step of obtaining a first hash value based on a first subset of fields, the first subset of fields consisting of one or more first fields being associated with parameters having static values.

[0095] A second hash operation is then applied on a combination of the first hash value and the second subset of the fields to obtain a second hash value, the second subset of the fields consisting of the one or more second fields being associated with parameters having variable values. Further, the second digital algorithm of the digital signature algorithm includes applying the first hash operation to obtain a value based on the first subset of the fields, the first subset of the fields consisting of the one or more first fields being associated with parameters having static values.

[0096] Concerning various digital signature algorithms, a natural choice is to choose ECDSA as the signature algorithm, as specified in the FIPS186-4 specification. Some other solutions, which allow shorter signatures, batch verification, and pre-computation of the signature process, are based on bilinear maps. However, ECDSA and solutions that rely on bilinear maps are likely to be used for a limited time only due to the advent of quantum computers. Furthermore, despite the use of ECDSA and its relatively good performance, public key cryptography is still more expensive than simple symmetric key operations. It has been reported in the literature that the calculation of a hash chain with 10000 links takes 14 milliseconds, and the verification of an ECDSA224 signature takes 6.81 milliseconds.

[0097] Therefore, the signature solution proposed in the fourth embodiment is based on (hash chain based) TESLA and (QR)DSA. TESLA describes a secure broadcast approach that allows source authentication afforded by the hash chain HC. At time i, we can compute a message authentication code (MAC) for message m as MAC(m,h_{ni}), using h_{n}<-h_{n-1}<-h_{n-2}<-...<-h_{0}, where h_{ni}.

[0098] where h_{i+1}=hash(h_{i}). The value h_{ni} is revealed at time i+1, so that the receiver (1) the previously received MAC, and (2) The previously received MAC can be verified by checking whether the received h_{ni} is equal to hash(h_{ni-1}).

[0099] h_{0} is the seed of the HC from which all values ​​are derived. h_{n} are trust anchors that need to be distributed to all devices in a secure and trusted manner.

[0100] This fourth embodiment integrates a hash chain approach into a 5G DSnF system as follows. The signature generator has both the seed of the hash chain and a suitable DSA, e.g. ECDSA or QR DSA, public / private key pair. The primary station gNB and the signature generator DSnF run a protocol to synchronize their clocks so that DSnF knows the current time of the primary station and can correct any communication delays. The primary station gNB can request the MAC of a message at time i on demand from the signature generator. The signature generator uses the hash chain link to efficiently compute the corresponding MAC that is transmitted to the base station. Note that these communication flows can be done in advance. The signature generator uses the time synchronization protocol to know any potential time differences between the clocks included in the signed message.

[0101] The primary station can then broadcast the signed system information provided by the signature generator to the secondary stations at an appropriate time thereafter.

[0102] The signature generator distributes the hash chain elements h_{ni} used at time i to all subscribed primary stations, which then further broadcast them to the secondary stations. The first flow of data can be on-demand, i.e., when source-authenticated information needs to be signed so that it can be broadcast later. The second flow of communication, where the hash chain elements are disclosed, requires strict synchronization.

[0103] In the context of 5G, it is known that MIB and SIB1 are broadcast at 80 / 160 ms intervals. Thus, the signature generator must distribute the next hash chain element with the same frequency, which is broadcast to all UEs as part of the SI. For example, the minimum system information (MSI=MIB+SIB1) is considered to be protected in this manner, as shown in FIG. 10. Note that time i can represent, for example, a 160 ms slot in this case. At time i+1, the link of the hash chain used to calculate the previous MAC is opened. This means, for example, that all messages within a 160 ms interval use the same hash chain link. Such a hash chain approach is shown, for example, in FIG. 10, which represents a sequence of configuration messages and their corresponding signatures.

[0104] If the secondary station keeps track of blocks of system information and is initialized with the anchor of the hash chain, then the verification is very fast, since a single hash calculation is needed to verify the previously received hash value. If the secondary station is new to the system, it needs to receive and verify the HC anchor first. Distributing it after the initial NAS handshake is not an option, since it could mean that the UE joins the FBS. Thus, avoiding the actual Digital Signature Algorithm (DSA) does not seem feasible. A very suitable option is to have a combination of a conventional signature algorithm and a hash chain.

[0105] Once every long interval seconds (which could be, for example, every 10.24 seconds, the duration of a system frame number), the signature generator signs the next hash chain anchor with the Digital Signature Algorithm (DSA) and distributes it to the primary station, which broadcasts it to all secondary stations.

[0106] Periodic MIB / SIB1 are signed by MAC following a hash chain approach at short intervals. This is shown in Figure 11, where DSA signed anchors are distributed at time 1. This approach combines hash chain and digital signature algorithms. In this approach, when a secondary station joins a primary station serving a cell, it needs to obtain the hash chain anchor and verify the signature. This causes a small delay, but then the CPU performance is greatly improved since the verification is based on a simple hash. If the signature generator owns both the private key and the seed of the hash chain, the secondary station can obtain a hash chain anchor that can be valid for multiple primary stations. This therefore reduces the resource requirements when a secondary station scans multiple primary stations.

[0107] Note that a different approach is to split the signing capabilities between the signature generator and the primary station in a kind of public key substructure where the signature generator is at the top and the primary station is signed by the signature generator. The signature generator is in charge of signing with a second signature algorithm the anchor of the hash chain used during the long interval. Once this signing is done, DSA can also check that the anchor corresponds to a known seed known only to the primary station (this requires confidentiality in the exchange between the signature generator and the primary station). The signature generator signs once all the parameters that remain static during the long interval. The signature generator provides the primary station with the signed anchor and the signed fixed parameters. During the long interval, the primary station keeps broadcasting these fixed parameters as shown in Figure 11. The signing of any dynamic parameters or SIBs requested on demand is done by the primary station based on the hash chain approach. This approach is very suitable for situations where the secondary station can request specific SIBs (SIB2 to SIB5) on demand and strict time synchronization is required.

[0108] When both the digital signature algorithm and the hash chain approach are used, the signatures of the static fields of several SIBs (e.g. PCI, MIB, SIB1, SIB2, etc.) can be located in SIB1 or in the new SIB. When included in the new SIB, this SIB can be sent on demand to the secondary station, reducing energy consumption. The remaining SIs (e.g. SIB1, SIB2, etc.) contain MACs calculated with the hash chain based approach, which allows fast verification of the dynamic fields.

[0109] It should be added that a hash chain with 10000 links can be generated in 14 ms. For SFN and HFN long intervals, 2^20 links are required. This takes 1.46 s. For SFN long intervals, this is about 1.4 ms. Since only the links of the hash chain are disclosed every 80 ms, the time to generate the hash chain is 18 ms and 0.175 ms. Thus, it is concluded that the hash chain approach is feasible. Since the DSA signature is included more frequently than the SFN interval, the anchor of the hash chain can be obtained faster and the validation of the static parameters can be performed more frequently. The primary station can send a request to the signature generator to sign the static parameters every long interval, during which the primary station continues to broadcast the signature of the fixed parameters and can sign the dynamic parameters by itself using the hash chain based approach.

[0110] Note that if DSA with bulky signatures is available, or if a PKI with bulkier certificates is required to verify the public key, the DSA signature can be fragmented into multiple messages for the purpose of signing a single anchor. For example, each SIB1 can contain a 64-byte fragment, and if the length of the signature+certificate signing a 32-byte anchor is 1600 bytes, the signature+certificate can be split into 25 consecutive messages. It could be a single new SIB or have a fragmentation field indicating the fragment number. If a new message is broadcast every 160 ms, then a long interval is at least 4 seconds long. Nevertheless, this approach ensures that every single message can be signed and verified when the secondary station obtains the anchor (faster verification), making the verification faster.

[0111] In the above example, if the secondary does not yet have the anchor, it must wait 4 seconds before it can start verifying all messages. Alternatively, the system could broadcast the signatures of both the new and old anchors. This would allow the secondary to start receiving packets, e.g. starting with h_(ni), pre-verify them with a hash-based approach, and as soon as it receives the old anchor h_0, it can calculate the ni hash and complete the verification.

[0112] To avoid a potential attack where the secondary station is not sufficiently time synchronized with the signature generator and an attacker tries to exploit this situation by recording and replying messages while abusing the exposed HC link, the system can be strengthened by including hashes of messages protected with the HC approach as inputs to messages signed with the DSA algorithm, which means that an attacker cannot freely use and misuse those values.

[0113] Thus, broadcasted anchors can be part of different hash chains, i.e., have two different seeds, or intermediate links in the same hash chain separated by n hash operations. To determine if this is the case, the hash anchor is encoded using the following format: 0XYZ...XYZ (new anchor for new hash chain) 1XYZ...XYZ (the new anchor corresponding to the intermediate link in the previous hash chain)

[0114] where XYZ...XYZ correspond to the actual hash value, i.e., h_(ni). This distinction is important so that if a secondary station has already been listening to the primary station for some time, the verification of a new anchor, which is an intermediate link in the previous hash chain, can be done faster with a single hash operation.

[0115] According to a fifth embodiment, which may be combined with the previous ones or may be implemented separately, it is proposed to determine the location of the primary station with which the secondary has made contact and to verify whether this location coincides with a reference location of this primary station.

[0116] More specifically, in some of the proposed solutions, the signature generator performs primary station verification by: 1. Obtain a public key trust anchor. 2. Eliminate overlaps in cell scanning, scanning frequency, and PCI. 3. Verify the digital signatures and filter out those with incorrect signatures. 4. Validate the time counters, filter out those with old timers.

[0117] However, this approach has several drawbacks. First, it requires the setup of a trust anchor. Furthermore, it directly excludes duplication of physical cell identifiers (PCIs), which means that if an attacker advertises a fake base station with the same PCI or poor connectivity in the area, it will cause a denial of service attack. The secondary station may not scan everything or may simply miss some information due to interference during scanning. We also recognize that the physical location is not currently checked. This location is a parameter that must be verified and checked by the secondary station to make sure that the attacker does not rebroadcast the information at a different location. Similarly, even if digital signatures are used, the private key can be compromised in the same way that the certificate authority's private key was compromised. If this happens, the attacker can still place a fake base station publishing system information signed with the compromised private key.

[0118] In this fifth embodiment, it is thus proposed to solve these problems. In order to avoid the problem of filtering out base stations with duplicate identifiers, in addition to or instead of the solution of the first embodiment, it is possible to use location information derived from data broadcasted at the physical layer. One advantage of this embodiment is that this can happen even before the MIB and SIB are processed (and the digital signature verified). For example, if two signals with the same cell identifier come from different locations and the secondary station (a) knows that the primary station is located in one of them, but does not know the primary station in the other location, the secondary station can filter out the primary station whose location does not match the known location.

[0119] In particular, the secondary station also has access to location information of the primary station. Thus, according to a fifth embodiment, a method for verifying the identity of a primary station is proposed, the method comprising receiving at least one signal at the secondary station. The secondary station then determines location parameters based on said received signal. The determined location parameters are then compared with reference location parameters linked to the identity of the primary station to determine whether the primary station is trustworthy.

[0120] In this way, the secondary station can determine whether a received signal is likely to originate from the site of a real primary station, making the attack more difficult since the physical location may rule out some, if not all, of such an attacker's fake primary stations.

[0121] In a first variant of the fifth embodiment, determining the location parameters comprises estimating a radiation pattern of the primary station, and comparing the determined location parameters with a reference location parameter comprises comparing the estimated radiation pattern with a reference radiation pattern of the primary station. In such a case, the secondary station may take its own location into account to determine the reference radiation pattern.

[0122] In one example of this first variant of the fifth embodiment, the estimation of the radiation pattern by the secondary station comprises counting the number of radiation beams detected for the primary station. The secondary station then compares this number of radiation beams with a reference radiation pattern in the form of a reference list. Such a reference list contains, for each referenced primary station, the number of radiation beams it is using or the maximum number of beams it can use. The enumerated reference list contains the identity (e.g. PCI) of the primary station. It may also contain the location (e.g. GPS coordinates) of the referenced primary station.

[0123] It should be noted that this above method can also be used by the UE in very adverse deployment scenarios and has the advantage that the similarity check can be done without needing dense information from the base station related to the expected radiation pattern (e.g. radiation pattern for every point in space around the base station (1 mm, cm, m increments)). Also, the similarity check of the radiation pattern does not require knowledge of the exact location of the base station and the UE, since it consists in simply counting the number of SSB beams present in the base station's broadcast signal. This amount of information is very limited, just the number of SSBs associated with a Physical Cell Identifier (PCI). The PCI is also broadcast as part of the synchronization block. Based on this information, which the UE can receive out of band or in a secure manner when it first connects to the network, the UE can: a) The UE scans for cells reading the SSB and PCI. b) The UE checks the number of expected SSB beams for that PCI based on the radiation information deployed to the UE. c) The UE checks that the measured number of SSBs matches the expected number of SSBs for that PCI.

[0124] In this variant, the reference radiation pattern is obtained from a database of the primary stations. For example, application mast data provides this data. Another possibility is that mutually trusting network operators exchange the locations of the primary stations to create a combined list of primary stations. The primary stations located in the tracking area in which the secondary stations are located are stored in the secondary station. If, upon receiving the MIB and SIB1, the secondary station determines that the location of one of the primary stations with the duplicated cell identifier does not match the expected location, the secondary station has no choice but to exclude that primary station.

[0125] Alternatively, the secondary station may collect radiation patterns and report them to a known primary station, which, optionally in coordination with the network, checks the received radiation patterns. This can be done single radiation patterns at a time, or it may include a preliminary step in which the secondary station collects multiple radiation patterns over a period of time and reports them (in whole or in repetition) to the known primary station. The location of the secondary station corresponding to each measured radiation pattern may be included.

[0126] In a further example of this variant, which can increase the accuracy and robustness of the check, the location of the primary station can be estimated in addition to (or instead of) the number of emitted beams by taking into account that the primary station uses different beams emitted in different directions and broadcasts a synchronization signal using different identifiers as shown in Figure 12. In particular, 5G supports the estimation of the location of the primary station using different beams emitted in different directions and broadcasting a synchronization signal using different identifiers as shown in Figure 12. SSS = {0,1,...,335} and N PSS = {0,1,2}, 3N SSS +N PSSIt supports up to 1008 PCIs calculated as: where SSS refers to the secondary synchronization signal identifier and PSS refers to the primary synchronization signal identifier. PSS and SSS are transmitted as part of a synchronization signal block (SS block). SSBs are transmitted in batches by forming SS bursts (one SSB per beam) that are used during beam sweeping by changing the beam direction for each SSB transmission. The maximum number of SSBs in an SS burst is frequency dependent and can be 4 (below 3 GHz), 8 (3-6 GHz), or 64 (6-52.6 GHz). The periodicity of the SSBs is configured by the network and is the default transmission periodicity for initial cell selection, whereas the SS burst set periodicity is default at 20 ms for all frequency ranges, i.e., 2NR frames. The primary station defines multiple candidate locations for the SSBs within the radio frame. Each SSB radiated in different directions can be identified by a unique number called the SSB index, and which SSB's identity is detected depends on where the secondary station is located. The secondary station can measure the signal strength of the demodulation reference signal (PBCH DMRS) of each SSB it detects over a period of time (the duration of one SSB set). From the measurement results, the secondary station can identify the SSB index with the strongest signal strength. This SSB with the strongest signal strength is the best beam for the secondary station.

[0127] If the secondary station knows the normal radiation pattern of the primary station (number and / or direction of SB#) and its own location (e.g., by GPS), measures the primary station, and has information about the PCI, then the best SB and relative received power can indicate whether the primary station is real or false.

[0128] In Figure 12, an attacker places an FBS targeted at UE1. Since UE1 utilizes the technique used in this part of the invention, the FBS must redirect its beam so that UE1 receives the same transmission signature, so beam 1201 is pointed at it. Although the FBS is well targeted at UE1, other UEs (e.g., UE2) can still distinguish between the real BS and the FBS because the radiation pattern changes.

[0129] Assuming that the secondary station knows its location and radiation pattern (in which direction the different beams of the base station point when broadcasting SSBs with different identifiers), it can derive what the expected received radiation pattern should be. Typically, the secondary station 1200 has an omni-directional antenna. For example, if the secondary station knows its location, that beam 1201 points towards it, beam 1203 goes in the opposite direction, and beams 1202 and 1204 go in a perpendicular direction, the secondary station 1100 can expect a maximum signal strength for beam 1201, a minimum for beam 1203, and an intermediate value for beams 1202 and 1204. The expected relative signal strength scan can be derived from the antenna gain distribution for the different beams given the specified position of the secondary station 1200, since its relative position can be calculated, and with it the gain of the antennas pointing towards the secondary station 1200 for the different beams can be calculated. Now this expected signal can be compared to the received signal by calculating the cross-correlation. If the signals are aligned the maximum value should be near zero. If the cross-correlation outputs a maximum value far away from zero, the primary station can be classified as a potential false base station.

[0130] While this method does not always guarantee or prevent an attacker from attacking designated target secondary stations, it can reduce the number of devices addressable by the FBS to a significantly smaller percentage, reducing the overall risk.

[0131] The above method using radiation patterns is described when the UE is in IDLE mode and the UE acquires the SI of the base station. This method can also be applied during the operation phase (CONNECTED mode) complying with KI#3 in TR33.809 as follows. During operation, the UE can also track the gNB beam it is using for its communication. For example, at 1 minute intervals, with 10 second increments, the UE may have seen the following beams while the UE is moving: [B_1, B_32, B_32, B_19, B_45, B_45]

[0132] The UE can collect these beam statistics and timing (e.g., UTC time) and send them in a protected manner to the gNB. The gNB can then compare whether the beam used to communicate with the UE is the same as the beam the gNB actually used. If a MitM is in place, this is unlikely to be the case, so the gNB detects the presence of a MitM.

[0133] In an extension of this embodiment, the secondary station, e.g., UE, sends a report of collected physical information to the core network. This report can be seen as an extension of Annex E of TS33.501 for UE-assisted network-based detection of fake base stations. The network can combine information of multiple secondary stations (UEs) including the UE location and received radiation pattern signals to estimate where the base station and fake base stations are located.

[0134] The UE can report the beams measured at a given time and location. For example, the following data is included in the UE report to the network: for each time t_i, the location of UE l_i, and the set of measured beams. A given beam B can include a PCI identifier, a beam index number, and a measured power. Such a report is denoted as follows: {{{t_0}{l_0}{B_0_0,...,B_0_n0}}, {{t_1}{l_1}{B_1_0,...B_1_n1}}, ... {{t_k}{l_k}{B_k_0,...,B_k_nk}}}

[0135] Note that the above indicates the beam index (SSB index) used during cell acquisition. The above could also indicate the beam index used during operation.

[0136] Since the core network has information from multiple UEs, it can use this information to determine the presence of a fake base station, even if it is targeting a specified area. For this purpose, the core network recreates the map of measurements for the beams associated with a given base station, e.g., SSB index, at cell acquisition. If the fake base station tries to spoof the identity of another base station at a nearby location, it will create an unexpected radiation pattern. The location of the fake base station can be roughly determined by finding the geometric center of the measured beams.

[0137] Note that if the UE moves and wants to change gNBs, the UE can do a handover. During the handover process, the UE can inform the current gNB to which it is connected about its preferred target gNB, including reporting the signal strength of the different beams / gNBs as received by the UE. The current gNB can check if this measured radiation pattern of the different beams / gNBs is as expected. The current gNB may also know the UE's location and inform at this stage what the expected radiation pattern is, so that the UE can cross-check what is expected in the measured radiation pattern. If an anomaly is detected, the UE can inform the gNB (if the detection is on the UE's side) or the gNB can inform the UE about such an anomaly and indicate that a different target gNB / beam is preferred.

[0138] Note that an attacker running a fake base station at location L_FBS and spoofing the identity of a real base station at location L_RBS may try to prevent the UE from detecting it by placing a beam with a given SSB index at the same location where the real base station uses that same beam index. Such a UE under such an attack may not be able to detect the attacker since it measures the beam index it is supposed to measure. However, even such an attacker cannot hide if the UE and the CN are collaborating. For example: If a fake base station wants to avoid being discovered as described in the last paragraph by measurements reported by all UEs, it has no choice but to use its designated beams. If the fake base station uses more beams, other UEs at other locations are likely to reveal its presence as described above. However, if the fake base station uses a single beam in SSB, the UE will also become suspicious since it knows the number of beams the base station uses during cell acquisition.

[0139] In particular, the network triangulates the signals to estimate the base station's position. The UE can also report other positioning information from the base station, such as positioning reference signals (PRS), such as signal strength or angle of arrival, as described in solution 22 in TR33.809-v0.10.0. If the network detects the presence of a fake base station, it can inform the UE of its presence so that the fake base station can be filtered out. The network can also take further actions.

[0140] The process can therefore be summarized as follows:

[0141] [Table 1]

[0142] However, it should be noted that if the network informs the UE and the UE acts on this information about the FBS, e.g., by excluding base stations, the UE is vulnerable to certain types of attacks. In particular, an attacker can exploit this aspect to attack the system. In particular, Fake Data Attack: If an honest base station does not broadcast its positioning information, e.g., PRS, an attacker can implement an FBS that rebroadcasts its signal, including this PRS, causing the UE to communicate false positioning information to the network. This false information will make the network believe that the honest base station is in a wrong location and will falsely classify the honest base station as a fake. · Replayed data attack: If a fake base station simply rebroadcasts the signal of an honest base station, the UE will also capture the inconsistent positioning signal, which will cause the network to falsely classify the honest BS as a fake.

[0143] In such a situation, the operation of the network and of solution 22 in TR33.809-v0.10.0 is adapted in the following manner. · Solution for false data: The network must know what information the base station really broadcasts (e.g. PRS, yes or no) and take it into account when deciding if the base station is false or not. If the network is sure that the base station does not broadcast the information, this measurement report from the UE should be deleted by adding a new step between steps a) and b) above where the network checks if the base station broadcasts the type of received information, otherwise the data is deleted. At this stage the network can infer either that the UE is under attack or that a malicious node is broadcasting false information from the base station. In case of a malicious UE, if multiple UEs in the same area report the same information, it can be discarded. Solution for regenerated data: if the reports contain conflicting information about the same base station, e.g. radiation patterns leading to the same base station but mapped to at least two different locations, the network should partition the network into different base stations that are suspected to be involved with an attacker running one or more FBSs. This partitioning is done in step b1) above.

[0144] Thus, more generally, the previously discussed embodiments can be adapted to include estimating a radiation pattern of the primary station and comparing the estimated radiation pattern with a reference radiation pattern of the primary station. Furthermore, upon determining that the radiation pattern does not match the reference pattern, determining the location of the potential false primary station based on the determination can include. Optionally, determining the location of the potential false primary station includes comparing the index of the beam contained in the radiation pattern with a reference. Although it is advantageous to perform these steps on the network side (or in a designated dedicated entity) based on measurement reports from the UE, some or all of these steps can also be performed by the UE.

[0145] In a further variation, an entity (possibly located in the network or in the primary station) receives measurement reports containing some indication of the estimated radiation pattern, and the entity analyses the received measurement reports containing some indication of the radiation pattern to determine whether a false primary station is present in the network. This determination may be made by comparison with a reference radiation pattern, or by monitoring changes over time, or by cross-checking measurement reports from several different UEs.

[0146] Additionally, it is an option for the secondary station to monitor PBCH parameters when estimating the radiation pattern, which may include, by way of example, measuring the strength of the PBCH DMRS for each SSB.

[0147] An alternative or complementary solution is to keep a log of primary stations in a well-known database, which may be denoted as a Base Station Log (BSLog) or multiple databases operated by multiple parties. One option is to build this Base Station Log based on information possessed by the network operator, which knows the location and configuration of the base stations. Secondary stations can then request BSLog information of nearby primary stations.

[0148] A further option is to build a public BSLog where users can submit measurements or where scanned base stations and network operators can publish available base stations. Such databases exist even if they do not seem to be widely extended. An example of them is mast data. If such a BSLog exists, the UE can add an extra guarantee by verifying whether the estimated position of the primary station matches the location of this primary station contained in the BSLog. Since the decision of the secondary station depends on the contents of the BSLog, it is fundamental that the BSLog is trusted. The trust can be increased if there are several BSLogs that can be externally audited. To avoid the BSLog manipulating its entries, the entries can be combined by a Merkle tree, a verification tree whose root is public. This makes sure that the BSLog cannot modify a particular entry at a later point in time. This technique is used with certificate transparency as specified in rfc6962. Another option is to use some type of blockchain technology. In this way, the information submitted to the BSLog can be used to verify and estimate the location of the primary station by taking into account the submitted signal strength and SB measurements. For example, in the following case: o UE1 131 measures a given radiation pattern 1311 (Figure 13) at location (x=0, y=0). This indicates which beam is heading towards UE1 131. o UE2 132 measures a given radiation pattern 1321 (Figure 13) at location (x=2X, y=0). This indicates which beam is heading towards UE2 132. With this information, UE1 131 and UE2 132 together can determine if a BS is between them at x<0 or x>2X.

[0149] BSLog can then determine that given an estimate for the location of BS1, which matches, the measurements reported by UE1, UE2 and any other UEs match, taking into account the measured signal strengths and directions as well.

[0150] The UE does not have to transmit their measurements immediately or always, but can transmit them with a certain delay to protect privacy, and can also add some noise to the measured radiation pattern to protect privacy.

[0151] The above can also be extended with the use of digital signatures. In this case, the BSLog will only accept measurements from the BS that contain a valid digital signature. Similarly, when the UE receives SI from the BS, it checks if the received SI, including the public key used, matches the information available in the public BSLog.

[0152] The above discussion is about a fake base station, defined as a base station run by an attacker. Another concept of a fake base station is described in "SteaLTE: Private 5G Cellular Connectivity as a Service with Full-Stack Wireless Hiding", available online from February 10, 2021 at https: / / arxiv.org / abs / 2102.05606. In this attack, the UE and the base station may have some designated hardware.

[0153] The system information broadcast by the base station can be replayed by, for example, a MitM device. There are different types of MitM attackers: A. RF repeaters are devices placed by an attacker between the UE and the gNB. They rebroadcast RF signals between the UE and the gNB without processing the messages. This RF rebroadcast is assumed to occur without incurring significant communication delays that could affect, for example, time synchronization and allocated communication resources between the UE and the gNB. RF repeaters are considered active attackers because they may be used to create a communication link between the UE and the gNB that may be dismantled at a later point in time, causing a denial of service attack. B. MitM is a device consisting of a fake base station (FBS) and a fake UE (FUE) placed by an attacker between the UE and the gNB. The MitM device forwards messages, rather than simply rebroadcasting them. This means that the FUE and FBS must handle uplink and downlink communications to receive, process, and retransmit messages. The MitM can also inject and modify messages. Message forwarding and processing is assumed to incur communication delays that affect, for example, time synchronization between the UE and the gNB. A standard MitM device is an active attacker, since it can inject, modify, and drop messages. C. Stealth MitM is a device consisting of a fake beam and an FUE placed by an attacker between a UE and a gNB. A fake beam is a base station beam that mimics one of the beams of a gNB in ​​a location where the coverage of this gNB beam is low or absent. In this way, the UE connects to the stealth MitM and hides. From this point of view, this attack can be considered as a simpler version of the physical signal overshadowing attack on LTE. This active attacker is called stealth because it can hide itself better than the standard MitM, and the attacker can send a specified fake beam in a location close to the real gNB without being noticed by the UE or CN when they check the expected gNB PCI or the associated beam number.

[0154] These three types of MitM devices are shown in Figure 23. Figure 23 also shows a specified attack scenario using stealth MitM.

[0155] Figure 23 - MitM device and attack scenario using Stealth MitM: The attacker places a fake beam with SSB=3 in an area reached by a gNB's beam with SSB=1. SSB=3 is also a valid beam, but in a different area, it is not feasible to detect the attack by just checking the PCI.

[0156] In the case of a stealth MITM attacker, the above attack can be mitigated if the gNB signs the SSB and the UE verifies it. The verification step may include checking the location where the SSB is received.

[0157] In the case of an attacker using an RF repeater, the UE may monitor whether a strong signal of a gNB keeps appearing and disappearing while the UE remains static. When this situation occurs, this may indicate that the attacker is using the RF repeater to disrupt the operation of one or more UEs (DoS), for example by switching the RF repeater on, waiting for the UE to join through it, and then switching it off. Thus, according to yet another embodiment, the secondary station considers lowering the preference level of the primary station upon determining that said primary station may be unreliable. The determination includes determining that the base station is switching on and off for a period of time. Thus, in a variation of this embodiment, the UE monitors the synchronization signal of a gNB that follows such a pattern, and if such a pattern is detected, the UE lowers the priority of the gNB, in other words, reduces the preference to join such a gNB, even if its transmission power suddenly becomes much better again. This detection algorithm may be useful considering the following. o Whether the UE is moving or not: If it knows that the UE is moving, this may be the cause of the changing received signal power. The detection algorithm may make an exception in such a case and still retain high priority for such gNB. o Whether the received gNB synchronization signal belongs to a mobile base station. If so, this could be a source of changing received signal power. The detection algorithm could make an exception in such cases and still retain high priority for such gNB.

[0158] Thus, more generally, a method can be proposed for a secondary station to detect suspect devices in its vicinity, the method comprising the secondary station detecting changes in link characteristics from a target device over a period of time, the secondary station determining that the target device is suspicious if the changes in link characteristics are inconsistent with the location of the secondary station over said period of time.

[0159] Similarly, a secondary station is proposed that includes a receiver coupled to a controller adapted to detect changes in link characteristics from a target device over a period of time, and the controller of the secondary station determines that the target device is suspicious if the changes in link characteristics are inconsistent with the location of the secondary station over the period of time.

[0160] In one example, the link characteristic is the strength of the link with the target device.

[0161] In another example, a secondary station reports the presence of a suspect device to a known primary station, the reporting including a location estimate of the suspect device.

[0162] In another variant of the fifth embodiment, the location parameter is determined by checking whether the encryption key used by the primary station corresponds to an encryption key that is authorized for local use. In a further variant, the signal is a configuration message from the primary station at the secondary station, the configuration message including at least a signature for authenticating the configuration message. In this case, the secondary station authenticates the configuration message by: - Check whether the private key associated to the public key needed to verify the message is authorized to sign configuration messages in the secondary station's current location or current PLMN. - If authorized, verify the signature.

[0163] In this variant, the public key of the signature generator is also associated with the specific rights of the private key, for example the right to sign the system information of base stations at a specific location only. Thus, next to checking the validity and timing of the signature, the secondary station must also check whether the private key used to create the signature has the right to be used at the current location. For example, if the UE has the public key of a Chinese network operator and detects a base station that needs that key to verify the SI of the base station when the UE is in the United States, the UE should block that base station. This ensures that an attacker cannot, for example, compromise the operator's private key and use it to create a fake base station at another location. Similarly, multiple pairs of public and private keys can be used by the network operator, each pair associated with a different location. This limits the possibility of a wide range of attacks.

[0164] To address this, the cell traversal procedure can be extended to check the location-related signing rights of the private key (in the pseudocode below).

number

[0165] Similarly, it is recommended that signature generators use multiple key pairs for different locations to reduce the impact in case of a security breach. A secondary station can check if the correct key pair is being used in the current location.

[0166] As for verifying the access rights associated with the public key (e.g., the public key is authorized to verify information at a given location, the public key is authorized to verify SI from a given PLMN, etc.), it can be done before or after the signature verification. Doing it before the signature verification has the advantage of being faster and more energy efficient, as is the freshness verification.

[0167] In relation to the various embodiments discussed above, a key challenge concerns the provisioning of the trust anchor in the secondary station. This concerns the public key used to verify the signed information. The first option consists in installing this information when the secondary station first joins the core network. This means that the first connection may be prone to a fake base station, but this risk disappears later. This is a good solution if a single public and private key pair is used by the operator. However, if the operator wants to use multiple key pairs, it becomes more difficult to use, for example in some locations. This also becomes a challenge when the public key is only valid for a given period of time.

[0168] In this refinement, the public / private key pair at the signature generator is not signed and embedded in the certificate, e.g., considered as signed by a CA. This is a natural extension for cases where it is desirable to allow secondary stations to connect through primary stations managed by multiple network operators.

[0169] A second option is to use identity-based signatures where the public key relies on some known parameters including the operator and the location. The first parameters can be derived from the information available in SIB1 as follows:

number

[0170] These parameters include location information such as PLMN identifier, trackingAreaCode, etc., since they identify the owner of the private key. However, this information could be augmented with location information (GPS coordinates) to better determine the location of the primary station, and its mobile behavior, whether it is static or its location changes (e.g., if it is located on a bus). Timing information is not included in the generation of the public key, since it is verified later.

[0171] In the previously discussed embodiments, solutions have been described that focus on avoiding fake base stations. However, another type of attack that the network may fall victim to is the Man-in-the-Middle (MitM) attack. These include relay nodes that can forward the information of a real primary station and go undetected in some of the previous embodiments. It has been proposed to include and sign the Time_Difference field so that a secondary station receiving a message will reject it if the current time is older than Transmission_Time+Time_Difference. However, this is not always sufficient since the value of Time_Difference is difficult to estimate.

[0172] A possible option to avoid MitM attacks is to use signed cell identifiers (PCIs). In this way, primary stations with duplicated PCIs are eliminated. However, this approach also has some challenges. First, the secondary stations may not be able to detect or receive the real base station's signal. For example, as shown in Figure 14, an attacker may use a fake UE with a very sensitive / powerful antenna that allows it to get the primary station's signal that is out of range from the secondary stations. This is the so-called range extension attack. Second, the attacker may just jam the real base station's signal with the secondary stations. And third, as mentioned above, eliminating duplicated primary stations without further checking opens new ways to attack the multi-cell time synchronization method.

[0173] The sixth embodiment thus proposes a much more robust solution. According to this sixth embodiment, the signature generator signs a map between the SFN of the primary station and the time of the signature generator. Furthermore, the clock of the secondary station is strictly synchronized with the clock of the signature generator. If these prerequisites are met, the secondary station receives the signed system information from the primary station, verifies its signature, verifies the time, verifies the SFN value and checks if the broadcasted data was broadcast with the verified SFN value.

[0174] Thus, according to a sixth embodiment, a method for checking authenticity of a configuration message is proposed, the method comprising receiving a configuration message from a primary station at a secondary station, the configuration message comprising: - an indication of the timing correspondence between the clock value at the signature generator and the system frame numbering used by the primary station; - a frame number indication identifying the frame in which the second configuration message was sent; and - a signature to authenticate the configuration message.

[0175] Furthermore, according to the method of the sixth embodiment, the method further includes authenticating the configuration message by: - checking that the frame number indication corresponds to the frame number at which the configuration message was received; - comparing a time of receipt of the configuration message based on the estimated transmission time and the timing support indication; - Validate the signature based on configuration parameter values.

[0176] Alternatively, the method comprises: receiving a first configuration message from the primary station at the secondary station, the first configuration message comprising: - an indication of the timing correspondence between the clock value at the signature generator and the system frame numbering used by the primary station; - a first signature for authenticating the first configuration message; receiving a second configuration message including at least one configuration parameter value, a frame number indication identifying a frame in which the second configuration message was sent, and the received second signature; - checking that the frame number indication corresponds to the frame number at which the second configuration message was received; - comparing a time of receipt of the second configuration message to an estimated time of transmission based on the frame number indication and the timing correspondence indication; and - authenticating the second configuration message by verifying the received second signature based on the configuration parameter value.

[0177] In these embodiments, the first configuration message includes a cryptographic key that is used to authenticate the received second signature. Additionally, as in some of the previous embodiments, the first configuration message includes static configuration parameter values ​​and the second configuration message includes variable configuration parameter values.

[0178] To maintain a high level of security, the first configuration message has a first limited time validity equal to one of the following: the time required for the subframe numbering to span its entire range of values, and the time required for the hyperframe numbering to span its entire range of values.

[0179] In one example of the sixth embodiment, the second configuration message has a second limited time validity equal to one of the following: the time required for a predetermined number of most significant bits of the subframe number to change, the time required for the six most significant bits of the subframe number to change, 160 milliseconds, or 80 milliseconds.

[0180] Similar to the previously discussed embodiments, the second signature is generated or verified by one of ECDSA and a hash chain.

[0181] Some aspects of the general idea of ​​the sixth embodiment may lead to high overhead for the signature generator, since it requires signing the dynamic system frame number field of every primary station. This means that the signature generator needs to sign many messages. This can be optimized, for example, as follows: a) Static fields in the gNB are signed with digital signature parameters to provide long-term security, including: a. Based on the DSnF time, the gNB SFN is equal to 0. This is denoted as reference_SFN_gNB. b. The public key used to validate the dynamic field: current_dynamic_fields_public_key. b) The validity of a signature in a signed static field is equal to 10 seconds 240 milliseconds, i.e., the time it takes for system frame numbering to wrap around. c) The dynamic fields of the primary station are signed with a private key current_dynamic_fields_private_key. This signing key may be unique to the primary station. d) The validity of a signature in a signed dynamic field is equal to a frame multiple, e.g., the time it takes for a new MIB to be broadcast, or for the six most significant bits of the SFN contained in the MIB to change (160 ms). e) The clock of the secondary station is synchronized with the clock of the signature generator.

[0182] If these prerequisites are met, the secondary station receives the following from the primary station: a) The primary station's static system information signed by the signature generator. The secondary station verifies the signature, verifies the time, and obtains the reference_SFN_gNB and the current_dynamic_fields_public_key. b) Dynamic fields signed with the current_dynamic_fields_private_key. The UE may then, for example: 1. Verify the signature, 2. Check the dynamic field SFN, 3. Check whether the received system information was received on the currently verified SFN; 4. Check whether reference_SFN_gNB+10*SFN=current_UE_time (Equation 1).

[0183] This protocol solves the MitM attack for the following reasons: a) If the FBS maintains the same reference SFN time reference as the primary station, the value of SFN in the broadcasted system information cannot be processed without delay and must be changed. b) If the FBS introduces its own SFN reference time, the check in equation 1 will fail.

[0184] This design is robust because it limits the validity of the static fields signature to about 10 seconds, thus avoiding the need for a revocation list. Additionally, it limits the validity of the current_dynamic_fields_public_key. Thus, a lightweight approach can be used.

[0185] Furthermore, we limit the validity of dynamic fields to a few tens of milliseconds, which provides a solution to avoid MitM relay nodes when they replay a message, since the MitM processes the message and sends it again, which takes time.

[0186] If the MitM has the same SFN reference system as the real BS, it will need to change the SFN field in the MIB since it will be sent later, and the verification will fail. However, if the MitM does not change the SFN so that the signature can be verified, the FBS will need to use its own SFN reference time so that the SFN counter matches, which will not match the signed SFN_Reference_time. So the check in equation 1 will fail. The MitM node could wait 10.24 seconds to rebroadcast the information using the same SFN reference time, but this will not work if the signed static field is only valid for this 10.24 seconds.

[0187] Solutions based on signing time counters such as UTC time or SFN require time synchronization. If such time synchronization is not sufficient or difficult to achieve, this solution (and even solutions #7 and #11 in TR33.809-v0.10.0) may still be vulnerable to replay attacks. In this case, the following embodiment can be implemented, which assumes that DSnF signs short-term public and private key pairs for base stations used for a short period of time (e.g., 10.24 seconds). The base station broadcasts the short-term public key together with the system information. a) The base station broadcasts the SI that contains its short-term public key. b) If the UE decides to join the base station, it generates a secret K and a nonce and encrypts both of them with the base station's short-term public key. The UE may also generate a single secret value from which K and the nonce are derived, for example using a key derivation function. The UE sends this information as early as possible in the connection context, for example during a random access procedure. The goal of step b is to agree on a key between the UE and the base station using the base station's public key. The UE may use other algorithms for this purpose, for example Diffie-Hellman key exchange or KEM. c) When the base station receives the encrypted message, it decrypts the message, obtains the nonce and signs it with its short-term private key. The base station sends this message to the UE. The base station sets a key K to be used in combination with the cryptographic CRC technique. In step c, the base station provides proof of receipt of the encrypted key to the UE by signing the nonce. Alternatively, the base station can calculate other authentication tokens, for example, it may use the received nonce to calculate a Message Authentication Code (MAC) with the received key and send this back to the UE for verification: MAC(K, nonce). The UE may also send the least significant bits of this MAC, for example the 32 least significant bits. The UE may also send a hash of the received key. d) Upon receiving the last message, the UE verifies the signature (authenticity) and whether the nonce corresponds to the one sent by the UE to the base station. If these two checks hold, the UE sets a key K to be used in combination with cryptographic CRC techniques or the "Improved Mechanism for Detecting Fake Base Station Attacks" described in the co-pending application referencing 2020P00937EP under priority of EP21150019.4.

[0188] At this point, we have verified that both the UE and the gNB have a common secret. However, there is still a risk that the MitM is in the middle just forwarding the packet. In the next communication between the UE and the base station, the CRC at the MAC layer is replaced by CRC' = MessageAuthenticationCode(CRC | BlockID, K), where BlockID is an identifier that uniquely identifies the resources (time / frequency) used in the communication. This technique follows the idea of ​​cryptographic CRCs, which is explained in more detail below. If the identification of time / frequency resources is achieved with a very fine granularity, the protection achieved will be better. For example, the time should be identified with a time as short as a minislot to make sure that an attacker cannot replay a minislot within the assigned slot. With the MitM in place, the base station will note that the cryptographic CRC verification of the incoming message from the UE fails at the MAC layer. This points to a problem to the base station that can inform the UE, inform the network, and potentially close the communication.

[0189] Note that in the last step d) above, the base station signs with the new short-term private key that has just been replaced. Thus, the UE needs to do two checks, one with the base station's current short-term public key that it has, and if this check fails the UE needs to wait until the newly signed short-term public key is received and then redo the check.

[0190] Note that this procedure is standalone and is also beneficial when the cryptographic CRC is applied standalone, since the UE and the base station can agree on a common key without needing to establish AS security. This solution is also suitable for devices that do not implement Access Stratum (AS) security, such as CIoT devices. Note also that the above procedure can be adapted to solutions #7 and #11 in TR33.8095-v0.10.0 to achieve replay protection.

[0191] For cryptographic CRC, the communication protocol may define a data block on a link between a base station and a user device, the data block comprising a user data and a checksum field, and a checksum for error detection in the user data in the data block. The user device includes a transceiver, a processor, and an integrity unit for providing data integrity of the data block. The processor may be arranged to manage data transfer on the link to the base station using link data relating to a sequence of data blocks across the link, the link data being different for each data block in the sequence. After a certain period of time, the link data repeats, for example because a frame number uses a limited number of bits. The data blocks in such a repeating period are considered as a sequence of data blocks with respect to integrity protection. The processor may further be arranged to derive a secret integrity key shared with the base station.

[0192] The integrity unit is configured to cryptographically process, for each data block, a predetermined portion of the link data and a combination of the checksum for a predetermined one of the checksum fields using a secret integrity key. The cryptographically processed combination is then truncated, if necessary, to a checksum length as defined by the communication protocol, and the truncated cryptographically processed combination, hereinafter simply referred to as the truncated combination, is used for error detection and integrity protection. Conversely, the truncated combination is inserted into the predetermined one of the checksum fields before transmitting the data block and compared with the value in the predetermined one of the checksum fields after receiving the data block.

[0193] The above feature has the following effect: the truncated combination makes it possible to detect transmission and integrity errors by performing the same cryptographic operations at the sender and the receiver and then comparing the results at the receiver. Advantageously, since the truncated combination is inserted into the checksum field that originally contained the checksum, no additional bits are needed to transfer data on the link, as compared to legacy communication systems that do not have such integrity protection, but transmission errors are equally detected, since the same checksum is used at the sender and recalculated at the receiver.

[0194] More specifically, in a communication system, a communication protocol defines a data block on a link between a base station and a user device. The data block has user data and a checksum field, where the checksum is for error detection in the user data in the data block. A cellular network provides wireless communication to mobile devices over at least a geographical area.

[0195] The user device comprises a transceiver arranged to transmit and receive according to a communication protocol, and a processor arranged to manage data transfer on a link to a base station using link data. The link data relates to a sequence of data blocks transferred over the link. The link data is different for each data block in a sequence, but some parts repeat in subsequent sequences. Various examples of such link data have been presented above for an exemplary 3GPP system.

[0196] The processor is further arranged to derive a secret integrity key that is shared with the base station. Various mechanisms for establishing a secret key between two devices are known and may be used to securely exchange such key data.

[0197] Diffie-Hellman is a well-known technique for establishing a secret key between two parties, where communication between the parties to establish the secret key does not reveal any information to third parties about the established secret key. The two parties each use their own public / private key pair and exchange the public keys with each other. Each party can calculate the secret key using its own private key and the other's public key, and possibly other information, such as a nonce (random number) from each party. Each party creates a new key pair every time it does Diffie-Hellman or reuses an older key pair.

[0198] The user device further comprises an integrity unit for providing data integrity of the data blocks, the integrity unit being arranged to perform the following process for each data block: First, the integrity unit cryptographically processes a combination of a checksum for a given one of the checksum fields and a given portion of the link data while using a secret integrity key. The cryptographic process is, for example, an application of a encryption or a hash-based message authentication code (HMAC). Various examples are described below. The checksum is calculated as defined in the communication protocol and is concatenated with a block number or block address and optionally further link data, i.e. a given selection of link data that varies from block to block. Furthermore, such a combination includes padding data or salt. Salt is random data used as an additional input to a cryptographic function that "hashes" data such as a password or passphrase. Salt is closely related to the concept of a nonce. The main function of salt is to defend against dictionary attacks or its hashed equivalent, pre-computed rainbow table attacks. If padding data or salt is used, the value must be shared between the base station and the user device. The values ​​to be used are defined in a specification, e.g. a 3GPP specification. Alternatively, the base station may send the values ​​to be used to the user device, e.g. in a system information block. The values ​​to be used may be the same for all user devices or may be different for each user device. Various examples of suitable variable link data are described below. Then, a bit combination string of the required length is formed to be processed cryptographically.

[0199] Second, the consistency unit truncates the cryptographically processed combination to a checksum length whose length is defined by the communication protocol, such that the truncated cryptographically processed combination now fits into the checksum field of the checksum as originally intended. For example, for an n-bit checksum field, the truncation uses the first n bits, the last n bits, or any predefined selection or permutation of the n bits of the cryptographically processed combination.

[0200] Finally, the integrity unit uses the truncated combination for error detection and integrity protection by inserting the truncated combination into a predetermined one of the checksum fields before transmission. Similarly, while receiving data, the integrity unit uses the truncated combination by comparing the received value in a predetermined one of the checksum fields with the truncated combination as calculated based on the received data and the respective corresponding predetermined link data. If the received value is equal to the newly calculated value, the integrity of the data covered by the checksum is verified, but also ensures that the data is error-free. Otherwise, even in the case of a single bit error or a single modified user data byte, the checksum will be different. From now on, the cryptographically processed combination will be significantly different. So, both transmission errors and intentional modifications of the user data result in different truncated and cryptographically processed combinations. So, the manipulation of the user data during transmission, the so-called man-in-the-middle attack, is detected using the same number of bits from the checksum field. Also, the insertion of extra data by the man-in-the-middle becomes much more difficult, since it is difficult for the man-in-the-middle to guess the correct truncated cryptographically processed combination.

[0201] In a further example of the above embodiment, a mechanism is proposed that uses public key cryptography without requiring strict time synchronization.

[0202] In general, the method of this example is a method for a secondary station to obtain a time reference in a cellular network, the method comprising: receiving a plurality of system information (SI) messages from a plurality of primary stations, each of the SI messages including respective time reference information for a corresponding primary station; checking the validity of the received signature and time reference for each of the primary stations; Exchange keys with one of the primary stations that is determined to be valid, A MitM detection process that is not affected by loose synchronization is used to determine whether the selected primary station is genuine.

[0203] This example also includes a secondary station comprising a transmitter and a receiver, and a processor adapted to: receiving a plurality of system information (SI) messages from a plurality of primary stations, each of the SI messages including respective time reference information for a corresponding primary station; checking the validity of the received signature and time reference for each of the primary stations; Exchange keys with one of the primary stations that is determined to be valid, A MitM detection process that is not affected by loose synchronization is used to determine whether the selected primary station is genuine.

[0204] A MitM detection process that is not susceptible to loose synchronization requires, for example, the use of a cryptographic CRC on the exchanged messages.

[0205] This solution requires the same configuration as in the DSnF solution, including the following facts: 1. The base station broadcasts the signed SI signed by the DSnF. 2. The UE is equipped with a corresponding trust anchor for verifying the signed SI broadcasted by the base station. 3. The DSnF signs the public key associated with the base station, and the base station signs the dynamic fields in the SI using the corresponding private key.

[0206] This solution also requires the Cipher CRC (C-CRC) solution mentioned above, which allows the UE and gNB to drop any replayed messages.

[0207] The protocol flow is shown in Figure 15 and is as follows: 1. The gNB broadcasts signed system information. 2. The UE verifies the validity of the digital signature and verifies the SI. 3. The UE generates a symmetric key K in a secure manner. 4. The UE sends K to the gNB in ​​a secure manner by encrypting it with the gNB’s public key. 5.a. The UE starts timer Ta after sending message 4. b. The gNB starts timer Tb after receiving message 4. 6.a. After sending message 4, the UE activates the C-CRC method using key K. b. The gNB activates the C-CRC method using key K after receiving message 4. 7. Standard protocol flow, but protected by C-CRC. 8.a.If Ta > Tmax and message 8 has not been sent, the UE determines that a MitM is present and proceeds to search for another base station. b. If message 8 has not been received for Tb > Tmax, the gNB determines the presence of MitM and drops the communication. 9. Final message sent by the UE confirming that no-MitM was detected. 10.a. After sending message 9, the UE deactivates the C-CRC method. b. The gNB deactivates the C-CRC method after receiving message 9. 11. Standard communication.

[0208] Note that message 4 may be an RRCSetupRequest. Message 9 may be an NAS security mode complete. Message 7 includes an RRCSetupComplete and a NAS handshake. Details may be specified in the normative phases.

[0209] Furthermore, the C-CRC solution replaces the standard CRC at the MAC layer, which means that if there is a MitM that forwards, modifies or injects messages (step 7), those messages will be dropped by the UE and gNB. As the MitM does not have access to K, it cannot calculate the C-CRC correctly.

[0210] A variation of the previous example makes it possible to reduce the risk of downgrade attacks, i.e. attacks based simply on the false pretense that a device is not compatible with the latest version of a protocol. This type of attack causes a high-quality mode of operation (e.g. encrypted connection) to be abandoned in favor of an older, lower-quality mode of operation (e.g. cleartext) that is usually provided for backward compatibility with older systems.

[0211] This solution assumes the same setup, including: 1. The base station broadcasts the signed SI. 2. The UE has the corresponding trust anchor to verify the signed SI. 3. The K-SIGPrivate used to sign the SI is specific to the trace region.

[0212] This solution also involves replacing the CRC at the MAC layer with a Cipher CRC (C-CRC), as mentioned above. C-CRC=MessageAuthenticationCodeComputation(K,CRC|blockID) where MessageAuthenticationCodeComputation() is a function that returns a 24-bit message authentication code, | indicates concatenation, and blockID refers to a unique identifier that identifies the physical resource block (RB) used to transmit data at the MAC layer, i.e., the physical resource of time and frequency. The protocol flow is shown in Figure 16 as follows: 1. The gNB broadcasts signed system information. 2. The UE verifies the validity of the digital signature and verifies the SI, including verifying that the certificate has not expired, assuming no strict time synchronization is required. 3. The UE generates a symmetric key K in a secure manner, see Note 2. 4. The UE sends K to the gNB in ​​a secure manner by encrypting it with the gNB's public key. The UE also includes a nonce N_UE. 5. The gNB acknowledges receipt of K by sending E(K, N_gNB|N_UE), i.e. the nonce received from the UE and the new nonce from the base station, encrypted with K. The UE checks that the message contains N_UE. If not, the UE determines the presence of a MitM. 6. The UE sends a final confirmation message by sending E(K, N_UE|N_gNB). The gNB checks that the message contains N_gNB. If the gNB does not receive this message or the check fails, the gNB determines the presence of a MitM. 7.a. The UE starts timer Ta after sending message 6. b. The gNB starts timer Tb after receiving message 6. 8.a. The UE activates the C-CRC method using key K after sending message 6. b. The gNB activates the C-CRC method using key K after receiving message 6. 9. Standard protocol flow but protected by C-CRC, see Note 1. 10.a.If Ta>Tmax and message 11 has not been sent by the UE, decide that a MitM is present and proceed to search for another base station. See Notes 3 and 4. b. If Tb>Tmax and message 11 has not been received by the gNB, determine that a MitM is present and drop the communication. See Notes 3 and 4. 11. Final message sent by the UE which serves as an implicit confirmation that no-MitM was detected. 12.a. The UE deactivates the C-CRC method after sending message 11. b. The gNB deactivates the C-CRC method after receiving message 11. 13. Standard communication.

[0213] Note that the specific instantiations of messages 4, 5, 6, 7, and 9 are as follows: message 4 may be an RRCSetupRequest, message 5 may be an RRCSetup, message 6 may be an RRCSetupComplete, message 9 may contain a NAS handshake, and message 11 may be a NAS security mode completion. It is important to observe that normal communication flow proceeds as usual, with the only difference being that the C-CRC is active. Furthermore, since the MitM does not have access to K, it cannot correctly calculate the C-CRC. Messages 4, 5, and 6 ensure that the MitM cannot interfere with the activation of the C-CRC.

[0214] Furthermore, the C-CRC solution replaces the standard CRC at the MAC layer. This means that if there is a MitM (step 7) that forwards, modifies or injects messages, those messages are dropped by the UE and / or gNB. No message received in step 7 means that message 9 is also not sent or received since the previous message is missing, thus timers Ta and Tb time out and the UE join procedure is dropped. This solution thus achieves replay protection in all cases without requiring strict time synchronization, e.g. of the order of 1 or 2 milliseconds, which is necessary to avoid replay attacks in a reliable way.

[0215] Additionally, it is advantageous for blockIDs to be unique in order to provide freshness. To this end, they can be constructed as follows: blockID=Frame|Subframe|Slot|Allocated_Resources_TIME|Allocated_Resources_Frequency where | means concatenation, and Allocated_Resources_Time and Allocated_Resources_Frequency determine the resources used for transmission in a given Frame / Subframe / Slot.

[0216] Since the period of the SFN is 10.24 seconds, this blockID structure sets a maximum value for Tmax. If Tmax needs to be longer, a different blockID structure can be defined during the canonical phase.

[0217] Regarding backward compatibility, in the above design, the new UE runs C-CRC for a limited time. After step 11, the UE runs standard CRC. The activation of C-CRC is negotiated in steps 4 and 5, and the backward compatibility table is as follows:

[0218] [Table 2]

[0219] It must be considered that MitM may try to construct a downgrade attack by interfering using case lUE, nBS and case nUE, lBS. Note that this downgrade attack is related to the situation where both UE and gNB support this solution. We will consider it below. Downgrade attack using case nUE, lBS: MitM can forward the SIB of the gNB as if there was no signature. When this happens, the UE does not activate the C-CRC and does not add E(K, PK). The C-CRC is not activated by the UE or the BS. This downgrade attack can be considered acceptable since the UE and gNB know that there is a risk (since the C-CRC was not activated). The UE and gNB can have a policy of not accepting FBS resilient connections. Downgrade attack using case 2: MitM removes E(K,PK), so the gNB does not activate C-CRC. Since the gNB does not activate it, it does not send Hash(K), so the UE does not activate C-CRC. As in the previous case, this downgrade attack can be considered acceptable, since at least the UE and gNB know that there is a risk (since C-CRC was not activated).

[0220] It should be noted that such downgrade attacks are also applicable to current solutions, where the new UE believes it is communicating with the right gNB in ​​a secure manner (origin verification and replay attacks) and is therefore vulnerable to replay attacks.

[0221] The above exemplary embodiment is triggered by the reception of a signed SI, in particular the MIB / SIB1, which is periodically broadcast in 5G. However, the size of SIB1 is small (less than 3000 bits), limiting the amount of information that can be added, in particular the size of the digital signature or digital certificate. A solution to this is a new variant in which the UE proactively requests a designated SIB, SIB_S, containing the signature after receiving MIB / SIB1. When the UE receives SIB_S, it can use the installed trust anchor to verify that the SI originates from a given base station. The UE can also verify the public key (PK) of the base station. The UE then uses this PK in step 4 as in the figure above to trigger the rest of the protocol. In this case, step 9 could consist of some predefined uplink and downlink messages.

[0222] Finally, by requirement of all previous embodiments, this public key PK can be used for both signature verification (of SI as required in step 2) and public key encryption (as required in step 4). If the public key for signature verification in step 2 cannot be used for PKE, the certificate sent in the SIB should contain the public key of the additional gNB for PKE in step 4.

[0223] In a further variant of the sixth embodiment, instead of signing the static parameters for 2^10 frames, i.e. 10.24 seconds, or until the SFN wraps around, the static parameters may be signed for a duration of 2 hours, 54 minutes, 45.76 seconds, i.e. until the SFN and HFN wrap around. This further reduces the overhead of the signature generator. Furthermore, the digital signature algorithm used to sign the dynamic parameters can be based on a standard algorithm such as ECDSA, but with a reduced security level due to the short validity of the corresponding public key. Alternatively, it may be a lightweight method based on, for example, hash chains, Tesla.

[0224] The proposed signature combination also provides a good solution for quantum-resistant signatures. Digital signatures are bulky, either in the size of the public key or the signature. The solution of the sixth embodiment allows the use of heavy digital signatures at a relatively low frequency. Dynamic fields need to be signed much more frequently, for which a hash-based solution that is also quantum-resistant is a good candidate. Furthermore, the signing of dynamic fields can be done in a signature generator (DSnF) that fits into the current DSnF architecture. However, the DSnF may be outsourced to the primary station, since it signs all important fields, including the start time for the SFN. If the gNB signs the dynamic fields, there is the obvious advantage that the overhead of the DSnF is reduced and the signed information is available for broadcasting on time.

[0225] This solution also works if you use DSA. Thus, DSA can be used to sign static information for long intervals of time. It also signs the hash chain anchor used by the primary to sign the dynamic fields. Once this is done, DSA should also be used to sign the SFN_HFN_Reference_time. A good tradeoff is to have DSA sign the new HC anchor, SFN_HFN_Reference_time, ...HFN / SFN (2 hours 54 minutes 45 seconds). The alternative has the drawback that DSnF must handle much more data requests every SFN period (10.24 seconds). The rest of the SIB / MIB is protected with a HC-based approach managed by each primary.

[0226] Finally, in this sixth embodiment of the invention, it has been mentioned several times that the UE may initially be slightly out of sync or not have the right time. If this happens and the UE has a slightly different time (e.g., 10 ms difference), the UE has no choice but to accept the message if it is received 1, ..., max_delayHFN / SFN later than expected. If this happens, the UE should start a secure time synchronization protocol in DSnF and check again if the delay continues to occur. In such a case, the UE should be under a MitM relay node and look for a different primary station.

[0227] In this embodiment, protection against replay attacks is achieved by checking the freshness of the messages. This freshness is linked to the centrally managed DSnF time and the base station specific SFN. However, in some cases, a MitM attacker may act so fast that a particular system may have to relax the time synchronization requirements. When this happens, the UE will receive two sets of system information with the same PCI and the same time. In this situation, the option is to reject both SI sets and connect to a different base station. This is a known option with the drawback that it may cause a DoS attack (e.g., if the UE can observe a single base station) or may degrade the performance of the system (e.g., if the UE decides to connect to a base station that offers worse connectivity). The UE may also choose an alternative mechanism, i.e., if the UE receives two or more SI sets with the same PCI and time, the UE will choose the one that was received first, since it is the one that is less likely to have been replayed, even if feasible.

[0228] Thus, more generally, when multiple system information messages are received from multiple primary stations, a further step may comprise rejecting all duplicate SI messages, or alternatively, a further step comprises selecting the less recent SI message and rejecting the remaining SI messages.

[0229] All the above embodiments are detailed in the seventh embodiment and can be used in a single solution leading to 5G. According to the seventh embodiment, a cell scanning procedure for avoiding FBS and MitM nodes that fits into the DSnF framework is described. Its main features include: Information at the physical layer distributed in the synchronization signal, together with the UE location and the known radiation pattern of the base station, is used for early detection of the FBS. A performance optimized combination of PKI and hash chains is used to secure the system information, i.e. MIB and SIB1, and in one main embodiment, the DSnF signs the anchor of the hash chain, the base station uses the hash chain approach to protect the system information, and the UE verifies the signed information to avoid FBS. It supports efficient verification of fixed and variable fields and provides optimizations to improve DSnF and system performance. Verifying that the private key is authorized to sign messages at the UE's current location to avoid attacks that compromise the private key at location A and use it to sign information at location B; To avoid simple replay attacks, if the timing information is learned from multiple base stations or obtained through an initial handshake between the UE and the DSnF, verifying the freshness of the signed information; Verify that the signed SFN / HFN matches the current time, and in this way avoid MitM relay attacks.

[0230] The cell scanning procedure for handling the FBS may include several optional steps, as described below. o The UE tunes to the specified frequency o The UE attempts to detect the PSS, SSS, but if the UE cannot detect it, it tunes to the next frequency o If the UE successfully detects the PSS / SSS, The UE stores the selected SSB index and the corresponding signal strength demodulation reference signal (PBCH DMRS). o [BS Location and PCI Check Based on Physical Signals] Based on the UE's current location, SSB index and PBCH DMRS strength, the UE checks if the estimated location of the BS matches the location stated in the trusted BSLog as in the fourth embodiment.

[0231] If there is a BS with a unique PCI and its estimated location matches a location in a known BSLog, the device will accept the BS.

[0232] If there is a BS with a unique PCI but a different estimated location than the one in the BSLog, the device places that BS at the end of its preference list.

[0233] If there are two BSs with the same PCI but different estimated locations, and one of the locations does not match the BSLog, the device discards that BS.

[0234] If there are two BSs with the same PCI and the same estimated location (e.g., if the UE does not use part of solution 3 or an attacker targets the UE), the device marks them as duplicates and goes ahead and checks their signatures and times.

[0235] The UE attempts to decode the PBCH to obtain the MIB. If the UE successfully decodes the PBCH, it attempts to decode the PDCCH and PDSCH to obtain the RMSI and OSI.

[0236] [Verifying digitally signed SI] At this point, if a trust anchor is configured, the digital signature of the MSI broadcast in SIB1 can be verified, if not, signature verification is skipped.

[0237] This is done similarly to the second embodiment above, where many of the fields are static. They are verified only once. Afterwards, the only action is to check if their values ​​remain unchanged. If this is true, the hash of the fixed fields is used as input and concatenated with the mutable fields to verify the current signature.

[0238] If the verification fails, the UE discards the BS.

[0239] Furthermore, the UE will discard the BS if the private key that signs the message is not authorized in the area the UE is located in. The UE can obtain the signed location of the BS, which is also broadcast in the SIB, and the BS will be rejected if the location does not match the UE's location. o [Freshness Check] This step in the cell scanning procedure concerns freshness verification according to the fifth embodiment. o [Check Relayed Messages] This step in the cell scanning procedure is performed according to the sixth embodiment.

[0240] In the above embodiment, the signature generator has two pairs of public keys for signing the static and dynamic fields. In another embodiment, the primary station is the entity that owns these two pairs of keys.

[0241] In the above embodiment, one of the salient aspects is the need for synchronization between the various entities, in particular the primary station and the signature generator must be synchronized or know the time difference. In fact, the primary station must broadcast information. However, the primary station needs to know "when" to do so in order to make sure that the signature generator time broadcast in the signed SI of multiple base stations is synchronized. If not, this may lead to a situation where the primary station's clock ticks faster (thus making its time higher). Following the synchronization method in the description, the secondary station will use this time as a reference. This may lead to better connectivity, possibly with better transmission power, for this reason, leading to a situation where the secondary station rejects a valid primary station.

[0242] Furthermore, it helps prevent replay attacks: if time is used to avoid replay attacks, it is important that the base station broadcasts the correct time, otherwise if the base station's clock ticks faster (and is newer), it will broadcast the data a little early, allowing an attacker to replay the information.

[0243] Additionally, it is important to check the consistency of time, and 3GPP TR33.809 section 6.20.2.5.4 states that "If the digital signature from each cell is valid but the recently received time counters from multiple cells fail verification, the UE checks the consistency of the time counters from those cells. If they are close to each other, it indicates that the UE time is not synchronized with the network. If the time counters are inconsistent, it indicates the presence of an attacker (e.g., by replaying old information). In either case, the UE can select the cell with the highest time counter since the relayed time counter is highly unlikely to be up-to-date. If it chooses to check the consistency of the time counters received from multiple cells, it may not be necessary to check the time counter against the UE local time. This may eliminate the need for time synchronization among all UEs and the network." Section 6.20.2.5.5 describes the cell selection process. After scanning and removing SIs with duplicate PCIs, it proceeds to get the MIBs, SIBs and verify the signatures and freshness. From this, we can infer that the current DSnF performs a time consistency check after deleting an SI with a duplicate PCI.

[0244] Furthermore, as discussed above, the MitM relay node may be within range of the target UE, but the target UE may be too far from the real base station. However, some UEs in the area are likely to hear both the MitM relay node and the real base station. These UEs may report excluded SI (due to overlapping PCI) to the core network or to a base station once connected, so that the core network evaluates the presence of a fake base station. If the core network's evaluation is positive, the core network may decide to inform the affected base station and take further action, e.g., to switch it off for a limited period of time.

[0245] 3GPP TR33.809, section 6.20.2.6.1, describes how to handle replay attacks. For local replay attack prevention, removal of PCI information is used. For remote replay attack prevention, the text mentions location. As mentioned above, removal of SI with duplicate information may not be sufficient due to range extension attacks where both MitM and base station are described relatively close to each other. However, what can be added to the broadcast message and signed is the range of the base station. The range information together with the base station location can help to avoid or at least mitigate the above attack as well, since it determines the area where SI is expected to be received from a given base station. In extreme cases, the base station can also broadcast the area where it is expected to be received.

[0246] Finally, the current text in 6.20 states that the MIB and SIB are signed. It is important to emphasize that some fields are also signed, although they are outside the MIB and SIB. For example, the 4 LSBs of the SFN are not themselves included in the MIB.

[0247] Next to the cell specific parameters PCI and downlink frequency, which are already proposed to be signed and verified by the UE, the following parameters transmitted on the PBCH must also be signed: a) The SSB index must also be signed and checked. The SSB index is not part of the MIB, since it is beam specific. If this information is not signed, an attacker could create an FBS with "additional beams" and broadcast additional SSBs. An attack that is also possible is the type where the attacker creates a fake beam with index, e.g. XYZ, in an area where the real beam XYZ cannot be received. If this information is not signed / verified, the attacker can take data from a beam (broadcasted some time ago) and put it in a fake beam (faking the real beam) broadcasted some time later. Alternatively, the SI may be enhanced to sign the number of beams used by the base station, and the UE checks the number of beams used by the base station. *The offset bits for all SSB subcarriers, one of which may be carried on the PBCH. If this is not signed, an attacker could modify the frequency offset. *The half frame bit (1 bit) must be signed. If the half frame bit is modified, an attacker could perform incorrect frame synchronization (5 ms error) and, for example, the MIB could be located in the second half of the frame instead of the first half.

[0248] The MIB is not transmitted once, but multiple times, once per SSB. For SFN and MIB the reference time is the time of the first SSB block received taking into account the half frame bits.

[0249] The time window for accepting a message can depend on the distance between the UE and the base station, e.g., if the UE knows its location and the location of the gNB. In this case, when the UE receives a MIB at a given location, it can use its PCI to look up the location of the gNB, calculate the distance, and set a time window for accepting messages that depends on that distance, taking into account that radio waves propagate at the speed of light.

[0250] More generally, it may thus be advantageous to use a method for the secondary station to check the validity of a system information message from the primary station, which method involves checking the validity of the time of receipt of the SI message, said step taking into account an estimate of the distance between the secondary station and the primary station. In an embodiment, this estimation of the distance requires a preliminary step of calculating the distance based on the location of the secondary station and the location of the primary station. The location of the primary station is obtained from a centralized reference server detailing the location and identifier of the primary station.

[0251] In another aspect, a method is proposed for a secondary station to check the validity of a system information message from a primary station, the method comprising checking the validity of the time of receipt of the SI message based on a time reference, where the time reference is adapted from a radiating beam (or SSB) index.

[0252] Since the SFN acts as a time counter directly connected to the base station's schedule, it is advantageous to sign and / or take it into account when checking the freshness of the timestamp. This refers to section 3.4.1 in S3-210541, in particular the fact that the current text states that if a signature / timestamp is repeated multiple times in multiple SIB1s, the allowed time window (t_w) is larger, i.e., the network delay t_d (including the signing time, the transmission time, the propagation time, the reception time, and the signature verification time), the parameter tau that accounts for the difference in the synchronization level between the UE and the base station, and the parameter t_s that accounts for the scheduled delay due to the same signature / timestamp being repeated in multiple SIB1s, e.g., t_s=(N-1)20 if the same timestamp / signature is used in N SIB1s. This approach minimizes the processing delay, but makes replay attacks very easy.

[0253] To handle this situation, if the same timestamp / signature is used for multiple SIB1s and the UE does not want to create errors, the UE should do the following: - 1st step) Look at the frame number SFN_received where SIB1 was received and the relative position (reference frame number) when the same timestamp / signature was first used. This can be derived as k=SFN_received%N, where "%" is modulo arithmetic. With this information the UE can correct the timestamp as (timestamp+k*20) and compare this value with the current time. - 2nd step) Since the FBS may modify the SFN (if the SFN is not signed), then the UE must keep monitoring the received SIB1 until the next frame, where a new timestamp / signature is distributed. In this way, the UE can be sure that the attacker has not replayed a frame longer than t_d+tau. Note that in any case, if the signature / timestamp is repeated, the UE must still wait on average t_s / 2 until the UE has certainty that t_w=t_d+tau.

[0254] The timing for t_d is probably around 1 ms or slightly more. For example, the MIB is transmitted in 4 OFDM symbols with SCS=15 or 30kHz. For 15kHz, the MIB transmission takes 266 us. If there are 4 beams, the time difference between the 1st and 4th beam is almost 1 ms. The same is true for reception. This does not take into account the transmission and reception of SIB1, so the total transmission / reception time for MIB+SIB1 is longer than 266 us. The same is true for the transmission delay. Looking at the arrival times, the maximum values ​​(in LTE) correspond to ~0.6 ms.

[0255] Thus, in more general terms, it can be proposed to use a method for signing successive messages, comprising reusing a single signature for multiple successive messages, where each message also includes a timestamp, and the method further comprising calculating the actual sent timestamp from the received timestamp before checking the validity of the message.

[0256] A trust anchor should be linked to a geographical area. When a UE uses a trust anchor, it must check if the trust anchor it is using is allowed for the UE's location.

[0257] Hash chains can be a good solution if the anchors are distributed from a central entity and the gNB uses an instance of the hash chain to protect the data broadcast by the gNB. This is a very good solution taking into account the 5G synchronicity and the transmission of MIB / SIB1 messages. In particular, SIB1 contains a MAC calculated on the non-disclosed link of the hash chain and a hash chain link that allows the UE to verify the previously received SIB1 / MAC. SIB2 / SIB5 messages can be distributed on demand. When TESLA is applied to those messages, these messages contain a MAC calculated on the next non-disclosed hash chain element, which is disclosed in the next SIB1 message. Hash chains fit very well into the SFN schedule. See comment (4) above.

[0258] Instead of having to sign the entire 10-bit SFN, with 6 MSBs in the MIB and 4 LSBs in the PBCH, only the most significant bits need to be signed. For example, by signing 8, 7 and 6 MBS, we get time periodicities of 40, 80 and 160 ms.

[0259] Regarding the time synchronization challenge: A common approach is for the UE to use timestamps from multiple gNBs to learn their time and find out if it is out of sync. For this time consistency approach, it is required that the gNBs are tightly synchronized. Furthermore, only timestamps whose signatures have been verified must be considered.

[0260] The second approach is to use the most recent time or the average of the verified timestamps.

[0261] A third approach for this to work is that the UE can request the current (DSnF / gNB) time. This is relevant for scenarios where the UE's time is not synchronized and / or there are too few gNBs around. The UE sends a request to the DSnF to get back the current time.

[0262] Which approach to use (time consistency or directly retrieving the current time from the DSnF / gNB) and under which circumstances is determined by the policy. For example, the time consistency check can still be manipulated if an attacker has enough control over a fake base station and the UE tries to determine from k timestamps whether their values ​​are all consistent. Once the information is broadcast and signed, the UE can be the same in cases where there are less than 1 / 2 of the compromised nodes, i.e., k=2n+1 base stations (timestamps), and up to n fake base stations (timestamps). In other Byzantine models, the bound is k=3n+1, and then the system tolerates up to 1 / 3 of the compromised values. For the second approach, the policy can include the minimum number of timestamps that are required to use the highest timestamp as the current time. For example, if the UE only has access to the timestamps, the policy can indicate that the UE should use the third approach and retrieve the time from the base station. The policy can also include how often the time accuracy should be cross-checked. This can be, for example, at least once per hour. Policy may also dictate the use of timestamps collected over a different short time period, for example within a 10 minute time window.

[0263] Several existing solutions aim to ensure the authenticity of system information and handle FBS / MitM. These solutions are based on validity methods that check the validity of system information messages, which: The secondary station receives successive system information messages, The secondary station, for the purpose of validation, comprises generating a validation message based on at least the received system information message (or on a part of the content of each).

[0264] In one example, the validation message is a hash of at least a subset of the received system information messages.

[0265] In one solution, the validation message is sent by the secondary station to the primary station for validation over a secure channel. Alternatively or additionally, the validation message may be sent by the primary station to the secondary station for validation. The primary station may be a gNB or a network function in the core network.

[0266] More specifically, these solutions thus consist in the gNB providing the UE with a hash of the MIB / SIB / PCI after the UE has established the AS security context. The UE can compare the information provided by the gNB with the MIB / SIB / PCI it has received previously and check if they match. If not, it sends an indication to the gNB. This is described for example in TR 33.809-0c1, solution 19. Figure 17 shows the protocol flow for system information protection in solution 19 in TR 33.809-0c1.

[0267] In TR33.809-0c1 a similar solution is described, namely solution 14, where the UE is the entity that sends the hash of the received MIB / SIB to the gNB. The gNB is the party that checks if the information matches (equivalent to step 6 in Figure 17 above). In other ways, solution 14 is like solution 19, but the roles of UE and gNB are swapped.

[0268] Such a solution has certain limitations. a) Some fields in the PBCH broadcasted immediately after the MIB are not included in the verification process. These fields include the SSB index, the SSB subcarrier offset bits, or the half frame bits. The reason this is a limitation is that it may be easy for an attacker to interfere with the communication. For example, in 5G, a base station may broadcast the PCI / MIB on multiple SSBs using multiple beams. If the base station is configured to use, for example, only two beams, an attacker can set up an additional fake beam with a different SSB index. The attacker has no choice but to rebroadcast the real MIB / SIB / PCI of the real base station through the fake beam using very high power. In this way, the UE thinks it is connected to the real base station because the check of the MIB / SIB / PCI in step 6 in Figure 17 is successful, but it is still connected to the fake beam. A similar attack may be possible if the hash of the SSB subcarrier offset bits or the half frame bits is not exchanged and verified. It should be noted that setting up an additional false beam next to a real beam can be difficult, as it requires configuring the FBS transmissions such that the reception is synchronized upon reception, but this is not at all infeasible, as shown in related academic research. b) These solutions insist on signing the MIB / SIB / PCI. However, the MIB contains the 6 most significant bits of the SFN. This means that there are 64 possible hashes to compare. The situation becomes even worse if it is also required to validate the SSB index. c) These solutions do not prevent MitM.

[0269] To overcome these limitations in solution 19 (and / or 14), an improved validity method for checking the validity of a system information message is proposed, which method comprises: a secondary station receiving successive system information messages sent by the primary station or a security entity coupled to the primary station; the secondary station for the purpose of verification comprises generating a verification message based on at least the received system information message (or a part of the content of each); Here, at least one of the following alternatives is satisfied: the system frame number is not included in the verification message generation, only a part of the system frame number is included in the verification message generation, or the system frame number is sent together with the verification message. The part of the SFN is some of the most significant bits of the SFN. For example, it may be the six MSBs of the SFN. Further alternatives are listed in the detailed description of these variations below.

[0270] Thus, more specifically, the communication flow described in FIG. 1 can be improved as follows. 1) A first embodiment that addresses limitation a) consists in extending the communication flow shown in Figure 1 so that hashes of PBCH fields are exchanged and verified. This includes the SSB index, the offset bits of the SSB subcarrier, or the half frame bits. Note that the four least significant bits (LSBs) of the SFN may also be included. However, this is not always required, for example when the MIB is transmitted every 40 ms in frame numbers 0, 4, 8, etc. In such a configuration, those four LSBs are always 0000. 2) A second embodiment dealing with limitation a) consists in checking whether the SSB index is active in the received SIB1. Recall here that SIB1 contains (see https: / / www.concepts-of-5g.com / 2019 / 10 / cell-synchronization.html):

number

[0271] For example, if we apply the above embodiments 1) and 2) to Fig. 17, the resulting protocol successfully defeats the attack described in restriction a) above, where an attacker sets up a fake beam with an additional SSB index and transfers the SIB / MIB / PCI of the real base station through it. This is because the base station informs the UE (via a hash value) about the beam (SSB index) used for communication. If the attacker uses a different beam, the SSB index will be different and the hashes will not match. Furthermore, the protocol is efficient since it only needs to send the hash of the last MIB sent before sending message 5. This reduces communication and computation overhead.

[0272] Also note that some solutions in TR33.809, as part of an extension to TS33.501 Annex E, propose reporting hashes of MIB, SIB1 and other SIBs to enhance measurement reporting from the UE. An example of such a solution is solution #4 in TR33.809. The approach mentioned there has two drawbacks that are also present in solutions 14 and 19 in TR33.809. The first drawback is that solution #4 requires computing the hash based on MIB / SIB1, where the MIB, however, contains 6 bits of SFN (out of 10 bits), the 6 SFN Most Significant Bits (MSBs). This results in 64 different "valid" hash values. A better alternative would be to remove these 6 SFN bits from the MIB before computing the hash of the MIB.

[0273] In some cases, it is desirable to report a hash of the MIB, a hash of SIB1, a hash of SIB2, etc. For example, solution #4 shows that multiple hashes are exchanged. If a hash of the MIB is sent, it should be done without the 6 SFN MSBs, as mentioned above. However, this still poses some challenges. The reason is that the output of the hash function SHA-256 is 256 bits long, while the MIB is only a few tens of bits. Thus, sending a hash of the MIB is not efficient, and in an alternative embodiment, it is preferable to directly exchange the contents of the MIB, with or without the SFN, so that the receiving party can verify the contents directly. This is also applicable to other solutions, e.g. solutions 14 or 18 in TR33.809, when the hashes of the MIB and SIB1 are calculated separately.

[0274] If the SFN is included, the UE may report a hash of the MIB / SIB1 and the time at which the MIB was measured. Note that the MIB only contains the 6 MSBs of the SFN, and each MIB is broadcast multiple times, resulting in time uncertainty. To improve time accuracy and allow the receiving party to distinguish which MIB the UE received, the UE should report the time at which the new MIB was received, i.e., the MIB whose 6 MSBs of the SFN are different from the 6 MSBs of the SFN in the previously received MIB. Alternatively, the UE should include the 4 LSBs of the SFN next to the time of the received MIB. The network should then keep track of the MIB / SIB1 value used by the actual base station at a given time. This is feasible because the SFN repeats its value every 10.24 seconds. In this way, if the base station informs the core network about the SFN value at time t0 and optionally transmits 64 valid hash values ​​for MIB / SIB1 or provides information for the core network to calculate and guess the 64 hash values, the core network knows which SFN value is used by the base station at any time t and which hash value of MIB / SIB1 to report. By doing this, the network can better identify which hash value to use for validation and detect attackers who are faking the identity of a valid base station by regenerating system information, but are not perfectly synchronized. Similarly, as described in this description, a 5G base station can broadcast MIB / SIB1 via multiple beams pointing to different respective locations. An SSB index for each beam is included in the PBCH to identify the beam. When the UE reports the hash of MIB / SIB1, the UE may include in the hash calculation an identifier (e.g., SSB index, or an indication of an angle representing a direction) of the directional beam in which the measured signal has the highest received power, in other words, the directional beam that the UE used in the communication link with the cell. If the UE does so, then in its report to the base station containing the received hash of MIB / SIB1, the UE may include its location and the time when the MIB / SIB was measured.The base station (and, as it reports to the core network) knows the radiation pattern (i.e., the direction of the beam) possibly as a function of time; for example, if the beam is not completely static, the base station knows that at time t the beam was pointed in a specified direction. With this knowledge, the base station (and the core network) knows which directional beam the UE should have seen at a given location and time. The core network can then check whether the hash of MIB / SIB1 reported by the UE for a given time / location matches what the UE should have measured. Note that the core network may include a policy that defines a time window wt and a location window wl, so that if the core network knows that at time t0 and location l0 the base station was using SFN_i and beam index Bi, the core network may accept the hash of MIB / SIB1 as valid for (SFN_i-wt, ..., SFN_i+wt) and (B_i-wl, ..., B_i+wl).

[0275] Note that this additional information regarding timing and location described in the context of solution #4 can be incorporated into solutions #14 and #19 to make these solutions more resistant to replay attacks. In particular, in solution #19, the gNB provides the UE with hashes of MIBs / SIBs. Once the gNB has done so, it can provide the UE, e.g., via a secure RRC message, with information regarding the hashes of MIBs / SIBs that the UE should have received at a given time or location. For example: The gNB provides the UE with 64 hashes of MIB / SIB1 (for the 64 possible values ​​of MIB considering that MIB contains 6 bits of SFN) and a reference time, e.g. the time when the hash for MIB / SIB1 with these 6 bits set to 0 was broadcast for the first time. The UE can check if the received MIB / SIB1 followed / follows the same real base station timing as received in the secure RRC message. This check can help the UE to identify replay attacks in case the fake base station timing is not strictly synchronized with the real base station timing. This can be done by having a time window, e.g. 1 ms. The UE can classify the base station as FBS if the timing is outside that time window. Alternatively, the base station can include some fields of the PBCH, in particular the least significant bits of the SSB index and / or SFN, in the calculation of the hashed MIB / SIB1. The base station can inform the UE through a secure RRC message about the hash of MIB / SIB1 calculated using this information from the PBCH that the UE should have used / measured at its location. The base station can include this information next to the hash of MIB / SIB1. Note that this can require the UE to report its location to the gNB in ​​a secure way so that the MitM cannot modify it. Alternatively, this may require the gNB to be able to reliably learn the UE's location without being affected by the MitM. This is shown in Figure 18. Alternatively, the base station calculates a hash of MIB / SIB1 without including the SFN or any fields in the PBCH. The base station then provides this hash and the expected SFN and PBCH fields, e.g. SSB index, in a secure RRC message. Upon reception, the UE needs to check that all values ​​are correct. This is shown in Figure 19.

[0276] Solution #14 is like solution #19, but in this case the UE reports a hash of MIB / SIB1 to the gNB. Following the above explanation for #19, the UE can report in a secure way to the gNB. ·Hash of MIB / SIB1 containing the time when the MIB was obtained and triggered the request to join the cell. The gNB can then check if the MIB / SIB1 received by the UE conforms to the timing schedule as done above for solution #19. This can be checked by verifying that the SFN time measured by the UE is the same as that of the gNB. Note that this can be done by an absolute time reference, e.g. UTC time, assuming that the gNB and UE are synchronized. For this purpose, both the UE and the gNB keep track of the UTC time at which the MIB was received / transmitted before the UE sent its first message to join the cell. Given these two times t_rx and t_tx, it is possible to subtract the receive time t_rx (measured by the UE) from the transmit time t_tx of MIB / SIB1 (measured by the gNB) and verify if it is greater than a threshold, e.g. TH1=1 ms. If t_rx-t_tx>TH1, then a MitM may be present. This is shown in Figure 20.

[0277] Note that since the gNB receives information from many UEs, the base station can use timing information from multiple UEs to better determine with higher accuracy if MIB / SIB1 is received later than expected. The gNB can do this by subtracting the transmission time of MIB / SIB1 (measured by the gNB) from the reception time of MIB / SIB (measured and transmitted by the UE) and averaging these values. The averaging operation removes noise if it has a suitable characteristic, e.g., uniform distribution and an average of 0. This noise may be due to UE clocks that are not perfectly synchronized, e.g., TH2=0.5 ms. If this average value exceeds a given threshold, e.g., TH2=0.5 ms, the base station can trigger an alarm regarding the presence of MitM. The values ​​of TH1 and TH2 are configurable. Note that in general, TH2 should be smaller than TH1. Note that if the base station clocks are not synchronized, this will introduce a certain error that may trigger a MITM alarm. Thus, if a MITM is detected, the base station should check whether the time is synchronized to avoid these error sources before deciding on a final MITM detection.

[0278] The SSB index present in the PBCH of the selected beam, i.e. the hash of the MIB / SIB1 calculated including the beam with the highest received power. The gNB can then check if the SSB index corresponds to the same beam that was used when the UE joined the cell. This is shown in Figure 21. Alternatively, a hash of MIB / SIB1 calculated including the SSB index and including the UE's location when the UE measured that MIB / SIB1. The gNB can then check if the received hash of SSB index / MIB / SIB1 corresponds to the MIB / SIB1 that the UE should have measured at its specified location and corresponds to the base station's radiation pattern. For example, knowing the UE's location, the base station can know which SSB index the UE should have measured as the strongest and can then use this SSB index to compare the received hash. This is shown in Figure 22. Since the gNB receives multiple UE reports, the gNB checks whether the measurements match each other, not just whether they match its own expected radiation pattern. Note that the base station may derive the expected radiation pattern from a physical model or from measurements made during initial network planning and deployment. Since the radiation pattern may be affected by the construction of new buildings, vegetation (trees), etc., the base station can update its expected radiation pattern based on measurements reported by the UE within a time window, e.g., within the past two weeks. The radiation pattern RP(t) at time t can be calculated as a function of the radiation pattern RP(t-1) at time t-1 and the average measurements AM(t) received at time t. For example, RP can be updated as RP(t)=a*RP(t-1)+(1-a)M(t), where a is a memory factor. If a=0, the system has no memory and RP does not depend on the previous value. If a=1, the radiation pattern does not change. Note that the radiation pattern may be affected by other factors, e.g., rain. A base station can have multiple radiation patterns as above for different environmental conditions.

[0279] According to the above embodiment described in the context of Figures 18 to 22, the gNB verifies the SSB used by the connecting UE. In this way, the gNB or network can check that no FBS / MitM attacker is using a fake beam with its system information to attract the UE. This fake beam attack was denoted as a "stealth MitM" attacker in the context of Figure 23. If the attacker wants to launch an attack, he / she has no choice but to report the beam that the UE perceives as the strongest / preferred in a secure manner, the gNB / network can detect the presence of the attacker by: 1) Tracking the number of UEs (absolute or relative) connecting through each of the beams of the gNB; 2) Monitor changes in this distribution of UEs per beam compared to the normal situation. When tracking the normal situation, i.e. the expected number of UEs joining per unit time (absolute or relative), the gNB / network may update this normal / expected value at time t, denoted as "historical_n(t)", depending on both the UEs joining in the last time unit (denoted as "current_n") and the previous historical n value. For example, historical_n(t)=(1-a)current_n+a*historical_n(t-1), where a is between 0 and 1. This can be done per beam. The gNB can trigger an alert if the UEs that joined in the last time unit, at least via a beam, differ from the expected value by more than a given threshold (absolute or relative).

[0280] For example, assume a gNB with 4 beams as shown in FIG. 23. Assume that UEs connect to the gNB via the 4 beams in a known (e.g., based on historical data) manner, e.g., up to 1 / 4 of the UEs via each beam. For example, this could refer to the number of UEs joining via the beams in a time unit, e.g., 1 minute, 5 minutes, 1 hour. Note that this may vary depending on the time of day, day of the week, special events (e.g., concerts or holidays). Assume that at a given time, a stealth MitM attacker places a fake beam at SSB3, as in the figure showing that a portion of the stealth MitM attacker's FUEs connect to the gNB via the gNB's SSB3 beam. When this happens, when the gNB checks the SSBs used to connect, it notes that 1 / 4 of the UEs join via SSB2, 1 / 4 of the UEs join via SSB4, and up to 1 / 2 of the UEs join via SSB3. Because this distribution deviates from the expected distribution, the gNB / network triggers an alarm. Note that in the scenario in Figure 23, the attacker must join via SSB3 because otherwise the SSB check would fail, which indicates the presence of a false beam.

[0281] Referring to the attack scenario in Fig. 23, a stealth MitM attacker may dim the weakest beam in a given area because (i) it is easier due to its weak signal, (ii) it attracts UEs more effectively towards FBS / MitM, and (iii) it is less likely to be noticed by gNB. If the attacker dims beam SSB3 as shown in Fig. 23, the UE uses the RACH opportunity connected to the fake beam SSB3. The RACH opportunity refers to the time and frequency resource that the UE can use to make random access as described, for example, in Tdoc R1-1611905 or in "Tutorial on Beam Management for 3GPP NR at mmWave Frequencies" by M. Giordani et al., available at https: / / arxiv.org / pdf / 1804.01908.pdf. The UE sends its RACH preamble message in the time / frequency slot connected to the beam in SSB3. Although the gNB monitors the RACH preamble slots associated with all beams, the gNB may miss the UE's RACH preamble message because the gNB's beam SSB3 has not reached the area.

[0282] Note that in the scenario of Fig. 23, especially if the SSB used to connect is verified, an attacker may try to apply the SSB attack in Fig. 23 by darkening the strongest beam in an area. In the case of Fig. 23, this corresponds to beam SSB1. When this happens, the gNB / network and UE cannot detect the attack by checking the SSB index. However, the gNB / network / UE can monitor certain aspects to detect the attack. o If an attacker dims beam SSB1, he must dim stronger signals. This is not infeasible, but it may trigger more alerts when the gNB / network / UE sees received SSB beams with too high a signal strength compared to the expected value. o Assuming that the attacker successfully darkens SSB1, i.e. without being detected due to its high transmit power, the UE must also use the RACH opportunities connected to SSB1. However, this may not be the best option for the attacker. The reason is that the real gNB is monitoring the RACH time / frequency opportunities associated to beam SSB1, so it may receive the UE's RACH preamble message. If this happens, the real gNB can also send a random access response to the UE. In this way, the UE can monitor whether it receives multiple, e.g. two, random access responses. If this happens, the UE will also realize that something is wrong. o Similarly, assuming that the real gNB did not receive the UE's PRACH message, the real gNB may also be able to detect the random access response from the FBS / MitM by itself. Detection of an unexpected random access response by the real gNB also triggers an alarm.

[0283] The above may be monitored by the UE or the gNB / network when data is exchanged. For example, the UE may send the amount of received random access responses to the gNB / network.

[0284] An attacker performing the attack described in FIG. 23 may focus on a given area. The reason is that the attacker must synchronize its fake beam SSB with the SSB signal of the gNB that he wants to dim. If the area of ​​attack is too wide, the fake beam SSB will not be fully synchronized with the real gNB SSB beam by some parts of the area under attack. When this happens, some UEs may not be able to fully decode the fake beam SSB or detect the presence of part of the original SSB frame. When this happens to a UE, the UE may reject such SSB. The UE may also report this information to the gNB or the network so that this information is used to determine the presence of FBS / MitM. This can be done, for example, when the network receives multiple measurements from multiple UEs that are not able to correctly decode the SSB and / or detect the presence of part of the original SSB frame.

[0285] The previous embodiments are described in the context of a UE connected to a gNB and aim to prevent the UE from connecting to a false base station. Similar scenarios in wireless standards such as 3GPP® Proximity Services require the UE to act as a relay. In this case, a remote UE can connect to a gNB via a relay UE. Some embodiments are applicable to prevent a remote UE from connecting to a false relay UE or MitM device placed between the remote UE and the actual relay UE.

[0286] Thus, as seen in the previous embodiment, an overall system is proposed to reduce the possibility of attacks based on fake base stations or man-in-the-middle. The components of this system include a secondary station, a signature generator, and a primary station implementing one or more of the described embodiments. The apparatus is implemented by program code means of a computer program and / or as dedicated hardware in the relevant device, respectively. The computer program is stored and / or distributed on a suitable medium, such as an optical storage medium or a solid-state medium, provided together with or as part of other hardware, but may also be distributed in other forms, such as via the Internet or other wired or wireless telecommunication systems.

Claims

1. 1. A method for obtaining a time reference in a cellular network, performed by a secondary station, the method comprising the steps of: upon an initial connection to the network, sending a request for a time reference, the request being addressed to a signature generator, the request for a time reference including a randomly generated number to be used as a nonce; receiving the time reference and the nonce, the time reference and the nonce being signed with a nonce signature; checking the authenticity of a received message using the nonce and the nonce signature; and configuring a clock at the secondary station using the received time reference, the method comprising: receiving a plurality of system information messages from a plurality of primary stations, each of the system information messages including respective time reference information for a corresponding primary station; checking the validity of the received signature for each of said primary stations; checking the cell identifier for each primary station with a valid signature and ignoring time reference information from a primary station with the same cell identifier as another primary station, the time reference information having an earlier value than the time reference information from said other primary stations; inferring a local time reference from one or more of said time reference information originating from a primary station having a valid signature.

2. 2. The method of claim 1, wherein the time reference information is at least one of a time offset representing a difference between a clock value at the primary station and a clock value at a signature generator of the network, a clock value at the primary station, and a clock value at the signature generator.

3. 3. The method of claim 1 or 2, wherein the step of estimating the local time reference comprises the step of calculating an average from multiple time reference information originating from primary stations that have valid signatures and that do not have overlapping cell identifiers with previous times.

4. 3. The method of claim 1, wherein the step of inferring a local time reference comprises the step of selecting time reference information having the most recent value originating from a primary station having a valid signature.

5. The method of claim 1 , wherein the request is part of an initial radio resource communication setup request message.

6. 10. The method of claim 1, wherein the request is part of a network access stratum identity response message sent in response to a network access stratum identity request.

7. 7. The method according to any one of claims 1 to 6, wherein the received signature is checked using at least one of the following algorithms: Public Key Substructure algorithm, Boneh-Lynn-Shacham, BLS signature algorithm, Boneh-Gentry-Lynn-Shacham, BGLS signature algorithm, Elliptic Curve Digital Signature Algorithm, Falcon signature algorithm, Rainbow signature algorithm, and Grand Multivariate Short Signature Algorithm.

8. 1. A secondary station for communicating in a network, the secondary station comprising: a sender that sends a request for a time reference upon an initial connection to the network, the request being addressed to a signature generator, the request for a time reference including a randomly generated number used as a nonce; a receiver for receiving the time reference and the nonce, the time reference and the nonce being signed with a nonce signature; a controller configured to use the nonce and the nonce signature to check the authenticity of received messages and to configure a clock at the secondary station using the received time reference; The receiver further receives a plurality of system information messages from a plurality of primary stations, each of the system information messages including respective time reference information associated with a corresponding primary station; said controller checking the validity of the received signature for each of said primary stations, checking a cell identifier for at least each of said primary stations having a valid signature, and ignoring time reference information from a primary station having the same cell identifier as another primary station, said time reference information having an earlier value than time reference information from said other primary stations; The controller infers a local time reference from one or more of the time reference information originating from a primary station having a valid signature.

Citation Information

Patent Citations

  • Communication system, time synchronization method, communication device, and communication program

    JP2018046349A

  • FAKE GNB / ENB detection using identity-based authentication and encryption

    WO2018140204A1