Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Nitol

Detects Nitol backdoor

MalwareNitolditekSHen detectionBSD 2-Clause LicenseCompila con YARA-X
Autor
ditekSHen
Fecha
2020-11-06
Modificada
2024-11-01
Puntuación / Calidad
75 / 73

Qué detecta esta regla

Detects Nitol backdoor

Familia de malware asociada: Nitol.

Objetivos: PE de Windows.

Define 21 patrones (21 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-nitol.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Nitol : FILE
{
	meta:
		description = "Detects Nitol backdoor"
		author = "ditekSHen"
		id = "d545f826-11ff-5d0f-9a95-8232b19d35b6"
		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#L3676-L3704"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "c0ddcd6179bea2f3af77ae198e07f55f62884e07a975623ae41bcec163060f89"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$s1 = "%$#@!.aspGET ^&*().htmlGET" ascii
		$s2 = "Applications\\iexplore.exe\\shell\\open\\command" fullword ascii
		$s3 = "taskkill /f /im rundll32.exe" fullword ascii
		$s4 = "\\Tencent\\Users\\*.*" fullword ascii
		$s5 = "[Pause Break]" fullword ascii
		$s6 = ":]%d-%d-%d  %d:%d:%d" fullword ascii
		$s7 = "GET %s HTTP/1.1" fullword ascii
		$s8 = "GET %s%s HTTP/1.1" fullword ascii
		$s9 = "Accept-Language: zh-cn" fullword ascii
		$s10 = "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 5.1)" fullword ascii
		$s11 = "User-Agent:Mozilla/4.0 (compatible; MSIE %d.00; Windows NT %d.0; MyIE 3.01)" fullword ascii
		$s12 = "User-Agent:Mozilla/4.0 (compatible; MSIE %d.0; Windows NT %d.1; SV1)" fullword ascii
		$w1 = ".aspGET" ascii
		$w2 = ".htmGET" ascii
		$w3 = ".htmlGET" ascii
		$domain = "www.xy999.com" fullword ascii
		$v2_1 = "loglass" fullword ascii
		$v2_2 = "rlehgs" fullword ascii
		$v2_3 = "eherrali" fullword ascii
		$v2_4 = "agesrlu" fullword ascii
		$v2_5 = "lepejagas" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or ( all of ( $v2* ) ) or ( $domain and 3 of them ) or ( #w1 > 2 and #w2 > 2 and #w3 > 2 and 3 of ( $s* ) ) )
}

Cadenas (21 patrones)

IdentificadorTipoValorModificadores
$s1texto"%$#@!.aspGET ^&*().htmlGET"ascii
$s2texto"Applications\\iexplore.exe\\shell\\open\\command"fullword ascii
$s3texto"taskkill /f /im rundll32.exe"fullword ascii
$s4texto"\\Tencent\\Users\\*.*"fullword ascii
$s5texto"[Pause Break]"fullword ascii
$s6texto":]%d-%d-%d %d:%d:%d"fullword ascii
$s7texto"GET %s HTTP/1.1"fullword ascii
$s8texto"GET %s%s HTTP/1.1"fullword ascii
$s9texto"Accept-Language: zh-cn"fullword ascii
$s10texto"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 5.1)"fullword ascii
$s11texto"User-Agent:Mozilla/4.0 (compatible; MSIE %d.00; Windows NT %d.0; MyIE 3.01)"fullword ascii
$s12texto"User-Agent:Mozilla/4.0 (compatible; MSIE %d.0; Windows NT %d.1; SV1)"fullword ascii
$w1texto".aspGET"ascii
$w2texto".htmGET"ascii
$w3texto".htmlGET"ascii
$domaintexto"www.xy999.com"fullword ascii
$v2_1texto"loglass"fullword ascii
$v2_2texto"rlehgs"fullword ascii
$v2_3texto"eherrali"fullword ascii
$v2_4texto"agesrlu"fullword ascii
$v2_5texto"lepejagas"fullword ascii

Condición

uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or ( all of ( $v2* ) ) or ( $domain and 3 of them ) or ( #w1 > 2 and #w2 > 2 and #w3 > 2 and 3 of ( $s* ) ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir todos los patrones de ( $v2* ).
  • Deben coincidir al menos 5 patrones de ( $s* ).
  • Deben coincidir al menos 3 patrones de la regla.
  • Deben coincidir al menos 3 patrones de ( $s* ).
  • El patrón $w1 debe aparecer > 2 veces.
  • El patrón $w2 debe aparecer > 2 veces.
  • El patrón $w3 debe aparecer > 2 veces.
  • El patrón $domain debe estar presente.

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: d545f826-11ff-5d0f-9a95-8232b19d35b6

Etiquetas:FILE