YARA · SEKOIA.IO Community
SEKOIA_Apt_Apt29_Wineloader_Malicious_Pdf
Detects malicious PDF used by APT29 to drop Wineloader
- Author
- Sekoia.io
- Date
- 2024-03-25
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects malicious PDF used by APT29 to drop Wineloader
Targets: PDF.
It defines 4 patterns (3 text, 1 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
apt-apt29-wineloader-malicious-pdf.yarDetection Rule License 1.1
rule SEKOIA_Apt_Apt29_Wineloader_Malicious_Pdf : FILE
{
meta:
= "Detects malicious PDF used by APT29 to drop Wineloader"
= "Sekoia.io"
= "b1db731e-471e-493a-b76c-38d2808ccac9"
= "2024-03-25"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_apt29_wineloader_malicious_pdf.yar#L1-L21"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "9712217ff3597468b48cdf45da588005de3a725ba554789bb7e5ae1b0f7c02a7"
= "3739b2eae11c8367b576869b68d502b97676fb68d18cc0045f661fbe354afcb9"
= "784f5ab2602e2185e8253b5b8d9a084ede0604457b0a0674fceffbcb226e3ba1"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$s1 = "<</Type/Annot/Subtype/Link/Border[0 0 0]/Rect["
$s2 = "/A<</Type/Action/S/URI/URI("
$s3 = { 2f [2-10] 2e 70 68 70 29 3e 3e }
$s4 = "JamrulNormal"
condition:
uint32be( 0 ) == 0x25504446 and $s2 in ( @s1 .. @s3 ) and $s4
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "<</Type/Annot/Subtype/Link/Border[0 0 0]/Rect[" | |
| $s2 | text | "/A<</Type/Action/S/URI/URI(" | |
| $s3 | hex | { 2f [2-10] 2e 70 68 70 29 3e 3e } | |
| $s4 | text | "JamrulNormal" |
Condition
uint32be( 0 ) == 0x25504446 and $s2 in ( @s1 .. @s3 ) and $s4In plain words (Heuristic)
- The file must start with “%PDF”.
- Pattern $s2 must be found within the range @s1 .. @s3.
- Pattern $s4 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.
References
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 9712217ff3597468b48cdf45da588005de3a725ba554789bb7e5ae1b0f7c02a7
- 3739b2eae11c8367b576869b68d502b97676fb68d18cc0045f661fbe354afcb9
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: b1db731e-471e-493a-b76c-38d2808ccac9
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