Get the free coreGet core

What is an infostealer? How it works and what it takes

Updated 5 min readSection 05 / Threats
SHORT ANSWER

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 takesWhere it sits
Browser passwords, cookies, autofill data and saved cardsBrowser profiles in Chrome, Edge, Safari and Firefox
Saved loginsThe Keychain, the macOS built-in store for passwords
Notes and documentsThe Notes app and your desktop and document folders
SSH keys, AWS credentials, Kubernetes config, shell historyDeveloper config files
API tokens, cloud credentials, signing keys, wallets, password manager filesDeveloper 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:

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.

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.

Sources

  1. Microsoft Defender Experts, hunting infostealers on macOS
  2. Palo Alto Networks Unit 42, macOS stealers
  3. Jamf Threat Labs, ClickFix and Script Editor
  4. Malwarebytes, poisoned AI chats spread AMOS
  5. Malwarebytes, Terminal paste warning
  6. Wiz, s1ngularity supply-chain attack
  7. Socket, wallet-stealing npm and PyPI packages
  8. Microsoft, Contagious Interview
  9. Trend Micro, malicious agent skills spread AMOS
  10. Apple Support, Gatekeeper
  11. Artificial Immunity
Running agents and installers on your Mac? Artificial Immunity watches the Mac where your agents work.Get the free core