Reference documentation and code samples for the Grafeas V1 Client class CVSS.
Common Vulnerability Scoring System.
For details, see https://www.first.org/cvss/specification-document This is a message we will try to use for storing various versions of CVSS rather than making a separate proto for storing a specific version.
Generated from protobuf message grafeas.v1.CVSS
Namespace
Grafeas \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ base_score |
float
The base score is a function of the base metric scores. |
↳ exploitability_score |
float
|
↳ impact_score |
float
|
↳ attack_vector |
int
Attack Vector (AV). Defined in CVSS v2, v3, v4. |
↳ attack_complexity |
int
Attack Complexity (AC). Defined in CVSS v2, v3, v4. |
↳ authentication |
int
Authentication (Au). Defined in CVSS v2. |
↳ privileges_required |
int
Privileges Required (PR). Defined in CVSS v3, v4. |
↳ user_interaction |
int
User Interaction (UI). Defined in CVSS v3, v4. |
↳ scope |
int
Scope (S). Defined in CVSS v3. |
↳ confidentiality_impact |
int
Confidentiality Impact (C). Defined in CVSS v2, v3. |
↳ integrity_impact |
int
Integrity Impact (I). Defined in CVSS v2, v3. |
↳ availability_impact |
int
Availability Impact (A). Defined in CVSS v2, v3. |
↳ attack_requirements |
int
Attack Requirements (AT). Defined in CVSS v4. |
↳ vulnerable_system_confidentiality_impact |
int
Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4. |
↳ vulnerable_system_integrity_impact |
int
Vulnerable System Integrity Impact (VI). Defined in CVSS v4. |
↳ vulnerable_system_availability_impact |
int
Vulnerable System Availability Impact (VA). Defined in CVSS v4. |
↳ subsequent_system_confidentiality_impact |
int
Subsequent System Confidentiality Impact (SC). Defined in CVSS v4. |
↳ subsequent_system_integrity_impact |
int
Subsequent System Integrity Impact (SI). Defined in CVSS v4. |
↳ subsequent_system_availability_impact |
int
Subsequent System Availability Impact (SA). Defined in CVSS v4. |
↳ exploit_maturity |
int
Exploit Maturity (E). Defined in CVSS v4. |
getBaseScore
The base score is a function of the base metric scores.
| Returns | |
|---|---|
| Type | Description |
float |
|
setBaseScore
The base score is a function of the base metric scores.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getExploitabilityScore
Generated from protobuf field float exploitability_score = 2;
| Returns | |
|---|---|
| Type | Description |
float |
|
setExploitabilityScore
Generated from protobuf field float exploitability_score = 2;
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getImpactScore
Generated from protobuf field float impact_score = 3;
| Returns | |
|---|---|
| Type | Description |
float |
|
setImpactScore
Generated from protobuf field float impact_score = 3;
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAttackVector
Attack Vector (AV). Defined in CVSS v2, v3, v4.
| Returns | |
|---|---|
| Type | Description |
int |
|
setAttackVector
Attack Vector (AV). Defined in CVSS v2, v3, v4.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAttackComplexity
Attack Complexity (AC). Defined in CVSS v2, v3, v4.
| Returns | |
|---|---|
| Type | Description |
int |
|
setAttackComplexity
Attack Complexity (AC). Defined in CVSS v2, v3, v4.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAuthentication
Authentication (Au). Defined in CVSS v2.
| Returns | |
|---|---|
| Type | Description |
int |
|
setAuthentication
Authentication (Au). Defined in CVSS v2.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPrivilegesRequired
Privileges Required (PR). Defined in CVSS v3, v4.
| Returns | |
|---|---|
| Type | Description |
int |
|
setPrivilegesRequired
Privileges Required (PR). Defined in CVSS v3, v4.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUserInteraction
User Interaction (UI). Defined in CVSS v3, v4.
| Returns | |
|---|---|
| Type | Description |
int |
|
setUserInteraction
User Interaction (UI). Defined in CVSS v3, v4.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getScope
Scope (S). Defined in CVSS v3.
| Returns | |
|---|---|
| Type | Description |
int |
|
setScope
Scope (S). Defined in CVSS v3.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getConfidentialityImpact
Confidentiality Impact (C). Defined in CVSS v2, v3.
| Returns | |
|---|---|
| Type | Description |
int |
|
setConfidentialityImpact
Confidentiality Impact (C). Defined in CVSS v2, v3.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getIntegrityImpact
Integrity Impact (I). Defined in CVSS v2, v3.
| Returns | |
|---|---|
| Type | Description |
int |
|
setIntegrityImpact
Integrity Impact (I). Defined in CVSS v2, v3.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAvailabilityImpact
Availability Impact (A). Defined in CVSS v2, v3.
| Returns | |
|---|---|
| Type | Description |
int |
|
setAvailabilityImpact
Availability Impact (A). Defined in CVSS v2, v3.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAttackRequirements
Attack Requirements (AT). Defined in CVSS v4.
| Returns | |
|---|---|
| Type | Description |
int |
|
setAttackRequirements
Attack Requirements (AT). Defined in CVSS v4.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getVulnerableSystemConfidentialityImpact
Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4.
| Returns | |
|---|---|
| Type | Description |
int |
|
setVulnerableSystemConfidentialityImpact
Vulnerable System Confidentiality Impact (VC). Defined in CVSS v4.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getVulnerableSystemIntegrityImpact
Vulnerable System Integrity Impact (VI). Defined in CVSS v4.
| Returns | |
|---|---|
| Type | Description |
int |
|
setVulnerableSystemIntegrityImpact
Vulnerable System Integrity Impact (VI). Defined in CVSS v4.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getVulnerableSystemAvailabilityImpact
Vulnerable System Availability Impact (VA). Defined in CVSS v4.
| Returns | |
|---|---|
| Type | Description |
int |
|
setVulnerableSystemAvailabilityImpact
Vulnerable System Availability Impact (VA). Defined in CVSS v4.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSubsequentSystemConfidentialityImpact
Subsequent System Confidentiality Impact (SC). Defined in CVSS v4.
| Returns | |
|---|---|
| Type | Description |
int |
|
setSubsequentSystemConfidentialityImpact
Subsequent System Confidentiality Impact (SC). Defined in CVSS v4.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSubsequentSystemIntegrityImpact
Subsequent System Integrity Impact (SI). Defined in CVSS v4.
| Returns | |
|---|---|
| Type | Description |
int |
|
setSubsequentSystemIntegrityImpact
Subsequent System Integrity Impact (SI). Defined in CVSS v4.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSubsequentSystemAvailabilityImpact
Subsequent System Availability Impact (SA). Defined in CVSS v4.
| Returns | |
|---|---|
| Type | Description |
int |
|
setSubsequentSystemAvailabilityImpact
Subsequent System Availability Impact (SA). Defined in CVSS v4.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getExploitMaturity
Exploit Maturity (E). Defined in CVSS v4.
| Returns | |
|---|---|
| Type | Description |
int |
|
setExploitMaturity
Exploit Maturity (E). Defined in CVSS v4.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|