Reference documentation and code samples for the Google Cloud Chronicle Client class Vulnerability.
A vulnerability.
Generated from protobuf message google.backstory.Vulnerability
Namespace
Google \ BackstoryMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ about |
Noun
If the vulnerability is about a specific noun (e.g. executable), then add it here. |
↳ name |
string
Name of the vulnerability (e.g. "Unsupported OS Version detected"). |
↳ description |
string
Description of the vulnerability. |
↳ vendor |
string
Vendor of scan that discovered vulnerability. |
↳ scan_start_time |
Google\Protobuf\Timestamp
If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan started. This field can be left unset if the start time is not available or not applicable. |
↳ scan_end_time |
Google\Protobuf\Timestamp
If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan ended. This field can be left unset if the end time is not available or not applicable. |
↳ first_found |
Google\Protobuf\Timestamp
Products that maintain a history of vuln scans should populate first_found with the time that a scan first detected the vulnerability on this asset. |
↳ last_found |
Google\Protobuf\Timestamp
Products that maintain a history of vuln scans should populate last_found with the time that a scan last detected the vulnerability on this asset. |
↳ severity |
int
The severity of the vulnerability. |
↳ severity_details |
string
Vendor-specific severity |
↳ cvss_base_score |
float
CVSS Base Score in the range of 0.0 to 10.0. Useful for sorting. |
↳ cvss_vector |
string
Vector of CVSS properties (e.g. "AV:L/AC:H/Au:N/C:N/I:P/A:C") Can be linked to via: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator |
↳ cvss_version |
string
Version of CVSS Vector/Score. |
↳ cve_id |
string
Common Vulnerabilities and Exposures Id. https://en.wikipedia.org/wiki/Common_Vulnerabilities_and_Exposures https://cve.mitre.org/about/faqs.html#what_is_cve_id |
↳ cve_description |
string
Common Vulnerabilities and Exposures Description. https://cve.mitre.org/about/faqs.html#what_is_cve_record |
↳ vendor_vulnerability_id |
string
Vendor specific vulnerability id (e.g. Microsoft security bulletin id). |
↳ vendor_knowledge_base_article_id |
string
Vendor specific knowledge base article (e.g. "KBXXXXXX" from Microsoft). https://en.wikipedia.org/wiki/Microsoft_Knowledge_Base https://access.redhat.com/knowledgebase |
getAbout
If the vulnerability is about a specific noun (e.g. executable), then add it here.
| Returns | |
|---|---|
| Type | Description |
Noun|null |
|
hasAbout
clearAbout
setAbout
If the vulnerability is about a specific noun (e.g. executable), then add it here.
| Parameter | |
|---|---|
| Name | Description |
var |
Noun
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getName
Name of the vulnerability (e.g. "Unsupported OS Version detected").
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Name of the vulnerability (e.g. "Unsupported OS Version detected").
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDescription
Description of the vulnerability.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDescription
Description of the vulnerability.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getVendor
Vendor of scan that discovered vulnerability.
| Returns | |
|---|---|
| Type | Description |
string |
|
setVendor
Vendor of scan that discovered vulnerability.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getScanStartTime
If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan started.
This field can be left unset if the start time is not available or not applicable.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasScanStartTime
clearScanStartTime
setScanStartTime
If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan started.
This field can be left unset if the start time is not available or not applicable.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getScanEndTime
If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan ended.
This field can be left unset if the end time is not available or not applicable.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasScanEndTime
clearScanEndTime
setScanEndTime
If the vulnerability was discovered during an asset scan, then this field should be populated with the time the scan ended.
This field can be left unset if the end time is not available or not applicable.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFirstFound
Products that maintain a history of vuln scans should populate first_found with the time that a scan first detected the vulnerability on this asset.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasFirstFound
clearFirstFound
setFirstFound
Products that maintain a history of vuln scans should populate first_found with the time that a scan first detected the vulnerability on this asset.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLastFound
Products that maintain a history of vuln scans should populate last_found with the time that a scan last detected the vulnerability on this asset.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasLastFound
clearLastFound
setLastFound
Products that maintain a history of vuln scans should populate last_found with the time that a scan last detected the vulnerability on this asset.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSeverity
The severity of the vulnerability.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Severity. |
setSeverity
The severity of the vulnerability.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type Severity. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSeverityDetails
Vendor-specific severity
| Returns | |
|---|---|
| Type | Description |
string |
|
setSeverityDetails
Vendor-specific severity
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCvssBaseScore
CVSS Base Score in the range of 0.0 to 10.0.
Useful for sorting.
| Returns | |
|---|---|
| Type | Description |
float |
|
setCvssBaseScore
CVSS Base Score in the range of 0.0 to 10.0.
Useful for sorting.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCvssVector
Vector of CVSS properties (e.g. "AV:L/AC:H/Au:N/C:N/I:P/A:C") Can be linked to via: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator
| Returns | |
|---|---|
| Type | Description |
string |
|
setCvssVector
Vector of CVSS properties (e.g. "AV:L/AC:H/Au:N/C:N/I:P/A:C") Can be linked to via: https://nvd.nist.gov/vuln-metrics/cvss/v2-calculator
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCvssVersion
Version of CVSS Vector/Score.
| Returns | |
|---|---|
| Type | Description |
string |
|
setCvssVersion
Version of CVSS Vector/Score.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCveId
Common Vulnerabilities and Exposures Id.
https://en.wikipedia.org/wiki/Common_Vulnerabilities_and_Exposures https://cve.mitre.org/about/faqs.html#what_is_cve_id
| Returns | |
|---|---|
| Type | Description |
string |
|
setCveId
Common Vulnerabilities and Exposures Id.
https://en.wikipedia.org/wiki/Common_Vulnerabilities_and_Exposures https://cve.mitre.org/about/faqs.html#what_is_cve_id
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCveDescription
Common Vulnerabilities and Exposures Description.
| Returns | |
|---|---|
| Type | Description |
string |
|
setCveDescription
Common Vulnerabilities and Exposures Description.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getVendorVulnerabilityId
Vendor specific vulnerability id (e.g. Microsoft security bulletin id).
| Returns | |
|---|---|
| Type | Description |
string |
|
setVendorVulnerabilityId
Vendor specific vulnerability id (e.g. Microsoft security bulletin id).
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getVendorKnowledgeBaseArticleId
Vendor specific knowledge base article (e.g. "KBXXXXXX" from Microsoft).
https://en.wikipedia.org/wiki/Microsoft_Knowledge_Base https://access.redhat.com/knowledgebase
| Returns | |
|---|---|
| Type | Description |
string |
|
setVendorKnowledgeBaseArticleId
Vendor specific knowledge base article (e.g. "KBXXXXXX" from Microsoft).
https://en.wikipedia.org/wiki/Microsoft_Knowledge_Base https://access.redhat.com/knowledgebase
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|