What is an infostealer? How it works and what it takes
An infostealer is a program that copies the logins, browser sessions, keys and crypto wallets stored on your computer and sends them to an attacker. You usually have to start it yourself, for example by opening a fake installer or pasting a command into Terminal. If you think one ran, replace what it could reach, working from a different, clean computer. The steps are on the infostealer check page.
An infostealer does one job: it finds secrets on a machine and sends them to someone else. The secrets are passwords, the proof that you are signed in, and the keys developers use for servers and code. With them an attacker can take over accounts, steal money and reach cloud and developer accounts. This page covers what it takes, how it gets onto a Mac and what happens to the stolen data.
01What it takes from your Mac
| What it takes | Where it sits |
|---|---|
| Browser passwords, cookies, autofill data and saved cards | Browser profiles in Chrome, Edge, Safari and Firefox |
| Saved logins | The Keychain, the macOS built-in store for passwords |
| Notes and documents | The Notes app and your desktop and document folders |
| SSH keys, AWS credentials, Kubernetes config, shell history | Developer config files |
| API tokens, cloud credentials, signing keys, wallets, password manager files | Developer machines, in campaigns aimed at developers |
Wallets, keystores, SSH keys and .env files (plain text files where projects keep keys) | Searched on Linux and macOS by the s1ngularity payload, a malicious npm package |
A browser session matters as much as a password: cookies and session tokens can later be used to take over an account. A token is a digital key a site gives your browser or app so it does not ask for your password on every click.
02How an infostealer gets onto a Mac
It needs you to run something. Since late 2025 the campaigns arrive through ClickFix prompts and malicious DMG downloads. A DMG is a disk image, the usual file for installing a Mac app. ClickFix is a trick where a web page tells you to copy a command and paste it into Terminal, and that command downloads the malware.
The lures look ordinary:
- A fake installer, such as a fake DMG reached through a chain of redirects.
- A sponsored search result or fake GitHub page that impersonates Mac software.
- A shared AI chat pushed to the top of a search for "clear disk space on macOS", which ends in a Terminal command.
- A cracked app or a fake "macOS toolkit" page.
- A package or editor extension that claims to be a developer tool. npm and PyPI packages have stolen seed phrases and private keys, and a fake Solidity extension in Cursor cost one developer about $500,000 in crypto.
- A malicious agent skill, a file of instructions that an AI agent reads. AMOS moved from cracked software to attacks on AI agent workflows.
Gatekeeper is the macOS check that downloaded apps are signed by a registered developer and checked by Apple for known malware. You can override it. DigitStealer, MacSync and AMOS all depend on persuading you to mount an unsigned DMG or paste a command. Watch for the moment you are asked to do that.
03The fake password prompt
Many of these installers ask for your Mac password. In one AMOS case the infection did not go on until the Mac showed a prompt for the user's password. In another route a fake password dialog, shown after an agent skill gives fake setup steps, tricks the user into typing it. Stealers on macOS often use Apple's scripting framework, AppleScript, to draw fake system prompts that collect credentials.
04It may leave nothing behind
Some stealers set themselves up to start again after a restart, which security people call persistence. DigitStealer uses a LaunchAgent, a small background job that macOS starts when you log in. AMOS has also been seen with the system-wide version, a root LaunchDaemon. Others skip it: one AMOS variant has no persistence, and a stolen session can be used by the attacker without staying on your Mac. In one AMOS campaign the attackers had a lasting remote link to the Mac within minutes of the first click.
So an empty Login Items list does not prove that nothing ran. What matters is what the malware could read while it ran. The session hijacking page explains why a stolen browser session is enough.
05What the stolen data is used for
Stolen browser data, cookies and session tokens are later used for account takeovers, data breaches and ransomware. They also fuel supply chain attacks, which enter through software you rely on. A stealer can be the first step to ransomware. Cloud and developer accounts are among the follow-on targets, and cryptocurrency theft is one of the results.
06How to lower the odds
Most of the defense is one habit: do not run what a page tells you to run.
- Do not run commands copied from random pages or forums, including ones that download a script and run it in one step.
- Look for macOS fixes in Apple's own documentation.
- Avoid unsigned DMGs and unofficial "terminal fix" tools.
- Keep secrets in a vault, such as a password manager or a secrets service, and use short-lived credentials instead of long-lived tokens in
.envfiles.
07If you think one ran
You do not need to prove it first. Replace the passwords, keys and sessions that the Mac could reach, and do it from a trusted computer, not from the Mac in question. The order of steps is in the check list. If a key has already leaked, start with leaked API key.
The families are listed in the Mac stealer table. Two have their own pages: Atomic Stealer, also called AMOS, and XCSSET, which hides in Xcode projects. Fake developer jobs are another route, covered in fake job interview malware.
A stealer has to start on your Mac before it can copy anything; Artificial Immunity's free, open-source core watches program starts and reports what it finds.
FAQ
What is an infostealer?
An infostealer is malware built to copy credentials, session material and secrets from a machine. Its targets include browser data, cookies and session tokens.
What does an infostealer steal?
On Macs the reports list Keychains, browser credentials and sessions, Apple Notes and documents, plus SSH keys, AWS credentials and Kubernetes config. Developer-targeted campaigns also take API tokens, cloud credentials, signing keys and crypto wallets.
How does an infostealer get on a Mac?
Mostly because the user starts it. These attacks rely on user interaction, through ClickFix prompts and malicious DMG downloads.
Can an infostealer attack a Mac without you doing anything?
DigitStealer, MacSync and AMOS all needed the user to mount an unsigned DMG or paste a command. That action is the part you can control.
Does an infostealer stay on the machine after it has stolen your data?
Not always. Stolen credentials and sessions can be used without persistence on the original system, and one AMOS variant has no persistence.
What should you do if you think an infostealer ran?
Replace credentials and sessions from a trusted system. The step-by-step list is on the infostealer check page.
Related guides
Sources
- Microsoft Defender Experts, hunting infostealers on macOS
- Palo Alto Networks Unit 42, macOS stealers
- Jamf Threat Labs, ClickFix and Script Editor
- Malwarebytes, poisoned AI chats spread AMOS
- Malwarebytes, Terminal paste warning
- Wiz, s1ngularity supply-chain attack
- Socket, wallet-stealing npm and PyPI packages
- Microsoft, Contagious Interview
- Trend Micro, malicious agent skills spread AMOS
- Apple Support, Gatekeeper
- Artificial Immunity