Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Sandworm_Caddywiper_Stacked_Strings

Detects stacked strings used in the wiper.

APT / threat actorCaddywiperSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-04-06
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detects stacked strings used in the wiper.

Associated malware family: Caddywiper.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

apt-sandworm-caddywiper-stacked-strings.yarDetection Rule License 1.1
rule SEKOIA_Apt_Sandworm_Caddywiper_Stacked_Strings : FILE
{
	meta:
		description = "Detects stacked strings used in the wiper."
		author = "Sekoia.io"
		id = "7750c4b6-5781-4b1c-8200-cbce9f18aa56"
		date = "2022-04-06"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_sandworm_caddywiper_stacked_strings.yar#L1-L74"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "e8c94e8611a50080368785d2b341a95d5359d1d814e1d665553324118700ed10"
		score = 75
		quality = 80
		tags = "FILE"
		version = "2.0"
		classification = "TLP:CLEAR"

	strings:
		$ = { C6 45 ?? 6E
        C6 45 ?? 65
        C6 45 ?? 74
        C6 45 ?? 61
        C6 45 ?? 70
        C6 45 ?? 69
        C6 45 ?? 33
        C6 45 ?? 32
        C6 45 ?? 2E
        C6 45 ?? 64
        C6 45 ?? 6C
        C6 45 ?? 6C }
		$ = {  C6 45 ?? 44
        C6 45 ?? 65
        C6 45 ?? 76
        C6 45 ?? 69
        C6 45 ?? 63
        C6 45 ?? 65
        C6 45 ?? 49
        C6 45 ?? 6F
        C6 45 ?? 43
        C6 45 ?? 6F
        C6 45 ?? 6E
        C6 45 ?? 74
        C6 45 ?? 72
        C6 45 ?? 6F
        C6 45 ?? 6C }
		$ = { C6 45 ?? 5C
        C6 45 ?? 00
        C6 45 ?? 5C
        C6 45 ?? 00
        C6 45 ?? 2E
        C6 45 ?? 00
        C6 45 ?? 5C
        C6 45 ?? 00
        C6 45 ?? 50
        C6 45 ?? 00
        C6 45 ?? 48
        C6 45 ?? 00
        C6 45 ?? 59
        C6 45 ?? 00
        C6 45 ?? 53
        C6 45 ?? 00
        C6 45 ?? 49
        C6 45 ?? 00
        C6 45 ?? 43
        C6 45 ?? 00
        C6 45 ?? 41
        C6 45 ?? 00
        C6 45 ?? 4C
        C6 45 ?? 00
        C6 45 ?? 44
        C6 45 ?? 00
        C6 45 ?? 52
        C6 45 ?? 00
        C6 45 ?? 49
        C6 45 ?? 00
        C6 45 ?? 56
        C6 45 ?? 00
        C6 45 ?? 45 }

	condition:
		uint16be( 0 ) == 0x4d5a and 2 of them
}

Strings (3 patterns)

IdentifierTypeValueModifiers
$hex{ C6 45 ?? 6E C6 45 ?? 65 C6 45 ?? 74 C6 45 ?? 61 C6 45 ?? 70 C6 45 ?? 69 C6 45 ?? 33 C6 45 ?? 32 …
$hex{ C6 45 ?? 44 C6 45 ?? 65 C6 45 ?? 76 C6 45 ?? 69 C6 45 ?? 63 C6 45 ?? 65 C6 45 ?? 49 C6 45 ?? 6F …
$hex{ C6 45 ?? 5C C6 45 ?? 00 C6 45 ?? 5C C6 45 ?? 00 C6 45 ?? 2E C6 45 ?? 00 C6 45 ?? 5C C6 45 ?? 00 …

Condition

uint16be( 0 ) == 0x4d5a and 2 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 2 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: 7750c4b6-5781-4b1c-8200-cbce9f18aa56

Metadata

version2.0
classificationTLP:CLEAR

Tags:FILE

More Caddywiper rules