StringSimilarity
This Script is part of the Common Scripts Pack.#
Supported 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 Data#
| Name | Description |
|---|---|
| Script Type | python3 |
| Cortex XSOAR Version | 6.9.0 |
Used In#
This script is used in the following playbooks and scripts.
- RDP Bitmap Cache - Detect and Hunt
- Compare Process Execution Arguments To LOLBAS Patterns
Inputs#
| Argument 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. |
Outputs#
| Path | 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 |