Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Whitesnake_Loader_Feb23

Finds WhiteSnake samples (loader module, bat file)

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 (loader module, bat file)

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

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-whitesnake-loader-feb23.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Whitesnake_Loader_Feb23 : FILE
{
	meta:
		description = "Finds WhiteSnake samples (loader module, bat file)"
		author = "Sekoia.io"
		id = "f81a8a96-6fd2-4f5c-8a56-ff66ff1a80d3"
		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_loader_feb23.yar#L1-L23"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "c9d4414fb17c28a3ea2e75837732e1657bdc7b2df4a7ab34e458d659441759e8"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "echo         Please wait... a while Loading data ...." ascii
		$str02 = "CERTUTIL -f -decode" ascii
		$str03 = "%Temp%\\build.exe" ascii
		$crt = "-----BEGIN CERTIFICATE-----" ascii
		$mz = "TVqQAAMAAAAEAAAA" ascii

	condition:
		($str01 in ( 0 .. 200 ) or $str02 in ( 0 .. 200 ) or $str03 in ( 0 .. 200 ) ) and $mz in ( @crt .. @crt + 50 ) and filesize < 100KB
}

Strings (5 patterns)

IdentifierTypeValueModifiers
$str01text"echo Please wait... a while Loading data ...."ascii
$str02text"CERTUTIL -f -decode"ascii
$str03text"%Temp%\\build.exe"ascii
$crttext"-----BEGIN CERTIFICATE-----"ascii
$mztext"TVqQAAMAAAAEAAAA"ascii

Condition

($str01 in ( 0 .. 200 ) or $str02 in ( 0 .. 200 ) or $str03 in ( 0 .. 200 ) ) and $mz in ( @crt .. @crt + 50 ) and filesize < 100KB

In plain words (Heuristic)

  • The file must be smaller than 100KB (a cheap guard that skips large files).
  • Pattern $str01 must be found within the range 0 .. 200.
  • Pattern $str02 must be found within the range 0 .. 200.
  • Pattern $str03 must be found within the range 0 .. 200.
  • Pattern $mz must be found within the range @crt .. @crt + 50.

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: f81a8a96-6fd2-4f5c-8a56-ff66ff1a80d3

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE