Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Satana

Detects Satana ransomware

MalwareSatanaditekSHen 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

Detects Satana ransomware

Associated malware family: Satana.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-satana.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Satana : FILE
{
	meta:
		description = "Detects Satana ransomware"
		author = "ditekSHen"
		id = "f3cb7cc4-3c63-50b2-8e19-d675abbb33f8"
		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#L8587-L8604"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "b2946e8c37be4a57237999aaa0c0a760a181306320162e04bc6fc12a542b81d5"
		score = 75
		quality = 73
		tags = "FILE"
		snort_sid = "920269-920270"

	strings:
		$bf1 = "Try Decrypt: uc_size = %d, c_size = %d" ascii
		$bf2 = "dwMailSelector = %d  dwBtcSelector = %d" ascii
		$bf3 = "%s: Error DecB: 0x%X" ascii
		$bf4 = "MBR written to Disk# %d" ascii
		$bf5 = "!SATANA!" ascii wide nocase
		$bf6 = "1 -th start" fullword ascii
		$bf7 = "id=%d&code=%d&sdata=%d.%d.%d %d %d %s %s %d&name=%s&md5=%s&dlen=%s" ascii
		$bf8 = "threadAdminFlood: %s %s %s" wide
		$bf9 = "%s: NET RES FOUND: %s" wide

	condition:
		( uint16( 0 ) == 0x5a4d and 4 of ( $bf* ) ) or ( 5 of ( $bf* ) )
}

Strings (9 patterns)

IdentifierTypeValueModifiers
$bf1text"Try Decrypt: uc_size = %d, c_size = %d"ascii
$bf2text"dwMailSelector = %d dwBtcSelector = %d"ascii
$bf3text"%s: Error DecB: 0x%X"ascii
$bf4text"MBR written to Disk# %d"ascii
$bf5text"!SATANA!"ascii wide nocase
$bf6text"1 -th start"fullword ascii
$bf7text"id=%d&code=%d&sdata=%d.%d.%d %d %d %s %s %d&name=%s&md5=%s&dlen=%s"ascii
$bf8text"threadAdminFlood: %s %s %s"wide
$bf9text"%s: NET RES FOUND: %s"wide

Condition

( uint16( 0 ) == 0x5a4d and 4 of ( $bf* ) ) or ( 5 of ( $bf* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 4 patterns in ( $bf* ) must match.
  • At least 5 patterns in ( $bf* ) 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: f3cb7cc4-3c63-50b2-8e19-d675abbb33f8

Metadata

snort_sid920269-920270

Tags:FILE

More Satana rules