Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Buran

Buran ransomware payload

MalwareBuranditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 73

What this rule detects

Buran ransomware payload

Associated malware family: Buran.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-buran.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Buran : FILE
{
	meta:
		description = "Buran ransomware payload"
		author = "ditekSHen"
		id = "1433bac5-2ece-54bb-8e57-b5834fffc719"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L871-L903"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "eaf50d824dbade0ca63fafc5b4a376553039de9b51a0f6387cb28c8f91a7e0b9"
		score = 75
		quality = 73
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Ransomware.Buran"

	strings:
		$v1_1 = "U?$error_info_injector@V" ascii
		$v1_2 = "Browse for Folder (FTP)" fullword ascii
		$v1_3 = "Find/Replace in Files" fullword ascii
		$v1_4 = "PAHKLM" fullword ascii
		$v1_5 = "PAHKCR" fullword ascii
		$v1_6 = "chkOpt_" ascii
		$h1 = "Search <a href=\"location\" class=\"menu\">in this folder</a>" ascii
		$h2 = "<br>to find where the text below" ascii
		$h3 = "</a> files with these extensions (separate with semi-colons)" ascii
		$h4 = "Need help with <a href=\"" ascii
		$path = "\\work\\cr\\nata\\libs\\boost_" wide
		$v2_1 = "(ShlObj" fullword ascii
		$v2_2 = "\\StreamUnit" fullword ascii
		$v2_3 = "TReadme" fullword ascii
		$v2_4 = "TDrivesAndShares" fullword ascii
		$v2_5 = "TCustomMemoryStreamD" fullword ascii
		$v2_6 = "OpenProcessToken" fullword ascii
		$v2_7 = "UrlMon" fullword ascii
		$v2_8 = "HttpSendRequestA" fullword ascii
		$v2_9 = "InternetConnectA" fullword ascii
		$v2_10 = "FindFiles" fullword ascii
		$v2_12 = "$*@@@*$@@@$" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( ( ( all of ( $v1* ) and 1 of ( $h* ) ) or ( $path and 2 of ( $v1* ) and 1 of ( $h* ) ) or 10 of them ) or all of ( $v2* ) )
}

Strings (22 patterns)

IdentifierTypeValueModifiers
$v1_1text"U?$error_info_injector@V"ascii
$v1_2text"Browse for Folder (FTP)"fullword ascii
$v1_3text"Find/Replace in Files"fullword ascii
$v1_4text"PAHKLM"fullword ascii
$v1_5text"PAHKCR"fullword ascii
$v1_6text"chkOpt_"ascii
$h1text"Search <a href=\"location\" class=\"menu\">in this folder</a>"ascii
$h2text"<br>to find where the text below"ascii
$h3text"</a> files with these extensions (separate with semi-colons)"ascii
$h4text"Need help with <a href=\""ascii
$pathtext"\\work\\cr\\nata\\libs\\boost_"wide
$v2_1text"(ShlObj"fullword ascii
$v2_2text"\\StreamUnit"fullword ascii
$v2_3text"TReadme"fullword ascii
$v2_4text"TDrivesAndShares"fullword ascii
$v2_5text"TCustomMemoryStreamD"fullword ascii
$v2_6text"OpenProcessToken"fullword ascii
$v2_7text"UrlMon"fullword ascii
$v2_8text"HttpSendRequestA"fullword ascii
$v2_9text"InternetConnectA"fullword ascii
$v2_10text"FindFiles"fullword ascii
$v2_12text"$*@@@*$@@@$"ascii

Condition

uint16( 0 ) == 0x5a4d and ( ( ( all of ( $v1* ) and 1 of ( $h* ) ) or ( $path and 2 of ( $v1* ) and 1 of ( $h* ) ) or 10 of them ) or all of ( $v2* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $v1* ) must match.
  • All patterns in ( $v2* ) must match.
  • At least 1 patterns in ( $h* ) must match.
  • At least 2 patterns in ( $v1* ) must match.
  • At least 10 patterns in the rule must match.
  • Pattern $path must be present.

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: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

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

Rule id: 1433bac5-2ece-54bb-8e57-b5834fffc719

Metadata

clamav_sigMALWARE.Win.Ransomware.Buran

Tags:FILE