123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365 |
- syntax = "proto3";
- package google.cloud.osconfig.v1alpha;
- import "google/api/field_behavior.proto";
- import "google/api/resource.proto";
- import "google/protobuf/timestamp.proto";
- option csharp_namespace = "Google.Cloud.OsConfig.V1Alpha";
- option go_package = "google.golang.org/genproto/googleapis/cloud/osconfig/v1alpha;osconfig";
- option java_multiple_files = true;
- option java_outer_classname = "VulnerabilityProto";
- option java_package = "com.google.cloud.osconfig.v1alpha";
- option php_namespace = "Google\\Cloud\\OsConfig\\V1alpha";
- option ruby_package = "Google::Cloud::OsConfig::V1alpha";
- message VulnerabilityReport {
- option (google.api.resource) = {
- type: "osconfig.googleapis.com/VulnerabilityReport"
- pattern: "projects/{project}/locations/{location}/instances/{instance}/vulnerabilityReport"
- };
-
- message Vulnerability {
-
-
- message Details {
-
- message Reference {
-
- string url = 1;
-
- string source = 2;
- }
-
-
-
- string cve = 1;
-
-
- float cvss_v2_score = 2;
-
- CVSSv3 cvss_v3 = 3;
-
- string severity = 4;
-
- string description = 5;
-
- repeated Reference references = 6;
- }
-
-
- message Item {
-
-
-
-
-
- string installed_inventory_item_id = 1;
-
-
-
-
-
-
- string available_inventory_item_id = 2;
-
-
- string fixed_cpe_uri = 3;
-
- string upstream_fix = 4;
- }
-
-
- Details details = 1;
-
-
-
-
-
- repeated string installed_inventory_item_ids = 2 [deprecated = true];
-
-
-
-
-
-
- repeated string available_inventory_item_ids = 3 [deprecated = true];
-
- google.protobuf.Timestamp create_time = 4;
-
- google.protobuf.Timestamp update_time = 5;
-
- repeated Item items = 6;
- }
-
-
-
-
- string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- repeated Vulnerability vulnerabilities = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
- google.protobuf.Timestamp update_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
- }
- message GetVulnerabilityReportRequest {
-
-
-
-
-
-
-
-
- string name = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "osconfig.googleapis.com/VulnerabilityReport"
- }
- ];
- }
- message ListVulnerabilityReportsRequest {
-
-
-
-
-
- string parent = 1 [
- (google.api.field_behavior) = REQUIRED,
- (google.api.resource_reference) = {
- type: "compute.googleapis.com/Instance"
- }
- ];
-
- int32 page_size = 2;
-
-
-
- string page_token = 3;
-
-
- string filter = 4;
- }
- message ListVulnerabilityReportsResponse {
-
- repeated VulnerabilityReport vulnerability_reports = 1;
-
-
- string next_page_token = 2;
- }
- message CVSSv3 {
-
-
- enum AttackVector {
-
- ATTACK_VECTOR_UNSPECIFIED = 0;
-
-
-
- ATTACK_VECTOR_NETWORK = 1;
-
-
- ATTACK_VECTOR_ADJACENT = 2;
-
-
- ATTACK_VECTOR_LOCAL = 3;
-
-
- ATTACK_VECTOR_PHYSICAL = 4;
- }
-
-
- enum AttackComplexity {
-
- ATTACK_COMPLEXITY_UNSPECIFIED = 0;
-
-
-
- ATTACK_COMPLEXITY_LOW = 1;
-
-
-
-
-
- ATTACK_COMPLEXITY_HIGH = 2;
- }
-
-
- enum PrivilegesRequired {
-
- PRIVILEGES_REQUIRED_UNSPECIFIED = 0;
-
-
-
- PRIVILEGES_REQUIRED_NONE = 1;
-
-
-
-
- PRIVILEGES_REQUIRED_LOW = 2;
-
-
-
- PRIVILEGES_REQUIRED_HIGH = 3;
- }
-
-
-
- enum UserInteraction {
-
- USER_INTERACTION_UNSPECIFIED = 0;
-
- USER_INTERACTION_NONE = 1;
-
-
- USER_INTERACTION_REQUIRED = 2;
- }
-
-
- enum Scope {
-
- SCOPE_UNSPECIFIED = 0;
-
-
- SCOPE_UNCHANGED = 1;
-
-
- SCOPE_CHANGED = 2;
- }
-
-
-
- enum Impact {
-
- IMPACT_UNSPECIFIED = 0;
-
- IMPACT_HIGH = 1;
-
- IMPACT_LOW = 2;
-
- IMPACT_NONE = 3;
- }
-
-
- float base_score = 1;
-
-
-
- float exploitability_score = 2;
-
- float impact_score = 3;
-
-
- AttackVector attack_vector = 5;
-
-
- AttackComplexity attack_complexity = 6;
-
-
- PrivilegesRequired privileges_required = 7;
-
-
-
- UserInteraction user_interaction = 8;
-
-
- Scope scope = 9;
-
-
-
- Impact confidentiality_impact = 10;
-
-
- Impact integrity_impact = 11;
-
-
- Impact availability_impact = 12;
- }
|