Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Phoenix

Phoenix/404KeyLogger keylogger payload

MalwarePhoenixditekSHen 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

Phoenix/404KeyLogger keylogger payload

Associated malware family: Phoenix.

Targets: Windows PE.

It defines 17 patterns (17 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-phoenix.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Phoenix : FILE
{
	meta:
		description = "Phoenix/404KeyLogger keylogger payload"
		author = "ditekSHen"
		id = "62101881-9b5e-586d-8e1b-184787f25d6b"
		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#L341-L367"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "b2c2a4ffc36d708a121853fb0268e6dc85b3fe2cd58e05c8124cbef18e03ec0b"
		score = 75
		quality = 75
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Trojan.Phoenix-Keylogger"

	strings:
		$s1 = "FirefoxPassReader" fullword ascii
		$s2 = "StartKeylogger" fullword ascii
		$s3 = "CRYPTPROTECT_" ascii
		$s4 = "Chrome_Killer" fullword ascii
		$s5 = "Clipboardlog.txt" fullword wide
		$s6 = "Leyboardlogs.txt" fullword wide
		$s7 = "Persistence'" wide
		$s8 = "set_HKB" fullword ascii
		$s9 = "loloa" fullword ascii
		$s10 = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR1.0.3705;)" fullword wide
		$m1 = "- Screenshot -------|" ascii wide
		$m2 = "- Clipboard -------|" ascii wide
		$m3 = "- Logs -------|" ascii wide
		$m4 = "- Passwords -------|" ascii wide
		$m5 = "PSWD" ascii wide
		$m6 = "Screenshot |" ascii wide
		$m7 = "Logs |" ascii wide

	condition:
		( uint16( 0 ) == 0x5a4d and 6 of ( $s* ) or 3 of ( $m* ) ) or 9 of them
}

Strings (17 patterns)

IdentifierTypeValueModifiers
$s1text"FirefoxPassReader"fullword ascii
$s2text"StartKeylogger"fullword ascii
$s3text"CRYPTPROTECT_"ascii
$s4text"Chrome_Killer"fullword ascii
$s5text"Clipboardlog.txt"fullword wide
$s6text"Leyboardlogs.txt"fullword wide
$s7text"Persistence'"wide
$s8text"set_HKB"fullword ascii
$s9text"loloa"fullword ascii
$s10text"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR1.0.3705;)"fullword wide
$m1text"- Screenshot -------|"ascii wide
$m2text"- Clipboard -------|"ascii wide
$m3text"- Logs -------|"ascii wide
$m4text"- Passwords -------|"ascii wide
$m5text"PSWD"ascii wide
$m6text"Screenshot |"ascii wide
$m7text"Logs |"ascii wide

Condition

( uint16( 0 ) == 0x5a4d and 6 of ( $s* ) or 3 of ( $m* ) ) or 9 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 6 patterns in ( $s* ) must match.
  • At least 3 patterns in ( $m* ) must match.
  • At least 9 patterns in the rule 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: 62101881-9b5e-586d-8e1b-184787f25d6b

Metadata

clamav_sigMALWARE.Win.Trojan.Phoenix-Keylogger

Tags:FILE

More Phoenix rules