File: gaia_password_reuse.proto

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (105 lines) | stat: -rw-r--r-- 4,094 bytes parent folder | download | duplicates (6)
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
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Security Events used for recording security related events.

// If you change or add any fields in this file, update proto_visitors.h and
// potentially proto_enum_conversions.{h, cc}.

syntax = "proto2";

option java_multiple_files = true;
option java_package = "org.chromium.components.sync.protocol";

option optimize_for = LITE_RUNTIME;

package sync_pb;

// User reused their GAIA password on another website.
message GaiaPasswordReuse {
  // Logged when we detect a password re-use event on a non-GAIA site.
  // If the user hasn’t enabled SafeBrowsing, this will be the last event.
  message PasswordReuseDetected {
    message SafeBrowsingStatus {
      // Is SafeBrowsing enabled?
      optional bool enabled = 1;
      // If SafeBrowsing is enabled, is the user opted-in to extended
      // reporting or Scout?
      enum ReportingPopulation {
        REPORTING_POPULATION_UNSPECIFIED = 0;
        NONE = 1;
        EXTENDED_REPORTING = 2;
        SCOUT = 3;
        ENHANCED_PROTECTION = 4;
      }
      optional ReportingPopulation safe_browsing_reporting_population = 2;
    }
    optional SafeBrowsingStatus status = 1;
  }
  optional PasswordReuseDetected reuse_detected = 1;

  message PasswordReuseLookup {
    enum LookupResult {
      UNSPECIFIED = 0;
      // URL did match the password reuse allowlist.
      // No further action required related to this re-use event.
      ALLOWLIST_HIT = 1;
      // The URL exists in the client’s cache.
      // No further action required related to this re-use event.
      // This event also logs the ReputationVerdict.
      CACHE_HIT = 2;
      // A valid response received from the SafeBrowsing service.
      // This event also logs the ReputationVerdict.
      REQUEST_SUCCESS = 3;
      // Unable to get a valid response from the SafeBrowsing service.
      REQUEST_FAILURE = 4;
      // We won't be able to compute reputation for the URL e.g. local IP
      // address, localhost, not-yet-assigned by ICANN gTLD, etc.
      URL_UNSUPPORTED = 5;
      // URL did match enterprise allowlist.
      // No further action required related to this re-use event.
      ENTERPRISE_ALLOWLIST_HIT = 6;
      // Password reuse lookup is turned off by enterprise policy.
      // No further action required related to this re-use event.
      TURNED_OFF_BY_POLICY = 7;
    }
    optional LookupResult lookup_result = 1;

    // The following two are only present for CACHE_HIT and REQUEST_SUCCESS.
    // The verdict received from the Reputation service. This is set only
    // if the user has SafeBrowsing enabled and we fetch the verdict from the
    // cache or by sending a verdict request.
    enum ReputationVerdict {
      VERDICT_UNSPECIFIED = 0;
      SAFE = 1;
      LOW_REPUTATION = 2;
      PHISHING = 3;
    }
    optional ReputationVerdict verdict = 2;
    // PhishGuard token that identifies the verdict on the server.
    optional bytes verdict_token = 3;
  }
  // Logged when we try to detect whether the password was reused on a
  // Phishing or a Low-reputation site.
  optional PasswordReuseLookup reuse_lookup = 2;

  // Logged when the user interacts with the warning UI shown to encourage
  // password change if the site is Phishing or Low-reputation.
  message PasswordReuseDialogInteraction {
    enum InteractionResult {
      UNSPECIFIED = 0;
      // The user took the action suggested by the warning prompt.
      WARNING_ACTION_TAKEN = 1;
      // The user clicked ignore in the warning prompt.
      WARNING_ACTION_IGNORED = 2;
      // The warning UI was ignored, i.e. not interacted with by the user.
      // This could happen if the user navigates away from the page.
      WARNING_UI_IGNORED = 3;
      // The user clicked "Change Password" on chrome://settings page.
      WARNING_ACTION_TAKEN_ON_SETTINGS = 4;
    }
    optional InteractionResult interaction_result = 1;
  }
  optional PasswordReuseDialogInteraction dialog_interaction = 3;
}