Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Vidar_Str_Jul22

Detect the Vidar infostealer based on specific strings

MalwareVidarSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-07-26
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detect the Vidar infostealer based on specific strings

Associated malware family: Vidar.

Targets: Windows PE.

It defines 13 patterns (12 text, 1 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-vidar-str-jul22.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Vidar_Str_Jul22 : FILE
{
	meta:
		description = "Detect the Vidar infostealer based on specific strings"
		author = "Sekoia.io"
		id = "1dc18694-aaac-41e6-979a-c06d5d62f5ea"
		date = "2022-07-26"
		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_vidar_str_jul22.yar#L1-L29"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "394d148155d46753df188a252678c5ce9d0aa321da8907e74b844d5aa8494a47"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		modification_date = "2022-08-23"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "vcruntime140.dll" ascii
		$str02 = "\\screenshot.jpg" ascii
		$str03 = "HARDWARE\\DESCRIPTION\\System\\CentralProcessor" ascii
		$str04 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall" ascii
		$str05 = "%s\\%s\\%s\\chrome-extension_%s_0.indexeddb.leveldb" ascii
		$str06 = "\\CC\\%s_%s.txt" ascii
		$str07 = "\\Autofill\\%s_%s.txt" ascii
		$str08 = "\\History\\%s_%s.txt" ascii
		$str09 = "\\Downloads\\%s_%s.txt" ascii
		$str10 = "Content-Disposition: form-data; name=" ascii
		$str11 = "Exodus\\exodus.wallet" ascii
		$str12 = "*%DRIVE_REMOVABLE%*" ascii
		$opc = {55 8b ec 51 56 8b 75 ?? 33 c0 c7 46 14 ?? ?? ?? ?? 89 46 ?? 68 ?? ?? ?? ?? 8b ce 89 45 ?? 88 06 e8 1f b6 ff ff 8b c6 5e c9 c2 ?? ??}

	condition:
		uint16( 0 ) == 0x5A4D and ( 7 of them or $opc )
}

Strings (13 patterns)

IdentifierTypeValueModifiers
$str01text"vcruntime140.dll"ascii
$str02text"\\screenshot.jpg"ascii
$str03text"HARDWARE\\DESCRIPTION\\System\\CentralProcessor"ascii
$str04text"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall"ascii
$str05text"%s\\%s\\%s\\chrome-extension_%s_0.indexeddb.leveldb"ascii
$str06text"\\CC\\%s_%s.txt"ascii
$str07text"\\Autofill\\%s_%s.txt"ascii
$str08text"\\History\\%s_%s.txt"ascii
$str09text"\\Downloads\\%s_%s.txt"ascii
$str10text"Content-Disposition: form-data; name="ascii
$str11text"Exodus\\exodus.wallet"ascii
$str12text"*%DRIVE_REMOVABLE%*"ascii
$opchex{55 8b ec 51 56 8b 75 ?? 33 c0 c7 46 14 ?? ?? ?? ?? 89 46 ?? 68 ?? ?? ?? ?? 8b ce 89 45 ?? 88 06 e8 1f b6 ff ff 8b c6 5e c9 c2 ?? ??}

Condition

uint16( 0 ) == 0x5A4D and ( 7 of them or $opc )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 7 patterns in the rule must match.
  • Pattern $opc 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: 1dc18694-aaac-41e6-979a-c06d5d62f5ea

Metadata

version1.0
modification_date2022-08-23
classificationTLP:CLEAR

Tags:FILE

More Vidar rules