Mac Malware of 2019 Report
The Mac Malware of 2019 report details various Mac malware specimens and variants, including CookieMiner, a cryptominer that steals user cookies and passwords, likely to give attackers access to victims' online accounts and wallets; CookieMiner persists via launch agents and exfiltrates browser cookies to a remote C2 server.
The “Mac Malware of 2019” report provides a comprehensive analysis of new Mac malware specimens and variants that emerged throughout the year. It covers various aspects, including infection vectors, persistence mechanisms, and the ultimate goals of the malware. One notable example is CookieMiner, a cryptominer that also steals user cookies and passwords, potentially granting attackers access to victims’ online cryptocurrency accounts and wallets. The report also mentions other malware families like Yort, Siggen, BirdMiner, Netwire, Mokes.B, and GMERA, some attributed to the Lazarus Group. This report is important for defenders as it highlights the evolving threat landscape targeting macOS and provides actionable insights for detection and prevention.
Attack Chain
- Initial infection vector is unknown, but suspected to be third-party store downloads.
- The malware installs two launch agents via a shell script named
uploadminer.shto establish persistence. The script downloads property lists to~/Library/LaunchAgents. - The first launch agent (
com.apple.rig2.plist) persists a cryptocurrency mining binary namedxmrig2. - The second launch agent (
com.proxy.initialize.plist) executes inline python commands, including a base64 encoded chunk of data, achieving persistence. - The
xmrig2binary mines the Koto cryptocurrency, using the poolkoto-pool.work. - The malware steals cookies from Safari by copying the
Cookies.binarycookiesfile, zipping it, and exfiltrating it to46.226.108.171. The cookies are checked for cryptocurrency exchange association. - The malware downloads a Python script named
harmlesslittlecode.pyto extract saved login credentials and credit card information from Google Chrome. - Stolen data, including cookies and passwords, are used to bypass 2FA on cryptocurrency exchanges, granting attackers full control of victims’ accounts.
Impact
A successful CookieMiner infection can lead to significant financial loss for victims. By stealing cookies, passwords, and potentially SMS data, attackers can bypass multi-factor authentication on cryptocurrency exchanges and wallets. This allows them to drain accounts and make unauthorized transactions. The report does not specify the number of victims or the exact financial impact, but it highlights the potential for substantial damage.
Recommendation
- Monitor for the creation of launch agents in
~/Library/LaunchAgentsthat execute suspicious binaries or scripts, based on the persistence mechanism used by CookieMiner (Attack Chain steps 2-4). - Detect connections to known cryptocurrency mining pools, such as
koto-pool.work, used by thexmrig2miner (IOC: domain). - Implement the Sigma rule “Detect CookieMiner Cookie Stealing” to identify exfiltration of Safari cookie files to the C2 server
46.226.108.171(IOC: ip).
Detection coverage 2
Detect CookieMiner Cookie Stealing
highDetects the exfiltration of zipped Safari cookie files to the CookieMiner C2 server.
Detect CookieMiner Launch Agent Persistence
mediumDetects the creation of suspicious Launch Agent plists associated with CookieMiner persistence.
Detection queries are available on the platform. Get full rules →
Indicators of compromise
1
domain
1
ip
| Type | Value |
|---|---|
| ip | 46.226.108.171 |
| domain | koto-pool.work |