YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Sn0Wlogger
Detects Sn0w Logger
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects Sn0w Logger
Familia de malware asociada: Sn0Wlogger.
Objetivos: PE de Windows.
Define 9 patrones (9 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_Sn0Wlogger : FILE
{
meta:
= "Detects Sn0w Logger"
= "ditekSHen"
= "cdb70164-3f72-553f-a6c5-190f699e0743"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L4412-L4428"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "ea4b2281f906271dc249b5036b22eadfc5add94def4f8e4f8a40c384618465d8"
= 75
= 75
= "FILE"
strings:
$s1 = "\\SnowP\\Example\\Secured\\" ascii
$s2 = "{0}{3}Content-Type: {4}{3}Content-Disposition: form-data; name=\"{1}\"{3}{3}{2}{3}" wide
$s3 = "\"encrypted_key\":\"(.*?)\"" fullword wide
$s4 = "<SendToDiscord>d__" ascii
$s5 = "_urlWebhook" ascii
$r1 = "[\\w-]{24}\\.[\\w-]{6}\\.[\\w-]{27}" fullword wide
$r2 = "^\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$" fullword wide
$r3 = "mfa\\.[\\w-]{84}" fullword wide
$r4 = "(\\w+)=(\\d+)-(\\d+)$" fullword wide
condition:
uint16( 0 ) == 0x5a4d and ( 4 of ( $s* ) or ( all of ( $r* ) and 2 of ( $s* ) ) or 7 of them )
}
Cadenas (9 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "\\SnowP\\Example\\Secured\\" | ascii |
| $s2 | texto | "{0}{3}Content-Type: {4}{3}Content-Disposition: form-data; name=\"{1}\"{3}{3}{2}{3}" | wide |
| $s3 | texto | "\"encrypted_key\":\"(.*?)\"" | fullword wide |
| $s4 | texto | "<SendToDiscord>d__" | ascii |
| $s5 | texto | "_urlWebhook" | ascii |
| $r1 | texto | "[\\w-]{24}\\.[\\w-]{6}\\.[\\w-]{27}" | fullword wide |
| $r2 | texto | "^\\w+([-+.']\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$" | fullword wide |
| $r3 | texto | "mfa\\.[\\w-]{84}" | fullword wide |
| $r4 | texto | "(\\w+)=(\\d+)-(\\d+)$" | fullword wide |
Condición
uint16( 0 ) == 0x5a4d and ( 4 of ( $s* ) or ( all of ( $r* ) and 2 of ( $s* ) ) or 7 of them )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir todos los patrones de ( $r* ).
- Deben coincidir al menos 4 patrones de ( $s* ).
- Deben coincidir al menos 2 patrones de ( $s* ).
- Deben coincidir al menos 7 patrones de la regla.
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: cdb70164-3f72-553f-a6c5-190f699e0743
Etiquetas:FILE
Reglas relacionadas
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06