Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Phoenixwave

Detect the PhoenixWave infostealer based on specific strings

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-04-07
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detect the PhoenixWave infostealer based on specific strings

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-phoenixwave.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Phoenixwave : FILE
{
	meta:
		description = "Detect the PhoenixWave infostealer based on specific strings"
		author = "Sekoia.io"
		id = "67c05ea8-2f1b-4c60-b108-e05d7d0c6508"
		date = "2022-04-07"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_phoenixwave.yar#L1-L35"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "efeffb2f0df4c2f8156c401bac5f44c415c4c3e02e84e8db55dad68488f39fea"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str0 = "##################################################\n                  Information\n##################################################\n" wide
		$str1 = "Specify a single character: either D or F" wide
		$str2 = "// This SFX source file was generated by DotNetZip " wide
		$str3 = "aHR0cDovL2lwLWFwaS5jb20vanNvbg==" wide
		$str4 = "TG9jYWxBcHBEYXRh" wide
		$str5 = "UGhvZW5peFdhdmU=" wide
		$str6 = "virustotal" wide
		$str7 = "SELECT * FROM win32_operatingsystem" wide
		$str8 = "SELECT * FROM Win32_VideoController" wide
		$app0 = "\\discordcanary\\Local Storage\\leveldb" wide
		$app1 = "\\discordptb\\Local Storage\\leveldb" wide
		$app2 = "\\discorddevelopment\\Local Storage\\leveldb" wide
		$app3 = "\\D877F783D5D3EF8C\\" wide
		$app4 = "\\IndexedDB\\file__0.indexeddb.leveldb" wide
		$app5 = "\\Steam\\Games.txt" wide
		$app6 = "nkbihfbeogaeaoehlefnkodbefgpgknn" wide
		$app7 = "fhbohimaelbohpjbbldcngcnapndodjp" wide
		$app8 = "fnjhmkhhmkbjkkabndcnnogagogbneec" wide
		$app9 = "\\Opera Software\\Opera GX Stable" wide

	condition:
		uint16( 0 ) == 0x5A4D and 7 of ( $str* ) and 8 of ( $app* )
}

Strings (19 patterns)

IdentifierTypeValueModifiers
$str0text"##################################################\n Information\n##################################################\n"wide
$str1text"Specify a single character: either D or F"wide
$str2text"// This SFX source file was generated by DotNetZip "wide
$str3text"aHR0cDovL2lwLWFwaS5jb20vanNvbg=="wide
$str4text"TG9jYWxBcHBEYXRh"wide
$str5text"UGhvZW5peFdhdmU="wide
$str6text"virustotal"wide
$str7text"SELECT * FROM win32_operatingsystem"wide
$str8text"SELECT * FROM Win32_VideoController"wide
$app0text"\\discordcanary\\Local Storage\\leveldb"wide
$app1text"\\discordptb\\Local Storage\\leveldb"wide
$app2text"\\discorddevelopment\\Local Storage\\leveldb"wide
$app3text"\\D877F783D5D3EF8C\\"wide
$app4text"\\IndexedDB\\file__0.indexeddb.leveldb"wide
$app5text"\\Steam\\Games.txt"wide
$app6text"nkbihfbeogaeaoehlefnkodbefgpgknn"wide
$app7text"fhbohimaelbohpjbbldcngcnapndodjp"wide
$app8text"fnjhmkhhmkbjkkabndcnnogagogbneec"wide
$app9text"\\Opera Software\\Opera GX Stable"wide

Condition

uint16( 0 ) == 0x5A4D and 7 of ( $str* ) and 8 of ( $app* )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 7 patterns in ( $str* ) must match.
  • At least 8 patterns in ( $app* ) 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: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

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

Rule id: 67c05ea8-2f1b-4c60-b108-e05d7d0c6508

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE