google-cloud-security_center-v1 0.8.1 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/google/cloud/security_center/v1/security_center/client.rb +1361 -105
- data/lib/google/cloud/security_center/v1/security_center/operations.rb +115 -12
- data/lib/google/cloud/security_center/v1/security_center/paths.rb +116 -0
- data/lib/google/cloud/security_center/v1/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/asset_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/external_system_pb.rb +29 -0
- data/lib/google/cloud/securitycenter/v1/finding_pb.rb +16 -2
- data/lib/google/cloud/securitycenter/v1/folder_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/indicator_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/mute_config_pb.rb +32 -0
- data/lib/google/cloud/securitycenter/v1/notification_config_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/notification_message_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/organization_settings_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/resource_pb.rb +4 -2
- data/lib/google/cloud/securitycenter/v1/run_asset_discovery_response_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/security_marks_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +55 -2
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_services_pb.rb +19 -1
- data/lib/google/cloud/securitycenter/v1/source_pb.rb +2 -2
- data/lib/google/cloud/securitycenter/v1/vulnerability_pb.rb +86 -0
- data/proto_docs/google/cloud/securitycenter/v1/external_system.rb +52 -0
- data/proto_docs/google/cloud/securitycenter/v1/finding.rb +45 -0
- data/proto_docs/google/cloud/securitycenter/v1/mute_config.rb +82 -0
- data/proto_docs/google/cloud/securitycenter/v1/resource.rb +6 -0
- data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +181 -0
- data/proto_docs/google/cloud/securitycenter/v1/vulnerability.rb +226 -0
- metadata +8 -2
@@ -21,6 +21,54 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module SecurityCenter
|
23
23
|
module V1
|
24
|
+
# Request message for bulk findings update.
|
25
|
+
#
|
26
|
+
# Note:
|
27
|
+
# 1. If multiple bulk update requests match the same resource, the order in
|
28
|
+
# which they get executed is not defined.
|
29
|
+
# 2. Once a bulk operation is started, there is no way to stop it.
|
30
|
+
# @!attribute [rw] parent
|
31
|
+
# @return [::String]
|
32
|
+
# Required. The parent, at which bulk action needs to be applied. Its format is
|
33
|
+
# "organizations/[organization_id]", "folders/[folder_id]",
|
34
|
+
# "projects/[project_id]".
|
35
|
+
# @!attribute [rw] filter
|
36
|
+
# @return [::String]
|
37
|
+
# Expression that identifies findings that should be updated.
|
38
|
+
# The expression is a list of zero or more restrictions combined
|
39
|
+
# via logical operators `AND` and `OR`. Parentheses are supported, and `OR`
|
40
|
+
# has higher precedence than `AND`.
|
41
|
+
#
|
42
|
+
# Restrictions have the form `<field> <operator> <value>` and may have a
|
43
|
+
# `-` character in front of them to indicate negation. The fields map to
|
44
|
+
# those defined in the corresponding resource.
|
45
|
+
#
|
46
|
+
# The supported operators are:
|
47
|
+
#
|
48
|
+
# * `=` for all value types.
|
49
|
+
# * `>`, `<`, `>=`, `<=` for integer values.
|
50
|
+
# * `:`, meaning substring matching, for strings.
|
51
|
+
#
|
52
|
+
# The supported value types are:
|
53
|
+
#
|
54
|
+
# * string literals in quotes.
|
55
|
+
# * integer literals without quotes.
|
56
|
+
# * boolean literals `true` and `false` without quotes.
|
57
|
+
# @!attribute [rw] mute_annotation
|
58
|
+
# @return [::String]
|
59
|
+
# This can be a mute configuration name or any identifier for mute/unmute
|
60
|
+
# of findings based on the filter.
|
61
|
+
class BulkMuteFindingsRequest
|
62
|
+
include ::Google::Protobuf::MessageExts
|
63
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
64
|
+
end
|
65
|
+
|
66
|
+
# The response to a BulkMute request. Contains the LRO information.
|
67
|
+
class BulkMuteFindingsResponse
|
68
|
+
include ::Google::Protobuf::MessageExts
|
69
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
70
|
+
end
|
71
|
+
|
24
72
|
# Request message for creating a finding.
|
25
73
|
# @!attribute [rw] parent
|
26
74
|
# @return [::String]
|
@@ -40,6 +88,26 @@ module Google
|
|
40
88
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
41
89
|
end
|
42
90
|
|
91
|
+
# Request message for creating a mute config.
|
92
|
+
# @!attribute [rw] parent
|
93
|
+
# @return [::String]
|
94
|
+
# Required. Resource name of the new mute configs's parent. Its format is
|
95
|
+
# "organizations/[organization_id]", "folders/[folder_id]", or
|
96
|
+
# "projects/[project_id]".
|
97
|
+
# @!attribute [rw] mute_config
|
98
|
+
# @return [::Google::Cloud::SecurityCenter::V1::MuteConfig]
|
99
|
+
# Required. The mute config being created.
|
100
|
+
# @!attribute [rw] mute_config_id
|
101
|
+
# @return [::String]
|
102
|
+
# Required. Unique identifier provided by the client within the parent scope.
|
103
|
+
# It must consist of lower case letters, numbers, and hyphen, with the first
|
104
|
+
# character a letter, the last a letter or a number, and a 63 character
|
105
|
+
# maximum.
|
106
|
+
class CreateMuteConfigRequest
|
107
|
+
include ::Google::Protobuf::MessageExts
|
108
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
109
|
+
end
|
110
|
+
|
43
111
|
# Request message for creating a notification config.
|
44
112
|
# @!attribute [rw] parent
|
45
113
|
# @return [::String]
|
@@ -74,6 +142,18 @@ module Google
|
|
74
142
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
75
143
|
end
|
76
144
|
|
145
|
+
# Request message for deleting a mute config.
|
146
|
+
# @!attribute [rw] name
|
147
|
+
# @return [::String]
|
148
|
+
# Required. Name of the mute config to delete. Its format is
|
149
|
+
# organizations/\\{organization}/muteConfigs/\\{config_id},
|
150
|
+
# folders/\\{folder}/muteConfigs/\\{config_id}, or
|
151
|
+
# projects/\\{project}/muteConfigs/\\{config_id}
|
152
|
+
class DeleteMuteConfigRequest
|
153
|
+
include ::Google::Protobuf::MessageExts
|
154
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
155
|
+
end
|
156
|
+
|
77
157
|
# Request message for deleting a notification config.
|
78
158
|
# @!attribute [rw] name
|
79
159
|
# @return [::String]
|
@@ -84,6 +164,18 @@ module Google
|
|
84
164
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
85
165
|
end
|
86
166
|
|
167
|
+
# Request message for retrieving a mute config.
|
168
|
+
# @!attribute [rw] name
|
169
|
+
# @return [::String]
|
170
|
+
# Required. Name of the mute config to retrieve. Its format is
|
171
|
+
# organizations/\\{organization}/muteConfigs/\\{config_id},
|
172
|
+
# folders/\\{folder}/muteConfigs/\\{config_id}, or
|
173
|
+
# projects/\\{project}/muteConfigs/\\{config_id}
|
174
|
+
class GetMuteConfigRequest
|
175
|
+
include ::Google::Protobuf::MessageExts
|
176
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
177
|
+
end
|
178
|
+
|
87
179
|
# Request message for getting a notification config.
|
88
180
|
# @!attribute [rw] name
|
89
181
|
# @return [::String]
|
@@ -458,6 +550,44 @@ module Google
|
|
458
550
|
end
|
459
551
|
end
|
460
552
|
|
553
|
+
# Request message for listing mute configs at a given scope e.g. organization,
|
554
|
+
# folder or project.
|
555
|
+
# @!attribute [rw] parent
|
556
|
+
# @return [::String]
|
557
|
+
# Required. The parent, which owns the collection of mute configs. Its format is
|
558
|
+
# "organizations/[organization_id]", "folders/[folder_id]",
|
559
|
+
# "projects/[project_id]".
|
560
|
+
# @!attribute [rw] page_size
|
561
|
+
# @return [::Integer]
|
562
|
+
# The maximum number of configs to return. The service may return fewer than
|
563
|
+
# this value.
|
564
|
+
# If unspecified, at most 10 configs will be returned.
|
565
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
566
|
+
# @!attribute [rw] page_token
|
567
|
+
# @return [::String]
|
568
|
+
# A page token, received from a previous `ListMuteConfigs` call.
|
569
|
+
# Provide this to retrieve the subsequent page.
|
570
|
+
#
|
571
|
+
# When paginating, all other parameters provided to `ListMuteConfigs` must
|
572
|
+
# match the call that provided the page token.
|
573
|
+
class ListMuteConfigsRequest
|
574
|
+
include ::Google::Protobuf::MessageExts
|
575
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
576
|
+
end
|
577
|
+
|
578
|
+
# Response message for listing mute configs.
|
579
|
+
# @!attribute [rw] mute_configs
|
580
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V1::MuteConfig>]
|
581
|
+
# The mute configs from the specified parent.
|
582
|
+
# @!attribute [rw] next_page_token
|
583
|
+
# @return [::String]
|
584
|
+
# A token, which can be sent as `page_token` to retrieve the next page.
|
585
|
+
# If this field is omitted, there are no subsequent pages.
|
586
|
+
class ListMuteConfigsResponse
|
587
|
+
include ::Google::Protobuf::MessageExts
|
588
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
589
|
+
end
|
590
|
+
|
461
591
|
# Request message for listing notification configs.
|
462
592
|
# @!attribute [rw] parent
|
463
593
|
# @return [::String]
|
@@ -790,6 +920,7 @@ module Google
|
|
790
920
|
# * resource.project_display_name: `=`, `:`
|
791
921
|
# * resource.type: `=`, `:`
|
792
922
|
# * resource.folders.resource_folder: `=`, `:`
|
923
|
+
# * resource.display_name: `=`, `:`
|
793
924
|
# @!attribute [rw] order_by
|
794
925
|
# @return [::String]
|
795
926
|
# Expression that defines what fields and order to use for sorting. The
|
@@ -916,11 +1047,17 @@ module Google
|
|
916
1047
|
# @!attribute [rw] parent_display_name
|
917
1048
|
# @return [::String]
|
918
1049
|
# The human readable name of resource's parent.
|
1050
|
+
# @!attribute [rw] type
|
1051
|
+
# @return [::String]
|
1052
|
+
# The full resource type of the resource.
|
919
1053
|
# @!attribute [rw] folders
|
920
1054
|
# @return [::Array<::Google::Cloud::SecurityCenter::V1::Folder>]
|
921
1055
|
# Contains a Folder message for each folder in the assets ancestry.
|
922
1056
|
# The first folder is the deepest nested folder, and the last folder is
|
923
1057
|
# the folder directly under the Organization.
|
1058
|
+
# @!attribute [rw] display_name
|
1059
|
+
# @return [::String]
|
1060
|
+
# The human readable name of the resource.
|
924
1061
|
class Resource
|
925
1062
|
include ::Google::Protobuf::MessageExts
|
926
1063
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -974,6 +1111,23 @@ module Google
|
|
974
1111
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
975
1112
|
end
|
976
1113
|
|
1114
|
+
# Request message for updating a finding's mute status.
|
1115
|
+
# @!attribute [rw] name
|
1116
|
+
# @return [::String]
|
1117
|
+
# Required. The relative resource name of the finding. See:
|
1118
|
+
# https://cloud.google.com/apis/design/resource_names#relative_resource_name
|
1119
|
+
# Example:
|
1120
|
+
# "organizations/\\{organization_id}/sources/\\{source_id}/finding/\\{finding_id}",
|
1121
|
+
# "folders/\\{folder_id}/sources/\\{source_id}/finding/\\{finding_id}",
|
1122
|
+
# "projects/\\{project_id}/sources/\\{source_id}/finding/\\{finding_id}".
|
1123
|
+
# @!attribute [rw] mute
|
1124
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Finding::Mute]
|
1125
|
+
# Required. The desired state of the Mute.
|
1126
|
+
class SetMuteRequest
|
1127
|
+
include ::Google::Protobuf::MessageExts
|
1128
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1129
|
+
end
|
1130
|
+
|
977
1131
|
# Request message for running asset discovery for an organization.
|
978
1132
|
# @!attribute [rw] parent
|
979
1133
|
# @return [::String]
|
@@ -984,6 +1138,20 @@ module Google
|
|
984
1138
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
985
1139
|
end
|
986
1140
|
|
1141
|
+
# Request message for updating a ExternalSystem resource.
|
1142
|
+
# @!attribute [rw] external_system
|
1143
|
+
# @return [::Google::Cloud::SecurityCenter::V1::ExternalSystem]
|
1144
|
+
# Required. The external system resource to update.
|
1145
|
+
# @!attribute [rw] update_mask
|
1146
|
+
# @return [::Google::Protobuf::FieldMask]
|
1147
|
+
# The FieldMask to use when updating the external system resource.
|
1148
|
+
#
|
1149
|
+
# If empty all mutable fields will be updated.
|
1150
|
+
class UpdateExternalSystemRequest
|
1151
|
+
include ::Google::Protobuf::MessageExts
|
1152
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1153
|
+
end
|
1154
|
+
|
987
1155
|
# Request message for updating or creating a finding.
|
988
1156
|
# @!attribute [rw] finding
|
989
1157
|
# @return [::Google::Cloud::SecurityCenter::V1::Finding]
|
@@ -1007,6 +1175,19 @@ module Google
|
|
1007
1175
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1008
1176
|
end
|
1009
1177
|
|
1178
|
+
# Request message for updating a mute config.
|
1179
|
+
# @!attribute [rw] mute_config
|
1180
|
+
# @return [::Google::Cloud::SecurityCenter::V1::MuteConfig]
|
1181
|
+
# Required. The mute config being updated.
|
1182
|
+
# @!attribute [rw] update_mask
|
1183
|
+
# @return [::Google::Protobuf::FieldMask]
|
1184
|
+
# The list of fields to be updated.
|
1185
|
+
# If empty all mutable fields will be updated.
|
1186
|
+
class UpdateMuteConfigRequest
|
1187
|
+
include ::Google::Protobuf::MessageExts
|
1188
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1189
|
+
end
|
1190
|
+
|
1010
1191
|
# Request message for updating a notification config.
|
1011
1192
|
# @!attribute [rw] notification_config
|
1012
1193
|
# @return [::Google::Cloud::SecurityCenter::V1::NotificationConfig]
|
@@ -0,0 +1,226 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module SecurityCenter
|
23
|
+
module V1
|
24
|
+
# Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
|
25
|
+
# @!attribute [rw] cve
|
26
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Cve]
|
27
|
+
# CVE stands for Common Vulnerabilities and Exposures
|
28
|
+
# (https://cve.mitre.org/about/)
|
29
|
+
class Vulnerability
|
30
|
+
include ::Google::Protobuf::MessageExts
|
31
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
32
|
+
end
|
33
|
+
|
34
|
+
# CVE stands for Common Vulnerabilities and Exposures.
|
35
|
+
# More information: https://cve.mitre.org
|
36
|
+
# @!attribute [rw] id
|
37
|
+
# @return [::String]
|
38
|
+
# The unique identifier for the vulnerability. e.g. CVE-2021-34527
|
39
|
+
# @!attribute [rw] references
|
40
|
+
# @return [::Array<::Google::Cloud::SecurityCenter::V1::Reference>]
|
41
|
+
# Additional information about the CVE.
|
42
|
+
# e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
|
43
|
+
# @!attribute [rw] cvssv3
|
44
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Cvssv3]
|
45
|
+
# Describe Common Vulnerability Scoring System specified at
|
46
|
+
# https://www.first.org/cvss/v3.1/specification-document
|
47
|
+
class Cve
|
48
|
+
include ::Google::Protobuf::MessageExts
|
49
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
50
|
+
end
|
51
|
+
|
52
|
+
# Additional Links
|
53
|
+
# @!attribute [rw] source
|
54
|
+
# @return [::String]
|
55
|
+
# Source of the reference e.g. NVD
|
56
|
+
# @!attribute [rw] uri
|
57
|
+
# @return [::String]
|
58
|
+
# Uri for the mentioned source e.g.
|
59
|
+
# https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
|
60
|
+
class Reference
|
61
|
+
include ::Google::Protobuf::MessageExts
|
62
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
63
|
+
end
|
64
|
+
|
65
|
+
# Common Vulnerability Scoring System version 3.
|
66
|
+
# @!attribute [rw] base_score
|
67
|
+
# @return [::Float]
|
68
|
+
# The base score is a function of the base metric scores.
|
69
|
+
# @!attribute [rw] attack_vector
|
70
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Cvssv3::AttackVector]
|
71
|
+
# Base Metrics
|
72
|
+
# Represents the intrinsic characteristics of a vulnerability that are
|
73
|
+
# constant over time and across user environments.
|
74
|
+
# This metric reflects the context by which vulnerability exploitation is
|
75
|
+
# possible.
|
76
|
+
# @!attribute [rw] attack_complexity
|
77
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Cvssv3::AttackComplexity]
|
78
|
+
# This metric describes the conditions beyond the attacker's control that
|
79
|
+
# must exist in order to exploit the vulnerability.
|
80
|
+
# @!attribute [rw] privileges_required
|
81
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Cvssv3::PrivilegesRequired]
|
82
|
+
# This metric describes the level of privileges an attacker must possess
|
83
|
+
# before successfully exploiting the vulnerability.
|
84
|
+
# @!attribute [rw] user_interaction
|
85
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Cvssv3::UserInteraction]
|
86
|
+
# This metric captures the requirement for a human user, other than the
|
87
|
+
# attacker, to participate in the successful compromise of the vulnerable
|
88
|
+
# component.
|
89
|
+
# @!attribute [rw] scope
|
90
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Cvssv3::Scope]
|
91
|
+
# The Scope metric captures whether a vulnerability in one vulnerable
|
92
|
+
# component impacts resources in components beyond its security scope.
|
93
|
+
# @!attribute [rw] confidentiality_impact
|
94
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Cvssv3::Impact]
|
95
|
+
# This metric measures the impact to the confidentiality of the information
|
96
|
+
# resources managed by a software component due to a successfully exploited
|
97
|
+
# vulnerability.
|
98
|
+
# @!attribute [rw] integrity_impact
|
99
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Cvssv3::Impact]
|
100
|
+
# This metric measures the impact to integrity of a successfully exploited
|
101
|
+
# vulnerability.
|
102
|
+
# @!attribute [rw] availability_impact
|
103
|
+
# @return [::Google::Cloud::SecurityCenter::V1::Cvssv3::Impact]
|
104
|
+
# This metric measures the impact to the availability of the impacted
|
105
|
+
# component resulting from a successfully exploited vulnerability.
|
106
|
+
class Cvssv3
|
107
|
+
include ::Google::Protobuf::MessageExts
|
108
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
109
|
+
|
110
|
+
# This metric reflects the context by which vulnerability exploitation is
|
111
|
+
# possible.
|
112
|
+
module AttackVector
|
113
|
+
# Invalid value.
|
114
|
+
ATTACK_VECTOR_UNSPECIFIED = 0
|
115
|
+
|
116
|
+
# The vulnerable component is bound to the network stack and the set of
|
117
|
+
# possible attackers extends beyond the other options listed below, up to
|
118
|
+
# and including the entire Internet.
|
119
|
+
ATTACK_VECTOR_NETWORK = 1
|
120
|
+
|
121
|
+
# The vulnerable component is bound to the network stack, but the attack is
|
122
|
+
# limited at the protocol level to a logically adjacent topology.
|
123
|
+
ATTACK_VECTOR_ADJACENT = 2
|
124
|
+
|
125
|
+
# The vulnerable component is not bound to the network stack and the
|
126
|
+
# attacker's path is via read/write/execute capabilities.
|
127
|
+
ATTACK_VECTOR_LOCAL = 3
|
128
|
+
|
129
|
+
# The attack requires the attacker to physically touch or manipulate the
|
130
|
+
# vulnerable component.
|
131
|
+
ATTACK_VECTOR_PHYSICAL = 4
|
132
|
+
end
|
133
|
+
|
134
|
+
# This metric describes the conditions beyond the attacker's control that
|
135
|
+
# must exist in order to exploit the vulnerability.
|
136
|
+
module AttackComplexity
|
137
|
+
# Invalid value.
|
138
|
+
ATTACK_COMPLEXITY_UNSPECIFIED = 0
|
139
|
+
|
140
|
+
# Specialized access conditions or extenuating circumstances do not exist.
|
141
|
+
# An attacker can expect repeatable success when attacking the vulnerable
|
142
|
+
# component.
|
143
|
+
ATTACK_COMPLEXITY_LOW = 1
|
144
|
+
|
145
|
+
# A successful attack depends on conditions beyond the attacker's control.
|
146
|
+
# That is, a successful attack cannot be accomplished at will, but requires
|
147
|
+
# the attacker to invest in some measurable amount of effort in preparation
|
148
|
+
# or execution against the vulnerable component before a successful attack
|
149
|
+
# can be expected.
|
150
|
+
ATTACK_COMPLEXITY_HIGH = 2
|
151
|
+
end
|
152
|
+
|
153
|
+
# This metric describes the level of privileges an attacker must possess
|
154
|
+
# before successfully exploiting the vulnerability.
|
155
|
+
module PrivilegesRequired
|
156
|
+
# Invalid value.
|
157
|
+
PRIVILEGES_REQUIRED_UNSPECIFIED = 0
|
158
|
+
|
159
|
+
# The attacker is unauthorized prior to attack, and therefore does not
|
160
|
+
# require any access to settings or files of the vulnerable system to
|
161
|
+
# carry out an attack.
|
162
|
+
PRIVILEGES_REQUIRED_NONE = 1
|
163
|
+
|
164
|
+
# The attacker requires privileges that provide basic user capabilities
|
165
|
+
# that could normally affect only settings and files owned by a user.
|
166
|
+
# Alternatively, an attacker with Low privileges has the ability to access
|
167
|
+
# only non-sensitive resources.
|
168
|
+
PRIVILEGES_REQUIRED_LOW = 2
|
169
|
+
|
170
|
+
# The attacker requires privileges that provide significant (e.g.,
|
171
|
+
# administrative) control over the vulnerable component allowing access to
|
172
|
+
# component-wide settings and files.
|
173
|
+
PRIVILEGES_REQUIRED_HIGH = 3
|
174
|
+
end
|
175
|
+
|
176
|
+
# This metric captures the requirement for a human user, other than the
|
177
|
+
# attacker, to participate in the successful compromise of the vulnerable
|
178
|
+
# component.
|
179
|
+
module UserInteraction
|
180
|
+
# Invalid value.
|
181
|
+
USER_INTERACTION_UNSPECIFIED = 0
|
182
|
+
|
183
|
+
# The vulnerable system can be exploited without interaction from any user.
|
184
|
+
USER_INTERACTION_NONE = 1
|
185
|
+
|
186
|
+
# Successful exploitation of this vulnerability requires a user to take
|
187
|
+
# some action before the vulnerability can be exploited.
|
188
|
+
USER_INTERACTION_REQUIRED = 2
|
189
|
+
end
|
190
|
+
|
191
|
+
# The Scope metric captures whether a vulnerability in one vulnerable
|
192
|
+
# component impacts resources in components beyond its security scope.
|
193
|
+
module Scope
|
194
|
+
# Invalid value.
|
195
|
+
SCOPE_UNSPECIFIED = 0
|
196
|
+
|
197
|
+
# An exploited vulnerability can only affect resources managed by the same
|
198
|
+
# security authority.
|
199
|
+
SCOPE_UNCHANGED = 1
|
200
|
+
|
201
|
+
# An exploited vulnerability can affect resources beyond the security scope
|
202
|
+
# managed by the security authority of the vulnerable component.
|
203
|
+
SCOPE_CHANGED = 2
|
204
|
+
end
|
205
|
+
|
206
|
+
# The Impact metrics capture the effects of a successfully exploited
|
207
|
+
# vulnerability on the component that suffers the worst outcome that is most
|
208
|
+
# directly and predictably associated with the attack.
|
209
|
+
module Impact
|
210
|
+
# Invalid value.
|
211
|
+
IMPACT_UNSPECIFIED = 0
|
212
|
+
|
213
|
+
# High impact.
|
214
|
+
IMPACT_HIGH = 1
|
215
|
+
|
216
|
+
# Low impact.
|
217
|
+
IMPACT_LOW = 2
|
218
|
+
|
219
|
+
# No impact.
|
220
|
+
IMPACT_NONE = 3
|
221
|
+
end
|
222
|
+
end
|
223
|
+
end
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-security_center-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -198,9 +198,11 @@ files:
|
|
198
198
|
- lib/google/cloud/security_center/v1/security_center/paths.rb
|
199
199
|
- lib/google/cloud/security_center/v1/version.rb
|
200
200
|
- lib/google/cloud/securitycenter/v1/asset_pb.rb
|
201
|
+
- lib/google/cloud/securitycenter/v1/external_system_pb.rb
|
201
202
|
- lib/google/cloud/securitycenter/v1/finding_pb.rb
|
202
203
|
- lib/google/cloud/securitycenter/v1/folder_pb.rb
|
203
204
|
- lib/google/cloud/securitycenter/v1/indicator_pb.rb
|
205
|
+
- lib/google/cloud/securitycenter/v1/mute_config_pb.rb
|
204
206
|
- lib/google/cloud/securitycenter/v1/notification_config_pb.rb
|
205
207
|
- lib/google/cloud/securitycenter/v1/notification_message_pb.rb
|
206
208
|
- lib/google/cloud/securitycenter/v1/organization_settings_pb.rb
|
@@ -210,13 +212,16 @@ files:
|
|
210
212
|
- lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb
|
211
213
|
- lib/google/cloud/securitycenter/v1/securitycenter_service_services_pb.rb
|
212
214
|
- lib/google/cloud/securitycenter/v1/source_pb.rb
|
215
|
+
- lib/google/cloud/securitycenter/v1/vulnerability_pb.rb
|
213
216
|
- proto_docs/README.md
|
214
217
|
- proto_docs/google/api/field_behavior.rb
|
215
218
|
- proto_docs/google/api/resource.rb
|
216
219
|
- proto_docs/google/cloud/securitycenter/v1/asset.rb
|
220
|
+
- proto_docs/google/cloud/securitycenter/v1/external_system.rb
|
217
221
|
- proto_docs/google/cloud/securitycenter/v1/finding.rb
|
218
222
|
- proto_docs/google/cloud/securitycenter/v1/folder.rb
|
219
223
|
- proto_docs/google/cloud/securitycenter/v1/indicator.rb
|
224
|
+
- proto_docs/google/cloud/securitycenter/v1/mute_config.rb
|
220
225
|
- proto_docs/google/cloud/securitycenter/v1/notification_config.rb
|
221
226
|
- proto_docs/google/cloud/securitycenter/v1/notification_message.rb
|
222
227
|
- proto_docs/google/cloud/securitycenter/v1/organization_settings.rb
|
@@ -225,6 +230,7 @@ files:
|
|
225
230
|
- proto_docs/google/cloud/securitycenter/v1/security_marks.rb
|
226
231
|
- proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb
|
227
232
|
- proto_docs/google/cloud/securitycenter/v1/source.rb
|
233
|
+
- proto_docs/google/cloud/securitycenter/v1/vulnerability.rb
|
228
234
|
- proto_docs/google/iam/v1/iam_policy.rb
|
229
235
|
- proto_docs/google/iam/v1/options.rb
|
230
236
|
- proto_docs/google/iam/v1/policy.rb
|