How to send a message from a remote server to a device
The method addresses scalability and security issues in cellular networks by using symmetric key encryption and managing counter values to optimize communication and power usage, enhancing device identity protection and reducing DoS attacks.
Patent Information
- Application Number
- JP2023517662
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-09-17
- Filing Date
- 2021-08-31
- Publication Date
- 2024-08-21
- Estimated Expiration
- 2041-08-31
AI Technical Summary
Existing polling mechanisms for OTA servers in cellular networks face scalability and security issues, including excessive battery consumption, computing power usage, and privacy concerns, particularly in IoT deployments.
A method involving a terminal sending a first identity to a remote server, generating a second identity with a random number and private key, creating a signature, and encrypting a response with the private key to secure communication, while managing counter values to handle DoS attacks and optimize request frequency.
This method minimizes communication overhead, reduces device power consumption, and enhances security by using symmetric key encryption, improving scalability and protecting device identity.
Smart Images

Figure 0007538342000003 
Figure 0007538342000001 
Figure 0007538342000002
Abstract
Description
[Technical field]
[0001] The present invention relates to telecommunications in 3G, 4G or 5G networks, more precisely to a method for sending a message to a terminal from a remote server sharing a secret key.
[0002] The present invention may be applied to IoT products and related services. [Background technology]
[0003] It is known that terminals in a cellular telecommunication network are equipped with security elements such as SIM cards, UICCs (Universal Integrated Circuit Cards) or embedded UICCs (eUICCs).
[0004] This security element needs to periodically poll the OTA (over-the-air) server to know if the OTA server has data to transfer to the security element, this is done by a card applet installed in the security element.
[0005] The existing polling mechanism by the card applet to an OTA server or by the IoT applet and the remote server checking for updates is a method often used when devices are deployed in networks without SMS (e.g. IoT deployments).
[0006] Such a method has many drawbacks and associated problems. The main problems are related to the scalability and security (PKI) of the method: -Scalability issues include: A polling server can be overwhelmed by the number of remote devices polling and the number / frequency of polling events; The overhead of the polling mechanism affects performance on both sides of the polling system: on the device side, where the overhead can consume excessive battery power, and on the server side, where the overhead consumes computing power and communication bandwidth. -Security issues include: A PKI-based mechanism could be used, but this would consume excessive power on the device side for a polling mechanism that would have no effect in most cases. The identity privacy of the device must be protected and traceability of the device should be avoided with private key protocols; - The exchange requires confidentiality and integrity protection. Summary of the Invention
[0007] The present invention proposes a solution to these problems.
[0008] More precisely, the invention relates to a method for sending a message from a remote server sharing a secret key to a terminal, the method comprising the steps of: Sending a first identity from the i-terminal to a remote server; ii- obtaining a first identity at a remote server and obtaining a private key based on the first identity; iii- at the remote server, selecting a random number and generating a second identity by the first identity, the random number and a private key; iv- generating, at the remote server, a signature from the first identity, the message, the counter value, the random number, and the private key; v- at the remote server, generating a first response to the terminal, the first response being a concatenation of the message, the counter value, the signature and the random number, encrypting the first response with the private key, and sending the encrypted first response to the terminal; We propose a method that includes, in a vi-terminal, decrypting a first response encrypted to obtain a first response with a private key, obtaining a message, a counter value, a signature and a random number, deriving an expected signature for the first response, verifying whether the signature is equal to the expected signature, verifying whether the counter value is correct, and if the counter value is correct, deriving a second identity from the first identity, the private key and the random number.
[0009] Preferably, if in step ii the remote server is unable to obtain a private key based on the first identity, the remote server determines that a DoS attack has occurred.
[0010] Advantageously, the encrypted first response (Resp1) sent to the terminal is * ) is not received by the terminal within a predefined time frame after performing step i, the terminal increments the value of a counter (Resend_Counter) by 1 and performs step i again.
[0011] Preferably, if the message sent in step v is not received by the terminal and the terminal does not send the second unique identifier to the remote server, the remote server increments the value of the counter value by one and repeats step vi.
[0012] Advantageously, if the message sent in step i does not receive a reply from the remote server within a predefined time frame, the terminal increments the counter value by one and repeats step i with the new counter value.
[0013] Preferably, the unique identifier is periodically transmitted by the terminal to the remote server based on rules transmitted by the remote server to the terminal.
[0014] The remote server is preferably integrated into the OTA server.
[0015] Advantageously, the transfer protocol between the terminal and the remote server is UDP.
[0016] In one embodiment, the return message is to inform the terminal to make requests less frequently.
[0017] In another embodiment, the return message in step v is to inform the terminal to increase the frequency of the requests.
[0018] Alternatively, the return message in step v is to request on-board key generation.
[0019] In another alternative, the return message in step v is to inform the terminal to open an HTTP communication with the OTA server. [Brief description of the drawings]
[0020] The invention will be better understood from the following description of the three accompanying drawings.
[0021] [Figure 1] FIG. 2 illustrates the general concept of the invention in the optimal case (no communication loss between the terminal and the remote server). [Diagram 2] A diagram showing what happens if a message is lost when replying from GTS 11 to SecApp 10. [Diagram 3] A diagram showing what happens if UID1 is not received by GTS11. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0022] FIG. 1 illustrates the general concept of the present invention (best case).
[0023] Two entities are shown: a security application (SecApp 10) installed at the level of the terminal, or more precisely at the level of a security element preferably contained in this terminal, and a global triggering server (GTS 11), which can also be considered as a paging server.
[0024] The GTS11 may be a standalone server or may be embedded in an OTA platform.
[0025] SecApp10 is installed in a terminal (e.g. IoT device) or in a security element (UICC, eUICC) cooperating with this terminal and can transmit (at first power-on step 100, periodically or upon the occurrence of an event) a unique identifier (UID1) to the GTS11 in step 101. This UID1 is for example the ICCID of the security element in which the SecApp is installed or a unique identifier for this device of SecApp10. SecApp10 contains a private key K1. K1 could also be the key used by the security element to encrypt data transmitted to the GTS11 or to the OTA server.
[0026] The transfer protocol between the terminal 10 and the remote server 11 is preferably UDP.
[0027] Upon receiving UID1, GTS11 (acting as or embedded in an OTA server) obtains the key K1 (K1 is also commonly called Ki in 3G and 4G telecommunication networks) associated with this UID1 in step 102. GTS11 then selects or generates a random number called UID_Rand and derives a unique identifier UID2 from UID1, UID_RAND and K1.
[0028] In the figure, | corresponds to data concatenation.
[0029] The UID_RAND is generated and selected to enable the generation of a unique UID2 for the operator's system.
[0030] GTS11 then generates a signature SIG of the concatenation of the message MSG to be sent to terminal 10, a number representing the origin of the message sent (Sent=1) (usually #1 if this is the first reply from GTS11 to SecApp10), the received UID1 and UID_Rand. This signature SIG is signed by key K1.
[0031] It is not safe to send UID1 encrypted in the response, since an attacker may know the plaintext and the ciphertext. Therefore, instead of sending UID1 in Resp1, which is sent encrypted later, a signature (SIG) of the response, UID1, the message MSG, a counter and a random number based on a secret key (K1), is sent.
[0032] GTS11 then encrypts this Resp1 with key K1 (Resp1 * ) and returns it to SecApp10 (step 103).
[0033] Then (at step 104), SecApp10 sends the response (Resp1 * ) with private key K1. SecApp10 can then compute the signature of MSG|sent=1|UID1|UID_Rand, XSIG, using its locally stored private key K1.
[0034] SecApp10 can then verify whether SIG is equal to XSIG. If they are equal, SecApp10 retrieves the message MSG from Resp1.
[0035] This message MSG can be a request to connect to an OTA server (now or at a given time), a request to do nothing, or any other information sent to SecApp 10. The message MSG can also be communication and application level messages and commands such as "No updates", "Updates available over OTA", "Poll more frequently", "Poll less frequently", "Generate new keys", etc., including updates to the transport identity.
[0036] The unique identifier may be periodically transmitted by the terminal to the remote server based on rules transmitted by the remote server to the terminal.
[0037] In step 105, SecApp 10 can (if the SIG matches the XSIG) derive UID2 from UID1, K1 and the received UID_RAND. UID2 is the identity that can be used at a later stage (step 106) when SecApp 10 wants to connect to GTS 11 again.
[0038] In the example shown in Figure 1, in a later stage, in step 106, SecApp10 sends UID2 to GTS11 (step 106), and in step 107, GTS11 obtains K1 based on UID2 and can repeat the steps shown in step 102 to send another message to SecApp10. In the case shown, GTS11 does not find key K1 based on UID2 and treats this event as a DoS attack (denial of service) and a random UID2 is sent to e.g. GTS11.
[0039] FIG. 2 shows what happens if the response from GTS 11 is lost when responding to SecApp 10 from GTS 11.
[0040] Steps 100 to 103 are identical to the same steps shown in FIG.
[0041] However, in step 103 (GTS11 is Resp1 * SecApp10) and then RESP1 * is not received by SecApp10 (step 120:Resp1 * is lost).
[0042] SecApp10 includes a timer that counts the period between the moment of sending UID1 (in step 101) and the moment of getting the response of GTS11. If no response is received within a given time frame, SecApp10 determines that the duration of GTS11's answer was too long and increments a counter (Resend_Counter) by one.
[0043] SecApp 10 then uses the same UID 1 to attempt a connection to GTS 11 (step 122).
[0044] GTS 11 then obtains K1 based on UID1 (UID2 has already been generated) and uses K1 to calculate signature SIG2, which is the signature of (MSG|Sent=2|UID1|UID_Rand).
[0045] The GTS11 is also - message MSG; - the number of messages sent (here 2 since the first message sent in step 102 was not received by SecApp 10); - SIG2; -UID_Rand Generates a message Resp2 containing the concatenation of
[0046] Next, GTS11 encrypts this Resp2 with key K1 (Resp2 * ) and returns it to SecApp10 (step 124).
[0047] Then (step 125), SecApp10 *with its own key K1 to obtain Resp2. SecApp10 then checks the validity of Resp2 (verifying UID1 and Sent=2). Sent=2 allows it to deduce the QoS (Quality of Service) and security objectives (DoS attacks).
[0048] SecApp 10 then derives UID2 for the next access to GTS 11 (as described in step 105 of FIG. 1).
[0049] Thus, in this figure, the encrypted first response (Resp1 * ) is not received by the terminal 10 within a predefined time frame after performing step 101, the terminal increments the value of a counter (Resend_Counter) by 1 and performs step 101 again (at step 122).
[0050] FIG. 3 shows what happens if UID1 is not received by GTS11.
[0051] Steps 100 and 101 are identical to those shown in FIGS.
[0052] However, after step 101 (SecApp10 sends UID1 to GTS11), the message is lost (step 130 - UID1 lost) and is not received by GTS11.
[0053] SecApp 10 then increments the counter after a predetermined time (step 131) and resends UID1 to GTS 11 (step 132).
[0054] Step 133 is identical to step 102 in FIGS.
[0055] In step 134, Resp1 * is sent to SecApp 10 which gets the message and Sent=1 (step 135).
[0056] This counter (Sent=1) makes it possible to evaluate the QoS and increases the security of the system.
[0057] SecApp10 can then derive UID2 to access GTS11.
[0058] Thus, in this figure, if the message sent in step 101 does not receive a reply from the remote server 11 within a predefined time frame, the terminal 10 increments a counter value (Resend_Counter) by 1 and repeats step 101 (at step 132).
[0059] Optionally, system security is improved if the encryption key K1 is changed for each new request. In such an embodiment:
[0060] The GTS11 is - after receiving a valid UID1 request, generating a unique UID2 based on K1, UID1 and UID_Rand; Derive a new key K2 from K1 associated with UID1 and UID_Rand; -Associate K2 with UID2, -Only use the new K2 when receiving a request containing a UID2 identifier.
[0061] SecApp10 is after receiving a valid response from the GTS and successfully extracting the UID_Rand from the decrypted response, generating a unique UID2 based on K1, UID1 and UID_Rand; Derive K2 from K1 associated with UID1 and the extracted UID_Rand; - Use K2 to decrypt the response from the GTS to the UID2 request.
[0062] The main advantages of the present invention are: - Minimizes communication overhead compared to session-based protocols (http) and is scalable due to the use of symmetric key-based encryption as opposed to HTTPS, which uses asymmetric keys; -Minimizing the power consumption of the device by: Use symmetric key encryption Very small packets over sessionless, stateless protocols (e.g. UDP) o Scalability can be further increased and power consumption at the device side can be improved to reduce round trip times if a local triggering system is used. In such a case, the global triggering system delegates the processing of terminal requests to a local triggering system located closer to the terminal, for example in an edge computing architecture deployment. -Providing device identity protection and confidentiality of communications.
Claims
1. A method for sending a message (MSG) from a remote server (11) sharing a private key (K1) to a terminal (10), comprising the steps of: i- sending a first identity (UID1) from said terminal (10) to said remote server (11); ii- obtaining said first identity (UID1) at said remote server (11) and obtaining said private key (K1) based on said first identity (UID1); iii- in said remote server (11), selecting a random number (UID_RAND) and generating a second identity (UID2) by said first identity (UID1), said random number (UID_RAND) and said secret key (K1); iv- generating, in said remote server (11), a signature (SIG) from said first identity (UID1), said message (MSG), a counter value (Sent), said random number (UID_RAND) and said private key (K1); v - in the remote server (11), generating a first response (Resp1) to the terminal (10), the first response (Resp1) being a concatenation of the message (MSG), the counter value (Sent), the signature (SIG) and the random number (UID_RAND), encrypting the first response (Resp1) with the private key (K1), and * ) to the terminal (10); vi - in the terminal (10), the encrypted first response (Resp1) is obtained * ) with the private key (K1), obtaining the message (MSG), the counter value (Sent), the signature (SIG) and the random number (UID_RAND), deriving an expected signature (XSIG) of the first response (Resp1), verifying whether the signature (SIG) is equal to the expected signature (XSIG), verifying whether the counter value (Sent) is correct, and if the counter value (Sent) is correct, deriving the second identity (UID2) from the first identity (UID1), the private key (K1) and the random number (UID_RAND).
2. 2. The method of claim 1, wherein if in step ii, the remote server (11) is unable to obtain the private key (K1) based on the first identity (UID1), the remote server (11) determines that a DoS attack has occurred.
3. The encrypted first response (Resp1) sent to the terminal (10) * 3. The method according to claim 1, wherein if a Resend_Counter is not received by the terminal (10) within a predefined time frame after performing step i, the terminal increments a counter value (Resend_Counter) by 1 and performs step i again.
4. 4. The method according to claim 3, wherein if the first response (Resp1*) sent in step v is not received by the terminal (10) and the terminal (10) does not send the second identity (UID2) to the remote server (11), the remote server (11) increments the counter value (Sent) by 1 and repeats step vi.
5. 4. The method according to claim 3, wherein if the terminal (10) does not receive a response from the remote server (11) within a predefined time frame for the first identity (UID1) sent in step i, it increments a counter value (Resend_Counter) by one and repeats step i with the incremented counter value (Resend_Counter).
6. A method according to any one of claims 1 to 5, wherein the first identity (UID1) and the second identity (UID2) are periodically transmitted by the terminal (10) to the remote server (11) based on rules transmitted by the remote server (11) to the terminal (10).
7. The method according to any of the preceding claims, wherein the remote server (11) is integrated into an OTA server.
8. 2. The method according to claim 1, wherein the transfer protocol between the terminal (10) and the remote server (11) is UDP.
9. The method of claim 1, wherein the reply message (MSG) in step v is for informing the terminal (10) to reduce the frequency of requests to the remote server (11).
10. 2. The method according to claim 1, wherein the reply message (MSG) in step v is for informing the terminal (10) to increase the frequency of requests to the remote server (11).
11. 2. The method of claim 1, wherein the return message in step v is to request on-board key generation.
12. 2. The method according to claim 1, wherein the return message in step v is for informing the terminal (10) to open an HTTP communication with an OTA server.
Citation Information
Patent Citations
How to load data into a portable secure token
JP2014504389A
Token-Based Authentication Using Signed Messages
JP2019527518A
Base station, wireless terminal, wireless communication system, wireless communication control method, and program
JP2020014120A
Wireless communication system and wireless communication method
WO2007032499A1
Method and apparatuses for ensuring secure attachment in size constrained authentication protocols
WO2020079287A1
