Skip to main content

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#


NameDescription
Script Typepython3
Cortex XSOAR Version6.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 NameDescription
string_AFirst array of strings to compare.
string_BSecond array of strings to compare.
similarity_thresholdThe similarity threshold to show results for, a value between 0 < x >1.

Outputs#


PathDescriptionType
StringSimilarity.SimilarityScoreSimilarity score - a value between 1.0 if the sequences are identical, and 0.0 if they have nothing in common.Unknown