YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Macoute
Detects Macoute
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects Macoute
Familia de malware asociada: Macoute.
Objetivos: PE de Windows.
Define 15 patrones (15 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
malware-win-macoute.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Macoute : FILE
{
meta:
= "Detects Macoute"
= "ditekSHen"
= "0ecfb923-2e51-544e-984d-efdeeb175727"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7814-L7836"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "1dffa48fe6c0ac053509b5f5994d323fd72d090da0f077b52c9bc33df6997964"
= 75
= 75
= "FILE"
strings:
$s1 = "scp%s%s%s%s" ascii
$s2 = "putfile %s %s" ascii
$s3 = "pscp|%s|%s:%s" ascii
$s4 = "connect %host %port\\n" ascii
$s5 = "/ecoute/spool/%s-%lu" ascii
$s6 = "<f n=\"%s\" s=\"%lu\" d=\"%d-%d-%d\"/>" ascii
$s7 = "CMPT;%s;%s;%s;%s;%s" ascii
$s8 = "%s\\apoScreen%lu.dll" ascii
$s9 = "/cap/%s%lu.jpg" ascii
$s10 = "INFO;%u;%u;%u;%d;%d;%d;%d;%d;%d;%d;%s" ascii
$s11 = "SUBJECT: %s is comming!" ascii
$s12 = "Content-type: multipart/mixed; boundary=\"#BOUNDARY#\"" ascii
$s13 = "FROM: %s@yahoo.com" ascii
$s14 = "<html><script language=\"JavaScript\">window.open(\"readme.eml\", null,\"resizable=no,top=6000,left=6000\")</script></html>" ascii
$s15 = "<html><HEAD></HEAD><body bgColor=3D#ffffff><iframe src=3Dcid:THE-CID height=3D0 width=3D0></iframe></body></html>" ascii
condition:
uint16( 0 ) == 0x5a4d and 10 of them
}
Cadenas (15 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "scp%s%s%s%s" | ascii |
| $s2 | texto | "putfile %s %s" | ascii |
| $s3 | texto | "pscp|%s|%s:%s" | ascii |
| $s4 | texto | "connect %host %port\\n" | ascii |
| $s5 | texto | "/ecoute/spool/%s-%lu" | ascii |
| $s6 | texto | "<f n=\"%s\" s=\"%lu\" d=\"%d-%d-%d\"/>" | ascii |
| $s7 | texto | "CMPT;%s;%s;%s;%s;%s" | ascii |
| $s8 | texto | "%s\\apoScreen%lu.dll" | ascii |
| $s9 | texto | "/cap/%s%lu.jpg" | ascii |
| $s10 | texto | "INFO;%u;%u;%u;%d;%d;%d;%d;%d;%d;%d;%s" | ascii |
| $s11 | texto | "SUBJECT: %s is comming!" | ascii |
| $s12 | texto | "Content-type: multipart/mixed; boundary=\"#BOUNDARY#\"" | ascii |
| $s13 | texto | "FROM: %s@yahoo.com" | ascii |
| $s14 | texto | "<html><script language=\"JavaScript\">window.open(\"readme.eml\", null,\"resizable=no,top=6000,left=6000\")</script></html>" | ascii |
| $s15 | texto | "<html><HEAD></HEAD><body bgColor=3D#ffffff><iframe src=3Dcid:THE-CID height=3D0 width=3D0></iframe></body></html>" | ascii |
Condición
uint16( 0 ) == 0x5a4d and 10 of themEn palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 10 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.
Arrastra un archivo aquí o haz clic para elegirSe escanea en local con YARA-X. Archivos de hasta 200 MB.
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: 0ecfb923-2e51-544e-984d-efdeeb175727
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