Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Darktrackrat

Detects OzoneRAT / DarkTrack / DarkSky

MalwareDarktrackratditekSHen 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 OzoneRAT / DarkTrack / DarkSky

Familia de malware asociada: Darktrackrat.

Objetivos: PE de Windows.

Define 16 patrones (15 de texto, 1 hex, 0 regex).

Resumen generado a partir de los metadatos y la condición de la regla.

Código de la regla

malware-win-darktrackrat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Darktrackrat : FILE
{
	meta:
		description = "Detects OzoneRAT / DarkTrack / DarkSky"
		author = "ditekSHen"
		id = "ef8675f8-f643-5948-a967-e4a9ce5ab89e"
		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#L5222-L5245"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "2a831c0f7707864d8c9e9fa338085a52933869d8cfbdbe0d12715da301c12646"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "Klog.dat" ascii
		$x2 = "I_AM_DT" ascii
		$x3 = " Alien" ascii
		$x4 = "Local Victim" ascii
		$x5 = "Dtback\\AlienEdition\\Server\\SuperObject.pas" ascii
		$x6 = "].encryptedUsername" ascii
		$x7 = "].encryptedPassword" ascii
		$x8 = { 49 41 4d [6] 44 41 52 [0-2] 4b [6] 44 54 41 43 4b }
		$s1 = "AntiVirusProduct" ascii
		$s2 = "AntiSpywareProduct" ascii
		$s3 = "ConnectServer" ascii
		$s4 = "ExecQuery" ascii
		$s5 = "\\Drivers\\Etc\\Hosts" fullword ascii
		$s6 = "BTMemoryLoadLibary: Get DLLEntyPoint" ascii
		$s7 = "\\\\.\\SyserDbgMsg" fullword ascii
		$s8 = "\\\\.\\SyserBoot" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 4 of ( $x* ) or 6 of ( $s* ) )
}

Cadenas (16 patrones)

IdentificadorTipoValorModificadores
$x1texto"Klog.dat"ascii
$x2texto"I_AM_DT"ascii
$x3texto" Alien"ascii
$x4texto"Local Victim"ascii
$x5texto"Dtback\\AlienEdition\\Server\\SuperObject.pas"ascii
$x6texto"].encryptedUsername"ascii
$x7texto"].encryptedPassword"ascii
$x8hex{ 49 41 4d [6] 44 41 52 [0-2] 4b [6] 44 54 41 43 4b }
$s1texto"AntiVirusProduct"ascii
$s2texto"AntiSpywareProduct"ascii
$s3texto"ConnectServer"ascii
$s4texto"ExecQuery"ascii
$s5texto"\\Drivers\\Etc\\Hosts"fullword ascii
$s6texto"BTMemoryLoadLibary: Get DLLEntyPoint"ascii
$s7texto"\\\\.\\SyserDbgMsg"fullword ascii
$s8texto"\\\\.\\SyserBoot"fullword ascii

Condición

uint16( 0 ) == 0x5a4d and ( 4 of ( $x* ) or 6 of ( $s* ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir al menos 4 patrones de ( $x* ).
  • Deben coincidir al menos 6 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: ef8675f8-f643-5948-a967-e4a9ce5ab89e

Etiquetas:FILE