YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Satana
Detects Satana ransomware
- 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:
= "Detects Satana ransomware"
= "ditekSHen"
= "f3cb7cc4-3c63-50b2-8e19-d675abbb33f8"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L8587-L8604"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "b2946e8c37be4a57237999aaa0c0a760a181306320162e04bc6fc12a542b81d5"
= 75
= 73
= "FILE"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $bf1 | text | "Try Decrypt: uc_size = %d, c_size = %d" | ascii |
| $bf2 | text | "dwMailSelector = %d dwBtcSelector = %d" | ascii |
| $bf3 | text | "%s: Error DecB: 0x%X" | ascii |
| $bf4 | text | "MBR written to Disk# %d" | ascii |
| $bf5 | text | "!SATANA!" | ascii wide nocase |
| $bf6 | text | "1 -th start" | fullword ascii |
| $bf7 | text | "id=%d&code=%d&sdata=%d.%d.%d %d %d %s %s %d&name=%s&md5=%s&dlen=%s" | ascii |
| $bf8 | text | "threadAdminFlood: %s %s %s" | wide |
| $bf9 | text | "%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.
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).
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_sid | 920269-920270 |
|---|
Tags:FILE
Related rules
- Suspicious / huntingditekSHen detection· ditekShen· 2021-01-21
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06