Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Darkeye

Detects DarkEye infostealer

MalwareDarkeyeditekSHen 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 DarkEye infostealer

Associated malware family: Darkeye.

Targets: Windows PE.

It defines 12 patterns (10 text, 0 hex, 2 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-darkeye.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Darkeye : FILE
{
	meta:
		description = "Detects DarkEye infostealer"
		author = "ditekSHen"
		id = "5296fe28-b54e-5d0f-aa2f-2050db585d82"
		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#L9751-L9770"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "5496dcbfe075a4030a446027765186e9dd1931561a29a481139281e1708ce87d"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$c1 = /Prynt(\s)?Stealer/ ascii wide
		$c2 = /WorldWind(\s)?Stealer/ ascii wide
		$c3 = "ToxicEye" ascii wide
		$x2 = "@FlatLineStealer" ascii wide
		$x3 = "@CashOutGangTalk" ascii wide
		$s1 = "--- Clipper" wide
		$s2 = "Downloading file: \"{file}\"" wide
		$s3 = "/bot{0}/getUpdates?offset={1}" wide
		$s4 = "send command to bot!" wide
		$s5 = " *Keylogger " fullword wide
		$s6 = "*Stealer" wide
		$s7 = "Bot connected" wide

	condition:
		uint16( 0 ) == 0x5a4d and not any of ( $c* ) and ( ( 1 of ( $x* ) and 2 of ( $s* ) ) or ( 4 of ( $s* ) ) )
}

Strings (12 patterns)

IdentifierTypeValueModifiers
$c1regex/Prynt(\s)?Stealer/ascii wide
$c2regex/WorldWind(\s)?Stealer/ascii wide
$c3text"ToxicEye"ascii wide
$x2text"@FlatLineStealer"ascii wide
$x3text"@CashOutGangTalk"ascii wide
$s1text"--- Clipper"wide
$s2text"Downloading file: \"{file}\""wide
$s3text"/bot{0}/getUpdates?offset={1}"wide
$s4text"send command to bot!"wide
$s5text" *Keylogger "fullword wide
$s6text"*Stealer"wide
$s7text"Bot connected"wide

Condition

uint16( 0 ) == 0x5a4d and not any of ( $c* ) and ( ( 1 of ( $x* ) and 2 of ( $s* ) ) or ( 4 of ( $s* ) ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least one pattern in ( $c* ) must match.
  • At least 1 patterns in ( $x* ) must match.
  • At least 2 patterns in ( $s* ) must match.
  • At least 4 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: 5296fe28-b54e-5d0f-aa2f-2050db585d82

Tags:FILE