Skip to main content

SearchIndicatorRelationships

This Script is part of the Base Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.2.0 and later.

This automation outputs the indicator relationships to context according to the provided query, using the entities, entityTypes, and relationships arguments. All arguments will use the AND operator. For example, using the following arguments entities=8.8.8.8 entities_types=Domain will provide only relationships that the 8.8.8.8 indicator has with indicators of type domain.

Script Data#


NameDescription
Script Typepython3
Tagsbasescript
Cortex XSOAR Version6.2.0

Inputs#


Argument NameDescription
entitiesA comma-separated list of entities for which to search for relationships. For example: 192.168.1.1,192.168.1.2. The search applies to both entity A or entity B values. This argument can be used in conjunction with the entityType and the relationship arguments and all arguments will be treated with the AND operator.
entities_typesA comma-separated list of entity types for which to search for relationships. For example: IP,URL. This argument can be used in conjunction with the entities and the relationship arguments and all arguments will be treated with the AND operator.
relationshipsA comma-separated list of relationship types for which to search for relationships. For example: related-to,contains. This argument can be used in conjunction with the entities and the entitiesTypes arguments and all arguments will be treated with the AND operator.
limitThe number of results to return. Default is 20.
verboseWhether all of the relationships attributes will be returned or just the basic attributes. Default is false and the returned values will be name, entity A value, entity A type, entity B value, entity B type, relationships type. If true, all attributes will be returned.
revokedThe status of the relationships to return. Default is false.

Outputs#


PathDescriptionType
Relationships.EntityAThe source of the relationship.String
Relationships.EntityBThe destination of the relationship.string
Relationships.RelationshipThe name of the relationship.string
Relationships.ReverseThe name of the reverse relationship.string
Relationships.EntityATypeThe type of the source of the relationship.string
Relationships.EntityBTypeThe type of the destination of the relationship.string
Relationships.IDThe ID of the relationship.string
Relationships.ReliabilityThe reliability of the relationship.string
Relationships.BrandThe brand of the relationship.string
Relationships.RevokedTrue if the relationship is revoked.string
Relationships.FirstSeenBySourceThe first time seen by the source of the relationship.string
Relationships.LastSeenBySourceThe last time seen by the source of the relationship.string
Relationships.DescriptionThe description of the relationship.string
Relationships.TypeThe type of the relationship.string

Script Examples#

Example command#

!SearchIndicatorRelationships entities=google.com entities_types=IP

Context Example#

{
"Relationships": [
{
"EntityA": "4.4.4.4",
"EntityAType": "IP",
"EntityB": "google.com",
"EntityBType": "Domain",
"ID": "31",
"Relationship": "related-to",
"Reverse": "related-to"
},
{
"EntityA": "8.8.8.8",
"EntityAType": "IP",
"EntityB": "google.com",
"EntityBType": "Domain",
"ID": "30",
"Relationship": "related-to",
"Reverse": "related-to"
}
]
}

Human Readable Output#

Relationships#

Entity AEntity A TypeEntity BEntity B TypeRelationship
4.4.4.4IPgoogle.comDomainrelated-to
8.8.8.8IPgoogle.comDomainrelated-to