Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Nworm

Detects NWorm/N-W0rm payload

MalwareNwormditekSHen 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 NWorm/N-W0rm payload

Familia de malware asociada: Nworm.

Objetivos: PE de Windows.

Define 12 patrones (12 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-nworm.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Nworm : FILE
{
	meta:
		description = "Detects NWorm/N-W0rm payload"
		author = "ditekSHen"
		id = "06546ccf-8914-5b1c-942f-99664b9ecf44"
		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#L3423-L3443"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "a1397a057422be260b5bdf1eb58571e95c259c132cc2518b39e1524a0eda9c66"
		score = 75
		quality = 75
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Trojan.NWorm"

	strings:
		$id1 = "N-W0rm" ascii
		$id2 = "N_W0rm" ascii
		$x1 = "pongPing" fullword wide
		$x2 = "|NW|" fullword wide
		$s1 = "runFile" fullword wide
		$s2 = "runUrl" fullword wide
		$s3 = "killer" fullword wide
		$s4 = "powershell" fullword wide
		$s5 = "wscript.exe" fullword wide
		$s6 = "ExecutionPolicy Bypass -WindowStyle Hidden -NoExit -File \"" fullword wide
		$s7 = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36" fullword wide
		$s8 = "Start-Sleep -Seconds 1.5; Remove-Item -Path '" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and ( ( 1 of ( $id* ) and ( 1 of ( $x* ) or 3 of ( $s* ) ) ) or ( all of ( $x* ) and 2 of ( $s* ) ) or 7 of ( $s* ) or 10 of them )
}

Cadenas (12 patrones)

IdentificadorTipoValorModificadores
$id1texto"N-W0rm"ascii
$id2texto"N_W0rm"ascii
$x1texto"pongPing"fullword wide
$x2texto"|NW|"fullword wide
$s1texto"runFile"fullword wide
$s2texto"runUrl"fullword wide
$s3texto"killer"fullword wide
$s4texto"powershell"fullword wide
$s5texto"wscript.exe"fullword wide
$s6texto"ExecutionPolicy Bypass -WindowStyle Hidden -NoExit -File \""fullword wide
$s7texto"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36"fullword wide
$s8texto"Start-Sleep -Seconds 1.5; Remove-Item -Path '"fullword wide

Condición

uint16( 0 ) == 0x5a4d and ( ( 1 of ( $id* ) and ( 1 of ( $x* ) or 3 of ( $s* ) ) ) or ( all of ( $x* ) and 2 of ( $s* ) ) or 7 of ( $s* ) or 10 of them )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir todos los patrones de ( $x* ).
  • Deben coincidir al menos 1 patrones de ( $id* ).
  • Deben coincidir al menos 1 patrones de ( $x* ).
  • Deben coincidir al menos 3 patrones de ( $s* ).
  • Deben coincidir al menos 2 patrones de ( $s* ).
  • Deben coincidir al menos 7 patrones de ( $s* ).
  • Deben coincidir al menos 10 patrones de la regla.

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: 06546ccf-8914-5b1c-942f-99664b9ecf44

Metadatos

clamav_sigMALWARE.Win.Trojan.NWorm

Etiquetas:FILE