Reference documentation and code samples for the Google Cloud Chronicle Client class Association.
Associations represents different metadata about malware and threat actors involved with an IoC.
Generated from protobuf message google.backstory.SecurityResult.Association
Namespace
Google \ Backstory \ SecurityResultMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ id |
string
Unique association id generated by mandiant. |
↳ country_code |
string[]
Country from which the threat actor/ malware is originated. |
↳ type |
int
Signifies the type of association. |
↳ name |
string
Name of the threat actor/malware. |
↳ description |
string
Human readable description about the association. |
↳ role |
string
Role of the malware. Not applicable for threat actor. |
↳ source_country |
string
Name of the country the threat originated from. |
↳ alias |
array<Association\AssociationAlias>
Different aliases of the threat actor given by different sources. |
↳ first_reference_time |
Google\Protobuf\Timestamp
First time the threat actor was referenced or seen. |
↳ last_reference_time |
Google\Protobuf\Timestamp
Last time the threat actor was referenced or seen. |
↳ industries_affected |
string[]
List of industries the threat actor affects. |
↳ associated_actors |
array<Association>
List of associated threat actors for a malware. Not applicable for threat actors. |
↳ region_code |
Google\Backstory\Location
Name of the country, the threat is originating from. |
↳ sponsor_region |
Google\Backstory\Location
Sponsor region of the threat actor. |
↳ targeted_regions |
array<Google\Backstory\Location>
Targeted regions. |
↳ tags |
string[]
Tags. |
getId
Unique association id generated by mandiant.
| Returns | |
|---|---|
| Type | Description |
string |
|
setId
Unique association id generated by mandiant.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCountryCode
Country from which the threat actor/ malware is originated.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setCountryCode
Country from which the threat actor/ malware is originated.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getType
Signifies the type of association.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type AssociationType. |
setType
Signifies the type of association.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type AssociationType. |
| Returns | |
|---|---|
| Type | Description |
$this |
|
getName
Name of the threat actor/malware.
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
Name of the threat actor/malware.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDescription
Human readable description about the association.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDescription
Human readable description about the association.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRole
Role of the malware. Not applicable for threat actor.
| Returns | |
|---|---|
| Type | Description |
string |
|
setRole
Role of the malware. Not applicable for threat actor.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSourceCountry
Name of the country the threat originated from.
| Returns | |
|---|---|
| Type | Description |
string |
|
setSourceCountry
Name of the country the threat originated from.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAlias
Different aliases of the threat actor given by different sources.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<Association\AssociationAlias> |
|
setAlias
Different aliases of the threat actor given by different sources.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Association\AssociationAlias>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFirstReferenceTime
First time the threat actor was referenced or seen.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasFirstReferenceTime
clearFirstReferenceTime
setFirstReferenceTime
First time the threat actor was referenced or seen.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLastReferenceTime
Last time the threat actor was referenced or seen.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasLastReferenceTime
clearLastReferenceTime
setLastReferenceTime
Last time the threat actor was referenced or seen.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getIndustriesAffected
List of industries the threat actor affects.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setIndustriesAffected
List of industries the threat actor affects.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAssociatedActors
List of associated threat actors for a malware. Not applicable for threat actors.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<Association> |
|
setAssociatedActors
List of associated threat actors for a malware. Not applicable for threat actors.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Association>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRegionCode
Name of the country, the threat is originating from.
| Returns | |
|---|---|
| Type | Description |
Google\Backstory\Location|null |
|
hasRegionCode
clearRegionCode
setRegionCode
Name of the country, the threat is originating from.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Backstory\Location
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSponsorRegion
Sponsor region of the threat actor.
| Returns | |
|---|---|
| Type | Description |
Google\Backstory\Location|null |
|
hasSponsorRegion
clearSponsorRegion
setSponsorRegion
Sponsor region of the threat actor.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Backstory\Location
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTargetedRegions
Targeted regions.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<Google\Backstory\Location> |
|
setTargetedRegions
Targeted regions.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Backstory\Location>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTags
Tags.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<string> |
|
setTags
Tags.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|