Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Whitesnake_Stealer_Feb23

Finds WhiteSnake samples (stealer module)

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

What this rule detects

Finds WhiteSnake samples (stealer module)

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-whitesnake-stealer-feb23.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Whitesnake_Stealer_Feb23 : FILE
{
	meta:
		description = "Finds WhiteSnake samples (stealer module)"
		author = "Sekoia.io"
		id = "68ae7fbc-4486-4b60-af5e-f37ddc58f170"
		date = "2023-03-01"
		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_whitesnake_stealer_feb23.yar#L1-L31"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "90007c38c644b79b2a60d9a252bd95071c5be57c649d73b66a73a1158cddc2fb"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$fun01 = "Ibhiyptxjhiacrnxomvqjb" ascii
		$fun02 = "Irwcvmgzsduiiizaabbczm" ascii
		$whi = "WhiteSnake.Properties.Resources" ascii
		$str01 = "get_UtcNow" ascii
		$str02 = "get_IPAddress" ascii
		$str03 = "get_Ticks" ascii
		$str04 = "set_commands" ascii
		$str05 = "set_Information" ascii
		$str06 = "set_filedata" ascii
		$str07 = "get_Jpeg" ascii
		$str08 = "set_Culture" ascii
		$str09 = "MakeScreenshot" ascii

	condition:
		uint16( 0 ) == 0x5A4D and ( ( all of ( $fun* ) or $whi ) and 3 of ( $str* ) or 7 of ( $str* ) ) and filesize < 100KB
}

Strings (12 patterns)

IdentifierTypeValueModifiers
$fun01text"Ibhiyptxjhiacrnxomvqjb"ascii
$fun02text"Irwcvmgzsduiiizaabbczm"ascii
$whitext"WhiteSnake.Properties.Resources"ascii
$str01text"get_UtcNow"ascii
$str02text"get_IPAddress"ascii
$str03text"get_Ticks"ascii
$str04text"set_commands"ascii
$str05text"set_Information"ascii
$str06text"set_filedata"ascii
$str07text"get_Jpeg"ascii
$str08text"set_Culture"ascii
$str09text"MakeScreenshot"ascii

Condition

uint16( 0 ) == 0x5A4D and ( ( all of ( $fun* ) or $whi ) and 3 of ( $str* ) or 7 of ( $str* ) ) and filesize < 100KB

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 100KB (a cheap guard that skips large files).
  • All patterns in ( $fun* ) must match.
  • At least 3 patterns in ( $str* ) must match.
  • At least 7 patterns in ( $str* ) must match.
  • Pattern $whi must be present.

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: 68ae7fbc-4486-4b60-af5e-f37ddc58f170

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE