YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Suncrypt
Detects SunCrypt ransomware
- Autor
- ditekSHen
- Datum
- 2020-11-06
- Geändert
- 2024-11-01
- Score / Qualität
- 75 / 73
Was diese Regel erkennt
Detects SunCrypt ransomware
Zugehörige Malware-Familie: Suncrypt.
Ziele: Windows-PE.
Sie definiert 31 Muster (31 Text, 0 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
malware-win-suncrypt.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Suncrypt : FILE
{
meta:
= "Detects SunCrypt ransomware"
= "ditekSHen"
= "1a28fcbf-1fc0-5f18-ae71-2e813ed0f958"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L4494-L4532"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "abde9bbf2577304ff059972a38e803ba17de7a1f0346efe880a710f2ad79db37"
= 75
= 73
= "FILE"
strings:
$s1 = "-noshares" fullword wide
$s2 = "-nomutex" fullword wide
$s3 = "-noreport" fullword wide
$s4 = "-noservices" fullword wide
$s5 = "$Recycle.bin" fullword wide
$s6 = "YOUR_FILES_ARE_ENCRYPTED.HTML" fullword wide
$s7 = "\\\\?\\%c:" fullword wide
$s8 = "locker.exe" fullword ascii
$s9 = "DllRegisterServer" fullword ascii
$g1 = "main.EncFile" fullword ascii nocase
$g2 = "main.detectName" fullword ascii nocase
$g3 = "main.detectIP" fullword ascii nocase
$g4 = "main.detectDebugProc" fullword ascii nocase
$g5 = "main.Bypass" ascii nocase
$g6 = "main.allocateMemory" fullword ascii nocase
$g7 = "main.killAV" fullword ascii nocase
$g8 = "main.disableShadowCopy" fullword ascii nocase
$g9 = "main.(*windowsDrivesModel).LoadDrives" fullword ascii nocase
$g10 = "main.IsFriends" fullword ascii nocase
$g11 = "main.walkMsg" fullword ascii nocase
$g12 = "main.makeSecretMessage" fullword ascii nocase
$g13 = "main.stealFiles" fullword ascii nocase
$g14 = "main.newKey" fullword ascii nocase
$g15 = "main.openBrowser" fullword ascii nocase
$g16 = "main.killProc" fullword ascii nocase
$g17 = "main.selfRemove" fullword ascii nocase
$m1 = "<h2>\\x20Offline\\x20HowTo\\x20</h2>\\x0a\\x09\\x09\\x09\\x09<p>Copy\\x20&\\x20Paste\\x20this\\x20message\\x20to" ascii
$m2 = "\\x20restore\\x20your\\x20files." ascii
$m3 = "\\x20your\\x20documents\\x20and\\x20files\\x20encrypted" ascii
$m4 = "\\x20lose\\x20all\\x20of\\x20your\\x20data\\x20and\\x20files." ascii
$m5 = ",'/#/client/','<h2>\\x20Whats\\x20Happen" ascii
condition:
uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or 6 of ( $g* ) or 3 of ( $m* ) )
}
Strings (31 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $s1 | Text | "-noshares" | fullword wide |
| $s2 | Text | "-nomutex" | fullword wide |
| $s3 | Text | "-noreport" | fullword wide |
| $s4 | Text | "-noservices" | fullword wide |
| $s5 | Text | "$Recycle.bin" | fullword wide |
| $s6 | Text | "YOUR_FILES_ARE_ENCRYPTED.HTML" | fullword wide |
| $s7 | Text | "\\\\?\\%c:" | fullword wide |
| $s8 | Text | "locker.exe" | fullword ascii |
| $s9 | Text | "DllRegisterServer" | fullword ascii |
| $g1 | Text | "main.EncFile" | fullword ascii nocase |
| $g2 | Text | "main.detectName" | fullword ascii nocase |
| $g3 | Text | "main.detectIP" | fullword ascii nocase |
| $g4 | Text | "main.detectDebugProc" | fullword ascii nocase |
| $g5 | Text | "main.Bypass" | ascii nocase |
| $g6 | Text | "main.allocateMemory" | fullword ascii nocase |
| $g7 | Text | "main.killAV" | fullword ascii nocase |
| $g8 | Text | "main.disableShadowCopy" | fullword ascii nocase |
| $g9 | Text | "main.(*windowsDrivesModel).LoadDrives" | fullword ascii nocase |
| $g10 | Text | "main.IsFriends" | fullword ascii nocase |
| $g11 | Text | "main.walkMsg" | fullword ascii nocase |
| $g12 | Text | "main.makeSecretMessage" | fullword ascii nocase |
| $g13 | Text | "main.stealFiles" | fullword ascii nocase |
| $g14 | Text | "main.newKey" | fullword ascii nocase |
| $g15 | Text | "main.openBrowser" | fullword ascii nocase |
| $g16 | Text | "main.killProc" | fullword ascii nocase |
| $g17 | Text | "main.selfRemove" | fullword ascii nocase |
| $m1 | Text | "<h2>\\x20Offline\\x20HowTo\\x20</h2>\\x0a\\x09\\x09\\x09\\x09<p>Copy\\x20&\\x20Paste\\x20this\\x20message\\x20to" | ascii |
| $m2 | Text | "\\x20restore\\x20your\\x20files." | ascii |
| $m3 | Text | "\\x20your\\x20documents\\x20and\\x20files\\x20encrypted" | ascii |
| $m4 | Text | "\\x20lose\\x20all\\x20of\\x20your\\x20data\\x20and\\x20files." | ascii |
| $m5 | Text | ",'/#/client/','<h2>\\x20Whats\\x20Happen" | ascii |
Bedingung
uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or 6 of ( $g* ) or 3 of ( $m* ) )In Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Mindestens 5 Muster aus ( $s* ) müssen treffen.
- Mindestens 6 Muster aus ( $g* ) müssen treffen.
- Mindestens 3 Muster aus ( $m* ) müssen treffen.
Diese Regel im Browser testen
Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.
Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.
Referenzen
Lizenz & Namensnennung
Autor: ditekSHen
Quell-Repository: ditekSHen detection @ e76c93dcde
Lizenz: BSD 2-Clause License (Repository-Lizenz)
Copyright-Hinweis: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: 1a28fcbf-1fc0-5f18-ae71-2e813ed0f958
Tags:FILE
Verwandte Regeln
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareTrellix Advanced Research Center· McAfee ATR Team· 2020-10-02
- MalwareTrellix Advanced Research Center· McAfee ATR Team· 2020-10-02
- 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