YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Agnianestealer
Detects Agniane infostealer
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects Agniane infostealer
Familia de malware asociada: Agnianestealer.
Objetivos: PE de Windows.
Define 17 patrones (16 de texto, 0 hex, 1 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
rule DITEKSHEN_MALWARE_Win_Agnianestealer : FILE
{
meta:
= "Detects Agniane infostealer"
= "ditekSHen"
= "fcbbf748-dc01-579f-a6f8-37e0f3dea35e"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11088-L11114"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "0031fbe6d76868819cbcfc638433d60a50e8f5cfd14ff25af88ed3dffefd7d62"
= 75
= 75
= "FILE"
= "923828001"
= "ditekSHen.MALWARE.Win.AgnianeStealer"
strings:
$x1 = "Agniane.pdb" ascii
$x2 = "IEnumerable<Agniane.Classes.LogRecord>." ascii
$x3 = "Agniane Stealer" wide
$x4 = "cinoshibot" wide
$x5 = "yqbiguuno2zp5jxsmqbev4rwckvy27bqws5cgm3hiid7xolt65j72kqd.onion" wide
$s1 = "<Pass encoding=\"base64\">" wide
$s2 = "Domain Detect: detected {0}" wide
$s3 = "DOMAINDETECTCOOKIES" ascii
$s4 = /(Opera|Edge|Chrome|Brave|Vivaldi|Blink|Universal|Gecko|OperaGx|Firefox)Grabber/ fullword ascii
$u1 = "/antivm.php?id=" wide
$u2 = "/ferr.php?id=" wide
$u3 = ".php?ownerid=" wide
$u4 = "&buildid=" wide
$u5 = "&username=" wide
$u6 = "&BSSID=" wide
$u7 = "&rndtoken=" wide
$u8 = "&domaindetects=" wide
condition:
uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or ( 1 of ( $x* ) and ( 2 of ( $s* ) or 3 of ( $u* ) ) ) or ( all of ( $s* ) and 3 of ( $u* ) ) or ( 7 of ( $u* ) ) )
}
Cadenas (17 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $x1 | texto | "Agniane.pdb" | ascii |
| $x2 | texto | "IEnumerable<Agniane.Classes.LogRecord>." | ascii |
| $x3 | texto | "Agniane Stealer" | wide |
| $x4 | texto | "cinoshibot" | wide |
| $x5 | texto | "yqbiguuno2zp5jxsmqbev4rwckvy27bqws5cgm3hiid7xolt65j72kqd.onion" | wide |
| $s1 | texto | "<Pass encoding=\"base64\">" | wide |
| $s2 | texto | "Domain Detect: detected {0}" | wide |
| $s3 | texto | "DOMAINDETECTCOOKIES" | ascii |
| $s4 | regex | /(Opera|Edge|Chrome|Brave|Vivaldi|Blink|Universal|Gecko|OperaGx|Firefox)Grabber/ | fullword ascii |
| $u1 | texto | "/antivm.php?id=" | wide |
| $u2 | texto | "/ferr.php?id=" | wide |
| $u3 | texto | ".php?ownerid=" | wide |
| $u4 | texto | "&buildid=" | wide |
| $u5 | texto | "&username=" | wide |
| $u6 | texto | "&BSSID=" | wide |
| $u7 | texto | "&rndtoken=" | wide |
| $u8 | texto | "&domaindetects=" | wide |
Condición
uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or ( 1 of ( $x* ) and ( 2 of ( $s* ) or 3 of ( $u* ) ) ) or ( all of ( $s* ) and 3 of ( $u* ) ) or ( 7 of ( $u* ) ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir todos los patrones de ( $s* ).
- Deben coincidir al menos 2 patrones de ( $x* ).
- Deben coincidir al menos 1 patrones de ( $x* ).
- Deben coincidir al menos 2 patrones de ( $s* ).
- Deben coincidir al menos 3 patrones de ( $u* ).
- Deben coincidir al menos 7 patrones de ( $u* ).
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: fcbbf748-dc01-579f-a6f8-37e0f3dea35e
Metadatos
| snort | 923828001 |
|---|---|
| clamav | ditekSHen.MALWARE.Win.AgnianeStealer |
Etiquetas:FILE
Reglas relacionadas
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-08-10
- 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