Struct aws_sdk_securityhub::types::Vulnerability
source · #[non_exhaustive]pub struct Vulnerability {
pub id: Option<String>,
pub vulnerable_packages: Option<Vec<SoftwarePackage>>,
pub cvss: Option<Vec<Cvss>>,
pub related_vulnerabilities: Option<Vec<String>>,
pub vendor: Option<VulnerabilityVendor>,
pub reference_urls: Option<Vec<String>>,
pub fix_available: Option<VulnerabilityFixAvailable>,
pub epss_score: Option<f64>,
pub exploit_available: Option<VulnerabilityExploitAvailable>,
pub code_vulnerabilities: Option<Vec<VulnerabilityCodeVulnerabilities>>,
}
Expand description
A vulnerability associated with a finding.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: Option<String>
The identifier of the vulnerability.
vulnerable_packages: Option<Vec<SoftwarePackage>>
List of software packages that have the vulnerability.
cvss: Option<Vec<Cvss>>
CVSS scores from the advisory related to the vulnerability.
List of vulnerabilities that are related to this vulnerability.
vendor: Option<VulnerabilityVendor>
Information about the vendor that generates the vulnerability report.
reference_urls: Option<Vec<String>>
A list of URLs that provide additional information about the vulnerability.
fix_available: Option<VulnerabilityFixAvailable>
Specifies if all vulnerable packages in a finding have a value for FixedInVersion
and Remediation
. This field is evaluated for each vulnerability Id
based on the number of vulnerable packages that have a value for both FixedInVersion
and Remediation
. Valid values are as follows:
-
YES
if all vulnerable packages have a value for bothFixedInVersion
andRemediation
-
NO
if no vulnerable packages have a value forFixedInVersion
andRemediation
-
PARTIAL
otherwise
epss_score: Option<f64>
The Exploit Prediction Scoring System (EPSS) score for a finding.
exploit_available: Option<VulnerabilityExploitAvailable>
Whether an exploit is available for a finding.
code_vulnerabilities: Option<Vec<VulnerabilityCodeVulnerabilities>>
The vulnerabilities found in your Lambda function code. This field pertains to findings that Security Hub receives from Amazon Inspector.
Implementations§
source§impl Vulnerability
impl Vulnerability
sourcepub fn vulnerable_packages(&self) -> Option<&[SoftwarePackage]>
pub fn vulnerable_packages(&self) -> Option<&[SoftwarePackage]>
List of software packages that have the vulnerability.
sourcepub fn cvss(&self) -> Option<&[Cvss]>
pub fn cvss(&self) -> Option<&[Cvss]>
CVSS scores from the advisory related to the vulnerability.
List of vulnerabilities that are related to this vulnerability.
sourcepub fn vendor(&self) -> Option<&VulnerabilityVendor>
pub fn vendor(&self) -> Option<&VulnerabilityVendor>
Information about the vendor that generates the vulnerability report.
sourcepub fn reference_urls(&self) -> Option<&[String]>
pub fn reference_urls(&self) -> Option<&[String]>
A list of URLs that provide additional information about the vulnerability.
sourcepub fn fix_available(&self) -> Option<&VulnerabilityFixAvailable>
pub fn fix_available(&self) -> Option<&VulnerabilityFixAvailable>
Specifies if all vulnerable packages in a finding have a value for FixedInVersion
and Remediation
. This field is evaluated for each vulnerability Id
based on the number of vulnerable packages that have a value for both FixedInVersion
and Remediation
. Valid values are as follows:
-
YES
if all vulnerable packages have a value for bothFixedInVersion
andRemediation
-
NO
if no vulnerable packages have a value forFixedInVersion
andRemediation
-
PARTIAL
otherwise
sourcepub fn epss_score(&self) -> Option<f64>
pub fn epss_score(&self) -> Option<f64>
The Exploit Prediction Scoring System (EPSS) score for a finding.
sourcepub fn exploit_available(&self) -> Option<&VulnerabilityExploitAvailable>
pub fn exploit_available(&self) -> Option<&VulnerabilityExploitAvailable>
Whether an exploit is available for a finding.
sourcepub fn code_vulnerabilities(
&self
) -> Option<&[VulnerabilityCodeVulnerabilities]>
pub fn code_vulnerabilities( &self ) -> Option<&[VulnerabilityCodeVulnerabilities]>
The vulnerabilities found in your Lambda function code. This field pertains to findings that Security Hub receives from Amazon Inspector.
source§impl Vulnerability
impl Vulnerability
sourcepub fn builder() -> VulnerabilityBuilder
pub fn builder() -> VulnerabilityBuilder
Creates a new builder-style object to manufacture Vulnerability
.
Trait Implementations§
source§impl Clone for Vulnerability
impl Clone for Vulnerability
source§fn clone(&self) -> Vulnerability
fn clone(&self) -> Vulnerability
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Vulnerability
impl Debug for Vulnerability
source§impl PartialEq for Vulnerability
impl PartialEq for Vulnerability
source§fn eq(&self, other: &Vulnerability) -> bool
fn eq(&self, other: &Vulnerability) -> bool
self
and other
values to be equal, and is used
by ==
.