pub struct Vulnerability { /* private fields */ }Expand description
The vulnerability fields describe information about a vulnerability that is relevant to an event.
Implementations§
Source§impl Vulnerability
impl Vulnerability
Sourcepub fn get_classification(&self) -> Option<&String>
pub fn get_classification(&self) -> Option<&String>
The classification of the vulnerability scoring system. For example (https://www.first.org/cvss/)
Sourcepub fn set_classification(&mut self, classification_arg: String)
pub fn set_classification(&mut self, classification_arg: String)
The classification of the vulnerability scoring system. For example (https://www.first.org/cvss/)
§Example
CVSS
Sourcepub fn get_enumeration(&self) -> Option<&String>
pub fn get_enumeration(&self) -> Option<&String>
The type of identifier used for this vulnerability. For example (https://cve.mitre.org/about/)
Sourcepub fn set_enumeration(&mut self, enumeration_arg: String)
pub fn set_enumeration(&mut self, enumeration_arg: String)
The type of identifier used for this vulnerability. For example (https://cve.mitre.org/about/)
§Example
CVE
Sourcepub fn get_reference(&self) -> Option<&String>
pub fn get_reference(&self) -> Option<&String>
A resource that provides additional information, context, and mitigations for the identified vulnerability.
Sourcepub fn set_reference(&mut self, reference_arg: String)
pub fn set_reference(&mut self, reference_arg: String)
A resource that provides additional information, context, and mitigations for the identified vulnerability.
§Example
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-6111
Sourcepub fn get_score_base(&self) -> Option<&f64>
pub fn get_score_base(&self) -> Option<&f64>
Scores can range from 0.0 to 10.0, with 10.0 being the most severe.
Base scores cover an assessment for exploitability metrics (attack vector, complexity, privileges, and user interaction), impact metrics (confidentiality, integrity, and availability), and scope. For example (https://www.first.org/cvss/specification-document)
Sourcepub fn set_score_base(&mut self, score_base_arg: f64)
pub fn set_score_base(&mut self, score_base_arg: f64)
Scores can range from 0.0 to 10.0, with 10.0 being the most severe.
Base scores cover an assessment for exploitability metrics (attack vector, complexity, privileges, and user interaction), impact metrics (confidentiality, integrity, and availability), and scope. For example (https://www.first.org/cvss/specification-document)
§Example
5.5
Sourcepub fn get_score_temporal(&self) -> Option<&f64>
pub fn get_score_temporal(&self) -> Option<&f64>
Scores can range from 0.0 to 10.0, with 10.0 being the most severe.
Temporal scores cover an assessment for code maturity, remediation level, and confidence. For example (https://www.first.org/cvss/specification-document)
Sourcepub fn set_score_temporal(&mut self, score_temporal_arg: f64)
pub fn set_score_temporal(&mut self, score_temporal_arg: f64)
Scores can range from 0.0 to 10.0, with 10.0 being the most severe.
Temporal scores cover an assessment for code maturity, remediation level, and confidence. For example (https://www.first.org/cvss/specification-document)
Sourcepub fn get_score_environmental(&self) -> Option<&f64>
pub fn get_score_environmental(&self) -> Option<&f64>
Scores can range from 0.0 to 10.0, with 10.0 being the most severe.
Environmental scores cover an assessment for any modified Base metrics, confidentiality, integrity, and availability requirements. For example (https://www.first.org/cvss/specification-document)
Sourcepub fn set_score_environmental(&mut self, score_environmental_arg: f64)
pub fn set_score_environmental(&mut self, score_environmental_arg: f64)
Scores can range from 0.0 to 10.0, with 10.0 being the most severe.
Environmental scores cover an assessment for any modified Base metrics, confidentiality, integrity, and availability requirements. For example (https://www.first.org/cvss/specification-document)
§Example
5.5
Sourcepub fn get_score_version(&self) -> Option<&String>
pub fn get_score_version(&self) -> Option<&String>
The National Vulnerability Database (NVD) provides qualitative severity rankings of “Low”, “Medium”, and “High” for CVSS v2.0 base score ranges in addition to the severity ratings for CVSS v3.0 as they are defined in the CVSS v3.0 specification.
CVSS is owned and managed by FIRST.Org, Inc. (FIRST), a US-based non-profit organization, whose mission is to help computer security incident response teams across the world. For example (https://nvd.nist.gov/vuln-metrics/cvss)
Sourcepub fn set_score_version(&mut self, score_version_arg: String)
pub fn set_score_version(&mut self, score_version_arg: String)
The National Vulnerability Database (NVD) provides qualitative severity rankings of “Low”, “Medium”, and “High” for CVSS v2.0 base score ranges in addition to the severity ratings for CVSS v3.0 as they are defined in the CVSS v3.0 specification.
CVSS is owned and managed by FIRST.Org, Inc. (FIRST), a US-based non-profit organization, whose mission is to help computer security incident response teams across the world. For example (https://nvd.nist.gov/vuln-metrics/cvss)
§Example
2.0
Sourcepub fn get_category(&self) -> &Vec<String>
pub fn get_category(&self) -> &Vec<String>
The type of system or architecture that the vulnerability affects. These may be platform-specific (for example, Debian or SUSE) or general (for example, Database or Firewall). For example (Qualys vulnerability categories)
This field must be an array.
Sourcepub fn add_category(&mut self, category_arg: String)
pub fn add_category(&mut self, category_arg: String)
The type of system or architecture that the vulnerability affects. These may be platform-specific (for example, Debian or SUSE) or general (for example, Database or Firewall). For example (Qualys vulnerability categories)
This field must be an array.
§Example
["Firewall"]
Sourcepub fn get_description(&self) -> Option<&String>
pub fn get_description(&self) -> Option<&String>
The description of the vulnerability that provides additional context of the vulnerability. For example (Common Vulnerabilities and Exposure CVE description)
Sourcepub fn set_description(&mut self, description_arg: String)
pub fn set_description(&mut self, description_arg: String)
The description of the vulnerability that provides additional context of the vulnerability. For example (Common Vulnerabilities and Exposure CVE description)
§Example
In macOS before 2.12.6, there is a vulnerability in the RPC...
Sourcepub fn get_id(&self) -> Option<&String>
pub fn get_id(&self) -> Option<&String>
The identification (ID) is the number portion of a vulnerability entry. It includes a unique identification number for the vulnerability. For example (Common Vulnerabilities and Exposure CVE ID)
Sourcepub fn set_id(&mut self, id_arg: String)
pub fn set_id(&mut self, id_arg: String)
The identification (ID) is the number portion of a vulnerability entry. It includes a unique identification number for the vulnerability. For example (Common Vulnerabilities and Exposure CVE ID)
§Example
CVE-2019-00001
Sourcepub fn get_scanner_vendor(&self) -> Option<&String>
pub fn get_scanner_vendor(&self) -> Option<&String>
The name of the vulnerability scanner vendor.
Sourcepub fn set_scanner_vendor(&mut self, scanner_vendor_arg: String)
pub fn set_scanner_vendor(&mut self, scanner_vendor_arg: String)
Sourcepub fn get_severity(&self) -> Option<&String>
pub fn get_severity(&self) -> Option<&String>
The severity of the vulnerability can help with metrics and internal prioritization regarding remediation. For example (https://nvd.nist.gov/vuln-metrics/cvss)
Sourcepub fn set_severity(&mut self, severity_arg: String)
pub fn set_severity(&mut self, severity_arg: String)
The severity of the vulnerability can help with metrics and internal prioritization regarding remediation. For example (https://nvd.nist.gov/vuln-metrics/cvss)
§Example
Critical
Sourcepub fn get_report_id(&self) -> Option<&String>
pub fn get_report_id(&self) -> Option<&String>
The report or scan identification number.
Sourcepub fn set_report_id(&mut self, report_id_arg: String)
pub fn set_report_id(&mut self, report_id_arg: String)
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 more