Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Killmbr

Detects KillMBR

MalwareKillmbrditekSHen 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 KillMBR

Associated malware family: Killmbr.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-killmbr.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Killmbr : FILE
{
	meta:
		description = "Detects KillMBR"
		author = "ditekSHen"
		id = "b109865f-e268-5633-bb8e-f390dd050d99"
		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#L4305-L4316"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "1ed9206f90052df7e533be4612afa373e5e69fba8f5b5ae4df1c09a9d98958cf"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "\\\\.\\PhysicalDrive" ascii
		$s2 = "/logger.php" ascii
		$s3 = "Ooops! Your MBR was been rewritten" ascii
		$s4 = "No, this ransomware dont encrypt your files, erases it" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 2 of them and #s1 > 10 )
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$s1text"\\\\.\\PhysicalDrive"ascii
$s2text"/logger.php"ascii
$s3text"Ooops! Your MBR was been rewritten"ascii
$s4text"No, this ransomware dont encrypt your files, erases it"ascii

Condition

uint16( 0 ) == 0x5a4d and ( 2 of them and #s1 > 10 )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 2 patterns in the rule must match.
  • Pattern $s1 must occur > 10 times.

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: b109865f-e268-5633-bb8e-f390dd050d99

Tags:FILE