vulnerability.proto 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. // Copyright 2022 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.v1;
  16. option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
  17. option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter";
  18. option java_multiple_files = true;
  19. option java_outer_classname = "VulnerabilityProto";
  20. option java_package = "com.google.cloud.securitycenter.v1";
  21. option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
  22. option ruby_package = "Google::Cloud::SecurityCenter::V1";
  23. // Refers to common vulnerability fields e.g. cve, cvss, cwe etc.
  24. message Vulnerability {
  25. // CVE stands for Common Vulnerabilities and Exposures
  26. // (https://cve.mitre.org/about/)
  27. Cve cve = 1;
  28. }
  29. // CVE stands for Common Vulnerabilities and Exposures.
  30. // More information: https://cve.mitre.org
  31. message Cve {
  32. // The unique identifier for the vulnerability. e.g. CVE-2021-34527
  33. string id = 1;
  34. // Additional information about the CVE.
  35. // e.g. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527
  36. repeated Reference references = 2;
  37. // Describe Common Vulnerability Scoring System specified at
  38. // https://www.first.org/cvss/v3.1/specification-document
  39. Cvssv3 cvssv3 = 3;
  40. // Whether upstream fix is available for the CVE.
  41. bool upstream_fix_available = 4;
  42. }
  43. // Additional Links
  44. message Reference {
  45. // Source of the reference e.g. NVD
  46. string source = 1;
  47. // Uri for the mentioned source e.g.
  48. // https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34527.
  49. string uri = 2;
  50. }
  51. // Common Vulnerability Scoring System version 3.
  52. message Cvssv3 {
  53. // This metric reflects the context by which vulnerability exploitation is
  54. // possible.
  55. enum AttackVector {
  56. // Invalid value.
  57. ATTACK_VECTOR_UNSPECIFIED = 0;
  58. // The vulnerable component is bound to the network stack and the set of
  59. // possible attackers extends beyond the other options listed below, up to
  60. // and including the entire Internet.
  61. ATTACK_VECTOR_NETWORK = 1;
  62. // The vulnerable component is bound to the network stack, but the attack is
  63. // limited at the protocol level to a logically adjacent topology.
  64. ATTACK_VECTOR_ADJACENT = 2;
  65. // The vulnerable component is not bound to the network stack and the
  66. // attacker's path is via read/write/execute capabilities.
  67. ATTACK_VECTOR_LOCAL = 3;
  68. // The attack requires the attacker to physically touch or manipulate the
  69. // vulnerable component.
  70. ATTACK_VECTOR_PHYSICAL = 4;
  71. }
  72. // This metric describes the conditions beyond the attacker's control that
  73. // must exist in order to exploit the vulnerability.
  74. enum AttackComplexity {
  75. // Invalid value.
  76. ATTACK_COMPLEXITY_UNSPECIFIED = 0;
  77. // Specialized access conditions or extenuating circumstances do not exist.
  78. // An attacker can expect repeatable success when attacking the vulnerable
  79. // component.
  80. ATTACK_COMPLEXITY_LOW = 1;
  81. // A successful attack depends on conditions beyond the attacker's control.
  82. // That is, a successful attack cannot be accomplished at will, but requires
  83. // the attacker to invest in some measurable amount of effort in preparation
  84. // or execution against the vulnerable component before a successful attack
  85. // can be expected.
  86. ATTACK_COMPLEXITY_HIGH = 2;
  87. }
  88. // This metric describes the level of privileges an attacker must possess
  89. // before successfully exploiting the vulnerability.
  90. enum PrivilegesRequired {
  91. // Invalid value.
  92. PRIVILEGES_REQUIRED_UNSPECIFIED = 0;
  93. // The attacker is unauthorized prior to attack, and therefore does not
  94. // require any access to settings or files of the vulnerable system to
  95. // carry out an attack.
  96. PRIVILEGES_REQUIRED_NONE = 1;
  97. // The attacker requires privileges that provide basic user capabilities
  98. // that could normally affect only settings and files owned by a user.
  99. // Alternatively, an attacker with Low privileges has the ability to access
  100. // only non-sensitive resources.
  101. PRIVILEGES_REQUIRED_LOW = 2;
  102. // The attacker requires privileges that provide significant (e.g.,
  103. // administrative) control over the vulnerable component allowing access to
  104. // component-wide settings and files.
  105. PRIVILEGES_REQUIRED_HIGH = 3;
  106. }
  107. // This metric captures the requirement for a human user, other than the
  108. // attacker, to participate in the successful compromise of the vulnerable
  109. // component.
  110. enum UserInteraction {
  111. // Invalid value.
  112. USER_INTERACTION_UNSPECIFIED = 0;
  113. // The vulnerable system can be exploited without interaction from any user.
  114. USER_INTERACTION_NONE = 1;
  115. // Successful exploitation of this vulnerability requires a user to take
  116. // some action before the vulnerability can be exploited.
  117. USER_INTERACTION_REQUIRED = 2;
  118. }
  119. // The Scope metric captures whether a vulnerability in one vulnerable
  120. // component impacts resources in components beyond its security scope.
  121. enum Scope {
  122. // Invalid value.
  123. SCOPE_UNSPECIFIED = 0;
  124. // An exploited vulnerability can only affect resources managed by the same
  125. // security authority.
  126. SCOPE_UNCHANGED = 1;
  127. // An exploited vulnerability can affect resources beyond the security scope
  128. // managed by the security authority of the vulnerable component.
  129. SCOPE_CHANGED = 2;
  130. }
  131. // The Impact metrics capture the effects of a successfully exploited
  132. // vulnerability on the component that suffers the worst outcome that is most
  133. // directly and predictably associated with the attack.
  134. enum Impact {
  135. // Invalid value.
  136. IMPACT_UNSPECIFIED = 0;
  137. // High impact.
  138. IMPACT_HIGH = 1;
  139. // Low impact.
  140. IMPACT_LOW = 2;
  141. // No impact.
  142. IMPACT_NONE = 3;
  143. }
  144. // The base score is a function of the base metric scores.
  145. double base_score = 1;
  146. // Base Metrics
  147. // Represents the intrinsic characteristics of a vulnerability that are
  148. // constant over time and across user environments.
  149. // This metric reflects the context by which vulnerability exploitation is
  150. // possible.
  151. AttackVector attack_vector = 5;
  152. // This metric describes the conditions beyond the attacker's control that
  153. // must exist in order to exploit the vulnerability.
  154. AttackComplexity attack_complexity = 6;
  155. // This metric describes the level of privileges an attacker must possess
  156. // before successfully exploiting the vulnerability.
  157. PrivilegesRequired privileges_required = 7;
  158. // This metric captures the requirement for a human user, other than the
  159. // attacker, to participate in the successful compromise of the vulnerable
  160. // component.
  161. UserInteraction user_interaction = 8;
  162. // The Scope metric captures whether a vulnerability in one vulnerable
  163. // component impacts resources in components beyond its security scope.
  164. Scope scope = 9;
  165. // This metric measures the impact to the confidentiality of the information
  166. // resources managed by a software component due to a successfully exploited
  167. // vulnerability.
  168. Impact confidentiality_impact = 10;
  169. // This metric measures the impact to integrity of a successfully exploited
  170. // vulnerability.
  171. Impact integrity_impact = 11;
  172. // This metric measures the impact to the availability of the impacted
  173. // component resulting from a successfully exploited vulnerability.
  174. Impact availability_impact = 12;
  175. }