YARA · SEKOIA.IO Community
SEKOIA_Infostealer_Win_Whitesnake_Xor_Rc4_July12
Detects WhiteSnake Stealer XOR and RC4 version
- 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:
= "Detects WhiteSnake Stealer XOR and RC4 version"
= "Sekoia.io"
= "f2ebfcbd-9667-459a-a543-ce0be62c0dc4"
= "2023-07-12"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_whitesnake_xor_rc4_july12.yar#L1-L20"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "f14b95e5cb6ffaab14d0890847fe6e9dcfc3ee0b884c34d24d786420e2411a80"
= 75
= 76
= "FILE"
= "1.0"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $1 | hex | {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 | hex | {61 6e 61 6c 2e 6a 70 67} | |
| $3 | hex | {73 68 69 74 2e 6a 70 67} | |
| $4 | hex | {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 | text | "qemu" | wide |
| $6 | text | "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.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
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
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20