Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Whitesnake_Xor_Rc4_July12

Detects WhiteSnake Stealer XOR and RC4 version

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X (with warnings)
Author
Sekoia.io
Date
2023-07-12
Modified
2024-12-19
Score / Quality
75 / 76

What this rule detects

Detects WhiteSnake Stealer XOR and RC4 version

It defines 6 patterns (2 text, 4 hex, 0 regex).

YARA-X says: warning[text_as_hex]: hex pattern could be written as text literal

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-whitesnake-xor-rc4-july12.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Whitesnake_Xor_Rc4_July12 : FILE
{
	meta:
		description = "Detects WhiteSnake Stealer XOR and RC4 version"
		author = "Sekoia.io"
		id = "f2ebfcbd-9667-459a-a543-ce0be62c0dc4"
		date = "2023-07-12"
		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_xor_rc4_july12.yar#L1-L20"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "f14b95e5cb6ffaab14d0890847fe6e9dcfc3ee0b884c34d24d786420e2411a80"
		score = 75
		quality = 76
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$1 = {FE 0C 00 00 FE 09 00 00 FE 0C 02 00 6F ?? 00 00 0A FE 0C 03 00 61 D1 FE 0E 04 00 FE}
		$2 = {61 6e 61 6c 2e 6a 70 67}
		$3 = {73 68 69 74 2e 6a 70 67}
		$4 = {FE 0C ?? 00 20 00 01 00 00 3F ?? FF FF FF 20 00 00 00 00 FE 0E ?? 00 38 ?? 00 00 00 FE 0C}
		$5 = "qemu" wide
		$6 = "vbox" wide

	condition:
		($1 and $2 and filesize < 600KB ) or ( $3 and $4 and $5 and $6 and filesize < 300KB )
}

Strings (6 patterns)

IdentifierTypeValueModifiers
$1hex{FE 0C 00 00 FE 09 00 00 FE 0C 02 00 6F ?? 00 00 0A FE 0C 03 00 61 D1 FE 0E 04 00 FE}
$2hex{61 6e 61 6c 2e 6a 70 67}
$3hex{73 68 69 74 2e 6a 70 67}
$4hex{FE 0C ?? 00 20 00 01 00 00 3F ?? FF FF FF 20 00 00 00 00 FE 0E ?? 00 38 ?? 00 00 00 FE 0C}
$5text"qemu"wide
$6text"vbox"wide

Condition

($1 and $2 and filesize < 600KB ) or ( $3 and $4 and $5 and $6 and filesize < 300KB )

In plain words (Heuristic)

  • The file must be smaller than 600KB (a cheap guard that skips large files).
  • The file must be smaller than 300KB (a cheap guard that skips large files).
  • Pattern $1 must be present.
  • Pattern $2 must be present.
  • Pattern $3 must be present.
  • Pattern $4 must be present.
  • Pattern $5 must be present.
  • Pattern $6 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: f2ebfcbd-9667-459a-a543-ce0be62c0dc4

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE