Current section

Files

Jump to
sbom lib sbom cyclonedx v17 vulnerability.pb.ex
Raw

lib/sbom/cyclonedx/v17/vulnerability.pb.ex

defmodule SBoM.CycloneDX.V17.Vulnerability do
@moduledoc """
Defines a weakness in a component or service that could be exploited or triggered by a threat source.
"""
use Protobuf, protoc_gen_elixir_version: "0.15.0", syntax: :proto3
alias Google.Protobuf.Timestamp
field(:bom_ref, 1, proto3_optional: true, type: :string, json_name: "bomRef")
field(:id, 2, proto3_optional: true, type: :string)
field(:source, 3, proto3_optional: true, type: SBoM.CycloneDX.V17.Source)
field(:references, 4, repeated: true, type: SBoM.CycloneDX.V17.VulnerabilityReference)
field(:ratings, 5, repeated: true, type: SBoM.CycloneDX.V17.VulnerabilityRating)
field(:cwes, 6, repeated: true, type: :int32)
field(:description, 7, proto3_optional: true, type: :string)
field(:detail, 8, proto3_optional: true, type: :string)
field(:recommendation, 9, proto3_optional: true, type: :string)
field(:advisories, 10, repeated: true, type: SBoM.CycloneDX.V17.Advisory)
field(:created, 11, proto3_optional: true, type: Timestamp)
field(:published, 12, proto3_optional: true, type: Timestamp)
field(:updated, 13, proto3_optional: true, type: Timestamp)
field(:credits, 14, proto3_optional: true, type: SBoM.CycloneDX.V17.VulnerabilityCredits)
field(:tools, 15, proto3_optional: true, type: SBoM.CycloneDX.V17.Tool)
field(:analysis, 16, proto3_optional: true, type: SBoM.CycloneDX.V17.VulnerabilityAnalysis)
field(:affects, 17, repeated: true, type: SBoM.CycloneDX.V17.VulnerabilityAffects)
field(:properties, 18, repeated: true, type: SBoM.CycloneDX.V17.Property)
field(:rejected, 19, proto3_optional: true, type: Timestamp)
field(:proofOfConcept, 20, proto3_optional: true, type: SBoM.CycloneDX.V17.ProofOfConcept)
field(:workaround, 21, proto3_optional: true, type: :string)
end