1*d5c09012SAndroid Build Coastguard Worker// Copyright 2020 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.v1beta1; 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/v1beta1/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 go_package = "cloud.google.com/go/securitycenter/apiv1beta1/securitycenterpb;securitycenterpb"; 26*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true; 27*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.securitycenter.v1beta1"; 28*d5c09012SAndroid Build Coastguard Worker 29*d5c09012SAndroid Build Coastguard Worker// Security Command Center finding. 30*d5c09012SAndroid Build Coastguard Worker// 31*d5c09012SAndroid Build Coastguard Worker// A finding is a record of assessment data (security, risk, health or privacy) 32*d5c09012SAndroid Build Coastguard Worker// ingested into Security Command Center for presentation, notification, 33*d5c09012SAndroid Build Coastguard Worker// analysis, policy testing, and enforcement. For example, an XSS vulnerability 34*d5c09012SAndroid Build Coastguard Worker// in an App Engine application is a finding. 35*d5c09012SAndroid Build Coastguard Workermessage Finding { 36*d5c09012SAndroid Build Coastguard Worker option (google.api.resource) = { 37*d5c09012SAndroid Build Coastguard Worker type: "securitycenter.googleapis.com/Finding" 38*d5c09012SAndroid Build Coastguard Worker pattern: "organizations/{organization}/sources/{source}/findings/{finding}" 39*d5c09012SAndroid Build Coastguard Worker }; 40*d5c09012SAndroid Build Coastguard Worker 41*d5c09012SAndroid Build Coastguard Worker // The state of the finding. 42*d5c09012SAndroid Build Coastguard Worker enum State { 43*d5c09012SAndroid Build Coastguard Worker // Unspecified state. 44*d5c09012SAndroid Build Coastguard Worker STATE_UNSPECIFIED = 0; 45*d5c09012SAndroid Build Coastguard Worker 46*d5c09012SAndroid Build Coastguard Worker // The finding requires attention and has not been addressed yet. 47*d5c09012SAndroid Build Coastguard Worker ACTIVE = 1; 48*d5c09012SAndroid Build Coastguard Worker 49*d5c09012SAndroid Build Coastguard Worker // The finding has been fixed, triaged as a non-issue or otherwise addressed 50*d5c09012SAndroid Build Coastguard Worker // and is no longer active. 51*d5c09012SAndroid Build Coastguard Worker INACTIVE = 2; 52*d5c09012SAndroid Build Coastguard Worker } 53*d5c09012SAndroid Build Coastguard Worker 54*d5c09012SAndroid Build Coastguard Worker // The relative resource name of this finding. See: 55*d5c09012SAndroid Build Coastguard Worker // https://cloud.google.com/apis/design/resource_names#relative_resource_name 56*d5c09012SAndroid Build Coastguard Worker // Example: 57*d5c09012SAndroid Build Coastguard Worker // "organizations/{organization_id}/sources/{source_id}/findings/{finding_id}" 58*d5c09012SAndroid Build Coastguard Worker string name = 1; 59*d5c09012SAndroid Build Coastguard Worker 60*d5c09012SAndroid Build Coastguard Worker // Immutable. The relative resource name of the source the finding belongs to. 61*d5c09012SAndroid Build Coastguard Worker // See: 62*d5c09012SAndroid Build Coastguard Worker // https://cloud.google.com/apis/design/resource_names#relative_resource_name 63*d5c09012SAndroid Build Coastguard Worker // This field is immutable after creation time. 64*d5c09012SAndroid Build Coastguard Worker // For example: 65*d5c09012SAndroid Build Coastguard Worker // "organizations/{organization_id}/sources/{source_id}" 66*d5c09012SAndroid Build Coastguard Worker string parent = 2 [(google.api.field_behavior) = IMMUTABLE]; 67*d5c09012SAndroid Build Coastguard Worker 68*d5c09012SAndroid Build Coastguard Worker // For findings on Google Cloud resources, the full resource 69*d5c09012SAndroid Build Coastguard Worker // name of the Google Cloud resource this finding is for. See: 70*d5c09012SAndroid Build Coastguard Worker // https://cloud.google.com/apis/design/resource_names#full_resource_name 71*d5c09012SAndroid Build Coastguard Worker // When the finding is for a non-Google Cloud resource, the resourceName can 72*d5c09012SAndroid Build Coastguard Worker // be a customer or partner defined string. This field is immutable after 73*d5c09012SAndroid Build Coastguard Worker // creation time. 74*d5c09012SAndroid Build Coastguard Worker string resource_name = 3; 75*d5c09012SAndroid Build Coastguard Worker 76*d5c09012SAndroid Build Coastguard Worker // The state of the finding. 77*d5c09012SAndroid Build Coastguard Worker State state = 4; 78*d5c09012SAndroid Build Coastguard Worker 79*d5c09012SAndroid Build Coastguard Worker // The additional taxonomy group within findings from a given source. 80*d5c09012SAndroid Build Coastguard Worker // This field is immutable after creation time. 81*d5c09012SAndroid Build Coastguard Worker // Example: "XSS_FLASH_INJECTION" 82*d5c09012SAndroid Build Coastguard Worker string category = 5; 83*d5c09012SAndroid Build Coastguard Worker 84*d5c09012SAndroid Build Coastguard Worker // The URI that, if available, points to a web page outside of Security 85*d5c09012SAndroid Build Coastguard Worker // Command Center where additional information about the finding can be found. 86*d5c09012SAndroid Build Coastguard Worker // This field is guaranteed to be either empty or a well formed URL. 87*d5c09012SAndroid Build Coastguard Worker string external_uri = 6; 88*d5c09012SAndroid Build Coastguard Worker 89*d5c09012SAndroid Build Coastguard Worker // Source specific properties. These properties are managed by the source 90*d5c09012SAndroid Build Coastguard Worker // that writes the finding. The key names in the source_properties map must be 91*d5c09012SAndroid Build Coastguard Worker // between 1 and 255 characters, and must start with a letter and contain 92*d5c09012SAndroid Build Coastguard Worker // alphanumeric characters or underscores only. 93*d5c09012SAndroid Build Coastguard Worker map<string, google.protobuf.Value> source_properties = 7; 94*d5c09012SAndroid Build Coastguard Worker 95*d5c09012SAndroid Build Coastguard Worker // Output only. User specified security marks. These marks are entirely 96*d5c09012SAndroid Build Coastguard Worker // managed by the user and come from the SecurityMarks resource that belongs 97*d5c09012SAndroid Build Coastguard Worker // to the finding. 98*d5c09012SAndroid Build Coastguard Worker SecurityMarks security_marks = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; 99*d5c09012SAndroid Build Coastguard Worker 100*d5c09012SAndroid Build Coastguard Worker // The time at which the event took place, or when an update to the finding 101*d5c09012SAndroid Build Coastguard Worker // occurred. For example, if the finding represents an open firewall it would 102*d5c09012SAndroid Build Coastguard Worker // capture the time the detector believes the firewall became open. The 103*d5c09012SAndroid Build Coastguard Worker // accuracy is determined by the detector. If the finding were to be resolved 104*d5c09012SAndroid Build Coastguard Worker // afterward, this time would reflect when the finding was resolved. 105*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp event_time = 9; 106*d5c09012SAndroid Build Coastguard Worker 107*d5c09012SAndroid Build Coastguard Worker // The time at which the finding was created in Security Command Center. 108*d5c09012SAndroid Build Coastguard Worker google.protobuf.Timestamp create_time = 10; 109*d5c09012SAndroid Build Coastguard Worker} 110