finding.proto 5.7 KB

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