-
Notifications
You must be signed in to change notification settings - Fork 14
/
openid-risc-profile-specification-1_0.xml
593 lines (520 loc) · 26 KB
/
openid-risc-profile-specification-1_0.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/xsl' href='http://xml2rfc.tools.ietf.org/authoring/rfc2629.xslt' ?>
<!DOCTYPE rfc PUBLIC "-//IETF//DTD RFC 2629//EN" "http://xml2rfc.tools.ietf.org/authoring/rfc2629.dtd">
<!--
NOTE: This XML file is input used to produce the authoritative copy of an
OpenID Foundation specification. The authoritative copy is the HTML output.
This XML source file is not authoritative. The statement ipr="none" is
present only to satisfy the document compilation tool and is not indicative
of the IPR status of this specification. The IPR for this specification is
described in the "Notices" section. This is a public OpenID Foundation
document and not a private document, as the private="..." declaration could
be taken to indicate.
-->
<rfc docName="openid-risc-profile-specification-1_0" category="std" ipr="none">
<?rfc toc="yes" ?>
<?rfc tocdepth="5" ?>
<?rfc symrefs="yes" ?>
<?rfc sortrefs="yes"?>
<?rfc strict="yes" ?>
<?rfc iprnotified="no" ?>
<?rfc private="Draft" ?>
<?rfc comments="yes"?>
<front>
<title abbrev="openid-risc-profile-specification">OpenID RISC Profile Specification 1.0 - draft 03</title>
<author initials="M." surname="Scurtescu" fullname="Marius Scurtescu">
<organization abbrev="Coinbase">Coinbase</organization>
<address>
<email>[email protected]</email>
</address>
</author>
<author initials="A." surname="Backman" fullname="Annabelle Backman">
<organization abbrev="Amazon">Amazon</organization>
<address>
<email>[email protected]</email>
</address>
</author>
<author initials="P." surname="Hunt" fullname="Phil Hunt">
<organization abbrev="Oracle">Oracle Corporation</organization>
<address>
<email>[email protected]</email>
</address>
</author>
<author initials="J." surname="Bradley" fullname="John Bradley">
<organization abbrev="Yubico">Yubico</organization>
<address>
<email>[email protected]</email>
</address>
</author>
<author initials="S." surname="Bounev" fullname="Stan Bounev">
<organization abbrev="VeriClouds">VeriClouds</organization>
<address>
<email>[email protected]</email>
</address>
</author>
<author initials="A." surname="Tulshibagwale" fullname="Atul Tulshibagwale">
<organization abbrev="SGNL">SGNL</organization>
<address>
<email>[email protected]</email>
</address>
</author>
<date year="2023" month="March" day="21"/>
<workgroup>Shared Signals</workgroup>
<abstract>
<t>This document defines the Risk Incident Sharing and Coordination (RISC) Event
Types based on the <xref target="SHARED-SIGNALS-FRAMEWORK">Shared Signals
Framework (SSF)</xref>. Event Types are introduced and defined in <xref target="SET">
Security Event Token (SET)</xref>.</t>
</abstract>
</front>
<middle>
<section anchor="intro" title="Introduction">
<t>This specification defines event types and their contents based on the
<xref target="SHARED-SIGNALS-FRAMEWORK">Shared Signals Framework</xref> that are required to
implement Risk Incident Sharing and Coordination.</t>
<section anchor="conv" title="Notational Conventions">
<t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL
NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED",
"MAY", and "OPTIONAL" in this document are to be interpreted as
described in BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/>
when, and only when, they appear in all capitals, as shown here.</t>
</section>
</section>
<section anchor="event-types" title="Event Types">
<t>The base URI for RISC event types is:<vspace />
https://schemas.openid.net/secevent/risc/event-type/</t>
<section anchor="account-credential-change-required" title="Account Credential Change Required">
<t>Event Type URI:<vspace />
https://schemas.openid.net/secevent/risc/event-type/account-credential-change-required</t>
<t>Account Credential Change Required signals that the account identified by the subject was required to
change a credential. For example the user was required to go through a password change.</t>
<t>Attributes: none</t>
<figure anchor="account-credential-change-required-example" title="Example: Account Credential Change Required">
<artwork><![CDATA[
{
"iss": "https://idp.example.com/",
"jti": "756E69717565206964656E746966696572",
"iat": 1508184845,
"aud": "636C69656E745F6964",
"sub_id": {
"format": "iss_sub",
"iss": "https://idp.example.com/",
"sub": "7375626A656374"
},
"events": {
"https://schemas.openid.net/secevent/risc/event-type/\
account-credential-change-required": {}
}
}
]]></artwork>
<postamble><spanx style="emph">(the event type URI is wrapped, the backslash is the continuation character)</spanx></postamble>
</figure>
</section>
<section anchor="account-purged" title="Account Purged">
<t>Event Type URI:<vspace />
https://schemas.openid.net/secevent/risc/event-type/account-purged</t>
<t>Account Purged signals that the account identified by the subject has been permanently deleted.</t>
<t>Attributes: none</t>
</section>
<section anchor="account-disabled" title="Account Disabled">
<t>Event Type URI:<vspace />
https://schemas.openid.net/secevent/risc/event-type/account-disabled</t>
<t>Account Disabled signals that the account identified by the subject has been disabled. The actual reason why the
account was disabled might be specified with the nested <spanx style="verb">reason</spanx> attribute described below. The account may be
<xref target="account-enabled">enabled</xref> in the future.</t>
<t>Attributes:<list style="symbols">
<t>reason - optional, describes why was the account disabled. Possible values:<list style="symbols">
<t>hijacking</t>
<t>bulk-account</t>
</list></t>
</list></t>
<figure anchor="account-disabled-example" title="Example: Account Disabled">
<artwork><![CDATA[
{
"iss": "https://idp.example.com/",
"jti": "756E69717565206964656E746966696572",
"iat": 1508184845,
"aud": "636C69656E745F6964",
"sub_id": {
"format": "iss_sub",
"iss": "https://idp.example.com/",
"sub": "7375626A656374",
},
"events": {
"https://schemas.openid.net/secevent/risc/event-type/\
account-disabled": {
"reason": "hijacking"
}
}
}
]]></artwork>
<postamble><spanx style="emph">(the event type URI is wrapped, the backslash is the continuation character)</spanx></postamble>
</figure>
</section>
<section anchor="account-enabled" title="Account Enabled">
<t>Event Type URI:<vspace />
https://schemas.openid.net/secevent/risc/event-type/account-enabled</t>
<t>Account Enabled signals that the account identified by the subject has been enabled.</t>
<t>Attributes: none</t>
</section>
<section anchor="identifier-changed" title="Identifier Changed">
<t>Event Type URI:<vspace />
https://schemas.openid.net/secevent/risc/event-type/identifier-changed</t>
<t>Identifier Changed signals that the identifier specified in the subject has changed. The subject
type MUST be either <spanx style="verb">email</spanx> or <spanx style="verb">phone</spanx>
and it MUST specify the old value.</t>
<t>This event SHOULD be issued only by the provider that is authoritative over the identifier.
For example, if the person that owns <spanx style="verb">[email protected]</spanx> goes
through a name change and wants the new <spanx style="verb">[email protected]</spanx> email
then <spanx style="strong">only</spanx> the email provider <spanx style="verb">example.com</spanx>
SHOULD issue an Identifier Changed event as shown in the example below.</t>
<t>If an identifier used as a username or recovery option is changed, at a provider that is not
authoritative over that identifier, then <xref target="recovery-information-changed">Recovery Information Changed</xref>
SHOULD be used instead.</t>
<t>Attributes:<list style="symbols">
<t>new-value - optional, the new value of the identifier.</t>
</list></t>
<figure anchor="identifier-changed-example" title="Example: Identifier Changed">
<artwork><![CDATA[
{
"iss": "https://idp.example.com/",
"jti": "756E69717565206964656E746966696572",
"iat": 1508184845,
"aud": "636C69656E745F6964",
"sub_id": {
"format": "email",
"email": "[email protected]"
},
"events": {
"https://schemas.openid.net/secevent/risc/event-type/\
identifier-changed": {
"new-value": "[email protected]"
}
}
}
]]></artwork>
<postamble>The <spanx style="verb">[email protected]</spanx> email changed to <spanx style="verb">[email protected]</spanx>.
<spanx style="emph">(the event type URI is wrapped, the backslash is the continuation character)</spanx></postamble>
</figure>
</section>
<section anchor="identifier-recycled" title="Identifier Recycled">
<t>Event Type URI:<vspace />
https://schemas.openid.net/secevent/risc/event-type/identifier-recycled</t>
<t>Identifier Recycled signals that the identifier specified in the subject was recycled and now it
belongs to a new user. The subject type MUST be either <spanx style="verb">email</spanx> or
<spanx style="verb">phone</spanx>.</t>
<t>Attributes: none</t>
<figure anchor="identifier-recycled-example" title="Example: Identifier Recycled">
<artwork><![CDATA[
{
"iss": "https://idp.example.com/",
"jti": "756E69717565206964656E746966696572",
"iat": 1508184845,
"aud": "636C69656E745F6964",
"sub_id": {
"format": "email",
"email": "[email protected]"
},
"events": {
"https://schemas.openid.net/secevent/risc/event-type/\
identifier-recycled": {}
}
}
]]></artwork>
<postamble>The '[email protected]' email address was recycled.
<spanx style="emph">(the event type URI is wrapped, the backslash is the continuation character)</spanx></postamble>
</figure>
</section>
<section anchor="credential-compromise" title="Credential Compromise">
<t>Event Type URI:</t>
<t><spanx style="verb">https://schemas.openid.net/secevent/risc/event-type/credential-compromise</spanx></t>
<t>A Credential Compromise event signals that the identifier specified in the subject was found to
be compromised.</t>
<t>Attributes:<list style="symbols">
<t>credential_type - REQUIRED. The type of credential that is compromised. The value of this attribute
must be one of the values specified for the similarly named field in the <spanx style="verb">
Credential Change</spanx> event defined in the <xref target="CAEP-SPECIFICATION">CAEP Specification</xref>.
</t>
<t>event_timestamp - OPTIONAL. JSON number: the time at which the event described by this SET was discovered by the
Transmitter. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in
UTC until the date/time.</t>
<t>reason_admin - OPTIONAL. The reason why the credential compromised event was generated, intended
for administrators</t>
<t>reason_user - OPTIONAL. The reason why the credential compromised event was generated, intended
for end-users</t>
</list>
</t>
<figure title="Example: Compromised credential found" anchor="credential-compromise-example">
<artwork type="json"><![CDATA[
{
"iss": "https://idp.example.com/3456790/",
"jti": "756E69717565206964656E746966696572",
"iat": 1508184845,
"aud": "https://sp.example2.net/caep",
"sub_id": {
"format": "iss_sub",
"iss": "https://idp.example.com/3456790/",
"sub": "[email protected]"
},
"events": {
"https://schemas.openid.net/secevent/risc/event-type/credential-compromise": {
"credential_type": "password"
}
}
}
]]></artwork>
<postamble><spanx style="emph">(the event type URI is wrapped, the backslash is the
continuation character)</spanx></postamble>
</figure>
</section>
<section anchor="opt-out" title="Opt Out">
<t>Users SHOULD be allowed to opt-in and out of RISC events being sent for their accounts. With regards
to opt-out, an account can be in one of these three states:<list style="numbers">
<t>opt-in - the account is participating in RISC event exchange.</t>
<t>opt-out-initiated - the user requested to be excluded from RISC event exchanges, but for
practical security reasons for a period of time RISC events are still exchanged. The main reason
for this state is to prevent a hijacker from immediately opting out of RISC.</t>
<t>opt-out - the account is NOT participating in RISC event exchange.</t>
</list></t>
<figure anchor="opt-out-states" title="Opt-Out States and Opt-Out Events">
<preamble>State changes trigger Opt-Out Events as represented below:</preamble>
<artwork><![CDATA[
+--------+ opt-out-initiated +-------------------+
| +---------------------> |
| opt-in | | opt-out-initiated |
| | opt-out-cancelled | |
| <---------------------+ |
+---^----+ +----------+--------+
| |
| opt-in | opt-out-effective
| |
| +----------V--------+
| | |
+--------------------------| opt-out |
| |
+-------------------+
]]></artwork>
</figure>
<t>Both Transmitters and Receivers SHOULD manage Opt-Out state for users. Transmitters should send the
events defined in this section when the Opt-Out state changes.</t>
<section anchor="opt-in" title="Opt In">
<t>Event Type URI:<vspace />
https://schemas.openid.net/secevent/risc/event-type/opt-in</t>
<t>Opt In signals that the account identified by the subject opted into RISC event exchanges.
The account is in the <spanx style="verb">opt-in</spanx> state.</t>
<t>Attributes: none</t>
</section>
<section anchor="opt-out-initiated" title="Opt Out Initiated">
<t>Event Type URI:<vspace />
https://schemas.openid.net/secevent/risc/event-type/opt-out-initiated</t>
<t>Opt Out Initiated signals that the account identified by the subject initiated to opt out
from RISC event exchanges. The account is in the <spanx style="verb">opt-out-initiated</spanx> state.</t>
<t>Attributes: none</t>
</section>
<section anchor="opt-out-cancelled" title="Opt Out Cancelled">
<t>Event Type URI:<vspace />
https://schemas.openid.net/secevent/risc/event-type/opt-out-cancelled</t>
<t>Opt Out Cancelled signals that the account identified by the subject cancelled the opt out from RISC
event exchanges. The account is in the <spanx style="verb">opt-in</spanx> state.</t>
<t>Attributes: none</t>
</section>
<section anchor="opt-out-effective" title="Opt Out Effective">
<t>Event Type URI:<vspace />
https://schemas.openid.net/secevent/risc/event-type/opt-out-effective</t>
<t>Opt Out Effective signals that the account identified by the subject was effectively opted out from
RISC event exchanges. The account is in the <spanx style="verb">opt-out</spanx> state.</t>
<t>Attributes: none</t>
</section>
</section>
<section anchor="recovery-activated" title="Recovery Activated">
<t>Event Type URI:<vspace />
https://schemas.openid.net/secevent/risc/event-type/recovery-activated</t>
<t>Recovery Activated signals that the account identified by the subject activated a recovery flow.</t>
<t>Attributes: none</t>
</section>
<section anchor="recovery-information-changed" title="Recovery Information Changed">
<t>Event Type URI:<vspace />
https://schemas.openid.net/secevent/risc/event-type/recovery-information-changed</t>
<t>Recovery Information Changed signals that the account identified by the subject has changed some of
its recovery information. For example a recovery email address was added or removed.</t>
<t>Attributes: none</t>
</section>
<section anchor="sessions-revoked" title="Sessions Revoked">
<t>Note: This event type is now deprecated. New implementations MUST use the <spanx style="verb">
session-revoked</spanx> event defined in the <xref target="CAEP-SPECIFICATION">CAEP Specification</xref>.</t>
<t>Event Type URI:<vspace />
https://schemas.openid.net/secevent/risc/event-type/sessions-revoked</t>
<t>Sessions Revoked signals that all the sessions for the account identified by the subject have been
revoked.</t>
<t>Attributes: none</t>
</section>
</section>
<section anchor="compatibility" title="Compatibility">
<section anchor="google-subject-type" title="Google Subject Type Value">
<t>
Implementers are hereby made aware that the existing RISC implementation
by Google uses the field name <spanx style="verb"> subject_type</spanx>
instead of the field name <spanx style="verb">format</spanx> to indicate
the format of the subject identifier. The usage of the field name
<spanx style="verb">subject_type</spanx> is deprecated and new services
MUST NOT use this field name.</t>
<t>
Relying parties wishing to receive events from the Google RISC
transmitter therefore need to have code to work around this, until such
time as their implementation is updated. Any such workaround should be
written in a manner that does not break if Google updates their
implementation to conform to this specification.</t>
</section>
</section>
</middle>
<back>
<references title='Normative References'>
<reference anchor="SET" target="https://tools.ietf.org/html/draft-ietf-secevent-token-09">
<front>
<title>Security Event Token (SET)</title>
<author fullname="Phil Hunt" initials="P." role="editor" surname="Hunt">
<organization />
</author>
<author fullname="Michael B. Jones" initials="M.B." surname="Jones">
<organization />
</author>
<author fullname="William Denniss" initials="W." surname="Denniss">
<organization />
</author>
<author fullname="Morteza Ansari" initials="M.A." surname="Ansari">
<organization />
</author>
<date year="2018" month="April" />
</front>
</reference>
<reference anchor="RFC2119" target='https://www.rfc-editor.org/info/rfc2119'>
<front>
<title>Key words for use in RFCs to Indicate Requirement Levels</title>
<author initials='S.' surname='Bradner' fullname='S. Bradner'><organization /></author>
<date year='1997' month='March' />
<abstract><t>In many standards track documents several words are used to signify the requirements in the specification. These words are often capitalized. This document defines these words as they should be interpreted in IETF documents. This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t></abstract>
</front>
<seriesInfo name='BCP' value='14'/>
<seriesInfo name='RFC' value='2119'/>
<seriesInfo name='DOI' value='10.17487/RFC2119'/>
</reference>
<reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174">
<front>
<title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
<author initials="B." surname="Leiba" fullname="B. Leiba">
<organization/>
</author>
<date year="2017" month="May"/>
<abstract>
<t>RFC 2119 specifies common key words that may be used in protocol specifications. This
document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the
key words have the defined special meanings.</t>
</abstract>
</front>
<seriesInfo name="BCP" value="14"/>
<seriesInfo name="RFC" value="8174"/>
<seriesInfo name="DOI" value="10.17487/RFC8174"/>
</reference>
<reference anchor="SHARED-SIGNALS-FRAMEWORK" target="https://openid.net/specs/openid-sse-framework-1_0-01.html">
<front>
<title>OpenID Shared Signals and Events Framework Specification 1.0</title>
<author initials="A." surname="Tulshibagwale" fullname="Atul Tulshibagwale">
<organization abbrev="Google">Google</organization>
<address>
<email>[email protected]</email>
</address>
</author>
<author initials="T." surname="Cappalli" fullname="Tim Cappalli">
<organization abbrev="Microsoft">Microsoft</organization>
<address>
<email>[email protected]</email>
</address>
</author>
<author initials="M." surname="Scurtescu" fullname="Marius Scurtescu">
<organization abbrev="Coinbase">Coinbase</organization>
<address>
<email>[email protected]</email>
</address>
</author>
<author initials="A." surname="Backman" fullname="Annabelle Backman">
<organization abbrev="Amazon">Amazon</organization>
<address>
<email>[email protected]</email>
</address>
</author>
<author initials="J." surname="Bradley" fullname="John Bradley">
<organization abbrev="Yubico">Yubico</organization>
<address>
<email>[email protected]</email>
</address>
</author>
<date year="2021" month="June" day="8"/>
</front>
</reference>
<reference anchor="CAEP-SPECIFICATION" target="https://openid.net/specs/openid-caep-specification-1_0-01.html">
<front>
<title abbrev="CAEP-Spec">OpenID Continuous Access Evaluation Profile 1.0 - draft 01</title>
<author initials="T." surname="Cappalli" fullname="Tim Cappalli">
<organization>Microsoft</organization>
<address>
<email>[email protected]</email>
</address>
</author>
<author initials="A." surname="Tulshibagwale" fullname="Atul Tulshibagwale">
<organization>Google</organization>
<address>
<email>[email protected]</email>
</address>
</author>
<date year="2021" month="June" day="08"/>
</front>
</reference>
</references>
<section title="Acknowledgements" anchor="ack">
<t>The authors wish to thank all members of the OpenID Foundation Shared Signals
Working Group who contributed to the development of this
specification.</t>
</section>
<section anchor="Notices" title="Notices">
<t>Copyright (c) 2022 The OpenID Foundation.</t>
<t>
The OpenID Foundation (OIDF) grants to any Contributor, developer,
implementer, or other interested party a non-exclusive, royalty free,
worldwide copyright license to reproduce, prepare derivative works from,
distribute, perform and display, this Implementers Draft or
Final Specification solely for the purposes of (i) developing
specifications, and (ii) implementing Implementers Drafts and
Final Specifications based on such documents, provided that attribution
be made to the OIDF as the source of the material, but that such attribution
does not indicate an endorsement by the OIDF.
</t>
<t>
The technology described in this specification was
made available from contributions from various sources,
including members of the OpenID Foundation and others.
Although the OpenID Foundation has taken steps to help ensure
that the technology is available for distribution, it takes
no position regarding the validity or scope of any intellectual
property or other rights that might be claimed to pertain to
the implementation or use of the technology described in
this specification or the extent to which any license under
such rights might or might not be available; neither does it
represent that it has made any independent effort to identify
any such rights. The OpenID Foundation and the contributors
to this specification make no (and hereby expressly disclaim any)
warranties (express, implied, or otherwise), including implied
warranties of merchantability, non-infringement, fitness for
a particular purpose, or title, related to this specification,
and the entire risk as to implementing this specification is
assumed by the implementer. The OpenID Intellectual
Property Rights policy requires contributors to offer
a patent promise not to assert certain patent claims against
other contributors and against implementers. The OpenID Foundation invites
any interested party to bring to its attention any copyrights,
patents, patent applications, or other proprietary rights
that may cover technology that may be required to practice
this specification.
</t>
</section>
</back>
</rfc>