Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Darktrackrat

Detects OzoneRAT / DarkTrack / DarkSky

MalwareDarktrackratditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 75

What this rule detects

Detects OzoneRAT / DarkTrack / DarkSky

Associated malware family: Darktrackrat.

Targets: Windows PE.

It defines 16 patterns (15 text, 1 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

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* ) )
}

Strings (16 patterns)

IdentifierTypeValueModifiers
$x1text"Klog.dat"ascii
$x2text"I_AM_DT"ascii
$x3text" Alien"ascii
$x4text"Local Victim"ascii
$x5text"Dtback\\AlienEdition\\Server\\SuperObject.pas"ascii
$x6text"].encryptedUsername"ascii
$x7text"].encryptedPassword"ascii
$x8hex{ 49 41 4d [6] 44 41 52 [0-2] 4b [6] 44 54 41 43 4b }
$s1text"AntiVirusProduct"ascii
$s2text"AntiSpywareProduct"ascii
$s3text"ConnectServer"ascii
$s4text"ExecQuery"ascii
$s5text"\\Drivers\\Etc\\Hosts"fullword ascii
$s6text"BTMemoryLoadLibary: Get DLLEntyPoint"ascii
$s7text"\\\\.\\SyserDbgMsg"fullword ascii
$s8text"\\\\.\\SyserBoot"fullword ascii

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 4 patterns in ( $x* ) must match.
  • At least 6 patterns in ( $s* ) must match.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Licence & attribution

Author: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: ef8675f8-f643-5948-a967-e4a9ce5ab89e

Tags:FILE