|
TECHNICAL SPECIFICATION
LTE;
5G;
Security Aspects of Common API Framework for 3GPP
Northbound APIs
(3GPP TS 33.122 version 15.0.0 Release 15)
---------------------- Page: 1 ----------------------
3GPP TS 33.122 version 15.0.0 Release 15 1 ETSI TS 133 122 V15.0.0 (2018-09)
Reference
RTS/TSGS-0333122vf00
Keywords
5G,LTE,SECURITY
ETSI
650 Route des Lucioles
F-06921 Sophia Antipolis Cedex - FRANCE
Tel.: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16
Siret N° 348 623 562 00017 - NAF 742 C
Association à but non lucratif enregistrée à la
Sous-Préfecture de Grasse (06) N° 7803/88
Important notice
The present document can be downloaded from:
The present document may be made available in electronic versions and/or in print. The content of any electronic and/or
print versions of the present document shall not be modified without the prior written authorization of ETSI. In case of any
existing or perceived difference in contents between such versions and/or in print, the only prevailing document is the
print of the Portable Document Format (PDF) version kept on a specific network drive within ETSI Secretariat.
Users of the present document should be aware that the document may be subject to revision or change of status.
Information on the current status of this and other ETSI documents is available at
If you find errors in the present document, please send your comment to one of the following services:
Copyright Notification
No part may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying
and microfilm except as authorized by written permission of ETSI.
The content of the PDF version shall not be modified without the written authorization of ETSI.
The copyright and the foregoing restriction extend to reproduction in all media.
© ETSI 2018.
All rights reserved.
TM TM TM
DECT , PLUGTESTS , UMTS and the ETSI logo are trademarks of ETSI registered for the benefit of its Members.
TM TM
3GPP and LTE are trademarks of ETSI registered for the benefit of its Members and
of the 3GPP Organizational Partners.
oneM2M logo is protected for the benefit of its Members.
GSM and the GSM logo are trademarks registered and owned by the GSM Association.
ETSI
---------------------- Page: 2 ----------------------
3GPP TS 33.122 version 15.0.0 Release 15 2 ETSI TS 133 122 V15.0.0 (2018-09)
Intellectual Property Rights
Essential patents
IPRs essential or potentially essential to normative deliverables may have been declared to ETSI. The information
pertaining to these essential IPRs, if any, is publicly available for ETSI members and non-members, and can be found
in ETSI SR 000 314: "Intellectual Property Rights (IPRs); Essential, or potentially Essential, IPRs notified to ETSI in
respect of ETSI standards", which is available from the ETSI Secretariat. Latest updates are available on the ETSI Web
server (https://ipr.etsi.org/).
Pursuant to the ETSI IPR Policy, no investigation, including IPR searches, has been carried out by ETSI. No guarantee
can be given as to the existence of other IPRs not referenced in ETSI SR 000 314 (or the updates on the ETSI Web
server) which are, or may be, or may become, essential to the present document.
Trademarks
The present document may include trademarks and/or tradenames which are asserted and/or registered by their owners.
ETSI claims no ownership of these except for any which are indicated as being the property of ETSI, and conveys no
right to use or reproduce any trademark and/or tradename. Mention of those trademarks in the present document does
not constitute an endorsement by ETSI of products, services or organizations associated with those trademarks.
Foreword
This Technical Specification (TS) has been produced by ETSI 3rd Generation Partnership Project (3GPP).
The present document may refer to technical specifications or reports using their 3GPP identities, UMTS identities or
GSM identities. These should be interpreted as being references to the corresponding ETSI deliverables.
The cross reference between GSM, UMTS, 3GPP and ETSI identities can be found under
.
Modal verbs terminology
In the present document "shall", "shall not", "should", "should not", "may", "need not", "will", "will not", "can" and
"cannot" are to be interpreted as described in clause 3.2 of the ETSI Drafting Rules (Verbal forms for the expression of
provisions).
"must" and "must not" are NOT allowed in ETSI deliverables except when used in direct citation.
ETSI
---------------------- Page: 3 ----------------------
3GPP TS 33.122 version 15.0.0 Release 15 3 ETSI TS 133 122 V15.0.0 (2018-09)
Contents
Intellectual Property Rights . 2
Foreword . 2
Modal verbs terminology . 2
Foreword . 4
1 Scope . 5
2 References . 5
3 Definitions, symbols and abbreviations . 5
3.1 Definitions . 5
3.2 Symbols . 5
3.3 Abbreviations . 5
4 Security Requirements . 6
4.1 General . 6
4.2 Common security requirements . 6
4.3 Security requirements on the CAPIF-1/1e reference points . 6
4.4 Security requirements on the CAPIF-2/2e reference points . 7
4.5 Security requirements on the CAPIF-3/4/5 reference points . 7
5 Functional Security Model . 7
6 Security Procedures . 8
6.1 Security procedures for API invoker onboarding . 8
6.2 Security procedures for CAPIF-1 reference point . 10
6.3 Security procedures for CAPIF-1e reference point . 10
6.3.1 Authentication and Authorization . 10
6.4 Security procedures for CAPIF-2 reference point . 11
6.5 Security procedures for CAPIF-2e reference point . 12
6.5.1 General . 12
6.5.2 Authentication and authorization . 12
6.6 Security procedures for CAPIF-3/4/5 reference points . 15
6.7 Security procedures for updating security method . 16
6.8 Security procedure for API invoker offboarding . 16
Annex A (normative): Key derivation functions . 18
A.1 AEFPSK derivation function. 18
Annex B (informative): Security flows . 19
B.1 Onboarding . 19
B.2 Authentication and authorization . 20
Annex C (informative): Change history . 23
History . 24
ETSI
---------------------- Page: 4 ----------------------
3GPP TS 33.122 version 15.0.0 Release 15 4 ETSI TS 133 122 V15.0.0 (2018-09)
Foreword
This Technical Specification has been produced by the 3rd Generation Partnership Project (3GPP).
The contents of the present document are subject to continuing work within the TSG and may change following formal
TSG approval. Should the TSG modify the contents of the present document, it will be re-released by the TSG with an
identifying change of release date and an increase in version number as follows:
Version x.y.z
where:
x the first digit:
1 presented to TSG for information;
2 presented to TSG for approval;
3 or greater indicates TSG approved document under change control.
y the second digit is incremented for all changes of substance, i.e. technical enhancements, corrections,
updates, etc.
z the third digit is incremented when editorial only changes have been incorporated in the document.
ETSI
---------------------- Page: 5 ----------------------
3GPP TS 33.122 version 15.0.0 Release 15 5 ETSI TS 133 122 V15.0.0 (2018-09)
1 Scope
The present document specifies the security architecture i.e., the security features and the security mechanisms for the
common API framework (CAPIF) as per the architecture and procedures defined in 3GPP TS 23.222 [3].
2 References
The following documents contain provisions which, through reference in this text, constitute provisions of the present
document.
- References are either specific (identified by date of publication, edition number, version number, etc.) or
non-specific.
- For a specific reference, subsequent revisions do not apply.
- For a non-specific reference, the latest version applies. In the case of a reference to a 3GPP document (including
a GSM document), a non-specific reference implicitly refers to the latest version of that document in the same
Release as the present document.
[1] 3GPP TR 21.905: "Vocabulary for 3GPP Specifications".
[2] 3GPP TS 33.310: "Network Domain Security (NDS); Authentication Framework (AF)".
[3] 3GPP TS 23.222: "Common API Framework for 3GPP Northbound APIs".
[4] IETF RFC 6749: "The OAuth 2.0 Authorization Framework".
[5] IETF RFC 6750: "The OAuth 2.0 Authorization Framework: Bearer Token Usage".
[6] IETF RFC 7519: "JSON Web Token (JWT)".
[7] IETF RFC 7515: "JSON Web Signature (JWS)".
[8] 3GPP TS 33.220: "Generic Authentication Architecture (GAA); Generic Bootstrapping
Architecture (GBA)".
[9] IETF RFC 5246: "The Transport Layer Security (TLS) Protocol Version 1.2".
3 Definitions, symbols and abbreviations
3.1 Definitions
For the purposes of the present document, the terms and definitions given in 3GPP TR 21.905 [1] and the following
apply. A term defined in the present document takes precedence over the definition of the same term, if any, in 3GPP
TR 21.905 [1].
3.2 Symbols
For the purposes of the present document, the following symbols apply:
AEF Pre-Shared Key for AEF
PSK
3.3 Abbreviations
For the purposes of the present document, the abbreviations given in 3GPP TR 21.905 [1] and the following apply. An
abbreviation defined in the present document takes precedence over the definition of the same abbreviation, if any, in
3GPP TR 21.905 [1].
AEF API Exposing Function
API Application Programming Interface
ETSI
---------------------- Page: 6 ----------------------
3GPP TS 33.122 version 15.0.0 Release 15 6 ETSI TS 133 122 V15.0.0 (2018-09)
CAPIF Common API Framework
JSON JavaScript Object Notation
JWT JSON Web Token
KDF Key Derivation Function
PKI Public Key Infrastructure
PSK Pre-Shared Key
TLS Transport Layer Security
4 Security Requirements
4.1 General
Architectural requirements pertaining to CAPIF security are found in 3GPP TS 23.222 [3]. The following are CAPIF
derived security requirements.
4.2 Common security requirements
Security requirements that are applicable to all CAPIF entities are:
- [CAPIF-SEC-4.2-a] The CAPIF shall provide mechanisms to hide the topology of the PLMN trust domain from
the API invokers accessing the service APIs from outside the PLMN trust domain.
- [CAPIF-SEC-4.2-b] The CAPIF shall provide mechanisms to hide the topology of the 3rd party API provider
trust domain from the API invokers accessing the service APIs from outside the 3rd party API provider trust
domain.
- [CAPIF-SEC-4.2-c] The CAPIF shall provide authorization mechanism for service APIs from the 3rd party API
providers.
- [CAPIF-SEC-4.2-d] The CAPIF shall support a common security mechanism for all API implementations to
provide confidentiality and integrity protection.
- [CAPIF-SEC-4.2-e] API invoker authentication and authorization shall support all deployment models listed in
3GPP TS 23.222 [3].
- [CAPIF-SEC-4.2-f] The API invoker and CAPIF should enforce the result of the authentication for the duration
of communications (e.g. by integrity protection or implicit authentication by encryption with a key that is
derived from the authentication and is unknown to the adversary).
4.3 Security requirements on the CAPIF-1/1e reference points
The CAPIF-1/1e reference points between the API invoker and the CAPIF core function shall fulfil the following
requirements:
- [CAPIF-SEC-4.3-a] Mutual authentication between the API invoker and the CAPIF Core function shall be
supported.
- [CAPIF-SEC-4.3-b] The transport of messages over the CAPIF-1 and CAPIF-1e reference points shall be
integrity protected.
- [CAPIF-SEC-4.3-c] The transport of messages over the CAPIF-1 and CAPIF-1e reference points shall be
protected from replay attacks.
- [CAPIF-SEC-4.3-d] The transport of messages over the CAPIF-1 and CAPIF-1e reference points shall be
confidentiality protected.
- [CAPIF-SEC-4.3-e] Privacy of the 3GPP user over the CAPIF-1 and CAPIF-1e reference points shall be
protected.
- [CAPIF-SEC-4.3-f] The CAPIF core function shall authorize the API invoker prior to the API invoker accessing
the AEF.
ETSI
---------------------- Page: 7 ----------------------
3GPP TS 33.122 version 15.0.0 Release 15 7 ETSI TS 133 122 V15.0.0 (2018-09)
- [CAPIF-SEC-4.3-g] The CAPIF core function shall authorize the API invoker prior to accessing the discover
service API.
- [CAPIF-SEC-4.3-h] The CAPIF core function shall authenticate the API invoker's onboarding request.
4.4 Security requirements on the CAPIF-2/2e reference points
The CAPIF-2/2e reference points between the API invoker and API exposing function shall fulfil the following
requirements:
- [CAPIF-SEC-4.4-a] Mutual authentication between the API invoker and the API exposing function shall be
supported.
- [CAPIF-SEC-4.4-b] The transport of messages over the CAPIF-2 and CAPIF-2e reference points shall be
integrity protected.
- [CAPIF-SEC-4.4-c] The transport of messages over the CAPIF-2 and CAPIF-2e reference points shall be
protected from replay attacks.
- [CAPIF-SEC-4.4-d] The transport of messages over the CAPIF-2 and CAPIF-2e reference points shall be
confidentiality protected.
- [CAPIF-SEC-4.4-e] Privacy of the 3GPP user over the CAPIF-2 and CAPIF-2e reference points shall be
protected.
- [CAPIF-SEC-4.4-f] The API exposing function shall determine whether API invoker is authorized to access
service API.
4.5 Security requirements on the CAPIF-3/4/5 reference points
The security requirements for CAPIF-3/4/5 reference points are:
- [CAPIF-SEC-4.5-a] The transport of messages over the CAPIF-3/4/5 reference points shall be integrity
protected.
- [CAPIF-SEC-4.5-b] The transport of messages over the CAPIF-3/4/5 reference points shall be confidentiality
protected.
- [CAPIF-SEC-4.5-c] The transport of messages over the CAPIF-3/4/5 reference points shall be protected from
replay attacks.
- [CAPIF-SEC-4.5-d] The CAPIF core function shall be able to authenticate the service API publishers to publish
and manage the service API information.
- [CAPIF-SEC-4.5-e] The CAPIF core function shall be able to authorize the service API publishers to publish
and manage the service API information.
5 Functional Security Model
Figure 5-1 shows the functional security model for the CAPIF architecture. The interfaces CAPIF-1, CAPIF-1e,
CAPIF-2, CAPIF-2e, CAPIF-3, CAPIF-4 and CAPIF-5 are defined in 3GPP TS 23.222 [3] and support the CAPIF
functionality defined in 3GPP TS 23.222 [3]. CAPIF-1, CAPIF-2, CAPIF-3, CAPIF-4 and CAPIF-5 are interfaces that
lie within the PLMN trust domain while the CAPIF-1e and CAPIF-2e interfaces are CAPIF core and AEF access points
for API Invokers outside of the PLMN trust domain.
Security for the CAPIF-1, CAPIF-2, CAPIF-3, CAPIF-4 and CAPIF-5 interfaces support TLS and are defined in
subclauses 6.2, 6.4 and 6.6 of the present document. Security for the CAPIF-1e and CAPIF-2e interfaces support TLS
and are defined in subclause 6.3 and subclause 6.5, respectively.
Authentication and authorization are required for both API invokers that lie within the PLMN trust domain and API
invokers that lie outside of the PLMN trust domain. For an API invoker that is outside of the PLMN trust domain, the
CAPIF core function in coordination with the API exposing function utilizes the CAPIF-1e, CAPIF-2e and the CAPIF-3
interfaces to onboard, authenticate and authorize the API invoker prior to granting access to CAPIF services. Security
ETSI
---------------------- Page: 8 ----------------------
3GPP TS 33.122 version 15.0.0 Release 15 8 ETSI TS 133 122 V15.0.0 (2018-09)
flow diagrams for onboarding security, CAPIF-1e security and CAPIF-2e security can be found in Annex B. When the
API invoker is within the PLMN trust domain, the CAPIF core function in coordination with the API exposing function
perform authentication and authorization of the API invoker via the CAPIF-1, the CAPIF-2 and the CAPIF-3 interfaces
prior to granting access to CAPIF services. Authentication and authorization of API invokers (both internal and external
to the PLMN trust domain) is specified in clause 6 of the present document.
API invoker
n
i
API invoker
CAPIF-1e
a
m
o
D
TLS
t
s
TLS
u
r
TLS
T
N
M
L CAPIF-2
TLS
P
CAPIF-1
CAPIF-2e
CAPIF APIs Service APIs
ServSeicerv AicPeI sAPIs
CAPIF-3
TLS
API exposing function
CAPIF-4
TLS
API publishing function
CAPIF core function
CAPIF-5
API management function
TLS
API provider domain
Figure 5-1: CAPIF functional security model
6 Security Procedures
6.1 Security procedures for API invoker onboarding
The API invoker and the CAPIF core function shall follow the procedure in this subclause to secure and authenticate the
onboarding of the API invoker to the CAPIF core function. The API invoker and the CAPIF core function shall
establish a secure session using TLS.
With a secure session established, the API Invoker sends an Onboard API Invoker Request message to the CAPIF core.
The Onboard API Invoker Request message carries an onboard credential obtained during pre-provisioning of the
onboard enrolment information, which may be an OAuth 2.0 [4] access token. When the OAuth 2.0 token based
mechanism is used as the onboarding credential, the access token shall be encoded as JSON web token as specified in
IETF RFC 7519 [6], shall include the JSON web signature as specified in IETF RFC 7515 [7], and shall be validated
per OAuth 2.0 [4], IETF RFC 7519 [6] and IETF RFC 7515 [7]. Other credentials may also be used (e.g. message
digest).
Figure 6.1-1 details the security information flow for the API invoker onboarding procedure. The OAuth 2.0 token
based authentication credential is shown in this example.
ETSI
---------------------- Page: 9 ----------------------
3GPP TS 33.122 version 15.0.0 Release 15 9 ETSI TS 133 122 V15.0.0 (2018-09)
API invoker CAPIF core function
API provider domain
1. Onboarding enrollment information
[CCF(Address,Root CA Certifcate),
OAuth 2.0 Access token]
4. Verify OAuth
access token.
5. Generate API
invoker Profile
6. Onboard API Invoker Response
[API Invoker ID, API Invoker Certificate,
Service API Authentication and Authorization information(Onboard_Secret)]
Figure 6.1-1: Security procedure for API invoker onboarding
1. As a prerequisite to the onboarding procedure, the API invoker obtains onboarding enrolment information from
the API provider domain. The onboarding enrolment information is used to authenticate and establish a secure
TLS communication with the CAPIF core function during the onboarding process. The enrolment information
includes details of the CAPIF core function (Address, and Root CA certificate) and includes an onboarding
credential (the OAuth 2.0 [4] access token).
NOTE 1: The procedure used to obtain the enrolment information by the API invoker is out of scope of the present
document.
2. The API invoker and CAPIF core function shall establish a secure session based on TLS (Server side certificate
authentication). The API invoker shall use the enrolment information obtained in step 1 to establish the TLS
session with the CAPIF core function.
3. After successful establishment of the TLS session, the API invoker shall send an Onboard API invoker request
message to the CAPIF core function along with the enrolment credential (OAuth 2.0 [4] access token). The API
invoker generates the key pair {Private Key, Public key} and provides the public key along with the Onboard
API invoker request.
4. The CAPIF core function shall validate the enrolment credential (OAuth 2.0 [4] access token).
5. If validation of the credential (the OAuth 2.0 [4] access token in this example) is successful, the CAPIF core
function shall generate an API invoker's profile as specified in TS 23.222 [3] which may contain the selected
method for AEF authentication and authorization between the API Invoker and the AEF (see subclause 6.5.2).
The CAPIF core function may generate API invoker's certificate on its own, for the assigned API invoker
identity and public key. This certificate shall be used by the API invoker for subsequent authentication
procedures with the CAPIF core function and may be used for establishing a secure connection and
authentication with the API Exposing Function. The CAPIF core function may optionally generate an
Onboard_Secret if the subscribed Service API uses Method 3 (as specified in clause 6.5.2.3 of the present
document) for CAPIF-2e security. The Onboard_Secret value remains the same during the lifetime of the
onboarding, and shall be bound to the CAPIF core function specific API Invoker ID.
ETSI
---------------------- Page: 10 ----------------------
3GPP TS 33.122 version 15.0.0 Release 15 10 ETSI TS 133 122 V15.0.0 (2018-09)
NOTE 2: When API invoker's client certificate is issued by the third party, then in Step 3 the API invoker can
additionally include the certificate in Onboard API Invoker request message. If the CAPIF core function
trusts the issuer of the API invoker's client certificate, then the CAPIF Core Function includes the
provided certificate in the API invoker's profile, in step 5. It is up to the CAPIF domain policy to accept
the client certificates issued by third party.
6. The CAPIF core function shall respond with an Onboard API invoker response message. The response shall
include the CAPIF core function assigned API invoker ID, AEFAuthentication and authorization information,
API invoker's certificate and the API invoker Onboard_Secret (if generated by the CAPIF core function).
6.2 Security procedures for CAPIF-1 reference point
TLS shall be used to provide integrity protection, replay protection and confidentiality protection. The support of TLS is
mandatory and optional to use based on the domain administrator's policy to protect interfaces within the trusted
domain.
If domain administrator chooses to apply security protections in CAPIF-1 reference point, the procedure in subclause
6.3 of the present document shall be used.
6.3 Security procedures for CAPIF-1e reference point
6.3.1 Authentication and Authorization
For authentication of the CAPIF-1e reference point, mutual authentication based on client and server certificates shall
be performed between the CAPIF core function and the API invoker using TLS.
Certificate based authentication shall follow the profiles given in 3GPP TS 33.310 [2], subclauses 6.1.3a and 6.1.4a.
The structure of the PKI used for the certificate is out of scope of the present document.
TLS shall be used to provide integrity protection, replay protection and confidentiality protection for CAPIF-1e
interface. The support of TLS on CAPIF-1e interface is mandatory. Security profiles for TLS implementation and usage
shall follow the provisions given in TS 33.310 [2], Annex E.
The API invoker and the CAPIF core function shall negotiate a security method that shall be used by the API invoker
and the API exposing function for CAPIF-2e interface authentication and protection. After successful mutual
authentication on CAPIF-1e interface, based on the API invoker's subscribed service APIs, access scenarios (whether
the API invoker access the AEF prior to service API invocation or upon the service API invocation) and AEF
capabilities, the CAPIF core function shall choose the security method and sends the chosen security methods along
with the information required for authentication of the API invoker at the AEF to the API invoker. The information may
include the validity time of the CAPIF-2e credentials. This is depicted in figure 6.3.1-1.
Pre-conditions:
1. The API invoker is onboarded with the CAPIF core function.
ETSI
---------------------- Page: 11 ----------------------
3GPP TS 33.122 version 15.0.0 Release 15 11 ETSI TS 133 122 V15.0.0 (2018-09)
API invoker CAPIF core function
1. TLS establishment
3. select a security
method
4. Security Method Response (AEF details, Selected security Method and Security
Information)
Figure 6.3.1-1: Selection of security method to be used in CAPIF-2/2e reference point
1. Mutual authentication based on client and server certificates shall be established using TLS between the API
invoker and the CAPIF core function. The client certificate that was provided to the API invoker as the result of
successful onboarding is used based on the description in subclause 6.1 of the present document.
2. The API invoker may send CAPIF-2/2e security capability information to the CAPIF core function in the
Security Method Request message, indicating the list of security methods that the API invoker supports over
CAPIF-2/2e reference point for each AEF.
3. The CAPIF core function shall select a security method to be used over CAPIF-2/2e reference point for each
requested AEF, taking into account the information from the API invoker in step 2, access scenarios and AEF
capabilities.
4. The CAPIF core function shall send Security Method Response message to the API invoker, indicating the
selected security method for each AEF, any security information related to the security method. The API invoker
shall use this method in the subsequent communication establishment with the API exposing function over
CAPIF-2/2e reference point, as described in subclause 6.5 of the present document.
After successful authentication between API invoker and CAPIF core function, the CAPIF core function shall decide
whether the API invoker is authorized to perform discovery based on API invoker ID
...