YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Nanocore
Detects NanoCore
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects NanoCore
Familia de malware asociada: Nanocore.
Objetivos: PE de Windows.
Define 20 patrones (20 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-nanocore.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Nanocore : FILE
{
meta:
= "Detects NanoCore"
= "ditekSHen"
= "931b98f6-df2b-538b-bc49-ecbbd24334da"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7654-L7681"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "6336260e0af2b4b51338ee066f41b7c58aa134a6c03ca110db7e088edf2b65a7"
= 75
= 75
= "FILE"
strings:
$x1 = "NanoCore Client" fullword ascii
$x2 = "NanoCore.ClientPlugin" fullword ascii
$x3 = "NanoCore.ClientPluginHost" fullword ascii
$i1 = "IClientApp" fullword ascii
$i2 = "IClientData" fullword ascii
$i3 = "IClientNetwork" fullword ascii
$i4 = "IClientAppHost" fullword ascii
$i5 = "IClientDataHost" fullword ascii
$i6 = "IClientLoggingHost" fullword ascii
$i7 = "IClientNetworkHost" fullword ascii
$i8 = "IClientUIHost" fullword ascii
$i9 = "IClientNameObjectCollection" fullword ascii
$i10 = "IClientReadOnlyNameObjectCollection" fullword ascii
$s1 = "ClientPlugin" fullword ascii
$s2 = "EndPoint" fullword ascii
$s3 = "IPAddress" fullword ascii
$s4 = "IPEndPoint" fullword ascii
$s5 = "IPHostEntr" fullword ascii
$s6 = "get_ClientSettings" fullword ascii
$s7 = "get_Connected" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or 8 of ( $i* ) or all of ( $s* ) or ( 1 of ( $x* ) and ( 3 of ( $i* ) or 2 of ( $s* ) ) ) )
}
Cadenas (20 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $x1 | texto | "NanoCore Client" | fullword ascii |
| $x2 | texto | "NanoCore.ClientPlugin" | fullword ascii |
| $x3 | texto | "NanoCore.ClientPluginHost" | fullword ascii |
| $i1 | texto | "IClientApp" | fullword ascii |
| $i2 | texto | "IClientData" | fullword ascii |
| $i3 | texto | "IClientNetwork" | fullword ascii |
| $i4 | texto | "IClientAppHost" | fullword ascii |
| $i5 | texto | "IClientDataHost" | fullword ascii |
| $i6 | texto | "IClientLoggingHost" | fullword ascii |
| $i7 | texto | "IClientNetworkHost" | fullword ascii |
| $i8 | texto | "IClientUIHost" | fullword ascii |
| $i9 | texto | "IClientNameObjectCollection" | fullword ascii |
| $i10 | texto | "IClientReadOnlyNameObjectCollection" | fullword ascii |
| $s1 | texto | "ClientPlugin" | fullword ascii |
| $s2 | texto | "EndPoint" | fullword ascii |
| $s3 | texto | "IPAddress" | fullword ascii |
| $s4 | texto | "IPEndPoint" | fullword ascii |
| $s5 | texto | "IPHostEntr" | fullword ascii |
| $s6 | texto | "get_ClientSettings" | fullword ascii |
| $s7 | texto | "get_Connected" | fullword ascii |
Condición
uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or 8 of ( $i* ) or all of ( $s* ) or ( 1 of ( $x* ) and ( 3 of ( $i* ) or 2 of ( $s* ) ) ) )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 8 patrones de ( $i* ).
- Deben coincidir al menos 1 patrones de ( $x* ).
- Deben coincidir al menos 3 patrones de ( $i* ).
- Deben coincidir al menos 2 patrones de ( $s* ).
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: 931b98f6-df2b-538b-bc49-ecbbd24334da
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