Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Loader_Win_Stealthvector

Detect the StealthVector malware, updated in July 2024

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
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.

loader-win-stealthvector.yarDetection Rule License 1.1
import "pe"
import "hash"

rule SEKOIA_Loader_Win_Stealthvector : FILE
{
	meta:
		description = "Detect the StealthVector malware, updated in July 2024"
		author = "Sekoia.io"
		id = "ecf6421a-f492-43c4-9ed7-eb4724d24779"
		date = "2021-08-26"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_win_stealthvector.yar#L4-L32"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "166b6dcdac31f4bf51e4b20a7c3f7d4f7017ca0c30fa123d5591e25c3fa66107"
		hash = "ab56501167fe689fe55f6e6ddc3bb91952299bd5c3ef004b02bf1c3b4061c7cf"
		hash = "0faddbe1713455e3fc9777ec45adf07b28e24f4c3ddca37586c2aa6b539898c0"
		hash = "1c88150ec85a07c3db5f18c5eedcb0b653467b897af01d690ed996e5e07ba8e3"
		hash = "ec10a9396dca694fe64366e0dab82d046cf92457f97efd50a68ceb85adef6b74"
		logic_hash = "71ea017462bbb1891ef306d1e56dece5864885f5c8db5c50431ab085d37bda03"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		modification_date = "2024-07-15"
		classification = "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)

IdentifierTypeValueModifiers
$s1text"Global\\kREwdFrOlvASgP4zWZyV89m6T2K0bIno"ascii
$s2text"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.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

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)

Original rule

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

version1.0
modification_date2024-07-15
classificationTLP:CLEAR

Tags:FILE