YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Coinminer02
Detects coinmining malware
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects coinmining malware
Familia de malware asociada: Coinminer02.
Objetivos: PE de Windows.
Define 11 patrones (11 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_Coinminer02 : FILE
{
meta:
= "Detects coinmining malware"
= "ditekSHen"
= "1878a1b5-4e97-5575-802e-573caded2b3a"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L6553-L6571"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "83760aef667819923a2ac67c006e03bb6d4260b7a4aedd691dd5b145fb50d5c1"
= 75
= 75
= "FILE"
strings:
$s1 = "%s/%s (Windows NT %lu.%lu" fullword ascii
$s2 = "\\Microsoft\\Libs\\WR64.sys" wide
$s3 = "\\\\.\\WinRing0_" wide
$s4 = "pool_wallet" ascii
$s5 = "cryptonight" ascii
$s6 = "mining.submit" ascii
$c1 = "stratum+ssl://" ascii
$c2 = "daemon+http://" ascii
$c3 = "stratum+tcp://" ascii
$c4 = "socks5://" ascii
$c5 = "losedaemon+https://" ascii
condition:
uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) and 1 of ( $c* ) )
}
Cadenas (11 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "%s/%s (Windows NT %lu.%lu" | fullword ascii |
| $s2 | texto | "\\Microsoft\\Libs\\WR64.sys" | wide |
| $s3 | texto | "\\\\.\\WinRing0_" | wide |
| $s4 | texto | "pool_wallet" | ascii |
| $s5 | texto | "cryptonight" | ascii |
| $s6 | texto | "mining.submit" | ascii |
| $c1 | texto | "stratum+ssl://" | ascii |
| $c2 | texto | "daemon+http://" | ascii |
| $c3 | texto | "stratum+tcp://" | ascii |
| $c4 | texto | "socks5://" | ascii |
| $c5 | texto | "losedaemon+https://" | ascii |
Condición
uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) and 1 of ( $c* ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 3 patrones de ( $s* ).
- Deben coincidir al menos 1 patrones de ( $c* ).
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: 1878a1b5-4e97-5575-802e-573caded2b3a
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