Detections · Harmful behavior
Fake password prompts on a Mac: phishing from inside your computer
Many Mac stealers simply ask for your password. They draw a window that looks like a macOS system prompt, wait for you to type your login password and then use it to unlock your keychain or run commands as administrator. It works because people are used to typing that password whenever a Mac asks.
Updated November 25, 2026 · 49 detections in this category
In short
Password requests the program draws itself, outside the system's own authentication window.
MacVigil has 49 detections in this category. It reads the file to find them and never runs it.
What a fake password prompt is
macOS asks for your password in its own authentication window when an app needs administrator rights. A fake prompt is a dialog the program draws itself, worded like the system one, with a masked field. The attacker gains your account password, which opens your login keychain, lets commands run with sudo, and is often reused elsewhere. Stealers such as AMOS rely on this trick.
How Mac malware does it
- An AppleScript
display dialog … with hidden answer, worded “macOS needs to access System Settings” or similar, often shown again and again until something is typed. - A native window with a secure text field and a modal dialog styled as a system prompt.
- Checking the typed password against your account with
dscl . -authonlyorsudo -S, so a wrong answer can be asked for again. - Using the answer right away: piped to
sudo -Sto run a command as administrator, passed to a keychain unlock, or written to a file. - Sending the answer out in an HTTP request or to a messaging bot, sometimes after promising in the dialog that it stays on your Mac.
- Pressure tactics: killing user interface processes while the prompt loops, floating the dialog above a password manager window, or showing a fake “authentication failed” message.
- Lures that get you to run the prompt in the first place: a web page that copies a Terminal command to your clipboard and tells you to paste it, a “human verification” comment at the end of that command, a page that holds you and shows a number to call.
- Instruction files for AI coding assistants that tell the assistant to hide what it does from you or to ignore its earlier instructions.
What MacVigil looks for
MacVigil reads the file and never runs it. It looks for the masked prompt and then for where its answer goes: the same function that draws a system-worded dialog and addresses a bot API, a dialog answer that becomes the administrator password of a command, a typed password placed in the body of a network request, a function whose returned value is what gets piped to sudo.
A dialog with a hidden field on its own is not treated as theft: the phrase with hidden answer alone is recorded as a clue. Several combinations also require that no accountable publisher stands behind the program, and when the pieces are only separate mentions, MacVigil says so and does not claim they ran.
When it is normal
Installers and setup tools sometimes ask for a password in their own window and check it before continuing, and a password-change tool naturally handles old and new passwords. A signed installer from a known publisher asking once is different from an unsigned script that loops until you give in.
How to check your Mac
- Before typing your password, look at the app name next to the Apple menu. A request that appears while Terminal, Script Editor or an app you just opened from a disk image is in front deserves suspicion.
- Never paste a command into Terminal because a web page asked you to “verify” or “fix” something.
- If you typed your password into a prompt you now doubt, change your login password in System Settings > Touch ID & Password (Login Password on Macs without Touch ID), and change the passwords stored in your keychain from another device.
- Check System Settings > Users & Groups for administrator accounts you did not create.
Related categories
- Credential theft: What touches the places where passwords, keys and sessions are kept: keychains, browser profiles, wallets, SSH and cloud credentials.
- Privilege escalation: Ways to obtain administrator or root rights: sudo, authorization requests, setuid programs, account changes.
- Masquerading: A file that presents itself as something else: a misleading name, icon or extension, a label imitating Apple.
On the blog
- How to spot a fake macOS password prompt
- How a fake password window checks your answer
- A website asked you to paste a command in Terminal?
Know what a file does before you open it
MacVigil reads any app, disk image, installer or script without running it, and shows the evidence behind every finding. Nothing leaves your Mac.
Free for 7 days, then $29.95 a year for 2 Macs, a launch price: the regular price will be $59 a year. Requires macOS 15 Sequoia or later on a Mac with Apple silicon.
More: all detection categories · what MacVigil detects · the blog