Sub topic 5
Warning signs of fake sites and malicious installers
This chapter assumes you know the difference between an app, a disk image (.dmg) and an installer package (.pkg). It also assumes you have read the chapter on vetting a website and download link. Here you learn to spot the patterns that fake sites and malicious installers share, so you can stop before you run anything.
Why the signs matter
Gatekeeper and XProtect catch a lot, but they are not the only line of defense. Attackers know this and try to get you to bypass the checks yourself. A fake site does not need to break macOS if it can persuade you to override a warning. Most of the signs below are about that persuasion.
Signs on the website
- A lookalike address. Examples are
exarnple.comforexample.com, an extra word such asexample-download.com, or an unusual ending such as.xyz. Type the developer's address yourself or follow a link from a source you already trust. - Sponsored search results. Fake sites often buy ads that appear above the real result. Check the address under the ad before you click.
- Pressure and urgency. Messages such as "Your Mac is infected" or "Update now or lose your data" are scare tactics. Real developers do not show these in a browser tab.
- Pirated software. "Cracked" versions of paid apps are a common way to spread malware. The crack itself often asks for your password.
- A download that does not match the page. You expect a .dmg of the app, but the file is a .zip, a script, or a tiny installer that downloads more files.
Signs in the installer
- Instructions to bypass protection. The disk image contains a picture telling you to right-click and choose Open, drag a file to Terminal, or turn off Gatekeeper. Legitimate apps do not require this.
- Terminal commands you did not ask for. A page that tells you to paste a command into Terminal, especially one that pipes a download into
shorbash, is a red flag. You cannot see what it will do. - Repeated password prompts. An installer may need an administrator password. An ordinary app you drag into Applications should not.
- Unexpected extras. The installer adds browser extensions, changes your search engine, or installs "helper" tools you did not choose.
- A signature that does not fit. Use the checks from the signature chapter. The signer should match the developer you expected, and
spctlshould not report a rejection.
spctl --assess --type execute --verbose=4 /Applications/Example.appA result of rejected means macOS would not allow the app. Do not work around it unless you are sure of the source.
A quick decision flow
If you already ran it
If you suspect you ran a malicious installer, disconnect from the network, and change important passwords from a different device. Then remove the app and run a full update of macOS so XProtect has its latest rules.
Exercise
A disk image shows a picture telling you to paste a Terminal command so the app can "get past macOS security". Name two warning signs and say what you should do.
Show answer
The instruction to bypass macOS protection and the request to run an unexplained Terminal command are both warning signs. Do not follow them. Delete the disk image, and check the site address and the developer's official page before trying again.