Commit a3895721 authored by Mark Shepherd's avatar Mark Shepherd
Browse files

First run-through complete by Mark S, needs review now.

parent 918ad689
Loading
Loading
Loading
Loading
Loading
+77 −17
Changes for 104338/TR_104338.md: 77 added lines, 17 removed lines.
Original line number Diff line number Diff line
@@ -104,46 +104,51 @@ For the purposes of the present document, the following abbreviations apply:

## 4.1 Purpose

The present document describes a technique for giving extra assurance about the authorization and authentication of a user from an Authorized Organization when logging in to a Provider Portal. The provider uses this extra assurance in line with their established processes. 
The present document describes a technique for giving extra assurance about the authorization and authentication of a user from an Authorized Organization when logging in to a Provider Portal. The provider uses this extra assurance as part of their processes for handling requests from AOs. 

An Authorized Organization is defined as in ETSI TS 102 657. 
An Authorized Organization (AO) is defined as 
any authority legally authorized to request or receive data e.g. a Law Enforcement Agency 

A Provider Portal is defined as in ETSI TR 104 196 [x]. We could rewrite the definition here: A provider portal is defined to be a website hosted by, or on behalf of the provider which allows an Authorized Organization to type in requests and then receive results either through the website or delivered over other channels (not specified here). 
EDITOR'S NOTE: This is similar but not identical to ETSI TS 102 657. 

An AO User is an individual from an Authorized Organization. 

A provider portal is defined to be a website hosted by, or on behalf of the provider which allows an Authorized Organization to type in requests and then receive results either through the website or delivered over other channels (not specified here). 

EDITOR'S NOTE: We could just reference TR 104 196, but that would be an informative link to a definition we are using in normative sections. 

An AO Security Server is a function managed by the AO which gives assurances about authentication and authorization of AO Users. 


- AO security server. 

## 4.2 Levels of assurance

The present document defines the following levels of assurance: 

- Authentication: That the AO user is who they say they are.
- Core authorization: That the AO user is (at that point in time) a valid user of that portal. 
- Additional authorization: That the AO user is (at that point in time) allowed to make the specific request in question. 

Providing assurance to cover the additional authorization scenario is out of scope of the present document. The technique defined in the present document covers both authentication and core authorization.  
- Authorization: That the AO user is (at that point in time) a valid user of that portal. 

The technique defined in the present document covers both authentication and authorization (as defined above). 

It would be possible to consider a stronger level of authorization: that the AO user is (at that point in time) allowed to make the specific request in question. Providing assurance to cover this additional authorization scenario is out of scope of the present document. 


## 4.3 Reference model

The following activites happen prior to the processes in the present document and are out of scope:  

- An LEA user visits a provider portal.  
- The provider portal asks the user for various pieces of information or checks (which may include username or password).  
- An LEA user visits a Provider Portal.  
- The Provider Portal asks the user for various pieces of information or checks (which may include username or password).  

The following activities are part of the scope of the present document 
- The provider portal makes contact with the AO server. 
- The AO server asks the AO user for various details of the AO user (username, password or a 2FA item e.g. a code from a hardware token, dongle or authenticator app). The AO server makes a determination about whether they think this user is authenticated (that they are who they say they are). There should also be a check that this user is a permitted user of the provider portal (i.e. Core Authorization). 
- The Provider Portal makes contact with the AO Security Server. 
- The AO Security Server asks the AO User for various details of the AO User (which could include username, password or a 2FA item e.g. a code from a hardware token, dongle or authenticator app). The AO Security Server makes a determination about whether they think the AO User is authenticated (that they are who they say they are). There should also be a check that the AO User is a permitted user of the provider portal (i.e. authorization as defined in clause 4.2). 
- The AO servier securely returns this determination and any additional relevant information to the provider. 

The following activities happen after the processes in the present document and are out of scope: 
- The provider determines whether to respond to the AO user's request. 
- It would be very unusual for a provider to respond to a request if the AO Server says no. 
- The checks described in the present document would often be part of a wider set of checks made by the provider. This could result in situations where the AO Server check is positive but other factors mean that the request is declined. In this situation, further conversation between the AO and Provider would be helpful.
- The Provider Portal determines whether to respond to the AO User's request. 
- It would be very unusual for a provider to respond to a request if the AO Security Server says no. 
- The checks described in the present document would often be part of a wider set of checks made by the provider. This could result in situations where the AO Security Server check is positive but other factors mean that the request is declined. In this situation, further conversation between the AO and provider would be helpful.


## 4.4 Reference picture (informative)
@@ -152,7 +157,7 @@ Could copy the picture from LI(26)74006.

![A picture showing the reference design](fig441.png)

**Figure 4.4-1: Approach to portal design**
**Figure 4.4-1: Reference picture**



@@ -175,12 +180,67 @@ Reference to OIDC

## 5.2	Component of a profile for using OIDC which are fixed in the present document 

- Some choices about algorithms/protocols (e.g. the algorithm used to sign the protocol) 
- Specifying options within OpenID Connect (e.g. that we use PKCE, whether code_challenge is enforced? whether the client is confidential? whether we allow dynamic discovery of endpoints?)
- Require there to be exact case-sensitive callback paths (where the IdP can send codes/tokens)
- How single sign-out is handled? 
- Key rotation and token lifetimes? 
- Audience and issuer values (what strigs to put in iss and what clients expect when validating tokens)
- Description of what claims might or will be present. Presumably there is a core identity that we are assuring (the "username" from the portal) and then there are many other optional claims (phone number, actual name, organisation, badge number, rank) that, if they are present, shall be written in a clear standardised way. 

The present document does not compel any AO User to share any specific piece of information. It is optional about whether information such as real name or phone number is shared. There could be many reasons not to share such information (which are not listed here). Where additional information can be shared, it could help the provider build a better security picure more quickly, which supports the goal of the present document. 

EDITOR'S NOTE: The details in clause 5.2 should be checked by an expert - I have written them based on web-searching but they should be checked by someone who has more implementation experience of OIDC. 

## 5.3 Components of a profile for using OIDC which shall be agreed by the parties

- List the endpoints/URLs that users of the standard must specify in order to interact. This could be the Issuer URL plus specific endpoints (e.g. where the user logs in, token endpoints). 
- We could say something about how clientIDs are chosen? 
- We can reiterate that callback paths shall be agreed by the parties involved? 

EDITOR'S NOTE: The details in clause 5.3 should be checked by an expert - I have written them based on web-searching but they should be checked by someone who has more implementation experience of OIDC. 


# 6	Techniques at the AO Security Server

## 6.1 Purpose

Clause 6 describes some techniques which the AO Security Server might choose to use in order to create a strong assessment of Authentication and Authorization. The present document does not require any of these techniques. The present document enables the AO Security Server to give a clear description of which techniques are used, to help the provider have an accurate picture of the levels of assurance when making an assessment about how to respond. 

Clause 6 explains a list of possible techniques and gives a clear way for the AO Security Server to say that they are in use. 

The present document contains a way to signal that certain techniques were (or were not) in use at the AO Security Server on a case-by-case basis. This could cover situations where some AO Users were assured (with the AO Security Server) with two-factor authentication (2FA) but other AO Users might not have this feature enabled. The present document supports this situation by allowing each request to indicate whether or not 2FA had been used for that particular request.  


## 6.2 List of possible techniques

### 6.2.1 Multi-factor authentication

This covers situations where the AO Security Server gets more than one level of assurance from the AO User. Typically the first factor would be a username and password, and then the additional factor could be:
 - A number sent to an AO User's device (noting that there are issues with SMS security). Keyword "2FA_SMS". 
 - A number from an authenticating applicatipon on an AO User's device. Keyword "2FA_APP". 
 - A specific device issued to an AO User which provides numbers. Keyword "2FA_DEV". 
 - A biometric ID (fingerprint or face ID). Keyword "2FA_BIO". 

The present document does not assign a particular weight to any given method. The keywords provide a shorthand which can be included in the claim to indicate methods that were used in that specific case. 

### 6.2.2 Rapid revocation 

This point covers a process where the AO has processes in place to ensure that users are rapidly removed from the list at the AO Security Server once their eligibility has expired. They must be no longer able to get assurances from the AO Security Server within a short period of their authority ceasing. 

The keyword used would be "REVOKE". 

The keyword "REVOKE_24" would state that processes were in place to assure that users were removed immediately (when the expiry was planned e.g. change of job role) or within 24 hours (when the expiry was unplanned). There should be evidence that this is tested and measured. 

The keyword "REVOKE_WEEK" would state that revocation processes were in place but typically took a week. 

### 6.2.3 Latest version of OIDC

# 6	Techniques which the AO server uses that build confidence for providers
It is useful to keep up-to-date with updates to the underlying standard. There is no need to have extra fields for versioning of OIDC as this would be apparent from the underlying protocol. 

### 6.2.4 Wider security measures at AO Security Server

EDITOR'S NOTE: For further study - we could list any general cyber security standards which the AO Security Server might follow. We should only find a few basic ones that the Providers consider relevant. There is no point in listing huge sets of low-relevance standards.