Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Phemedronestealer

Detects Phemedrone Stealer infostealer

MalwarePhemedronestealerditekSHen 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 Phemedrone Stealer infostealer

Associated malware family: Phemedronestealer.

Targets: Windows PE.

It defines 14 patterns (13 text, 0 hex, 1 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-phemedronestealer.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Phemedronestealer : FILE
{
	meta:
		description = "Detects Phemedrone Stealer infostealer"
		author = "ditekSHen"
		id = "297aab1f-351c-5955-8a19-9aa2b7c94748"
		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#L10559-L10580"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "74e150cc971f5648f9e3f6146afba162b1a29cf2744c862b2320db52c2efa930"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$p1 = /\{ file = \{(0|file)\}, data = \{(1|data)\} \}/ ascii wide
		$p2 = "{ <>h__TransparentIdentifier0 = {0}, match = {1} }" wide
		$p3 = "{ <>h__TransparentIdentifier1 = {0}, encrypted = {1} }" wide
		$p4 = "{<>h__TransparentIdentifier0}, match = {match} }" ascii
		$p5 = "{<>h__TransparentIdentifier1}, encrypted = {encrypted} }" ascii
		$s1 = "<KillDebuggers>b__" ascii
		$s2 = "<ParseExtensions>b__" ascii
		$s3 = "<ParseDiscordTokens>b__" ascii
		$s4 = "<IsVM>b__" ascii
		$s5 = "<Key3Database>b__" ascii
		$s6 = "masterPass" ascii
		$s7 = "rootLocation" ascii
		$s8 = "rgsServiceNames" ascii
		$s9 = "rgsFilenames" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( ( all of ( $p* ) and 3 of ( $s* ) ) or ( 3 of ( $p* ) and 4 of ( $s* ) ) or ( 7 of ( $s* ) ) )
}

Strings (14 patterns)

IdentifierTypeValueModifiers
$p1regex/\{ file = \{(0|file)\}, data = \{(1|data)\} \}/ascii wide
$p2text"{ <>h__TransparentIdentifier0 = {0}, match = {1} }"wide
$p3text"{ <>h__TransparentIdentifier1 = {0}, encrypted = {1} }"wide
$p4text"{<>h__TransparentIdentifier0}, match = {match} }"ascii
$p5text"{<>h__TransparentIdentifier1}, encrypted = {encrypted} }"ascii
$s1text"<KillDebuggers>b__"ascii
$s2text"<ParseExtensions>b__"ascii
$s3text"<ParseDiscordTokens>b__"ascii
$s4text"<IsVM>b__"ascii
$s5text"<Key3Database>b__"ascii
$s6text"masterPass"ascii
$s7text"rootLocation"ascii
$s8text"rgsServiceNames"ascii
$s9text"rgsFilenames"ascii

Condition

uint16( 0 ) == 0x5a4d and ( ( all of ( $p* ) and 3 of ( $s* ) ) or ( 3 of ( $p* ) and 4 of ( $s* ) ) or ( 7 of ( $s* ) ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $p* ) must match.
  • At least 3 patterns in ( $s* ) must match.
  • At least 3 patterns in ( $p* ) must match.
  • At least 4 patterns in ( $s* ) must match.
  • At least 7 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: 297aab1f-351c-5955-8a19-9aa2b7c94748

Tags:FILE