proto_docs/grafeas/v1/cvss.rb in grafeas-v1-0.3.1 vs proto_docs/grafeas/v1/cvss.rb in grafeas-v1-0.4.0
- old
+ new
@@ -105,7 +105,112 @@
IMPACT_LOW = 2
IMPACT_NONE = 3
end
end
+
+ # Common Vulnerability Scoring System.
+ # For details, see https://www.first.org/cvss/specification-document
+ # This is a message we will try to use for storing multiple versions of
+ # CVSS. The intention is that as new versions of CVSS scores get added, we
+ # will be able to modify this message rather than adding new protos for each
+ # new version of the score.
+ # @!attribute [rw] base_score
+ # @return [::Float]
+ # The base score is a function of the base metric scores.
+ # @!attribute [rw] exploitability_score
+ # @return [::Float]
+ # @!attribute [rw] impact_score
+ # @return [::Float]
+ # @!attribute [rw] attack_vector
+ # @return [::Grafeas::V1::CVSS::AttackVector]
+ # Base Metrics
+ # Represents the intrinsic characteristics of a vulnerability that are
+ # constant over time and across user environments.
+ # @!attribute [rw] attack_complexity
+ # @return [::Grafeas::V1::CVSS::AttackComplexity]
+ # @!attribute [rw] authentication
+ # @return [::Grafeas::V1::CVSS::Authentication]
+ # @!attribute [rw] privileges_required
+ # @return [::Grafeas::V1::CVSS::PrivilegesRequired]
+ # @!attribute [rw] user_interaction
+ # @return [::Grafeas::V1::CVSS::UserInteraction]
+ # @!attribute [rw] scope
+ # @return [::Grafeas::V1::CVSS::Scope]
+ # @!attribute [rw] confidentiality_impact
+ # @return [::Grafeas::V1::CVSS::Impact]
+ # @!attribute [rw] integrity_impact
+ # @return [::Grafeas::V1::CVSS::Impact]
+ # @!attribute [rw] availability_impact
+ # @return [::Grafeas::V1::CVSS::Impact]
+ class CVSS
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+
+ module AttackVector
+ ATTACK_VECTOR_UNSPECIFIED = 0
+
+ ATTACK_VECTOR_NETWORK = 1
+
+ ATTACK_VECTOR_ADJACENT = 2
+
+ ATTACK_VECTOR_LOCAL = 3
+
+ ATTACK_VECTOR_PHYSICAL = 4
+ end
+
+ module AttackComplexity
+ ATTACK_COMPLEXITY_UNSPECIFIED = 0
+
+ ATTACK_COMPLEXITY_LOW = 1
+
+ ATTACK_COMPLEXITY_HIGH = 2
+ end
+
+ module Authentication
+ AUTHENTICATION_UNSPECIFIED = 0
+
+ AUTHENTICATION_MULTIPLE = 1
+
+ AUTHENTICATION_SINGLE = 2
+
+ AUTHENTICATION_NONE = 3
+ end
+
+ module PrivilegesRequired
+ PRIVILEGES_REQUIRED_UNSPECIFIED = 0
+
+ PRIVILEGES_REQUIRED_NONE = 1
+
+ PRIVILEGES_REQUIRED_LOW = 2
+
+ PRIVILEGES_REQUIRED_HIGH = 3
+ end
+
+ module UserInteraction
+ USER_INTERACTION_UNSPECIFIED = 0
+
+ USER_INTERACTION_NONE = 1
+
+ USER_INTERACTION_REQUIRED = 2
+ end
+
+ module Scope
+ SCOPE_UNSPECIFIED = 0
+
+ SCOPE_UNCHANGED = 1
+
+ SCOPE_CHANGED = 2
+ end
+
+ module Impact
+ IMPACT_UNSPECIFIED = 0
+
+ IMPACT_HIGH = 1
+
+ IMPACT_LOW = 2
+
+ IMPACT_NONE = 3
+ end
+ end
end
end