Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Linux_Buhti

Detects Buhti Ransomware

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

What this rule detects

Detects Buhti Ransomware

Associated malware family: Buhti.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-linux-buhti.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Linux_Buhti : FILE
{
	meta:
		description = "Detects Buhti Ransomware"
		author = "ditekSHen"
		id = "a50b8c34-e9e2-5466-80a1-b0ab805c68be"
		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#L9630-L9643"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "1bab3202dbeaf088b233c3ab1056c357d156b7eef3111bea997b1c610a27f561"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "buhtiRansom" ascii
		$x2 = "://satoshidisk.com/pay/" ascii
		$s1 = "main.encrypt_file" fullword ascii
		$s2 = "/path/to/be/encrypted" ascii
		$s3 = "Restore-My-Files.txt" ascii
		$s4 = ".buhti390625" ascii

	condition:
		uint16( 0 ) == 0x457f and ( all of ( $x* ) or ( 1 of ( $x* ) and 3 of ( $s* ) ) or 5 of them )
}

Strings (6 patterns)

IdentifierTypeValueModifiers
$x1text"buhtiRansom"ascii
$x2text"://satoshidisk.com/pay/"ascii
$s1text"main.encrypt_file"fullword ascii
$s2text"/path/to/be/encrypted"ascii
$s3text"Restore-My-Files.txt"ascii
$s4text".buhti390625"ascii

Condition

uint16( 0 ) == 0x457f and ( all of ( $x* ) or ( 1 of ( $x* ) and 3 of ( $s* ) ) or 5 of them )

In plain words (Heuristic)

  • All patterns in ( $x* ) must match.
  • At least 1 patterns in ( $x* ) must match.
  • At least 3 patterns in ( $s* ) must match.
  • 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: 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: a50b8c34-e9e2-5466-80a1-b0ab805c68be

Tags:FILE