Skip to main content

CompareIndicators

This Script is part of the Developer Tools Pack.#

Supported versions

Supported Cortex XSOAR versions: 6.0.0 and later.

Find the differences between two indicators lists.

Script Data#


NameDescription
Script Typepython3
Tags
Cortex XSOAR Version6.0.0

Inputs#


Argument NameDescription
base_listEither a list of Indicators of Compromise or an EntryID to a File containing a list.
compare_to_listEither a list of Indicators of Compromise or an EntryID to a File containing a list.

Outputs#


PathDescriptionType
IndicatorsCompare.BaseListIndicators that appear in the first indicators list only.String
IndicatorsCompare.CompareListIndicators that appear in the second indicators list only.String

Script Example#

!CompareIndicators base_list="abcd,1.1.1.0/30,2.2.2.2,3.3.3.3-3.3.3.6" compare_to_list="bcde,1.1.1.2,2.2.2.2,3.3.3.2-3.3.3.5"

Context Example#

{
"IndicatorCompare": {
"BaseList": [
"1.1.1.0-1.1.1.1",
"3.3.3.6",
"abcd",
"1.1.1.3"
],
"CompareList": [
"3.3.3.2",
"bcde"
]
}
}

Human Readable Output#

Results#

BaseListCompareList
1.1.1.0-1.1.1.1,
3.3.3.6,
abcd,
1.1.1.3
3.3.3.2,
bcde