YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Darktrackrat
Detects OzoneRAT / DarkTrack / DarkSky
- 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:
= "Detects OzoneRAT / DarkTrack / DarkSky"
= "ditekSHen"
= "ef8675f8-f643-5948-a967-e4a9ce5ab89e"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L5222-L5245"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "2a831c0f7707864d8c9e9fa338085a52933869d8cfbdbe0d12715da301c12646"
= 75
= 75
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "Klog.dat" | ascii |
| $x2 | text | "I_AM_DT" | ascii |
| $x3 | text | " Alien" | ascii |
| $x4 | text | "Local Victim" | ascii |
| $x5 | text | "Dtback\\AlienEdition\\Server\\SuperObject.pas" | ascii |
| $x6 | text | "].encryptedUsername" | ascii |
| $x7 | text | "].encryptedPassword" | ascii |
| $x8 | hex | { 49 41 4d [6] 44 41 52 [0-2] 4b [6] 44 54 41 43 4b } | |
| $s1 | text | "AntiVirusProduct" | ascii |
| $s2 | text | "AntiSpywareProduct" | ascii |
| $s3 | text | "ConnectServer" | ascii |
| $s4 | text | "ExecQuery" | ascii |
| $s5 | text | "\\Drivers\\Etc\\Hosts" | fullword ascii |
| $s6 | text | "BTMemoryLoadLibary: Get DLLEntyPoint" | ascii |
| $s7 | text | "\\\\.\\SyserDbgMsg" | fullword ascii |
| $s8 | text | "\\\\.\\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.
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).
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
Related rules
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06