YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Suncrypt
Detects SunCrypt ransomware
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 73
Qué detecta esta regla
Detects SunCrypt ransomware
Familia de malware asociada: Suncrypt.
Objetivos: PE de Windows.
Define 31 patrones (31 de texto, 0 hex, 0 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
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* ) )
}
Cadenas (31 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "-noshares" | fullword wide |
| $s2 | texto | "-nomutex" | fullword wide |
| $s3 | texto | "-noreport" | fullword wide |
| $s4 | texto | "-noservices" | fullword wide |
| $s5 | texto | "$Recycle.bin" | fullword wide |
| $s6 | texto | "YOUR_FILES_ARE_ENCRYPTED.HTML" | fullword wide |
| $s7 | texto | "\\\\?\\%c:" | fullword wide |
| $s8 | texto | "locker.exe" | fullword ascii |
| $s9 | texto | "DllRegisterServer" | fullword ascii |
| $g1 | texto | "main.EncFile" | fullword ascii nocase |
| $g2 | texto | "main.detectName" | fullword ascii nocase |
| $g3 | texto | "main.detectIP" | fullword ascii nocase |
| $g4 | texto | "main.detectDebugProc" | fullword ascii nocase |
| $g5 | texto | "main.Bypass" | ascii nocase |
| $g6 | texto | "main.allocateMemory" | fullword ascii nocase |
| $g7 | texto | "main.killAV" | fullword ascii nocase |
| $g8 | texto | "main.disableShadowCopy" | fullword ascii nocase |
| $g9 | texto | "main.(*windowsDrivesModel).LoadDrives" | fullword ascii nocase |
| $g10 | texto | "main.IsFriends" | fullword ascii nocase |
| $g11 | texto | "main.walkMsg" | fullword ascii nocase |
| $g12 | texto | "main.makeSecretMessage" | fullword ascii nocase |
| $g13 | texto | "main.stealFiles" | fullword ascii nocase |
| $g14 | texto | "main.newKey" | fullword ascii nocase |
| $g15 | texto | "main.openBrowser" | fullword ascii nocase |
| $g16 | texto | "main.killProc" | fullword ascii nocase |
| $g17 | texto | "main.selfRemove" | fullword ascii nocase |
| $m1 | texto | "<h2>\\x20Offline\\x20HowTo\\x20</h2>\\x0a\\x09\\x09\\x09\\x09<p>Copy\\x20&\\x20Paste\\x20this\\x20message\\x20to" | ascii |
| $m2 | texto | "\\x20restore\\x20your\\x20files." | ascii |
| $m3 | texto | "\\x20your\\x20documents\\x20and\\x20files\\x20encrypted" | ascii |
| $m4 | texto | "\\x20lose\\x20all\\x20of\\x20your\\x20data\\x20and\\x20files." | ascii |
| $m5 | texto | ",'/#/client/','<h2>\\x20Whats\\x20Happen" | ascii |
Condición
uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or 6 of ( $g* ) or 3 of ( $m* ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 5 patrones de ( $s* ).
- Deben coincidir al menos 6 patrones de ( $g* ).
- Deben coincidir al menos 3 patrones de ( $m* ).
Prueba esta regla en tu navegador
Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.
Referencias
Licencia y atribución
Autor: ditekSHen
Repositorio de origen: ditekSHen detection @ e76c93dcde
Licencia: BSD 2-Clause License (licencia del repositorio)
Aviso de copyright: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.
Id de la regla: 1a28fcbf-1fc0-5f18-ae71-2e813ed0f958
Etiquetas:FILE
Reglas relacionadas
- 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