YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Suncrypt
Detects SunCrypt ransomware
- Auteur
- ditekSHen
- Date
- 2020-11-06
- Modifiée
- 2024-11-01
- Score / Qualité
- 75 / 73
Ce que détecte cette règle
Detects SunCrypt ransomware
Famille de malware associée : Suncrypt.
Cibles : PE Windows.
Elle définit 31 motifs (31 texte, 0 hex, 0 regex).
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
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* ) )
}
Chaînes (31 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s1 | texte | "-noshares" | fullword wide |
| $s2 | texte | "-nomutex" | fullword wide |
| $s3 | texte | "-noreport" | fullword wide |
| $s4 | texte | "-noservices" | fullword wide |
| $s5 | texte | "$Recycle.bin" | fullword wide |
| $s6 | texte | "YOUR_FILES_ARE_ENCRYPTED.HTML" | fullword wide |
| $s7 | texte | "\\\\?\\%c:" | fullword wide |
| $s8 | texte | "locker.exe" | fullword ascii |
| $s9 | texte | "DllRegisterServer" | fullword ascii |
| $g1 | texte | "main.EncFile" | fullword ascii nocase |
| $g2 | texte | "main.detectName" | fullword ascii nocase |
| $g3 | texte | "main.detectIP" | fullword ascii nocase |
| $g4 | texte | "main.detectDebugProc" | fullword ascii nocase |
| $g5 | texte | "main.Bypass" | ascii nocase |
| $g6 | texte | "main.allocateMemory" | fullword ascii nocase |
| $g7 | texte | "main.killAV" | fullword ascii nocase |
| $g8 | texte | "main.disableShadowCopy" | fullword ascii nocase |
| $g9 | texte | "main.(*windowsDrivesModel).LoadDrives" | fullword ascii nocase |
| $g10 | texte | "main.IsFriends" | fullword ascii nocase |
| $g11 | texte | "main.walkMsg" | fullword ascii nocase |
| $g12 | texte | "main.makeSecretMessage" | fullword ascii nocase |
| $g13 | texte | "main.stealFiles" | fullword ascii nocase |
| $g14 | texte | "main.newKey" | fullword ascii nocase |
| $g15 | texte | "main.openBrowser" | fullword ascii nocase |
| $g16 | texte | "main.killProc" | fullword ascii nocase |
| $g17 | texte | "main.selfRemove" | fullword ascii nocase |
| $m1 | texte | "<h2>\\x20Offline\\x20HowTo\\x20</h2>\\x0a\\x09\\x09\\x09\\x09<p>Copy\\x20&\\x20Paste\\x20this\\x20message\\x20to" | ascii |
| $m2 | texte | "\\x20restore\\x20your\\x20files." | ascii |
| $m3 | texte | "\\x20your\\x20documents\\x20and\\x20files\\x20encrypted" | ascii |
| $m4 | texte | "\\x20lose\\x20all\\x20of\\x20your\\x20data\\x20and\\x20files." | ascii |
| $m5 | texte | ",'/#/client/','<h2>\\x20Whats\\x20Happen" | ascii |
Condition
uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or 6 of ( $g* ) or 3 of ( $m* ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins 5 motifs de ( $s* ) doivent être trouvés.
- Au moins 6 motifs de ( $g* ) doivent être trouvés.
- Au moins 3 motifs de ( $m* ) doivent être trouvés.
Tester cette règle dans votre navigateur
Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.
Références
Licence et attribution
Auteur : ditekSHen
Dépôt source : ditekSHen detection @ e76c93dcde
Licence : BSD 2-Clause License (licence du dépôt)
Mention de copyright : Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.
Identifiant de règle: 1a28fcbf-1fc0-5f18-ae71-2e813ed0f958
Tags:FILE
Règles liées
- 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