Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Nanocore

Detects NanoCore

MalwareNanocoreditekSHen detectionBSD 2-Clause LicenseCompila con YARA-X
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:
		description = "Detects NanoCore"
		author = "ditekSHen"
		id = "931b98f6-df2b-538b-bc49-ecbbd24334da"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7654-L7681"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "6336260e0af2b4b51338ee066f41b7c58aa134a6c03ca110db7e088edf2b65a7"
		score = 75
		quality = 75
		tags = "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)

IdentificadorTipoValorModificadores
$x1texto"NanoCore Client"fullword ascii
$x2texto"NanoCore.ClientPlugin"fullword ascii
$x3texto"NanoCore.ClientPluginHost"fullword ascii
$i1texto"IClientApp"fullword ascii
$i2texto"IClientData"fullword ascii
$i3texto"IClientNetwork"fullword ascii
$i4texto"IClientAppHost"fullword ascii
$i5texto"IClientDataHost"fullword ascii
$i6texto"IClientLoggingHost"fullword ascii
$i7texto"IClientNetworkHost"fullword ascii
$i8texto"IClientUIHost"fullword ascii
$i9texto"IClientNameObjectCollection"fullword ascii
$i10texto"IClientReadOnlyNameObjectCollection"fullword ascii
$s1texto"ClientPlugin"fullword ascii
$s2texto"EndPoint"fullword ascii
$s3texto"IPAddress"fullword ascii
$s4texto"IPEndPoint"fullword ascii
$s5texto"IPHostEntr"fullword ascii
$s6texto"get_ClientSettings"fullword ascii
$s7texto"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.

Abrir en el editor

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).

Regla original

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