My Mac asked for my password to install a “helper”
If you pasted a command into Terminal, or ran a script, and then a window asked for your Mac password to install a helper or let an app make changes, that window was very likely a Mac infostealer. With your password it can open your Keychain, where your saved passwords live.
Updated
Do this first: turn off the Mac's Wi-Fi. From your phone, change your Apple Account password and your email password. Plan to erase the Mac: details below.
What the window was
Microsoft found campaigns that post fake fixes for common Mac problems, such as freeing disk space, on blog and note sites, with a command to paste into Terminal1. The command runs a stealer such as SHub, MacSync or AMOS1. (More on Atomic Stealer (AMOS) and other Mac stealers.) SHub then asks for your password, pretending to install a “helper”, and checks it's correct before going on1.
Jamf found another one sent as a script that opens in Script Editor. Its window reads, for example, “Maccy wants to make changes. Enter your password to allow this”, with your account name already filled in, and it keeps asking until the password is right. Then it shows a fake message that the app “is damaged and can't be opened”, so you throw the lure away and think nothing happened2.
What it took
The stealer Microsoft describes collects data from browsers, the Keychain, messaging apps and crypto wallets, plus documents under 2 MB, sends it out, and deletes its traces1. It also sets itself up to start again after a restart, and some versions replace wallet apps such as Exodus, Ledger Wallet and Trezor Suite with fake copies1. Assume every password saved in Safari, Chrome or the Keychain is known to the thief, along with your Mac's own password.
What to do now
- Turn off Wi-Fi on the Mac and don't log in to anything on it.
- From your phone or another clean device: change your Apple Account password, then your email's, and sign out of other sessions on both.
- Crypto first if you have any: make a new wallet on another device and move what's left. Don't open the wallet app on this Mac: it may be a fake copy now1. How.
- Then every other account saved in your browsers or Keychain: new password, sign out of all other sessions. The order that works.
- Erase the Mac. Back up your documents and photos (not apps), then System Settings › General › Transfer or Reset › Erase All Content and Settings3. This removes the stealer and anything it set to start again.
- After erasing: set a new Mac login password, install apps only from the App Store or their makers' sites, and change any password you missed.
Stop it happening again
- Never paste a command into Terminal from a web page, a blog post, a video or a chat, however helpful it looks1.
- A password window that appears after you ran something you downloaded is a red flag. Cancel it.
- Keep your Mac and browsers up to date, and the recovery phrase of any wallet off the Mac.
- Add a tripwire. ABA for macOS (early version) plants fake passwords, wallets and app logins and freezes a program that opens one. It isn't an antivirus and only catches stealers that open a bait.
Questions
The app said it was damaged and didn't open. Did anything happen?
Probably yes. In the case Jamf analysed, that “damaged” message appears only after the password is captured and the stealer is already running2.
I typed the password but cancelled the next window.
If the password was accepted, assume the stealer had what it needed. Follow the steps.
Can't I just delete the app or script?
No. The stealer sets itself up to start again after a restart, from files other than the one you ran1. Erasing the Mac is the reliable fix.
Sources
- Microsoft Security, ClickFix campaign uses fake macOS utilities lures to deliver infostealers (May 2026).
- Jamf Threat Labs, PamStealer: a Rust-based macOS infostealer that validates credentials through PAM.
- Apple Support, Erase your Mac and reset it to factory settings.
More guides
- A fake CAPTCHA told me to press Win+RA “verify you're human” page made you press Win+R, Ctrl+V, Enter: did it run, and what to do if it did.
- Crypto wallet drainedExodus, MetaMask or Phantom emptied without sharing the phrase: how stealers do it and how to save what's left.
- Changed my password and got hacked againThe four usual reasons an account is taken again after a password change, and how to close each one.
- What is an infostealer?What they take, how they get in, and why a stolen cookie gets past your password and 2FA.