Class: Google::Apis::SecuritycenterV1beta2::Cve

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb

Overview

CVE stands for Common Vulnerabilities and Exposures. Information from the CVE record that describes this vulnerability.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Cve

Returns a new instance of Cve.



836
837
838
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 836

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#cvssv3 ⇒ Google::Apis::SecuritycenterV1beta2::Cvssv3

Common Vulnerability Scoring System version 3. Corresponds to the JSON property cvssv3



795
796
797
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 795

def cvssv3
  @cvssv3
end

#exploitation_activity ⇒ String

The exploitation activity of the vulnerability in the wild. Corresponds to the JSON property exploitationActivity

Returns:

  • (String)


800
801
802
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 800

def exploitation_activity
  @exploitation_activity
end

#id ⇒ String

The unique identifier for the vulnerability. e.g. CVE-2021-34527 Corresponds to the JSON property id

Returns:

  • (String)


805
806
807
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 805

def id
  @id
end

#impact ⇒ String

The potential impact of the vulnerability if it was to be exploited. Corresponds to the JSON property impact

Returns:

  • (String)


810
811
812
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 810

def impact
  @impact
end

#observed_in_the_wild ⇒ Boolean Also known as: observed_in_the_wild?

Whether or not the vulnerability has been observed in the wild. Corresponds to the JSON property observedInTheWild

Returns:

  • (Boolean)


815
816
817
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 815

def observed_in_the_wild
  @observed_in_the_wild
end

#references ⇒ Array<Google::Apis::SecuritycenterV1beta2::Reference>

Additional information about the CVE. e.g. https://cve.mitre.org/cgi-bin/ cvename.cgi?name=CVE-2021-34527 Corresponds to the JSON property references



822
823
824
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 822

def references
  @references
end

#upstream_fix_available ⇒ Boolean Also known as: upstream_fix_available?

Whether upstream fix is available for the CVE. Corresponds to the JSON property upstreamFixAvailable

Returns:

  • (Boolean)


827
828
829
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 827

def upstream_fix_available
  @upstream_fix_available
end

#zero_day ⇒ Boolean Also known as: zero_day?

Whether or not the vulnerability was zero day when the finding was published. Corresponds to the JSON property zeroDay

Returns:

  • (Boolean)


833
834
835
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 833

def zero_day
  @zero_day
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



841
842
843
844
845
846
847
848
849
850
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 841

def update!(**args)
  @cvssv3 = args[:cvssv3] if args.key?(:cvssv3)
  @exploitation_activity = args[:exploitation_activity] if args.key?(:exploitation_activity)
  @id = args[:id] if args.key?(:id)
  @impact = args[:impact] if args.key?(:impact)
  @observed_in_the_wild = args[:observed_in_the_wild] if args.key?(:observed_in_the_wild)
  @references = args[:references] if args.key?(:references)
  @upstream_fix_available = args[:upstream_fix_available] if args.key?(:upstream_fix_available)
  @zero_day = args[:zero_day] if args.key?(:zero_day)
end