CookieMiner is a macOS-focused information-stealing malware associated with theft of browser-stored data and cryptocurrency-related targeting. It is known for stealing Google Chrome credentials, including saved usernames, passwords, and payment card data, as well as browser cookies from Google Chrome and Apple Safari. By harvesting cookies in addition to credentials, it can facilitate abuse of authenticated web sessions. CookieMiner has also been observed collecting iPhone text messages from local iTunes backup data, indicating broader theft of user information beyond browser artifacts.
The malware includes multiple defense-evasion and anti-analysis behaviors. It checks for the presence of Little Snitch, a macOS network monitoring and firewall product, and terminates execution if it detects that software. It also uses Base64 encoding to obfuscate scripts and performs browser decryption and extraction operations to access protected Chrome data.
For persistence, CookieMiner installs multiple Launch Agents on macOS, including to support continued operation of cryptocurrency-mining components. It has also been observed exfiltrating stolen data over HTTP using command-line upload functionality. Overall, CookieMiner is best characterized as a macOS infostealer with credential theft, cookie theft, persistence, defense evasion, and data exfiltration capabilities, with notable overlap between information theft and cryptocurrency-motivated activity.
19 distinct techniques documented for this family, organized by ATT&CK tactic.
[CookieMiner](https://attack.mitre.org/software/S0492) has used a Unix shell script to run a series of commands targeting macOS.(Citation: Unit42 CookieMiner Jan 2019)
[CookieMiner](https://attack.mitre.org/software/S0492) has used python scripts on the user’s system, as well as the Python variant of the [Empire](https://attack.mitre.org/software/S0363) agent, EmPyre.(Citation: Unit42 CookieMiner Jan 2019)
[CookieMiner](https://attack.mitre.org/software/S0492) has installed multiple new Launch Agents in order to maintain persistence for cryptocurrency mining software.(Citation: Unit42 CookieMiner Jan 2019)
[CookieMiner](https://attack.mitre.org/software/S0492) has installed multiple new Launch Agents in order to maintain persistence for cryptocurrency mining software.(Citation: Unit42 CookieMiner Jan 2019)
"Action RAT's commands, strings, and domains can be Base64 encoded within the payload." / "ADVSTORESHELL... strings... encrypted with an XOR-based algorithm; some strings are also encrypted with 3DES and reversed." / "APT29 has used encoded PowerShell commands." / "APT41 used VMProtected binaries..."
[CookieMiner](https://attack.mitre.org/software/S0492) has used base64 encoding to obfuscate scripts on the system.(Citation: Unit42 CookieMiner Jan 2019)
[CookieMiner](https://attack.mitre.org/software/S0492) has used Google Chrome's decryption and extraction operations.(Citation: Unit42 CookieMiner Jan 2019)
[CookieMiner](https://attack.mitre.org/software/S0492) has checked for the presence of "Little Snitch", macOS network monitoring and application firewall software, stopping and exiting if it is found.(Citation: Unit42 CookieMiner Jan 2019)
[CookieMiner](https://attack.mitre.org/software/S0492) can steal Google Chrome and Apple Safari browser cookies from the victim’s machine. (Citation: Unit42 CookieMiner Jan 2019)
Agent Tesla can gather credentials from a number of browsers... APT33 has used a variety of publicly available tools like LaZagne to gather credentials... TrickBot can obtain passwords stored in files from web browsers such as Chrome, Firefox, Internet Explorer, and Microsoft Edge... SELECT action_url, username_value, password_value FROM logins; CryptUnprotectData
[CookieMiner](https://attack.mitre.org/software/S0492) can steal saved usernames and passwords in Chrome as well as credit card credentials.(Citation: Unit42 CookieMiner Jan 2019)
[CookieMiner](https://attack.mitre.org/software/S0492) has looked for files in the user's home directory with "wallet" in their name using <code>find</code>.(Citation: Unit42 CookieMiner Jan 2019)
[CookieMiner](https://attack.mitre.org/software/S0492) has checked for the presence of "Little Snitch", macOS network monitoring and application firewall software, stopping and exiting if it is found.(Citation: Unit42 CookieMiner Jan 2019)
[CookieMiner](https://attack.mitre.org/software/S0492) has retrieved iPhone text messages from iTunes phone backup files.(Citation: Unit42 CookieMiner Jan 2019)
CORALDECK has exfiltrated data in HTTP POST headers.
[CookieMiner](https://attack.mitre.org/software/S0492) can download additional scripts from a web server.(Citation: Unit42 CookieMiner Jan 2019)
Agent Tesla has routines for exfiltration over SMTP, FTP, and HTTP.
Rclone can exfiltrate data over FTP or HTTP, including HTTP via WebDAV.
[CookieMiner](https://attack.mitre.org/software/S0492) has used the <code>curl --upload-file</code> command to exfiltrate data over HTTP.(Citation: Unit42 CookieMiner Jan 2019)
[CookieMiner](https://attack.mitre.org/software/S0492) has loaded coinmining software onto systems to mine for Koto cryptocurrency. (Citation: Unit42 CookieMiner Jan 2019)
23 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.