YARA · SEKOIA.IO Community
SEKOIA_Apt_Spikedwine_Wineloader
Detects vineloader
- 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:
= "Detects vineloader"
= "Sekoia.io"
= "7a599076-cd9d-42c4-a83a-9a991ede19fb"
= "2024-02-29"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_spikedwine_wineloader.yar#L3-L26"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "c71d7ef8cb89d8fcd42e3178a729d912d5fe8e9eb396e46d7a0f5176a9398d75"
= 75
= 80
= "FILE"
= "1.0"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $c | hex | { 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.
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: 7a599076-cd9d-42c4-a83a-9a991ede19fb
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-06-11
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-03-06