Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Xorist

Detects Xorist ransomware

MalwareXoristditekSHen 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 Xorist ransomware

Associated malware family: Xorist.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-xorist.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Xorist : FILE
{
	meta:
		description = "Detects Xorist ransomware"
		author = "ditekSHen"
		id = "76119441-343d-51c3-90eb-9d54c80a983d"
		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#L2057-L2078"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "b34e3fa065cabcd8d26908866e53ff599631128e1da884e42a2e63d890879eaa"
		score = 75
		quality = 75
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Ransomware.Xorist"

	strings:
		$x1 = { 00 4d 00 41 00 47 00 45 00 0b 00 50 00 55 00 
                53 00 53 00 59 00 4c 00 49 00 43 00 4b 00 45
                00 52 00 }
		$x2 = { 30 70 33 6e 53 4f 75 72 63 33 20 58 30 72 31 35
                37 2c 20 6d 6f 74 68 65 72 66 75 63 6b 65 72 21
                00 70 75 73 73 79 6c 69 63 6b 65 72 00 2e 62 6d
                70 00 2e 00 2e 2e 00 6f 70 65 6e 00 2e 65 78 65 }
		$s1 = "\\shell\\open\\command" fullword ascii
		$s2 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run" fullword ascii
		$s3 = "CRYPTED!" fullword ascii
		$s4 = "Attention!" fullword ascii
		$s5 = "Password:" fullword ascii
		$s6 = { 43 6f 6d 53 70 65 63 00 2f 63 20 64 65 6c 20 22 00 22 20 3e 3e 20 4e 55 4c }

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

Strings (8 patterns)

IdentifierTypeValueModifiers
$x1hex{ 00 4d 00 41 00 47 00 45 00 0b 00 50 00 55 00 53 00 53 00 59 00 4c 00 49 00 43 00 4b 00 45 00 52 00 }
$x2hex{ 30 70 33 6e 53 4f 75 72 63 33 20 58 30 72 31 35 37 2c 20 6d 6f 74 68 65 72 66 75 63 6b 65 72 21 00 70 75 73 73 79 6c 69 63 6b …
$s1text"\\shell\\open\\command"fullword ascii
$s2text"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"fullword ascii
$s3text"CRYPTED!"fullword ascii
$s4text"Attention!"fullword ascii
$s5text"Password:"fullword ascii
$s6hex{ 43 6f 6d 53 70 65 63 00 2f 63 20 64 65 6c 20 22 00 22 20 3e 3e 20 4e 55 4c }

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $x* ) must match.
  • At least 5 patterns in ( $s* ) must match.
  • At least 1 patterns in ( $x* ) must match.
  • At least 3 patterns in ( $s* ) 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: 76119441-343d-51c3-90eb-9d54c80a983d

Metadata

clamav_sigMALWARE.Win.Ransomware.Xorist

Tags:FILE