YARA · SEKOIA.IO Community
SEKOIA_Downloader_Mac_Rustbucket
RustBucket fake PDF reader
- Author
- Sekoia.io
- Date
- 2023-04-24
- Modified
- 2024-12-19
- Score / Quality
- 75 / 78
What this rule detects
RustBucket fake PDF reader
It defines 10 patterns (8 text, 2 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
downloader-mac-rustbucket.yarDetection Rule License 1.1
rule SEKOIA_Downloader_Mac_Rustbucket : FILE
{
meta:
= "RustBucket fake PDF reader"
= "Sekoia.io"
= "5a003b68-ad9a-47f9-b157-dd898181dac2"
= "2023-04-24"
= "2024-12-19"
= "https://www.jamf.com/blog/bluenoroff-apt-targets-macos-rustbucket-malware/"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/downloader_mac_rustbucket.yar#L1-L31"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "38106b043ede31a66596299f17254d3f23cbe1f983674bf9ead5006e0f0bf880"
= "bea33fb3205319868784c028418411ee796d6ee3dfe9309f143e7e8106116a49"
= "7981ebf35b5eff8be2f3849c8f3085b9cec10d9759ff4d3afd46990520de0407"
= "e74e8cdf887ae2de25590c55cb52dad66f0135ad4a1df224155f772554ea970c"
= "1b9e9a3f4fb4804eb94ab8d3573781d67f96d180b258cfc10be384eec44509ed"
= 75
= 78
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$down_exec1 = "_down_update_run" nocase
$down_exec2 = "downAndExec" nocase
$encrypt1 = "_encrypt_pdf"
$encrypt2 = "_encrypt_data"
$error_msg1 = "_alertErr"
$error_msg2 = "_show_error_msg"
$view_pdf1 = "-[PEPWindow view_pdf:]"
$view_pdf2 = "-[PEPWindow viewPDF:]"
$macho_magic = {CF FA ED FE}
$java_magic = {CA FE BA BE}
condition:
($macho_magic at 0 or $java_magic at 0 ) and 5 of them and filesize > 50KB
}
Strings (10 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $down_exec1 | text | "_down_update_run" | nocase |
| $down_exec2 | text | "downAndExec" | nocase |
| $encrypt1 | text | "_encrypt_pdf" | |
| $encrypt2 | text | "_encrypt_data" | |
| $error_msg1 | text | "_alertErr" | |
| $error_msg2 | text | "_show_error_msg" | |
| $view_pdf1 | text | "-[PEPWindow view_pdf:]" | |
| $view_pdf2 | text | "-[PEPWindow viewPDF:]" | |
| $macho_magic | hex | {CF FA ED FE} | |
| $java_magic | hex | {CA FE BA BE} |
Condition
($macho_magic at 0 or $java_magic at 0 ) and 5 of them and filesize > 50KBIn plain words (Heuristic)
- The file must be larger than 50KB.
- At least 5 patterns in the rule must match.
- Pattern $macho_magic must be found at offset 0.
- Pattern $java_magic must be found at offset 0.
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.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 38106b043ede31a66596299f17254d3f23cbe1f983674bf9ead5006e0f0bf880
- bea33fb3205319868784c028418411ee796d6ee3dfe9309f143e7e8106116a49
- 7981ebf35b5eff8be2f3849c8f3085b9cec10d9759ff4d3afd46990520de0407
- e74e8cdf887ae2de25590c55cb52dad66f0135ad4a1df224155f772554ea970c
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: 5a003b68-ad9a-47f9-b157-dd898181dac2
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20