YARA · SEKOIA.IO Community
SEKOIA_Loader_Win_Stealthvector
Detect the StealthVector malware, updated in July 2024
- Author
- Sekoia.io
- Date
- 2021-08-26
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detect the StealthVector malware, updated in July 2024
Targets: Windows PE.
It defines 2 patterns (2 text, 0 hex, 0 regex). YARA modules used: pe, hash.
Summary generated from the rule's metadata and condition.
Rule source
Includes the imports needed to compile it on its own.
import "pe"
import "hash"
rule SEKOIA_Loader_Win_Stealthvector : FILE
{
meta:
= "Detect the StealthVector malware, updated in July 2024"
= "Sekoia.io"
= "ecf6421a-f492-43c4-9ed7-eb4724d24779"
= "2021-08-26"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_win_stealthvector.yar#L4-L32"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "166b6dcdac31f4bf51e4b20a7c3f7d4f7017ca0c30fa123d5591e25c3fa66107"
= "ab56501167fe689fe55f6e6ddc3bb91952299bd5c3ef004b02bf1c3b4061c7cf"
= "0faddbe1713455e3fc9777ec45adf07b28e24f4c3ddca37586c2aa6b539898c0"
= "1c88150ec85a07c3db5f18c5eedcb0b653467b897af01d690ed996e5e07ba8e3"
= "ec10a9396dca694fe64366e0dab82d046cf92457f97efd50a68ceb85adef6b74"
= "71ea017462bbb1891ef306d1e56dece5864885f5c8db5c50431ab085d37bda03"
= 75
= 80
= "FILE"
= "1.0"
= "2024-07-15"
= "TLP:CLEAR"
strings:
$s1 = "Global\\kREwdFrOlvASgP4zWZyV89m6T2K0bIno" ascii
$s2 = "Global\\v5EPQFOImpTLaGZes3Nl1JSKHku8AyCw" ascii
condition:
uint16( 0 ) == 0x5A4D and 1 of them or pe.imphash ( ) == "0cd7b92b97ccc7e255df1f46b5299986" or pe.imphash ( ) == "be777e91e3c42ac62471cfb7239be471" or hash.md5 ( pe.rich_signature.clear_data ) == "fcc67611d136cce0e785029bbb879b45"
}
Strings (2 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "Global\\kREwdFrOlvASgP4zWZyV89m6T2K0bIno" | ascii |
| $s2 | text | "Global\\v5EPQFOImpTLaGZes3Nl1JSKHku8AyCw" | ascii |
Condition
uint16( 0 ) == 0x5A4D and 1 of them or pe.imphash ( ) == "0cd7b92b97ccc7e255df1f46b5299986" or pe.imphash ( ) == "be777e91e3c42ac62471cfb7239be471" or hash.md5 ( pe.rich_signature.clear_data ) == "fcc67611d136cce0e785029bbb879b45"In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 1 patterns in the rule must match.
- Uses the pe module.
- Uses the hash module.
- Compares a hash of the file or a part of it.
- Checks the PE import hash (imphash).
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
References
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 166b6dcdac31f4bf51e4b20a7c3f7d4f7017ca0c30fa123d5591e25c3fa66107
- ab56501167fe689fe55f6e6ddc3bb91952299bd5c3ef004b02bf1c3b4061c7cf
- 0faddbe1713455e3fc9777ec45adf07b28e24f4c3ddca37586c2aa6b539898c0
- 1c88150ec85a07c3db5f18c5eedcb0b653467b897af01d690ed996e5e07ba8e3
- ec10a9396dca694fe64366e0dab82d046cf92457f97efd50a68ceb85adef6b74
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: ecf6421a-f492-43c4-9ed7-eb4724d24779
Metadata
| version | 1.0 |
|---|---|
| modification_date | 2024-07-15 |
| 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