finding.proto 4.5 KB

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