Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Spikedwine_Wineloader

Detects vineloader

APT / threat actorSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2024-02-29
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detects vineloader

It defines 1 patterns (0 text, 1 hex, 0 regex). YARA modules used: pe.

Summary generated from the rule's metadata and condition.

Rule source

Includes the imports needed to compile it on its own.

apt-spikedwine-wineloader.yarDetection Rule License 1.1
import "pe"

rule SEKOIA_Apt_Spikedwine_Wineloader : FILE
{
	meta:
		description = "Detects vineloader"
		author = "Sekoia.io"
		id = "7a599076-cd9d-42c4-a83a-9a991ede19fb"
		date = "2024-02-29"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_spikedwine_wineloader.yar#L3-L26"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "c71d7ef8cb89d8fcd42e3178a729d912d5fe8e9eb396e46d7a0f5176a9398d75"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$c = { E8 ?? ?? ?? ?? 48 8D 0D
        ?? ?? ?? ?? 48 8D 05 ??
        ?? ?? ?? 48 89 05 ?? ??
        ?? ?? 48 C7 05 ?? ?? ??
        ?? ?? ?? 00 00 48 C7 05
        ?? ?? ?? ?? ?? ?? 00 00 }

	condition:
		pe.is_dll( ) and filesize < 100KB and for any export in pe.export_details : ( $c in ( export.offset..export.offset + 100 ) )
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$chex{ E8 ?? ?? ?? ?? 48 8D 0D ?? ?? ?? ?? 48 8D 05 ?? ?? ?? ?? 48 89 05 ?? ?? ?? ?? 48 C7 05 ?? ?? ?? ?? ?? ?? 00 00 48 C7 05 …

Condition

pe.is_dll( ) and filesize < 100KB and for any export in pe.export_details : ( $c in ( export.offset..export.offset + 100 ) )

In plain words (Heuristic)

  • The file must be smaller than 100KB (a cheap guard that skips large files).
  • Pattern $c must be found within the range export.offset..export.offset + 100.
  • A for-loop checks a property over several matches or items.
  • Uses the pe module.
  • Uses the export module.
  • Checks exported functions or the DLL name.
  • Requires a DLL.

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: 7a599076-cd9d-42c4-a83a-9a991ede19fb

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE