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

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

On the blog

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.

Download free for Mac

More: all detection categories · what MacVigil detects · the blog