StringSimilarity
Common Scripts Pack.#
This Script is part of theSupported versions
Supported Cortex XSOAR versions: 6.9.0 and later.
This automation calculates the similarity ratio between every string in 2 different arrays and outputs a decimal value between 0.0 and 1.0 (1.0 if the sequences are identical, and 0.0 if they don't have anything in common).
#
Script DataName | Description |
---|---|
Script Type | python3 |
Cortex XSOAR Version | 6.9.0 |
#
Used InThis script is used in the following playbooks and scripts.
- RDP Bitmap Cache - Detect and Hunt
- Compare Process Execution Arguments To LOLBAS Patterns
#
InputsArgument Name | Description |
---|---|
string_A | First array of strings to compare. |
string_B | Second array of strings to compare. |
similarity_threshold | The similarity threshold to show results for, a value between 0 < x >1. |
#
OutputsPath | Description | Type |
---|---|---|
StringSimilarity.SimilarityScore | Similarity score - a value between 1.0 if the sequences are identical, and 0.0 if they have nothing in common. | Unknown |