Google Cloud Chronicle Client - Class SecurityResult (0.9.0)

Reference documentation and code samples for the Google Cloud Chronicle Client class SecurityResult.

Security related metadata for the event. A security result might be something like "virus detected and quarantined," "malicious connection blocked," or "sensitive data included in document foo.doc." Each security result, of which there may be more than one, may either pertain to the whole event, or to a specific object or device referenced in the event (e.g. a malicious file that was detected, or a sensitive document sent as an email attachment). For security results that apply to a particular object referenced in the event, the security_results message MUST contain details about the implicated object (such as process, user, IP, domain, URL, IP, or email address) in the about field. For security results that apply to the entire event (e.g. SPAM found in this email), the about field must remain empty.

Generated from protobuf message google.backstory.SecurityResult

Namespace

Google \ Backstory

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ about Noun

If the security result is about a specific entity (Noun), add it here. This field is not populated when the SecurityResult appears in a detection.

↳ category int[]

The security category. This field is not populated when the SecurityResult appears in a detection.

↳ category_details string[]

For vendor-specific categories. For web categorization, put type in here such as "gambling" or "porn". This field is not populated when the SecurityResult appears in a detection.

↳ threat_name string

A vendor-assigned classification common across multiple customers (for example, "W32/File-A", "Slammer"). This field is not populated when the SecurityResult appears in a detection.

↳ rule_set string

The curated detection's rule set identifier. (for example, "windows-threats") This is primarily set in rule-generated detections and alerts.

↳ rule_set_display_name string

The curated detections rule set display name. This is primarily set in rule-generated detections and alerts.

↳ ruleset_category_display_name string

The curated detection rule set category display name. (for example, if rule_set_display_name is "CDIR SCC Enhanced Exfiltration", the rule_set_category is "Cloud Threats"). This is primarily set in rule-generated detections and alerts.

↳ rule_id string

A vendor-specific ID for a rule, varying by observer type (e.g. "08123", "5d2b44d0-5ef6-40f5-a704-47d61d3babbe").

↳ rule_name string

Name of the security rule (e.g. "BlockInboundToOracle").

↳ display_name string

The display name of the security result. This is populated from 'name_override' Outcome Variable, if present. Otherwise, this field is not set.

↳ rule_version string

Version of the security rule. (e.g. "v1.1", "00001", "1604709794", "2020-11-16T23:04:19+00:00"). Note that rule versions are source-dependant and lexical ordering should not be assumed.

↳ rule_type string

The type of security rule.

↳ rule_author string

Author of the security rule. This field is not populated when the SecurityResult appears in a detection.

↳ rule_labels array<Label>

A list of rule labels that can't be captured by the other fields in security result (e.g. "reference : AnotherRule", "contributor : John"). This is primarily set in rule-generated detections and alerts.

↳ alert_state int

The alerting types of this security result. This is primarily set for rule-generated detections and alerts.

↳ detection_fields array<Label>

An ordered list of values, that represent fields in detections for a security finding. This list represents mapping of names of requested entities to their values (the security result matched variables). For Collection SecurityResults, prefer variables instead.

↳ outcomes array<Label>

A list of outcomes that represent the results of this security finding. This list represents a mapping of names of the requested outcomes, to a stringified version of their values. This is only populated when the SecurityResult appears in a detection. This is deprecated. Use variables instead.

↳ variables array|Google\Protobuf\Internal\MapField

A list of outcomes and match variables that represent the results of this security finding. This list represents a mapping of names of the requested outcomes or match variables, to their values. This is only populated when the SecurityResult appears in a detection.

↳ summary string

A short human-readable summary (e.g. "failed login occurred")

↳ description string

A human-readable description (e.g. "user password was wrong"). This can be more detailed than the summary.

↳ action int[]

Actions taken for this event. This field is not populated when the SecurityResult appears in a detection.

↳ action_details string

The detail of the action taken as provided by the vendor. This field is not populated when the SecurityResult appears in a detection.

↳ severity int

The severity of the result.

↳ confidence int

The confidence level of the result as estimated by the product. This field is not populated when the SecurityResult appears in a detection.

↳ priority int

The priority of the result. This field is not populated when the SecurityResult appears in a detection.

↳ risk_score float

The risk score of the security result.

↳ confidence_score float

The confidence score of the security result. This field is not populated when the SecurityResult appears in a detection.

↳ analytics_metadata array<AnalyticsMetadata>

Stores metadata about each risk analytic metric the rule uses. This field is not populated when the SecurityResult appears in a detection.

↳ severity_details string

Vendor-specific severity. This field is not populated when the SecurityResult appears in a detection.

↳ confidence_details string

Additional detail with regards to the confidence of a security event as estimated by the product vendor. This field is not populated when the SecurityResult appears in a detection.

↳ priority_details string

Vendor-specific information about the security result priority. This field is not populated when the SecurityResult appears in a detection.

↳ url_back_to_product string

URL that takes the user to the source product console for this event. This field is not populated when the SecurityResult appears in a detection.

↳ threat_id string

Vendor-specific ID for a threat. This field is not populated when the SecurityResult appears in a detection.

↳ threat_feed_name string

Vendor feed name for a threat indicator feed. This field is not populated when the SecurityResult appears in a detection.

↳ threat_id_namespace int

The attribute threat_id_namespace qualifies threat_id with an id namespace to get an unique id. The attribute threat_id by itself is not unique across Chronicle as it is a vendor specific id. This field is not populated when the SecurityResult appears in a detection.

↳ threat_status int

Current status of the threat This field is not populated when the SecurityResult appears in a detection.

↳ attack_details AttackDetails

MITRE ATT&CK details. This field is not populated when the SecurityResult appears in a detection.

↳ first_discovered_time Google\Protobuf\Timestamp

First time the IoC threat was discovered in the provider. This field is not populated when the SecurityResult appears in a detection.

↳ associations array<SecurityResult\Association>

Associations related to the threat.

↳ campaigns string[]

Campaigns using this IOC threat. This is deprecated. Use threat_collections instead.

↳ reports string[]

Reports that reference this IOC threat. These are the report IDs. This is deprecated. Use threat_collections instead.

↳ verdict SecurityResult\Verdict

Verdict about the IoC from the provider. This field is now deprecated. Use VerdictInfo instead.

↳ last_updated_time Google\Protobuf\Timestamp

Last time the IoC threat was updated in the provider. This field is not populated when the SecurityResult appears in a detection.

↳ verdict_info array<SecurityResult\VerdictInfo>

Verdict information about the IoC from the provider. This field is not populated when the SecurityResult appears in a detection.

↳ threat_verdict int

GCTI threat verdict on the security result entity. This field is not populated when the SecurityResult appears in a detection.

↳ last_discovered_time Google\Protobuf\Timestamp

Last time the IoC was seen in the provider data. This field is not populated when the SecurityResult appears in a detection.

↳ detection_depth int|string

The depth of the detection chain. Applies only to composite detections.

↳ threat_collections array<SecurityResult\ThreatCollectionItem>

GTI collections associated with the security result.

getAbout

If the security result is about a specific entity (Noun), add it here.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
Noun|null

hasAbout

clearAbout

setAbout

If the security result is about a specific entity (Noun), add it here.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var Noun
Returns
Type Description
$this

getCategory

The security category.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
Google\Protobuf\RepeatedField<int>

setCategory

The security category.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var int[]
Returns
Type Description
$this

getCategoryDetails

For vendor-specific categories. For web categorization, put type in here such as "gambling" or "porn".

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setCategoryDetails

For vendor-specific categories. For web categorization, put type in here such as "gambling" or "porn".

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getThreatName

A vendor-assigned classification common across multiple customers (for example, "W32/File-A", "Slammer").

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
string

setThreatName

A vendor-assigned classification common across multiple customers (for example, "W32/File-A", "Slammer").

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var string
Returns
Type Description
$this

getRuleSet

The curated detection's rule set identifier.

(for example, "windows-threats") This is primarily set in rule-generated detections and alerts.

Returns
Type Description
string

setRuleSet

The curated detection's rule set identifier.

(for example, "windows-threats") This is primarily set in rule-generated detections and alerts.

Parameter
Name Description
var string
Returns
Type Description
$this

getRuleSetDisplayName

The curated detections rule set display name.

This is primarily set in rule-generated detections and alerts.

Returns
Type Description
string

setRuleSetDisplayName

The curated detections rule set display name.

This is primarily set in rule-generated detections and alerts.

Parameter
Name Description
var string
Returns
Type Description
$this

getRulesetCategoryDisplayName

The curated detection rule set category display name.

(for example, if rule_set_display_name is "CDIR SCC Enhanced Exfiltration", the rule_set_category is "Cloud Threats"). This is primarily set in rule-generated detections and alerts.

Returns
Type Description
string

setRulesetCategoryDisplayName

The curated detection rule set category display name.

(for example, if rule_set_display_name is "CDIR SCC Enhanced Exfiltration", the rule_set_category is "Cloud Threats"). This is primarily set in rule-generated detections and alerts.

Parameter
Name Description
var string
Returns
Type Description
$this

getRuleId

A vendor-specific ID for a rule, varying by observer type (e.g. "08123", "5d2b44d0-5ef6-40f5-a704-47d61d3babbe").

Returns
Type Description
string

setRuleId

A vendor-specific ID for a rule, varying by observer type (e.g. "08123", "5d2b44d0-5ef6-40f5-a704-47d61d3babbe").

Parameter
Name Description
var string
Returns
Type Description
$this

getRuleName

Name of the security rule (e.g. "BlockInboundToOracle").

Returns
Type Description
string

setRuleName

Name of the security rule (e.g. "BlockInboundToOracle").

Parameter
Name Description
var string
Returns
Type Description
$this

getDisplayName

The display name of the security result.

This is populated from 'name_override' Outcome Variable, if present. Otherwise, this field is not set.

Returns
Type Description
string

setDisplayName

The display name of the security result.

This is populated from 'name_override' Outcome Variable, if present. Otherwise, this field is not set.

Parameter
Name Description
var string
Returns
Type Description
$this

getRuleVersion

Version of the security rule.

(e.g. "v1.1", "00001", "1604709794", "2020-11-16T23:04:19+00:00"). Note that rule versions are source-dependant and lexical ordering should not be assumed.

Returns
Type Description
string

setRuleVersion

Version of the security rule.

(e.g. "v1.1", "00001", "1604709794", "2020-11-16T23:04:19+00:00"). Note that rule versions are source-dependant and lexical ordering should not be assumed.

Parameter
Name Description
var string
Returns
Type Description
$this

getRuleType

The type of security rule.

Returns
Type Description
string

setRuleType

The type of security rule.

Parameter
Name Description
var string
Returns
Type Description
$this

getRuleAuthor

Author of the security rule.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
string

setRuleAuthor

Author of the security rule.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var string
Returns
Type Description
$this

getRuleLabels

A list of rule labels that can't be captured by the other fields in security result (e.g. "reference : AnotherRule", "contributor : John").

This is primarily set in rule-generated detections and alerts.

Returns
Type Description
Google\Protobuf\RepeatedField<Label>

setRuleLabels

A list of rule labels that can't be captured by the other fields in security result (e.g. "reference : AnotherRule", "contributor : John").

This is primarily set in rule-generated detections and alerts.

Parameter
Name Description
var array<Label>
Returns
Type Description
$this

getAlertState

The alerting types of this security result.

This is primarily set for rule-generated detections and alerts.

Returns
Type Description
int Enum of type AlertState.

setAlertState

The alerting types of this security result.

This is primarily set for rule-generated detections and alerts.

Parameter
Name Description
var int

Enum of type AlertState.

Returns
Type Description
$this

getDetectionFields

An ordered list of values, that represent fields in detections for a security finding. This list represents mapping of names of requested entities to their values (the security result matched variables).

For Collection SecurityResults, prefer variables instead.

Returns
Type Description
Google\Protobuf\RepeatedField<Label>

setDetectionFields

An ordered list of values, that represent fields in detections for a security finding. This list represents mapping of names of requested entities to their values (the security result matched variables).

For Collection SecurityResults, prefer variables instead.

Parameter
Name Description
var array<Label>
Returns
Type Description
$this

getOutcomes

A list of outcomes that represent the results of this security finding.

This list represents a mapping of names of the requested outcomes, to a stringified version of their values. This is only populated when the SecurityResult appears in a detection. This is deprecated. Use variables instead.

Returns
Type Description
Google\Protobuf\RepeatedField<Label>

setOutcomes

A list of outcomes that represent the results of this security finding.

This list represents a mapping of names of the requested outcomes, to a stringified version of their values. This is only populated when the SecurityResult appears in a detection. This is deprecated. Use variables instead.

Parameter
Name Description
var array<Label>
Returns
Type Description
$this

getVariables

A list of outcomes and match variables that represent the results of this security finding. This list represents a mapping of names of the requested outcomes or match variables, to their values.

This is only populated when the SecurityResult appears in a detection.

Returns
Type Description
Google\Protobuf\Internal\MapField

setVariables

A list of outcomes and match variables that represent the results of this security finding. This list represents a mapping of names of the requested outcomes or match variables, to their values.

This is only populated when the SecurityResult appears in a detection.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this

getSummary

A short human-readable summary (e.g. "failed login occurred")

Returns
Type Description
string

setSummary

A short human-readable summary (e.g. "failed login occurred")

Parameter
Name Description
var string
Returns
Type Description
$this

getDescription

A human-readable description (e.g. "user password was wrong").

This can be more detailed than the summary.

Returns
Type Description
string

setDescription

A human-readable description (e.g. "user password was wrong").

This can be more detailed than the summary.

Parameter
Name Description
var string
Returns
Type Description
$this

getAction

Actions taken for this event.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
Google\Protobuf\RepeatedField<int>

setAction

Actions taken for this event.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var int[]
Returns
Type Description
$this

getActionDetails

The detail of the action taken as provided by the vendor.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
string

setActionDetails

The detail of the action taken as provided by the vendor.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var string
Returns
Type Description
$this

getSeverity

The severity of the result.

Returns
Type Description
int Enum of type ProductSeverity.

setSeverity

The severity of the result.

Parameter
Name Description
var int

Enum of type ProductSeverity.

Returns
Type Description
$this

getConfidence

The confidence level of the result as estimated by the product.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
int Enum of type ProductConfidence.

setConfidence

The confidence level of the result as estimated by the product.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var int

Enum of type ProductConfidence.

Returns
Type Description
$this

getPriority

The priority of the result.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
int Enum of type ProductPriority.

setPriority

The priority of the result.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var int

Enum of type ProductPriority.

Returns
Type Description
$this

getRiskScore

The risk score of the security result.

Returns
Type Description
float

setRiskScore

The risk score of the security result.

Parameter
Name Description
var float
Returns
Type Description
$this

getConfidenceScore

The confidence score of the security result.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
float

setConfidenceScore

The confidence score of the security result.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var float
Returns
Type Description
$this

getAnalyticsMetadata

Stores metadata about each risk analytic metric the rule uses.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
Google\Protobuf\RepeatedField<AnalyticsMetadata>

setAnalyticsMetadata

Stores metadata about each risk analytic metric the rule uses.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var array<AnalyticsMetadata>
Returns
Type Description
$this

getSeverityDetails

Vendor-specific severity.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
string

setSeverityDetails

Vendor-specific severity.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var string
Returns
Type Description
$this

getConfidenceDetails

Additional detail with regards to the confidence of a security event as estimated by the product vendor.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
string

setConfidenceDetails

Additional detail with regards to the confidence of a security event as estimated by the product vendor.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var string
Returns
Type Description
$this

getPriorityDetails

Vendor-specific information about the security result priority.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
string

setPriorityDetails

Vendor-specific information about the security result priority.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var string
Returns
Type Description
$this

getUrlBackToProduct

URL that takes the user to the source product console for this event.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
string

setUrlBackToProduct

URL that takes the user to the source product console for this event.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var string
Returns
Type Description
$this

getThreatId

Vendor-specific ID for a threat.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
string

setThreatId

Vendor-specific ID for a threat.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var string
Returns
Type Description
$this

getThreatFeedName

Vendor feed name for a threat indicator feed.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
string

setThreatFeedName

Vendor feed name for a threat indicator feed.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var string
Returns
Type Description
$this

getThreatIdNamespace

The attribute threat_id_namespace qualifies threat_id with an id namespace to get an unique id. The attribute threat_id by itself is not unique across Chronicle as it is a vendor specific id.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
int Enum of type Namespace.

setThreatIdNamespace

The attribute threat_id_namespace qualifies threat_id with an id namespace to get an unique id. The attribute threat_id by itself is not unique across Chronicle as it is a vendor specific id.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var int

Enum of type Namespace.

Returns
Type Description
$this

getThreatStatus

Current status of the threat This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
int Enum of type ThreatStatus.

setThreatStatus

Current status of the threat This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var int

Enum of type ThreatStatus.

Returns
Type Description
$this

getAttackDetails

MITRE ATT&CK details.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
AttackDetails|null

hasAttackDetails

clearAttackDetails

setAttackDetails

MITRE ATT&CK details.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var AttackDetails
Returns
Type Description
$this

getFirstDiscoveredTime

First time the IoC threat was discovered in the provider.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasFirstDiscoveredTime

clearFirstDiscoveredTime

setFirstDiscoveredTime

First time the IoC threat was discovered in the provider.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getAssociations

Associations related to the threat.

Returns
Type Description
Google\Protobuf\RepeatedField<SecurityResult\Association>

setAssociations

Associations related to the threat.

Parameter
Name Description
var array<SecurityResult\Association>
Returns
Type Description
$this

getCampaigns

Campaigns using this IOC threat.

This is deprecated. Use threat_collections instead.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setCampaigns

Campaigns using this IOC threat.

This is deprecated. Use threat_collections instead.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getReports

Reports that reference this IOC threat. These are the report IDs.

This is deprecated. Use threat_collections instead.

Returns
Type Description
Google\Protobuf\RepeatedField<string>

setReports

Reports that reference this IOC threat. These are the report IDs.

This is deprecated. Use threat_collections instead.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getVerdict

Verdict about the IoC from the provider.

This field is now deprecated. Use VerdictInfo instead.

Returns
Type Description
SecurityResult\Verdict|null

hasVerdict

clearVerdict

setVerdict

Verdict about the IoC from the provider.

This field is now deprecated. Use VerdictInfo instead.

Parameter
Name Description
var SecurityResult\Verdict
Returns
Type Description
$this

getLastUpdatedTime

Last time the IoC threat was updated in the provider.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasLastUpdatedTime

clearLastUpdatedTime

setLastUpdatedTime

Last time the IoC threat was updated in the provider.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getVerdictInfo

Verdict information about the IoC from the provider.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
Google\Protobuf\RepeatedField<SecurityResult\VerdictInfo>

setVerdictInfo

Verdict information about the IoC from the provider.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var array<SecurityResult\VerdictInfo>
Returns
Type Description
$this

getThreatVerdict

GCTI threat verdict on the security result entity.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
int Enum of type ThreatVerdict.

setThreatVerdict

GCTI threat verdict on the security result entity.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var int

Enum of type ThreatVerdict.

Returns
Type Description
$this

getLastDiscoveredTime

Last time the IoC was seen in the provider data.

This field is not populated when the SecurityResult appears in a detection.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasLastDiscoveredTime

clearLastDiscoveredTime

setLastDiscoveredTime

Last time the IoC was seen in the provider data.

This field is not populated when the SecurityResult appears in a detection.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getDetectionDepth

The depth of the detection chain.

Applies only to composite detections.

Returns
Type Description
int|string

setDetectionDepth

The depth of the detection chain.

Applies only to composite detections.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getThreatCollections

GTI collections associated with the security result.

Returns
Type Description
Google\Protobuf\RepeatedField<SecurityResult\ThreatCollectionItem>

setThreatCollections

GTI collections associated with the security result.

Parameter
Name Description
var array<SecurityResult\ThreatCollectionItem>
Returns
Type Description
$this