Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Loader_Latrodectus_Dll

Finds Latrodectus samples based on the specific strings

MalwareLatrodectusSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-12-08
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Finds Latrodectus samples based on the specific strings

Associated malware family: Latrodectus.

Targets: Windows PE.

It defines 20 patterns (20 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

loader-latrodectus-dll.yarDetection Rule License 1.1
rule SEKOIA_Loader_Latrodectus_Dll : FILE
{
	meta:
		description = "Finds Latrodectus samples based on the specific strings"
		author = "Sekoia.io"
		id = "c60676ad-31cb-4f4d-9073-757a0ad7d23d"
		date = "2023-12-08"
		modified = "2024-12-19"
		reference = "https://twitter.com/Myrtus0x0/status/1732997981866209550"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_latrodectus_dll.yar#L1-L35"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "57aae1944eded14537cdc1c17b21cfc503687a416551b782fc76f8c7858e936e"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "c:\\temp\\debug.pdb" fullword ascii
		$str02 = "Bottmp64.dll" fullword ascii
		$str03 = "scab" fullword ascii
		$str04 = "&wmic=" fullword ascii
		$str05 = "&ipconfig=" fullword ascii
		$str06 = "&systeminfo=" fullword ascii
		$str07 = "&domain_trusts=" fullword ascii
		$str08 = "&domain_trusts_all=" fullword ascii
		$str09 = "&net_view_all_domain=" fullword ascii
		$str10 = "&net_view_all=" fullword ascii
		$str11 = "&net_group=" fullword ascii
		$str12 = "&net_config_ws=" fullword ascii
		$str13 = "&net_wmic_av=" fullword ascii
		$str14 = "&whoami_group=" fullword ascii
		$str15 = "\"subproc\": [" fullword ascii
		$str16 = "&proclist=[" fullword ascii
		$str17 = "&desklinks=[" fullword ascii
		$str18 = "Update_%x" fullword wide
		$str19 = "Custom_update" fullword wide
		$str20 = "\\update_data.dat" fullword wide

	condition:
		uint16( 0 ) == 0x5A4D and 10 of them
}

Strings (20 patterns)

IdentifierTypeValueModifiers
$str01text"c:\\temp\\debug.pdb"fullword ascii
$str02text"Bottmp64.dll"fullword ascii
$str03text"scab"fullword ascii
$str04text"&wmic="fullword ascii
$str05text"&ipconfig="fullword ascii
$str06text"&systeminfo="fullword ascii
$str07text"&domain_trusts="fullword ascii
$str08text"&domain_trusts_all="fullword ascii
$str09text"&net_view_all_domain="fullword ascii
$str10text"&net_view_all="fullword ascii
$str11text"&net_group="fullword ascii
$str12text"&net_config_ws="fullword ascii
$str13text"&net_wmic_av="fullword ascii
$str14text"&whoami_group="fullword ascii
$str15text"\"subproc\": ["fullword ascii
$str16text"&proclist=["fullword ascii
$str17text"&desklinks=["fullword ascii
$str18text"Update_%x"fullword wide
$str19text"Custom_update"fullword wide
$str20text"\\update_data.dat"fullword wide

Condition

uint16( 0 ) == 0x5A4D and 10 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 10 patterns in the rule must match.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: c60676ad-31cb-4f4d-9073-757a0ad7d23d

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Latrodectus rules