Skip to content

YARA · Volexity threat-intel

VOLEXITY_Apt_Malware_Macos_Gimmick

Detects the macOS port of the GIMMICK malware.

APT / threat actorVolexity threat-intelBSD 2-Clause LicenseCompiles with YARA-X
Author
threatintel@volexity.com
Date
2021-10-18
Modified
2024-08-02
Score / Quality
75 / 78

What this rule detects

Detects the macOS port of the GIMMICK malware.

It defines 29 patterns (29 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

apt-malware-macos-gimmick.yarBSD 2-Clause License
rule VOLEXITY_Apt_Malware_Macos_Gimmick : STORMBAMBOO FILE MEMORY
{
	meta:
		description = "Detects the macOS port of the GIMMICK malware."
		author = "threatintel@volexity.com"
		id = "3d485788-4aab-511b-a49e-5dc09d1950a9"
		date = "2021-10-18"
		modified = "2024-08-02"
		reference = "https://www.volexity.com/blog/2022/03/22/storm-cloud-on-the-horizon-gimmick-malware-strikes-at-macos/"
		source_url = "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/2022/2022-03-22 GIMMICK/indicators/yara.yar#L1-L59"
		license_url = "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/LICENSE.txt"
		hash = "2a9296ac999e78f6c0bee8aca8bfa4d4638aa30d9c8ccc65124b1cbfc9caab5f"
		logic_hash = "00fba9df2212874a45d44b3d098a7b76c97fcd53ff083c76b784d2b510a4a467"
		score = 75
		quality = 78
		tags = "STORMBAMBOO, FILE, MEMORY"
		os = "darwin"
		os_arch = "all"
		scan_context = "file,memory"
		severity = "critical"
		license = "See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt"
		rule_id = 6022
		version = 8

	strings:
		$s1 = "http://cgi1.apnic.net/cgi-bin/my-ip.php --connect-timeout 10 -m 20" wide ascii
		$json1 = "base_json" ascii wide
		$json2 = "down_json" ascii wide
		$json3 = "upload_json" ascii wide
		$json4 = "termin_json" ascii wide
		$json5 = "request_json" ascii wide
		$json6 = "online_json" ascii wide
		$json7 = "work_json" ascii wide
		$msg1 = "bash_pid: %d, FDS_CHILD: %d, FDS_PARENT: %d" ascii wide
		$msg2 = "pid %d is dead" ascii wide
		$msg3 = "exit with code %d" ascii wide
		$msg4 = "recv signal %d" ascii wide
		$cmd1 = "ReadCmdQueue" ascii wide
		$cmd2 = "read_cmd_server_timer" ascii wide
		$cmd3 = "enableProxys" ascii wide
		$cmd4 = "result_block" ascii wide
		$cmd5 = "createDirLock" ascii wide
		$cmd6 = "proxyLock" ascii wide
		$cmd7 = "createDirTmpItem" ascii wide
		$cmd8 = "dowfileLock" ascii wide
		$cmd9 = "downFileTmpItem" ascii wide
		$cmd10 = "filePathTmpItem" ascii wide
		$cmd11 = "uploadItems" ascii wide
		$cmd12 = "downItems" ascii wide
		$cmd13 = "failUploadItems" ascii wide
		$cmd14 = "failDownItems" ascii wide
		$cmd15 = "downloadCmds" ascii wide
		$cmd16 = "uploadFiles" ascii wide
		$cmd17 = "bash callback...." ascii wide

	condition:
		$s1 or 5 of ( $json* ) or 3 of ( $msg* ) or 9 of ( $cmd* )
}

Strings (29 patterns)

IdentifierTypeValueModifiers
$s1text"http://cgi1.apnic.net/cgi-bin/my-ip.php --connect-timeout 10 -m 20"wide ascii
$json1text"base_json"ascii wide
$json2text"down_json"ascii wide
$json3text"upload_json"ascii wide
$json4text"termin_json"ascii wide
$json5text"request_json"ascii wide
$json6text"online_json"ascii wide
$json7text"work_json"ascii wide
$msg1text"bash_pid: %d, FDS_CHILD: %d, FDS_PARENT: %d"ascii wide
$msg2text"pid %d is dead"ascii wide
$msg3text"exit with code %d"ascii wide
$msg4text"recv signal %d"ascii wide
$cmd1text"ReadCmdQueue"ascii wide
$cmd2text"read_cmd_server_timer"ascii wide
$cmd3text"enableProxys"ascii wide
$cmd4text"result_block"ascii wide
$cmd5text"createDirLock"ascii wide
$cmd6text"proxyLock"ascii wide
$cmd7text"createDirTmpItem"ascii wide
$cmd8text"dowfileLock"ascii wide
$cmd9text"downFileTmpItem"ascii wide
$cmd10text"filePathTmpItem"ascii wide
$cmd11text"uploadItems"ascii wide
$cmd12text"downItems"ascii wide
$cmd13text"failUploadItems"ascii wide
$cmd14text"failDownItems"ascii wide
$cmd15text"downloadCmds"ascii wide
$cmd16text"uploadFiles"ascii wide
$cmd17text"bash callback...."ascii wide

Condition

$s1 or 5 of ( $json* ) or 3 of ( $msg* ) or 9 of ( $cmd* )

In plain words (Heuristic)

  • At least 5 patterns in ( $json* ) must match.
  • At least 3 patterns in ( $msg* ) must match.
  • At least 9 patterns in ( $cmd* ) must match.
  • Pattern $s1 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.

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

  • 2a9296ac999e78f6c0bee8aca8bfa4d4638aa30d9c8ccc65124b1cbfc9caab5f

Licence & attribution

Author: threatintel@volexity.com

Source repository: Volexity threat-intel @ 3a9d0b5245

Licence: BSD 2-Clause License (stated in the rule's own meta)

“See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt”

Copyright notice: Copyright 2022 by Volexity, Inc.

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 3d485788-4aab-511b-a49e-5dc09d1950a9

Metadata

osdarwin
os_archall
scan_contextfile,memory
severitycritical
rule_id6022
version8

Tags:STORMBAMBOOFILEMEMORY