Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Ursnif_Ldr4

Ursnif LDR4

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

What this rule detects

Ursnif LDR4

Associated malware family: Ldr4.

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

Summary generated from the rule's metadata and condition.

Rule source

ursnif-ldr4.yarDetection Rule License 1.1
rule SEKOIA_Ursnif_Ldr4
{
	meta:
		description = "Ursnif LDR4"
		author = "Sekoia.io"
		id = "73e63481-8a89-4342-87f0-8dc7ad459396"
		date = "2024-12-19"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/ursnif_ldr4.yar#L1-L26"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "6fe237c6370a1b99bddb7bee4170d29cbb780dc445f5d5039201ddbaf05c63db"
		score = 75
		quality = 80
		tags = ""
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str1 = "LOADER.dll" fullword
		$str2 = "DllRegisterServer" fullword
		$str3 = ".bss" fullword
		$x64_code1 = { 3D 2E 62 73 73 74 0A 48 83 C7 28 }
		$x64_code2 = { 8B 17 48 83 C7 04 8B CA 8b C2 23 CB 0B C3 F7 D1 23 C8 41 2B CA 44 8B D2 41 89 08 41 8B CB 49 83 C0 04 83 E1 07 FF C1 41 D3 C2 41 83 EB 04 79 }
		$x64_code3 = { 41 0F B6 01 49 FF C1 8B C8 8B D0 83 E1 03 C1 E1 03 D3 E2 44 03 C2 41 83 C2 FF 75 }
		$x64_code4 = { 45 8D 45 08 48 8D 8C 24 [4] BA 30 00 FE 7F E8 }
		$x64_code5 = { 48 8D 8C 24 [4] BA 30 00 FE 7F 41 B8 08 00 00 00 E8 }
		$x86_code1 = { 81 F9 2E 62 73 73 74 09 83 C6 28 }
		$x86_code2 = { 8B 06 8B D0 23 55 0C 8B D8 0B 5D 0C F7 D2 23 D3 2B D1 8A 4D 08 80 E1 07 83 C6 04 89 17 83 C7 04 FE C1 D3 C0 83 6D 08 04 8B C8 79 }
		$x86_code3 = { 8A 0E 0F B6 D1 8B CA 83 E1 03 C1 E1 03 D3 E2 46 03 C2 4F 75 }
		$x86_code4 = { 6A 08 8D 45 F8 68 30 00 FE 7F 50 E8 }

	condition:
		true and 5 of them
}

Strings (12 patterns)

IdentifierTypeValueModifiers
$str1text"LOADER.dll"fullword
$str2text"DllRegisterServer"fullword
$str3text".bss"fullword
$x64_code1hex{ 3D 2E 62 73 73 74 0A 48 83 C7 28 }
$x64_code2hex{ 8B 17 48 83 C7 04 8B CA 8b C2 23 CB 0B C3 F7 D1 23 C8 41 2B CA 44 8B D2 41 89 08 41 8B CB 49 83 C0 04 83 E1 07 FF C1 41 D3 C2 41 83 EB 04 79 }
$x64_code3hex{ 41 0F B6 01 49 FF C1 8B C8 8B D0 83 E1 03 C1 E1 03 D3 E2 44 03 C2 41 83 C2 FF 75 }
$x64_code4hex{ 45 8D 45 08 48 8D 8C 24 [4] BA 30 00 FE 7F E8 }
$x64_code5hex{ 48 8D 8C 24 [4] BA 30 00 FE 7F 41 B8 08 00 00 00 E8 }
$x86_code1hex{ 81 F9 2E 62 73 73 74 09 83 C6 28 }
$x86_code2hex{ 8B 06 8B D0 23 55 0C 8B D8 0B 5D 0C F7 D2 23 D3 2B D1 8A 4D 08 80 E1 07 83 C6 04 89 17 83 C7 04 FE C1 D3 C0 83 6D 08 04 8B C8 79 }
$x86_code3hex{ 8A 0E 0F B6 D1 8B CA 83 E1 03 C1 E1 03 D3 E2 46 03 C2 4F 75 }
$x86_code4hex{ 6A 08 8D 45 F8 68 30 00 FE 7F 50 E8 }

Condition

true and 5 of them

In plain words (Heuristic)

  • At least 5 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: 73e63481-8a89-4342-87f0-8dc7ad459396

Metadata

version1.0
classificationTLP:CLEAR