Skip to main content

CreateIndicatorRelationship

This Script is part of the Base Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.2.0 and later.

This automation creates a relationship between indicator objects.

Script Data#


NameDescription
Script Typepython3
Tagsbasescript
Cortex XSOAR Version6.2.0

Used In#


This script is used in the following playbooks and scripts.

  • ACTI Create Report-Indicator Associations

Inputs#


Argument NameDescription
entity_aThe source of the relationship, for example 1.1.1.1. Only a single value is acceptable.
entity_a_typeThe source type of the relationship, for example IP. The value must be an accepted indicator type. Only a single value is acceptable.
entity_bA comma-separated list of destinations or second entity values, for example 3.3.3.3,2.2.2.2. This argument must be used with the entity_b_type argument and cannot be used in conjunction with the entity_b_query argument.
entity_b_typeThe destination type of the relationship, for example IP. Only a single value is acceptable. This argument must be used with the entity_b argument and cannot be used in conjunction with the entity_b_query argument.
entity_b_queryThe indicator query for all the entity_b results. The indicators that are the results of the query will be used as the destination of the relationship. For example type:ip AND tags:mytag. For more query examples, see https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.10/Cortex-XSOAR-Administrator-Guide/Indicators This argument cannot be used in conjunction with the entity_b argument or the entity_b_type argument.
relationshipThe name of relationship to be created.
reverse_relationshipThe reverse name of relationship to be created. If the argument isn't provided by the user, the default reverse relation will be created.
source_reliabilityReliability of the source providing the intelligence data.
descriptionFree text description to add to the relationship.
first_seenThe time the relationship was seen. If left empty, the default value will be the time the relationship was created. Format (YYYY-MM-DDTHH:MM:SSZ). For example: 2020-02-02T19:00:00Z
create_indicatorTrue, if the non-existing indicators will be created according to the specified entities and their types. Default is false.

Outputs#


There are no outputs for this script.