Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Lazarus_Vhd_Ransomware_Downloader

Detects VHD ransomware downloader

APT / threat actorVhd RansomwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-11-28
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detects VHD ransomware downloader

Associated malware family: Vhd Ransomware.

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

Summary generated from the rule's metadata and condition.

Rule source

apt-lazarus-vhd-ransomware-downloader.yarDetection Rule License 1.1
rule SEKOIA_Apt_Lazarus_Vhd_Ransomware_Downloader : FILE
{
	meta:
		description = "Detects VHD ransomware downloader"
		author = "Sekoia.io"
		id = "edcc9df8-650c-437a-adb8-a671e8b75e64"
		date = "2022-11-28"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_lazarus_vhd_ransomware_downloader.yar#L1-L20"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "042ab0029d170937af9b9ee6a8e499843532c84cf99faed3d2d47cb18a1500ac"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "rundll32.exe %s #1 %S" wide
		$ = "cmd /c timeout /t 10 & Del /f /q \"%s\" & attrib -s -h \"%s\" & rundll32 \"%s\" #1" wide
		$ = "cmd /c timeout /t 10 & rundll32 \"%s\" #1" wide
		$ = "curl -A cur1-agent -L %s -s -d da"
		$ = "curl -A cur1-agent -L %s -s -d dl"

	condition:
		filesize < 2MB and 3 of them
}

Strings (5 patterns)

IdentifierTypeValueModifiers
$text"rundll32.exe %s #1 %S"wide
$text"cmd /c timeout /t 10 & Del /f /q \"%s\" & attrib -s -h \"%s\" & rundll32 \"%s\" #1"wide
$text"cmd /c timeout /t 10 & rundll32 \"%s\" #1"wide
$text"curl -A cur1-agent -L %s -s -d da"
$text"curl -A cur1-agent -L %s -s -d dl"

Condition

filesize < 2MB and 3 of them

In plain words (Heuristic)

  • The file must be smaller than 2MB (a cheap guard that skips large files).
  • At least 3 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: edcc9df8-650c-437a-adb8-a671e8b75e64

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Vhd Ransomware rules