Infostealer check: signs your Mac was hit and what to do now
You cannot prove a Mac is clean by looking at it, because some stealers leave nothing behind. So an infostealer check has two parts. Look for the known traces: an unexpected password prompt, an unfamiliar item that starts at login. Then replace your passwords, keys and sessions from a clean computer, whatever you find.
You are reading this because something made you doubt a download, a pasted command or an odd prompt. That is a reasonable thing to check, and the steps below are short. These attacks need you to start them and aim at credentials, session material and developer or cloud secrets, so the useful questions are what you ran and what the Mac could reach. For background, see what an infostealer is.
01What an infostealer check can and cannot tell you
Known stealers leave different traces. DigitStealer sets itself up as a LaunchAgent, a small background job macOS starts when you log in. AMOS has used a root LaunchDaemon, the same kind of job for the whole system. One AMOS variant has no persistence at all, and a stolen session can be used from the attacker's own machine without staying on yours.
So a clean-looking Mac is good news, not proof. A trace you do find is a stronger signal. Domains, file names and other published indicators change often, so the checks below name places to look instead of malware names. The details of AMOS are on the Atomic Stealer page.
02What you ran or saw
Start with your own memory, because that is the part no scanner has. Go through the list and mark each line that fits.
| If this happened | Why it matters |
|---|---|
| A password prompt in the middle of an install or a "fix" | AMOS paused the infection until the Mac showed a prompt for the account password, and a fake password dialog has been used too. |
| You pasted a command from a page, forum or AI chat | ClickFix tricks users into running commands that download malware, usually an information stealer. |
| A web page link opened Script Editor for you | One ClickFix attack launches Apple's Script Editor app through a web link. |
| You mounted a DMG from an ad, a fake app page or cracked software | A DMG is a disk image. DigitStealer, MacSync and AMOS all rely on this or on pasted commands. |
| Sign-ins or key use you do not recognize | GitHub suggests looking for logs or audit trails that show a secret being used. |
One item alone proves nothing. Two together, or one plus a download you regret, is the moment to move to the steps below.
03If macOS showed a warning
On macOS Tahoe 26.4, pasting some commands into Terminal shows "Possible malware, Paste blocked". The warning helps only if you do not click "Paste Anyway" too quickly. If you did paste anyway, treat the command as run and follow the steps below. On recent Tahoe versions Script Editor also shows an extra prompt before a script is saved and run. Read those prompts before you click.
04How to do a first infostealer check on a Mac
You do not need extra software to look for hidden malware. These three steps take a few minutes.
- Open System Settings and go to Login Items & Extensions. Remove anything you did not install on purpose.
- Open the two LaunchAgents folders, /Library/LaunchAgents and ~/Library/LaunchAgents, and read the names. Look in /Library/LaunchDaemons too, where system-wide background jobs sit. Names that look like Apple services deserve a second look, because AMOS used an Apple-style folder name.
- Write down what you ran in the last days: a DMG, an installer from an ad, a command from a page or a chat.
Apple's built-in scanner, XProtect, checks on first launch, when a file changes and after a signature update, and it blocks known malware. It works from signatures, and a scanner can miss a new sample. One DigitStealer sample was unsigned and undetected on VirusTotal, a site that runs files through many antivirus engines, when it was analyzed. A Banshee variant stayed undetected for over two months. A quiet scanner is not a verdict either.
05Replace what the Mac could reach
Do this even if the look above finds nothing. Security people call it rotating: you replace each password, key and session with a new one so the copied one stops working. Do it from a trusted system. That means a different computer that has not run the suspect download.
- Start with the accounts that lead to others: email, then cloud and code accounts.
- Change the passwords that were stored on the affected system and turn on two-step sign-in, also called MFA or 2FA, where you sign in with a password plus a second proof such as a code.
- Replace tokens. A token is a long string a service gives an app so it can act for you without your password. GitHub can revoke all your credentials at once from account settings. Steps for the account are on GitHub account hacked.
- For AWS keys, deactivate the old key first instead of deleting it at once, and read its Last used column. See AWS access key leaked for the full path.
- Look at where each key was used. GitHub's guidance asks whether logs or audit trails show the secret in use, and its validity checks show whether a detected secret is still active.
- Treat sessions like passwords. A stolen session lets an attacker act as you without your password, so end your active sessions and sign in again from the clean computer. The session hijacking page explains why.
One order caveat for developers. A malware family called Mini Shai-Hulud installs a monitor that polls GitHub every 60 seconds and tries to run rm -rf ~/, a command that deletes your home folder, when it sees an error caused by token revocation. If your Mac installed npm packages that might be affected, first look for the file ~/Library/LaunchAgents/com.user.gh-token-monitor.plist. If it is there, don't revoke GitHub tokens from any device until that program is stopped, because revoking is what sets it off. The steps are on the Shai-Hulud page.
06What to do with the Mac itself
If signs of a persistent backdoor or unusual activity remain, consider a full clean reinstall of macOS. Reinstalling alone does not remove apps or personal data, so a clean start means erasing the startup disk first, which Disk Utility in macOS Recovery can do. Back up your own files first, and do not reuse backups or Time Machine images that may be tainted. Copy documents by hand and leave apps and system files behind, because apps can be reinstalled from their official sources. The Time Machine restore page covers the restore side.
07What not to do
- Do not paste a cleanup command from a search result or a shared AI chat. That exact route installed AMOS after a search for "clear disk space on macOS".
- Do not run commands that download a script and run it in one step, even if a forum says they fix malware.
08When you can stop worrying
If you never mounted an unknown DMG, never pasted a command from a page or chat and saw no unexpected password prompt, you have no known entry point from the campaigns above. If you did, replace and review, then go on with normal care. A finished infostealer check ends with a short written list of what you changed, so you know what is already done. The Mac stealer table lists the families, and XCSSET covers the one that hides in Xcode projects.
For the next time, Artificial Immunity's free, open-source core watches program starts on your Mac and reports what it finds.
FAQ
How can I find hidden malware?
Start with the places stealers use to come back: Login Items & Extensions and the LaunchAgents folders. A stealer may also leave nothing, so a clean look does not prove a clean Mac.
How do I check if I got malware?
Ask what you ran. Known stealers arrive through a fake DMG or a command pasted into Terminal, and many ask for your account password. Then look at login items and launch folders, and check your accounts for sign-ins or key use you do not recognize.
How do you get rid of an infostealer?
Remove suspicious login items, LaunchAgents and LaunchDaemons, and consider a clean reinstall of macOS. Do not restore a backup that may be tainted. Then change every password stored on the machine and turn on two-step sign-in.
How do I know if I have spyware?
A stealer is one kind of data-stealing malware, and it may leave no trace. Use the same two steps: look for known traces and replace secrets from a trusted system.
Can I do an infostealer check without installing anything?
Yes. The built-in places to look are System Settings, Login Items & Extensions and the LaunchAgents folders. Apple's XProtect also scans on first launch, after a file changes and after a signature update.
Which accounts should I change first?
Change the ones that open other doors: your email, your cloud and code accounts and anything holding keys. Cloud and developer accounts are among the stealers' follow-on targets.
Related guides
Sources
- Microsoft Defender Experts, hunting infostealers on macOS
- Palo Alto Networks Unit 42, AMOS activity
- Jamf Threat Labs, DigitStealer
- Jamf Threat Labs, ClickFix and Script Editor
- Malwarebytes, poisoned AI chats spread AMOS
- Malwarebytes, Terminal paste warning
- Check Point Research, Banshee stealer
- Trend Micro, malicious agent skills spread AMOS
- Cursor, extension security notice
- Wiz, Mini Shai-Hulud
- Apple Support, Login Items
- Apple Support, launchd script management
- Apple Platform Security, malware protection
- Apple Support, reinstall and macOS Recovery
- Apple Support, macOS Recovery
- Microsoft Entra, token theft
- GitHub docs, token revocation
- AWS IAM docs, rotating access keys
- GitHub docs, remediating a leaked secret
- Artificial Immunity