Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Downloader_Mac_Rustbucket

RustBucket fake PDF reader

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
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:
		description = "RustBucket fake PDF reader"
		author = "Sekoia.io"
		id = "5a003b68-ad9a-47f9-b157-dd898181dac2"
		date = "2023-04-24"
		modified = "2024-12-19"
		reference = "https://www.jamf.com/blog/bluenoroff-apt-targets-macos-rustbucket-malware/"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/downloader_mac_rustbucket.yar#L1-L31"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "38106b043ede31a66596299f17254d3f23cbe1f983674bf9ead5006e0f0bf880"
		hash = "bea33fb3205319868784c028418411ee796d6ee3dfe9309f143e7e8106116a49"
		hash = "7981ebf35b5eff8be2f3849c8f3085b9cec10d9759ff4d3afd46990520de0407"
		hash = "e74e8cdf887ae2de25590c55cb52dad66f0135ad4a1df224155f772554ea970c"
		logic_hash = "1b9e9a3f4fb4804eb94ab8d3573781d67f96d180b258cfc10be384eec44509ed"
		score = 75
		quality = 78
		tags = "FILE"
		version = "1.0"
		classification = "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)

IdentifierTypeValueModifiers
$down_exec1text"_down_update_run"nocase
$down_exec2text"downAndExec"nocase
$encrypt1text"_encrypt_pdf"
$encrypt2text"_encrypt_data"
$error_msg1text"_alertErr"
$error_msg2text"_show_error_msg"
$view_pdf1text"-[PEPWindow view_pdf:]"
$view_pdf2text"-[PEPWindow viewPDF:]"
$macho_magichex{CF FA ED FE}
$java_magichex{CA FE BA BE}

Condition

($macho_magic at 0 or $java_magic at 0 ) and 5 of them and filesize > 50KB

In 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.

Open in editor

References

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)

Original rule

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

version1.0
classificationTLP:CLEAR

Tags:FILE