# PamStealer macOS infostealer: Wavel fake crypto wallet lure, Swift variant with server-side decryption chain

> Jamf Threat Labs describes the third known PamStealer variant, delivered via a fake Wavel multichain crypto wallet site offering a macOS DMG. The Swift second stage is decrypted only after a live X25519 key exchange with the C2 server, and it steals browser data, keychain contents, crypto wallet data and user files, and persists via a Finder-masquerading LaunchAgent, a .zshrc hook and global Git hooks.

- **Author:** Threadlinqs Team
- **Published:** 2026-12-02T19:22:31Z
- **Last updated:** 2026-12-02T19:22:31Z
- **Canonical:** https://intel.threadlinqs.com/threat/TL-2026-7308
- **Card image:** https://intel.threadlinqs.com/og/threat/TL-2026-7308.png
- **ID:** TL-2026-7308
- **Severity:** HIGH
- **Category:** MALWARE
- **Status:** ACTIVE
- **Detections:** 9 (1 shown free below) · **IOCs:** 30 (3 shown free below)

## Description

PamStealer is a macOS infostealer family first documented by Jamf Threat Labs (Thijs Xhaflaire) on 2026-07-02 as a Rust-based stealer that validates stolen passwords locally through PAM. Earlier variants used fake Maccy clipboard-manager sites (maccyapp[.]com / maccyapp[.]net), and Scoppr and Nancy Clipboard lures; they shared a compiled JXA format and embedded key material in the JXA source (RC4 decryption of the embedded payload per The Hacker News). The first variant exfiltrated to avenger-sync[.]live/api/sync (Cloudflare-fronted, ChaCha20-Poly1305 bodies in a {"data":"..."} envelope), ran from a fake Finder bundle, and used Ethereum JSON-RPC endpoints in its decrypted config. The Wavel variant, published by Jamf on 2026-09-22, is the third known variant.

Infection chain: the fake site wavel[.]app offers a 'Download for macOS' button that fetches Wavel.dmg from y32me8[.]com. The DMG contains a compiled AppleScript with only a .scpt extension (hidden by Finder by default) that opens Script Editor. The compiled JXA (magic bytes JsOsaDAS1.001.00) holds a 24,868-character base64 string that is decoded and piped to /bin/zsh -s. The zsh dropper runs 'daemon_function & ; exit 0' so it is reparented when Script Editor exits, breaking process ancestry. It downloads 'pkgunpack' (FAT Mach-O, arm64/x86_64, X25519 via statically linked curve25519_donna, AES-256-GCM and SHA-256 via CommonCrypto) from wavel.apple03cloudstore[.]com to /tmp/.pkgunpack-<PID>, strips quarantine with 'xattr -cr' and ad-hoc signs it with 'codesign -fs - --deep'. The encrypted payload CoreUpdate.pkg.enc is fetched to /tmp/.core-<PID>.enc.

Server-side decryption chain: pkgunpack genkey creates an ephemeral X25519 keypair (/tmp/.eph-<PID>.key/.pub). The dropper POSTs eph_pub_b64 and a nonce (<ts>-<rand>-<PID>) to /v1/loader/dek; the server returns a dek_wrap_b64 blob (magic SNWK1, about 65 bytes). pkgunpack performs X25519 against a hardcoded server public key (I6VuXPzLJfPEXgVRO5ycNXdMWHWvMAkrLMV6OpEuwDw=), derives a KEK with SHA-256 and the domain separator 'sn-dek-wrap-v1', unwraps the DEK with AES-256-GCM and decrypts the SNP1 envelope into a tar.gz (/tmp/.core-<PID>.tar.gz) extracted to /tmp/.upd-<PID>/Wavel.app, which is then renamed Finder.app (executable r8afup9un0, run under sandbox container com.local.r8afup9un0). Because the server holds the private key and each run uses a fresh keypair and nonce, the payload cannot be recovered statically and a captured DEK response cannot be replayed.

Persistence and defense evasion: before launchctl bootstrap the dropper sends SIGSTOP to BackgroundTaskManagementAgent, BTMNotificationAgent and NotificationCenter, then SIGKILLs them in a loop after the LaunchAgent is registered, suppressing the new-background-item notification (absent from earlier variants). Four redundant mechanisms are installed: LaunchAgent com.apple.finder.agent (run at login, every 15 seconds, restart on crash); a repair script ~/Library/Application Support/System/.repair-run that restores Finder.app and the LaunchAgent from .sysnotif-backup.tgz without network access; a block appended to ~/.zshrc that runs the repair script in each new interactive zsh session; and copies of the repair script as post-checkout and pre-commit hooks in ~/Library/Application Support/System/.githooks with 'git config --global core.hooksPath' pointed at it. Each layer carries the marker comment '# sysnotif-repair'.

Stealer (stage 2): a Swift FAT Mach-O with internal project name MacClient (exports _MacClient_main, _pam_verify_login, _kc_grab_storage_item, _sqlite_backup_database; links AppKit, Security, libpam and libsqlite3). It shows a fake password prompt (MacClient.AuthPromptWindow), validates the password via PAM service 'login', then shows a fake 'damaged and can't be opened' dialog. It unlocks the login keychain with /usr/bin/security, modifies the partition list with set-generic-password-partition-list, copies login.keychain-db, and launches 13 Helper_<Browser>Storage.app helpers (KcHelper, passed KC_PASS/KC_STAGING/KC_SERVICE/KC_ACCOUNT environment variables) that present as each browser to read keychain storage items. It kills running browser helper processes (pkill -9), copies browser SQLite databases with the SQLite backup API, and targets 17 browser builds (Chrome stable/Beta/Dev/Canary, Brave, Edge, Vivaldi, Opera, Opera GX, Chromium, Firefox, Arc, Zen, Waterfox, LibreWolf, Yandex Browser, CocCoc), plus Wallets/ and Extensions/ directories. It fingerprints the host with 21 system_profiler calls, reads the user profile photo via dscl, enumerates installed apps (lsappinfo) and processes (ps), and stages .zsh_history (.zshrc, .bash_history and .gitconfig appear in the string table but were not observed). Data is staged under /tmp/.65486b/2966269/, zipped with ditto to /tmp/.5ffa071d.zip (built via .zip.part with a .zip.lockdir, validated with zip -T after three stable size reads) and uploaded in a single PUT to wavel.apple03cloudstore[.]com/v1/asset/1789753519-10913-1182 with an X-Upload-Token header.

Gaps in the source: Jamf's IOC section lists no file hashes, IP addresses or token value; no attribution to any actor is stated; the article gives no CVSS or severity rating, no MITRE mapping, and no remediation beyond Jamf product controls. HIGH severity and ACTIVE status are analyst assessments (credential, keychain and crypto-wallet theft with durable persistence; live C2 key-exchange behavior). A BeaconBeagle domain-config search for wavel.apple03cloudstore.com returned no matches.

## MITRE ATT&CK

- T1204.002 Malicious File
- T1059.002 AppleScript
- T1059.007 JavaScript
- T1059.004 Unix Shell
- T1071.001 Web Protocols
- T1573 Encrypted Channel
- T1543.001 Launch Agent
- T1546.004 Unix Shell Configuration Modification
- T1553.001 Gatekeeper Bypass
- T1036.005 Match Legitimate Resource Name or Location
- T1685 Disable or Modify Tools
- T1564.001 Hidden Files and Directories
- T1027 Obfuscated Files or Information
- T1140 Deobfuscate/Decode Files or Information
- T1056.002 GUI Input Capture
- T1555.001 Keychain
- T1555.003 Credentials from Web Browsers
- T1082 System Information Discovery
- T1057 Process Discovery
- T1518 Software Discovery
- T1033 System Owner/User Discovery
- T1005 Data from Local System
- T1074.001 Local Data Staging
- T1560 Archive Collected Data

## Free detection (Splunk SPL, Microsoft KQL, Sigma)

**PamStealer Wavel Dropper - Script Editor Spawning Piped zsh -s and Staging Tools** (`TL-2026-7308-SPL-001`)

TL-2026-7308 (PamStealer Wavel variant): the compiled JXA lure opened in Script Editor decodes a 24,868-character base64 string and pipes it to /bin/zsh -s, then downloads, de-quarantines and ad-hoc signs helper binaries. Script Editor or osascript parenting a shell with -s, curl, xattr, codesign or launchctl is rare on healthy endpoints and is the earliest reliable execution signal of this chain. Same logic is provided as SPL, KQL and Sigma.

- **Languages:** Splunk SPL, Microsoft KQL, Sigma
- **ATT&CK:** T1204.002, T1059.002, T1059.007, T1059.004, T1140
- **Data sources:** crowdstrike_falcon_fdr_macos:ProcessRollup2, defender_for_endpoint_macos:DeviceProcessEvents, macos_endpoint_security:process_creation
- **Severity:** high
- **Confidence:** high

### Splunk SPL

````spl
index=edr sourcetype="crowdstrike:events:sensor" event_platform=Mac event_simpleName=ProcessRollup2 earliest=-24h@h
```PamStealer Wavel dropper: Script Editor or osascript parenting a piped shell or download and signing tooling```
(ParentBaseFileName="Script Editor" OR ParentBaseFileName="osascript")
((FileName IN ("zsh","sh","bash") CommandLine="* -s*") OR FileName IN ("curl","codesign","xattr","launchctl","nohup"))
| eval stage=case(match(FileName,"^(zsh|sh|bash)$"),"piped_shell_dropper", FileName="curl","payload_download", FileName="xattr","quarantine_strip", FileName="codesign","adhoc_sign", true(),"post_drop_exec")
| stats count min(_time) as first_seen max(_time) as last_seen values(stage) as stages values(CommandLine) as commands by ComputerName UserName ParentBaseFileName
| convert ctime(first_seen) ctime(last_seen)
````

### Microsoft KQL

```kql
DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName in~ ('Script Editor', 'osascript')
| where (FileName in~ ('zsh', 'sh', 'bash') and ProcessCommandLine endswith ' -s') or FileName in~ ('curl', 'codesign', 'xattr', 'launchctl', 'nohup')
| extend Stage = case(FileName in~ ('zsh', 'sh', 'bash'), 'piped_shell_dropper', FileName =~ 'curl', 'payload_download', FileName =~ 'xattr', 'quarantine_strip', FileName =~ 'codesign', 'adhoc_sign', 'post_drop_exec')
| project Timestamp, DeviceName, AccountName, Stage, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine
| order by Timestamp desc
```

### Sigma

```yaml
title: PamStealer Wavel Dropper - Script Editor Spawning Piped Shell or Staging Tools
id: 6a1f3c52-8d47-4b9e-a2c1-0e5b7d9f3a11
status: experimental
description: Detects Script Editor or osascript parenting a shell invoked with -s (base64 payload piped to zsh) or download, quarantine-removal, signing and launchctl tooling, as used by the PamStealer Wavel compiled JXA dropper (TL-2026-7308).
references:
  - https://www.jamf.com/blog/pamstealer-wavel-macos-infostealer/
  - https://intel.threadlinqs.com
author: Threadlinqs Team
date: 2026/12/02
tags:
  - attack.execution
  - attack.t1204.002
  - attack.t1059.002
  - attack.t1059.007
  - attack.t1059.004
  - attack.defense_evasion
  - attack.t1140
logsource:
  category: process_creation
  product: macos
detection:
  parent:
    ParentImage|endswith:
      - '/Script Editor'
      - '/osascript'
  child_shell:
    Image|endswith:
      - '/zsh'
      - '/sh'
      - '/bash'
    CommandLine|endswith: ' -s'
  child_tools:
    Image|endswith:
      - '/curl'
      - '/codesign'
      - '/xattr'
      - '/launchctl'
  condition: parent and 1 of child_*
falsepositives:
  - Administrators or developers testing AppleScript or JXA automation that shells out to curl or codesign
  - Legitimate software installers driven by osascript
level: high

```

**Known false positives:**

- Admins or developers running AppleScript/JXA automation from Script Editor that calls curl, codesign or a shell
- Software installers that use osascript to launch helper shells

**Tuning notes:** Index, sourcetype and field names assume CrowdStrike Falcon FDR for macOS; remap to your Jamf Protect or osquery feed if different. Allowlist known developer hosts running Script Editor automation. Keep the ' -s' shell condition as the high-fidelity core; the tool branch can be demoted to medium on noisy dev fleets.

### 8 more detection rules (Splunk SPL, Microsoft KQL, Sigma), unlock with TL Creds

- PamStealer Wavel Gatekeeper Bypass Staging - xattr -cr, Ad-hoc codesign and [indicator] in /tmp (locked: unlock with TL Creds)
- PamStealer Wavel Shell Persistence - .zshrc Repair Hook and Global Git core.hooksPath (locked: unlock with TL Creds)
- PamStealer Wavel C2 Key Exchange - /v1/loader/dek, [indicator] and [indicator] Fetch (locked: unlock with TL Creds)
- PamStealer Wavel Lure Delivery - [indicator], Compiled AppleScript Lures and Lure Hosts (locked: unlock with TL Creds)
- PamStealer MacClient Credential Theft - Keychain Unlock, Partition List Change and Browser Process Kill (locked: unlock with TL Creds)
- PamStealer Staging and Exfiltration - ditto Archive in /tmp, zip -T Validation and Single PUT with X-Upload-Token (locked: unlock with TL Creds)
- PamStealer Wavel Persistence - Fake Finder LaunchAgent, Repair Script and BTM Notification Suppression (locked: unlock with TL Creds)
- PamStealer C2 and Staging Infrastructure DNS - apple03cloudstore, avenger-sync, maccyapp (locked: unlock with TL Creds)

Sign up free to unlock the detection rules: https://threadlinqs.com/?modal=signup

## Sample indicators (3 of 30)

Defanged, TLP:CLEAR.

- Domain: `wavel[.]app`
- Domain: `y32me8[.]com`
- Domain: `wavel[.]apple03cloudstore[.]com`

Full set of 30 indicators unlocks with TL Creds: https://threadlinqs.com/tl-creds

## Sources

- [PamStealer adapts again: a move to Swift with a server-side decryption chain (Jamf Threat Labs)](https://www.jamf.com/blog/pamstealer-wavel-macos-infostealer/)
- [PamStealer: a Rust-based macOS infostealer that validates credentials through PAM (Jamf Threat Labs)](https://www.jamf.com/blog/pamstealer-macos-infostealer-applescript-rust/)
- [PamStealer macOS Malware Adds Live C2 (The Hacker News)](https://thehackernews.com/2026/09/pamstealer-macos-malware-adds-live-c2.html)
- [PamStealer Uses Fake Maccy Sites and PAM Checks to Steal Mac Login Passwords (The Hacker News)](https://thehackernews.com/2026/07/pamstealer-uses-fake-maccy-sites-and.html)
- [New PamStealer Variant Hides Its macOS Payload Behind a Live Server Key Exchange (WebProNews)](https://www.webpronews.com/evolved-pamstealer-macos-malware-gains-live-remote-access-capabilities/)
- [New PamStealer Malware Targets macOS Users via Fake Maccy Clipboard App (Hackread)](https://hackread.com/pamstealer-malware-macos-fake-maccy-clipboard-app/)
- [PamStealer mimics Maccy to harvest credentials (Cyber Security News)](https://cybersecuritynews.com/pamstealer-mimic-as-maccy-harvest/)

## Full data

The other 8 detection rules (Splunk SPL / Microsoft KQL / Sigma) unlock with TL Creds; a free account includes daily creds: https://threadlinqs.com/?modal=signup
Indicator values unlock with TL Creds, at a lower price on Red and Purple; AI agents can query rules and IOCs through the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account): https://intel.threadlinqs.com/mcp

Canonical: https://intel.threadlinqs.com/threat/TL-2026-7308
