Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Latrodectus_Exports

detection based on the exports

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

What this rule detects

detection based on the exports

Associated malware family: Latrodectus.

Targets: Windows PE.

It has no patterns: the condition alone decides (modules, file properties or other rules). YARA modules used: pe.

Summary generated from the rule's metadata and condition.

Rule source

Includes the imports needed to compile it on its own.

latrodectus-exports.yarDetection Rule License 1.1
import "pe"

rule SEKOIA_Latrodectus_Exports : FILE
{
	meta:
		description = "detection based on the exports"
		author = "Sekoia.io"
		id = "29076cf5-f391-42f2-918f-e1c929bd368d"
		date = "2024-07-03"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/latrodectus_exports.yar#L3-L15"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "01385f31b1f2fc94453a2ead136a1f7fb253a72bee95f74d755acfa97abdb26d"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	condition:
		(pe.exports ( "stow" ) or pe.exports ( "homq" ) or pe.exports ( "scub" ) ) and pe.number_of_exports >= 3 and uint16( 0 ) == 0x5a4d
}

Condition

(pe.exports ( "stow" ) or pe.exports ( "homq" ) or pe.exports ( "scub" ) ) and pe.number_of_exports >= 3 and uint16( 0 ) == 0x5a4d

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • Uses the pe module.
  • Checks exported functions or the DLL name.

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: 29076cf5-f391-42f2-918f-e1c929bd368d

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Latrodectus rules