1*d5c09012SAndroid Build Coastguard Worker// Copyright 2021 Google LLC 2*d5c09012SAndroid Build Coastguard Worker// 3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License"); 4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License. 5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at 6*d5c09012SAndroid Build Coastguard Worker// 7*d5c09012SAndroid Build Coastguard Worker// http://www.apache.org/licenses/LICENSE-2.0 8*d5c09012SAndroid Build Coastguard Worker// 9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software 10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS, 11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and 13*d5c09012SAndroid Build Coastguard Worker// limitations under the License. 14*d5c09012SAndroid Build Coastguard Worker 15*d5c09012SAndroid Build Coastguard Workersyntax = "proto3"; 16*d5c09012SAndroid Build Coastguard Worker 17*d5c09012SAndroid Build Coastguard Workerpackage google.cloud.securitycenter.v1p1beta1; 18*d5c09012SAndroid Build Coastguard Worker 19*d5c09012SAndroid Build Coastguard Workerimport "google/api/field_behavior.proto"; 20*d5c09012SAndroid Build Coastguard Workerimport "google/api/resource.proto"; 21*d5c09012SAndroid Build Coastguard Workerimport "google/cloud/securitycenter/v1p1beta1/security_marks.proto"; 22*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/struct.proto"; 23*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/timestamp.proto"; 24*d5c09012SAndroid Build Coastguard Worker 25*d5c09012SAndroid Build Coastguard Workeroption csharp_namespace = "Google.Cloud.SecurityCenter.V1P1Beta1"; 26*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/securitycenter/apiv1p1beta1/securitycenterpb;securitycenterpb"; 27*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true; 28*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.securitycenter.v1p1beta1"; 29*d5c09012SAndroid Build Coastguard Workeroption php_namespace = "Google\\Cloud\\SecurityCenter\\V1p1beta1"; 30*d5c09012SAndroid Build Coastguard Workeroption ruby_package = "Google::Cloud::SecurityCenter::V1p1beta1"; 31*d5c09012SAndroid Build Coastguard Worker 32*d5c09012SAndroid Build Coastguard Worker// Security Command Center finding. 33*d5c09012SAndroid Build Coastguard Worker// 34*d5c09012SAndroid Build Coastguard Worker// A finding is a record of assessment data (security, risk, health or privacy) 35*d5c09012SAndroid Build Coastguard Worker// ingested into Security Command Center for presentation, notification, 36*d5c09012SAndroid Build Coastguard Worker// analysis, policy testing, and enforcement. For example, an XSS vulnerability 37*d5c09012SAndroid Build Coastguard Worker// in an App Engine application is a finding. 38*d5c09012SAndroid Build Coastguard Workermessage Finding { 39*d5c09012SAndroid Build Coastguard Worker option (google.api.resource) = { 40*d5c09012SAndroid Build Coastguard Worker type: "securitycenter.googleapis.com/Finding" 41*d5c09012SAndroid Build Coastguard Worker pattern: "organizations/{organization}/sources/{source}/findings/{finding}" 42*d5c09012SAndroid Build Coastguard Worker pattern: "folders/{folder}/sources/{source}/findings/{finding}" 43*d5c09012SAndroid Build Coastguard Worker pattern: "projects/{project}/sources/{source}/findings/{finding}" 44*d5c09012SAndroid Build Coastguard Worker }; 45*d5c09012SAndroid Build Coastguard Worker 46*d5c09012SAndroid Build Coastguard Worker // The state of the finding. 47*d5c09012SAndroid Build Coastguard Worker enum State { 48*d5c09012SAndroid Build Coastguard Worker // Unspecified state. 49*d5c09012SAndroid Build Coastguard Worker STATE_UNSPECIFIED = 0; 50*d5c09012SAndroid Build Coastguard Worker 51*d5c09012SAndroid Build Coastguard Worker // The finding requires attention and has not been addressed yet. 52*d5c09012SAndroid Build Coastguard Worker ACTIVE = 1; 53*d5c09012SAndroid Build Coastguard Worker 54*d5c09012SAndroid Build Coastguard Worker // The finding has been fixed, triaged as a non-issue or otherwise addressed 55*d5c09012SAndroid Build Coastguard Worker // and is no longer active. 56*d5c09012SAndroid Build Coastguard Worker INACTIVE = 2; 57*d5c09012SAndroid Build Coastguard Worker } 58*d5c09012SAndroid Build Coastguard Worker 59*d5c09012SAndroid Build Coastguard Worker // The severity of the finding. This field is managed by the source that 60*d5c09012SAndroid Build Coastguard Worker // writes the finding. 61*d5c09012SAndroid Build Coastguard Worker enum Severity { 62*d5c09012SAndroid Build Coastguard Worker // No severity specified. The default value. 63*d5c09012SAndroid Build Coastguard Worker SEVERITY_UNSPECIFIED = 0; 64*d5c09012SAndroid Build Coastguard Worker 65*d5c09012SAndroid Build Coastguard Worker // Critical severity. 66*d5c09012SAndroid Build Coastguard Worker CRITICAL = 1; 67*d5c09012SAndroid Build Coastguard Worker 68*d5c09012SAndroid Build Coastguard Worker // High severity. 69*d5c09012SAndroid Build Coastguard Worker HIGH = 2; 70*d5c09012SAndroid Build Coastguard Worker 71*d5c09012SAndroid Build Coastguard Worker // Medium severity. 72*d5c09012SAndroid Build Coastguard Worker MEDIUM = 3; 73*d5c09012SAndroid Build Coastguard Worker 74*d5c09012SAndroid Build Coastguard Worker // Low severity. 75*d5c09012SAndroid Build Coastguard Worker LOW = 4; 76*d5c09012SAndroid Build Coastguard Worker } 77*d5c09012SAndroid Build Coastguard Worker 78*d5c09012SAndroid Build Coastguard Worker // The relative resource name of this finding. See: 79*d5c09012SAndroid Build Coastguard Worker // https://cloud.google.com/apis/design/resource_names#relative_resource_name 80*d5c09012SAndroid Build Coastguard Worker // Example: 81*d5c09012SAndroid Build Coastguard Worker // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" 82*d5c09012SAndroid Build Coastguard Worker string name = 1; 83*d5c09012SAndroid Build Coastguard Worker 84*d5c09012SAndroid Build Coastguard Worker // The relative resource name of the source the finding belongs to. See: 85*d5c09012SAndroid Build Coastguard Worker // https://cloud.google.com/apis/design/resource_names#relative_resource_name 86*d5c09012SAndroid Build Coastguard Worker // This field is immutable after creation time. 87*d5c09012SAndroid Build Coastguard Worker // For example: 88*d5c09012SAndroid Build Coastguard Worker // "organizations/{organization_id}/sources/{source_id}" 89*d5c09012SAndroid Build Coastguard Worker string parent = 2; 90*d5c09012SAndroid Build Coastguard Worker 91*d5c09012SAndroid Build Coastguard Worker // For findings on Google Cloud resources, the full resource 92*d5c09012SAndroid Build Coastguard Worker // name of the Google Cloud resource this finding is for. See: 93*d5c09012SAndroid Build Coastguard Worker // https://cloud.google.com/apis/design/resource_names#full_resource_name 94*d5c09012SAndroid Build Coastguard Worker // When the finding is for a non-Google Cloud resource, the resourceName can 95*d5c09012SAndroid Build Coastguard Worker // be a customer or partner defined string. This field is immutable after 96*d5c09012SAndroid Build Coastguard Worker // creation time. 97*d5c09012SAndroid Build Coastguard Worker string resource_name = 3; 98*d5c09012SAndroid Build Coastguard Worker 99*d5c09012SAndroid Build Coastguard Worker // The state of the finding. 100*d5c09012SAndroid Build Coastguard Worker State state = 4; 101*d5c09012SAndroid Build Coastguard Worker 102*d5c09012SAndroid Build Coastguard Worker // The additional taxonomy group within findings from a given source. 103*d5c09012SAndroid Build Coastguard Worker // This field is immutable after creation time. 104*d5c09012SAndroid Build Coastguard Worker // Example: "XSS_FLASH_INJECTION" 105*d5c09012SAndroid Build Coastguard Worker string category = 5; 106*d5c09012SAndroid Build Coastguard Worker 107*d5c09012SAndroid Build Coastguard Worker // The URI that, if available, points to a web page outside of Security 108*d5c09012SAndroid Build Coastguard Worker // Command Center where additional information about the finding can be found. 109*d5c09012SAndroid Build Coastguard Worker // This field is guaranteed to be either empty or a well formed URL. 110*d5c09012SAndroid Build Coastguard Worker string external_uri = 6; 111*d5c09012SAndroid Build Coastguard Worker 112*d5c09012SAndroid Build Coastguard Worker // Source specific properties. These properties are managed by the source 113*d5c09012SAndroid Build Coastguard Worker // that writes the finding. The key names in the source_properties map must be 114*d5c09012SAndroid Build Coastguard Worker // between 1 and 255 characters, and must start with a letter and contain 115*d5c09012SAndroid Build Coastguard Worker // alphanumeric characters or underscores only. 116*d5c09012SAndroid Build Coastguard Worker map<string, google.protobuf.Value> source_properties = 7; 117*d5c09012SAndroid Build Coastguard Worker 118*d5c09012SAndroid Build Coastguard Worker // Output only. User specified security marks. These marks are entirely 119*d5c09012SAndroid Build Coastguard Worker // managed by the user and come from the SecurityMarks resource that belongs 120*d5c09012SAndroid Build Coastguard Worker // to the finding. 121*d5c09012SAndroid Build Coastguard Worker SecurityMarks security_marks = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; 122*d5c09012SAndroid Build Coastguard Worker 123*d5c09012SAndroid Build Coastguard Worker // The time at which the event took place, or when an update to the finding 124*d5c09012SAndroid Build Coastguard Worker // occurred. For example, if the finding represents an open firewall it would 125*d5c09012SAndroid Build Coastguard Worker // capture the time the detector believes the firewall became open. The 126*d5c09012SAndroid Build Coastguard Worker // accuracy is determined by the detector. If the finding were to be resolved 127*d5c09012SAndroid Build Coastguard Worker // afterward, this time would reflect when the finding was resolved. Must not 128*d5c09012SAndroid Build Coastguard Worker // be set to a value greater than the current timestamp. 129*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp event_time = 9; 130*d5c09012SAndroid Build Coastguard Worker 131*d5c09012SAndroid Build Coastguard Worker // The time at which the finding was created in Security Command Center. 132*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp create_time = 10; 133*d5c09012SAndroid Build Coastguard Worker 134*d5c09012SAndroid Build Coastguard Worker // The severity of the finding. This field is managed by the source that 135*d5c09012SAndroid Build Coastguard Worker // writes the finding. 136*d5c09012SAndroid Build Coastguard Worker Severity severity = 13; 137*d5c09012SAndroid Build Coastguard Worker 138*d5c09012SAndroid Build Coastguard Worker // The canonical name of the finding. It's either 139*d5c09012SAndroid Build Coastguard Worker // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}", 140*d5c09012SAndroid Build Coastguard Worker // "folders/{folder_id}/sources/{source_id}/findings/{finding_id}" or 141*d5c09012SAndroid Build Coastguard Worker // "projects/{project_number}/sources/{source_id}/findings/{finding_id}", 142*d5c09012SAndroid Build Coastguard Worker // depending on the closest CRM ancestor of the resource associated with the 143*d5c09012SAndroid Build Coastguard Worker // finding. 144*d5c09012SAndroid Build Coastguard Worker string canonical_name = 14; 145*d5c09012SAndroid Build Coastguard Worker} 146