Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Implant_Mac_Rustbucket

Detect the RustBucket malware

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-04-24
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detect the RustBucket malware

It defines 4 patterns (2 text, 2 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

implant-mac-rustbucket.yarDetection Rule License 1.1
rule SEKOIA_Implant_Mac_Rustbucket : FILE
{
	meta:
		description = "Detect the RustBucket malware"
		author = "Sekoia.io"
		id = "fcbb745d-7f56-4c51-9db5-427da22a0c68"
		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/implant_mac_rustbucket.yar#L1-L21"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "9ca914b1cfa8c0ba021b9e00bda71f36cad132f27cf16bda6d937badee66c747"
		logic_hash = "ab7bc706b0d3f0dcd739ffe7f8153ba7377892143d8d53ce1591519ffe4ae84f"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "/Users/hero/"
		$ = "PATHIpv6Ipv4Bodyslotpath"
		$macho_magic = {CF FA ED FE}
		$java_magic = {CA FE BA BE}

	condition:
		($macho_magic at 0 or $java_magic at 0 ) and all of them
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$text"/Users/hero/"
$text"PATHIpv6Ipv4Bodyslotpath"
$macho_magichex{CF FA ED FE}
$java_magichex{CA FE BA BE}

Condition

($macho_magic at 0 or $java_magic at 0 ) and all of them

In plain words (Heuristic)

  • All 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).

  • 9ca914b1cfa8c0ba021b9e00bda71f36cad132f27cf16bda6d937badee66c747

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: fcbb745d-7f56-4c51-9db5-427da22a0c68

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE