The present disclosure relates to a system and a method for authorizing a user or a client using an access token mechanism in a wireless network, and relates more particularly to a system and a method utilizing OAuth 2.0 in 5th-Generation Core (5GC)-based mobile networks.
OAuth 2.0, which an authorization protocol currently being mandated for 5G Core (5GC), is utilized to provide a mechanism for authorizing a user/client (e.g., consumer network function (cNF) to receive or access another 3rd party resource server (e.g., producer Network Function (pNF)). In general, OAuth 2.0 protocol identifies three entities as follows: 1) Oauth 2.0 Authorization server, which is the Network Resource Function (NRF) in 3GPP 5G Core security architecture; 2) Oauth 2.0 Client, which is the consumer Network Function (cNF) in in 3GPP 5G Core security architecture; and 3) Oauth 2.0 Resource Server, which is the producer Network Function (pNF) in 3GPP 5G Core security architecture. After the cNF registers with NRF and discovers the pNF it would receive service from, the cNF sends an authorization request (e.g., Access_Token_Get Request) to the NRF. The NRF authenticates the cNF using mutual Transport Layer Security (mTLS) by validating the certificate of the cNF and the cNF ID that is included in the cNF certificate. After mutual authentication between the cNF and the NRF, the NRF issues an access token to the cNF that can be used to present to the pNF.
Amongst other information, the access token includes the following: the cNF ID that has been authenticated by the NRF; the expiration Date; Scope of the service the cNF is being authorized to receive; the pNF ID or the pNF type; and the NRF signature. One of the most important aspects of the access token is that the token includes the NRF signature. In other words, the NRF signs the access token using its private key. A pNF always TRUSTs the NRF and has a secure access to the NRF public key to be able to validate the access token.
Current validation scheme includes validating the NRF signature, validating the access token expiration date, the scope, etc. One of the aspects of the validation that is still not completely resolved is the validation of the ownership of the access token, i.e., how the pNF ensures that the presented access token was actually issued to the cNF that is presenting the token. In the case of direct communication between the cNF and the pNF, the validation of ownership can be done by validating the cNF ID which is included in the access token, and thereby ensure it is the same as the cNF ID in the cNF Transport Layer Security (TLS) certificate. In other words, after the pNF authenticates the cNF through mutual Transport Layer Security (mTLS) protocol using the cNF TLS certificate, the pNF compare the cNF ID in the certificate with the authorized ID in the access token. However, there is no currently-known solution for the validation of the access token ownership when the cNF communicates with the pNF through a proxy node, i.e., during hop-by-hop security. Therefore, there is a need for mechanisms to enable access token ownership validation during indirect communication or over secure hop-by-hop links.
The present disclosure provides example embodiments of mechanisms to enable access token ownership validation during indirect communication or over secure hop-by-hop links with multiple proxy nodes in the middle between the cNF and the pNF.
The present disclosure provides example embodiments of solutions to the issue of the pNF not being able to validate the ownership of the access token during indirect communication or secure hop-by-hop.
In one example embodiment, secure hop-by-hop communication can be used to provide proof of ownership as long as there is a trust model between the pNF, the cNF and the proxy node between the pNF and the cNF, e.g., Service Communication Proxy (SCP). This static trust model can work in multiple ways. The following two ways are listed as examples: i) pNF and cNF are statically configured with the SCP(s) that is allowed to trust; or ii) pNF and cNF dynamically discover the trusted SCP(s) using, for example, operator secure infrastructure Domain Name System (DNS) or Network Repository Function (NRF).
In one example embodiment, when the cNF receives the access token from the NRF, the cNF does the following at the time of sending the service request to the pNF through SCP: i) adds the time stamp at the end of the access token; and ii) signs the whole token with the time stamp and add the signature.
In one example embodiment, the cNF uses the hash output of the http service request as a one-time variable.
In one example embodiment, the cNF builds the http service request with the access token that was delivered to the cNF from NRF.
In one example embodiment, a proxy node, e.g., SCP, forwards the http service request received from the cNF to the pNF, and the SCP includes the cNF certificate when forwarding the http service request to the pNF.
In one example embodiment, a statically configured and distributed symmetric secret key can be used in generating the hash of the http service request.
In example embodiments of the present disclosure, mechanisms are provided to enable access token ownership validation during indirect communication or over secure hop-by-hop links with multiple proxy nodes in the middle between the cNF and the pNF, e.g., in the context of utilizing OAuth 2.0 protocol in 5GC. Although the present disclosure utilizes 5GC as example technology, the present disclosure is not limited to 5GC, and is applicable to various wireless technologies in which an authorization using an access token mechanism is used. For example, Oauth 2.0 is applicable for implementation in LTE, e.g., with the availability of Service Based Architecture (SBA).
In a first example embodiment of the present disclosure, secure hop-by-hop communication can be used to provide proof of ownership as long as there is a trust model among the pNF, the cNF and the proxy node between the pNF and the cNF, e.g., Service Communication Proxy (SCP). This static trust model can work in multiple ways. The following two ways are listed as examples: i) pNF and cNF are statically configured with the SCP(s) that is allowed to trust; or ii) pNF and cNF dynamically discover the trusted SCP(s), for example, using operator-secure-infrastructure Domain Name System (DNS) or the Network Repository Function (NRF). In this model, the SCP mutually authenticates the cNF using mutual Transport Layer Security (mTLS) protocol and the cNF certificate, as follows. SCP initially validates that the authorized ID in the access token is the ID of the cNF, e.g., validates that the NF Instance ID in the access token matches the NF Instance ID in the cNF certificate. The SCP then forwards the cNF service request and inserts the cNF authenticated ID or the cNF certificate for the pNF to use for validating the ownership of the access token. The form of the cNF authenticated ID in the access token can be one of the following or any other form that can be authenticated by the received: a) NF Instance ID, or b) hash of the cNF mTLS certificate.
As shown in
In a second example embodiment of the present disclosure, when the cNF receives the access token from the NRF, the cNF performs the following prior to sending the service request to the pNF through SCP: i) adds the time stamp at the end of the access token; and ii) signs the whole access token including the time stamp by adding the cNF signature. The added timestamp ensures that the cNF-signed access token can be used for one time only, but this does not invalidate the access token until its expiration date. In other words, the cNF can keep using the access token until its expiration date, but every time the cNF issues a service request, the cNF inserts the time stamp at the time of issuing the service request and then signs the access token and the timestamp as explained above.
In a third example embodiment of the present disclosure, for each access token, the cNF will maintain a counter or an increasing random number, i.e., the cNF will save the last random number or counter value the cNF used when signing the access token, e.g., the cNF can save the random number or the counter value in the Unstructured Data Storage Function (UDSF). The cNF can use a single random number for all of its current access tokens, e.g., if the cNF has two access tokens for two different services, the cNF can maintain one single increasing random number for all the access tokens. The pNF saves and tracks the NF Instance ID or whatever ID is used to authenticate the NF and the cNF token random number.
In a fourth example embodiment of the present disclosure, the hash of the http request the cNF sent to the pNF through SCP is used as the one-time variable/evidence associated with the access token. As shown in
In a fifth example embodiment of the present disclosure, which example embodiment is explained in connection with
In the example embodiments according to the present disclosure, an assurance mechanism provides an assurance to the pNF of the complete integrity of the proof of ownership evidence which the cNF included in connection with the http service request. Because the assurance mechanism ensures that the proof is end-to-end, i.e., the integrity of the proof extends all the way from the cNF to the pNF despites the fact that there is an SCP in the middle, the assurance mechanism is valid for any one or a combination of the previously proposed example embodiments. For example, all of the previously explained example embodiments use the certificate for ensuring the integrity of the proof of ownership coming from the cNF, as that solution is dynamic and scales well. However, a statically configured and distributed symmetric secret keys can be used instead of the asymmetric keys of the certificate. For example, a combination of an http request, an access token and a secret key can be hashed (e.g., using hash-based message authentication code (HMAC) such as HMAC-256), and the output of the hash can be included as part of the http service request to the pNF. The pNF hashes the received http service request the same way the cNF has done, using the same shared secret key to validate the http service request coming from the cNF. In this case, the shared secret key is mapped against the cNF authorized ID which is included in the access token.
In the following section, defenses provided by the above example embodiments against malicious attacks are discussed. In a first example, defense against an attack involving a cNF stealing a token is discussed. In this example attack, it is assumed that the attacking cNF is compromised, and the attacking cNF has access to the token of another cNF (referred to as the victim cNF), which victim cNF is used by the attacking cNF to receive service. The previously described example embodiments of authorizing/validating access token according to the present disclosure defeats this example attack because the attacking cNF, although having access to the victim cNF token, will not be able to sign the access token. If the attacker receives a victim cNF access token that has been already signed, the attacker will not be able to use the victim cNF signed access token because the time stamp is not valid.
In another example attack scenario, it is assumed that an attacker (e.g., attacking cNF) has compromised the SCP and can have access to the communication between the compromised SCP and a victim cNF, such that the attacker saves the victim cNF's signed token. If the attacker tries to use the victim cNF's signed token, the attack will fail because the signed token is valid for a single time and will fail the timestamp check.
Before describing the example call flow sequences in
As shown in
The above-described example embodiments in the present disclosure are also applicable to establish mutual authentication between the cNF and the NRF. The previously described fifth example embodiment is used here as an example of the applicability. For the case in which the cNF sends an access token request to the NRF via SCP, the cNF performs the following: i) generates the http access token request; ii) signs the http access token request using the cNF private key and includes the signature as an http header; and iii) sends the http access token request and the cNF signature to the SCP over a secure mTLS connection. SCP then forwards the http access token request from the cNF to the NRF, and SCP includes the cNF certificate as another http header. NRF validates the authenticity of the http access token request by validating the cNF signature using the cNF public key as in the forwarded cNF certificate. If the NRF validation is successful, NRF processes the access token request and issues an access token to the cNF.
In this section, cNF authentication of NRF during indirect communication is briefly described. If it is required for the cNF to authenticate the NRF, the NRF signs the http Access_Token_Get Response and includes it as an http header protecting the whole http request and the access token. When the SCP receives the Access_Token_Get Response, the SCP includes the NRF certificate and then forwards to the cNF. The cNF validates the NRF signature of the http Access_Token_Get Response using the NRF public key. One example validation mechanism can be implemented by configuring the cNF with the NRF public key or certificate, thereby eliminating the need for the SCP to include the NRF certificate.
Some of the advantages of the above-described example embodiments in connection with authorization are described below:
An example embodiment provides an end-to-end mechanism which allows the resource server, e.g., producer Network Function (pNF), to validate whether the client, e.g., consumer Network Function (cNF), is the owner of the access token that has been issued and authorized by the Authorization Server, e.g., NRF, and is being presented in the received Http service request.
An example embodiment provides a validation mechanism which is executed by the pNF and is based on the client (cNF) signature of the access token that has been signed by the NRF and issued to the client (cNF).
An example embodiment provides a validation mechanism which is strictly tied to the current Http Service Request which is presented by a proxy node, e.g., SCP, on behalf of the cNF to the pNF.
An example embodiment provides a time stamp which is i) used as a mechanism to tie the access token signed by the cNF to the current Http Service Request, and ii) protected by the cNF signature of the access token.
An example embodiment provides the use of an increasing random number to tie the access token signed by the cNF to the current Http Service Request, which random number is protected by the cNF signature of the access token.
An example embodiment provides the use of a Hash of the Http Service Request (HASH) to tie the access token signed by the cNF to the current Http Service Request, which HASH is protected by the cNF signature of the access token.
An example embodiment provides the use of a validation mechanism which is executed by the pNF and which is based on the client (cNF) signature of the whole Http Service Request that includes the access token issued and signed by the NRF to the cNF, thereby directly tying the access token to the current Http service request being presented to the pNF by a proxy node, e.g., SCP.
An example embodiment provides the use of a validation mechanism which is executed by the pNF and which is based on a Hash of the combination of the Http Service Request, the access token and a shared secret key between the cNF and the pNF, wherein the output of the Hash is added to the end of the Http Service Request, and wherein the pNF validates the Hash by i) hashing the Http service request including the access token and the shared secret key, and ii) comparing the Hash function output to the HASH included with the Http service request as received from the cNF through the SCP.
An example embodiment provides the use of a validation mechanism in which the pNF validates the cNF signature using the cNF public key that is included in the cNF certificate which is signed by a trusted Certificate Authority (CA).
An example embodiment provides the use of a validation mechanism in which the pNF receives the cNF certificate in the Http service request where the cNF certificate has been added by the SCP.
An example embodiment provides the use of a validation mechanism in which the pNF receives the cNF certificate in the Http service request where the cNF certificate has been added to the Http service request by the cNF itself
Some of the advantages of the above-described example embodiments in connection with authentication of the client are described below:
An example embodiment provides an end-to-end mechanism which allows the Authorization Server, e.g., an NRF, to authenticate the client, e.g., cNF, which is requesting authorization through a proxy node, e.g., SCP, wherein the NRF is required to authenticate the client before authorizing the client and issuing it an access token.
An example embodiment provides an authentication mechanism which is executed by the NRF and which is based on the client (cNF) signature of the Http Access_Token Get Request.
An example embodiment provides an authentication mechanism which is executed by the NRF and which is based on the client (cNF) signature of the Http Access_Token Get Request that includes a timestamp of the time the cNF issued the Http Service Request.
An example embodiment provides an authentication mechanism which is executed by the NRF and which is based on the client (cNF) signature of the Http Access_Token Get Request that includes an increasing random number that was inserted by the cNF, wherein the cNF tracks the increasing random number, and the NRF tracks each cNF increasing random number.
An example embodiment provides an authentication mechanism in which the NRF receives the cNF certificate in the Http Access_Token_Get request, wherein the cNF certificate has been added by the SCP.
An example embodiment provides an authentication mechanism in which the NRF receives the cNF certificate in the Http Access_Token_Get request, wherein the cNF certificate has been added to the Http service request by the cNF itself
An example embodiment provides an authentication mechanism which is executed by the NRF and which is based on a Hash of the combination of the Http Access_Token_Get Request and a shared secret key between the cNF and the NRF, wherein the output of the Hash is added to the end of the Http Access_Token_GET Request, and wherein the NRF authenticates the Hash by i) hashing the Http Access_Token_Get request and the shared secret key, and ii) comparing the Hash function output to the HASH included with the Http Access_Token_GET request as received from the cNF through the SCP.
An example embodiment provides an authentication mechanism in which the cNF is authenticated during the access token allocation, whereby signing of the access token is not implemented.
An example embodiment provides an authentication mechanism which is executed during the DISCOVERY or the REGISTRATION of the cNF with the NRF in case the REGISTRATION or the DISCOVERY happens through the proxy node, e.g., SCP.
As a summary, several examples of the method according to the present disclosure are provided.
A first example of the method according to the present disclosure provides a method of performing validation of an access token for wireless communication, comprising: providing, by an authorization server, the access token for service to a client in response to a request for the access token; adding, by the client, a client signature to at least the access token; forwarding, by the client, the access token as part of a service request to a resource server; and validating, by the resource server, whether the client is a valid owner of the access token, wherein the validation is based on at least the client signature of the access token.
In a second example of the method modifying the first example of the method, the validation of the access token is under OAuth 2.0 protocol, the resource server is a producer Network Function (pNF), the client is a consumer Network Function (cNF), and the authorization server is a network repository function (NRF), and wherein the access token additionally includes a signature of the authorization server.
In a third example of the method modifying the second example of the method, the service request is forwarded from the client via a proxy node to the resource server.
In a fourth example of the method modifying the first example of the method, a time stamp is associated with the access token signed by the client and forwarded as part of the service request, and wherein the time stamp is protected by the signature of the client on the access token.
In a fifth example of the method modifying the first example of the method, an increasing random number is associated with the access token signed by the client and forwarded as part of the service request, and wherein the increasing random number is protected by the signature of the client on the access token.
In a sixth example of the method modifying the first example of the method, a hash of the service request is associated with the access token signed by the client and forwarded as part of the service request, and wherein the hash of the service request is protected by the signature of the client on the access token.
In a seventh example of the method modifying the third example of the method, the client signature is provided for the entire service request including the access token, and wherein the access token is signed by the authorization server, whereby the access token is associated with the service request forwarded to the resource server by the proxy node.
In an eight example of the method modifying the third example of the method, the validation is based on a hash of a combination of the service request, the access token and a shared secret key common to the client and the resource server, and wherein the output of the hash is added to the service request, and wherein the resource server validates the hash by i) hashing the service request including the access token and the shared secret key, and ii) comparing the output of the hashing by the resource server with the hash added to the service request received via the proxy node.
In a ninth example of the method modifying the third example of the method, the resource server validates the client signature using a client server public key included in a client server certificate signed by a trusted certificate authority (CA).
In a tenth example of the method modifying the ninth example of the method, the client server certificate is added to the service request by the proxy node, and wherein the resource server receives the client server certificate in the service request.
In an eleventh example of the method modifying the ninth example of the method, the client server certificate is added to the service request by the client server, and wherein the resource server receives the client server certificate in the service request.
A twelfth example of the method according to the present disclosure provides a method of performing authentication of a client for wireless communication, comprising: sending, by the client, a request to an authorization server via a proxy node, to obtain an access token, wherein the request to obtain the access token contains a client signature of the client; authenticating, by the authorization server, the client as a valid recipient of the access token; and authorizing, by the authorization server, the access token to the client after authenticating the client, wherein the authorization is based on at least the client signature contained in the request to obtain the access token.
In a thirteenth example of the method modifying the twelfth example of the method, the authentication of the access token is under OAuth 2.0 protocol, the client is a consumer Network Function (cNF), the authorization server is a network repository function (NRF), and the proxy node is a Service Communication Proxy (SCP).
In a fourteenth example of the method modifying the twelfth example of the method, the request to obtain the access token additionally contains a timestamp of when the client issued the request to obtain the access token.
In a fifteenth example of the method modifying the twelfth example of the method, the request to obtain the access token additionally contains an increasing random number inserted by the client and tracked by both the client and the authorization server.
In a sixteenth example of the method modifying the twelfth example of the method, the request to obtain the access token additionally contains a client certificate added by the proxy node.
In a seventeenth example of the method modifying the twelfth example of the method, the request to obtain the access token additionally contains a client certificate added by the client.
In an eighteenth example of the method modifying the twelfth example of the method, the authentication is based on a hash of a combination of the request to obtain the access token and a shared secret key common to the client and the authorization server, and wherein the output of the hash is added to the request to obtain the access token, and wherein the authorization server authenticates the hash by i) hashing the request to obtain the access token and the shared secret key, and ii) comparing the output of the hashing by the authorization server with hash added to the request to obtain the access token received from the client via the proxy node.
In a nineteenth example of the method modifying the twelfth example of the method, the client is authenticated during access token allocation, whereby signing of the access token is not implemented.
In a twentieth example of the method modifying the twelfth example of the method, the authentication is performed during one of discovery or registration of the client with the authorization server in the case the one of the discovery or registration is implemented through the proxy node.
The present application claims the benefit of U.S. Provisional Patent Application No. 62/989,170, filed on Mar. 13, 2020, which is incorporated by reference herein in its entirety.
Number | Date | Country | |
---|---|---|---|
62989170 | Mar 2020 | US |