Skip to main content

DarkmonLevenshtein

This Script is part of the Darkmon Pack.#

Supported versions

Available on Cortex XSOAR (versions 6.8.0 and later).

Computes the minimum Levenshtein edit distance between a domain's root label and a list of brand names. Used by Darkmon - Brand-Targeted NRD Watch to flag typosquatting candidates.

Script Data#


NameDescription
Script Typepython3
Tagsdarkmon, transformer
Cortex XSOAR Version6.5.0

Used In#


This script is used in the following playbooks and scripts.

  • DarkmonScoreNRDs

Inputs#


Argument NameDescription
domainThe domain to compare (only the root label is used).
brandsComma-separated brand names to compare against.

Outputs#


PathDescriptionType
Darkmon.Levenshtein.domainThe input domain (lowercased).String
Darkmon.Levenshtein.brandThe brand with the smallest distance to the domain root.String
Darkmon.Levenshtein.distanceThe minimum Levenshtein distance found.Number