Sub topic 4
Vetting a website and download link
This chapter assumes you can use Finder and a browser, know the difference between an app, a .dmg disk image and a .pkg installer, and can open Terminal for the optional command. The checks here happen before you download anything. Later chapters cover what macOS checks after the file arrives.
Why vet before you download
Gatekeeper and XProtect protect you, but they only see the file after it is on your Mac. They can't tell you whether you picked the right website. A fake site can offer a real-looking installer, and some malware is signed with a valid certificate. If you pick the wrong source, you can no longer fully rely on the later checks. Your first job is to find the developer's real distribution point.
Find the official source
Start from something the developer controls, not from a search result. Good starting points:
- The "Developer Website" link on the app's Mac App Store page.
- The project's repository page, such as its GitHub page, when it links to its own site.
- Documentation or a tutorial from an organization you already trust.
- A link on the developer's verified social profile or in an email you requested.
Be careful with search engine ads. Scammers buy ads that appear above the real result for names like "Example app download". Ads are usually labeled "Sponsored", but the label is easy to overlook. If you search, skip the ads and compare the domain with a second source.
Read the domain correctly
The part of the address that identifies the owner is the registered domain. It sits immediately before the first single /, and it is the last two (sometimes three) labels of the hostname. Everything to the left of it is a subdomain that the owner can set to anything.
| Address | Who actually controls it |
|---|---|
| `https://example.com/download` | example.com |
| `https://downloads.example.com/app` | example.com (subdomain) |
| `https://example.com.get-app.biz/app` | get-app.biz, which only imitates example.com |
| `https://example-download.com/app` | An unrelated site with a similar name |
| `https://exarnple.com/app` | Lookalike spelling ("rn" instead of "m") |
Watch for these tricks:
- Extra words such as
-download,-officialor-freeattached to a known name. - Different top-level domains, such as
.coor.appinstead of.com. - Misspellings and lookalike characters.
- Addresses with an
@, where the real host comes after it. Inhttps://[email protected]/, the host isevil.test.
Treat the padlock as encryption only
A padlock or "https" means your connection to the site is encrypted and the site holds a certificate for its own domain. It doesn't mean the site is honest. Criminals get free certificates for lookalike domains. Use HTTPS as a minimum requirement and never as proof of trust.
Inspect the link itself
Before you click a download button, hover over it and read the address that Safari shows in the status bar at the bottom of the window. Compare it with the page you are on. Legitimate downloads often come from a different host than the main site. Content delivery networks, GitHub release pages and cloud storage are common. A different host is a prompt to verify, not a verdict.
Ask three questions:
- Does the download host belong to the developer or to a well-known service?
- Does the developer's own site link to that host?
- Does the file name and type match what the site promised?
You can look at a link without downloading the file. This command asks the server for headers only and follows redirects:
curl -sIL https://example.com/download/Example.dmg | grep -iE '^(HTTP|location|content-type|content-length)'Replace the address with the one you want to inspect. The output lists each redirect (location), the final status, the file type and the size. Signs of trouble include a redirect chain through several unrelated domains, an HTML page where you expected a disk image, or a size of a few kilobytes for an app that should be hundreds of megabytes.
Corroborate independently
Never rely on the site to vouch for itself. Cross-check with at least one source that the site's owner can't edit:
- The app's Mac App Store listing, if one exists, shows a developer name and website. Compare both with the site you're on.
- Independent documentation, a reputable news or review site, or a well-known open source project page should link to the same domain.
- The developer's name in the macOS signature should match the publisher on the site. Later chapters show how to read it with
codesign. - Check how long the site and project have existed. A brand-new domain for a long-established app is suspicious.
Be wary of reviews on the vendor's own page. They are easy to fake. Prefer discussion on neutral platforms, and look at who is posting and when.
Compare sources by trust
Not every source needs the same effort. The table ranks common situations.
| Source | Typical risk | What you should do |
|---|---|---|
| Mac App Store | Lowest, because Apple reviews and sandboxes apps | Check the developer name matches the product |
| Developer's own site, reached from a trusted link | Low to moderate | Check the domain, then verify the file |
| Open source release page | Low to moderate | Use the project's official repository link, prefer checksums |
| Search result or ad | Moderate to high | Confirm the domain through a second source |
| Download aggregator or "free" bundle site | High | Avoid, go to the developer directly |
| Link in a message or pop-up | High | Don't use it, navigate yourself |
A repeatable decision flow
Edge cases
- Legitimate third-party hosts. Many real developers distribute through GitHub, cloud buckets or a CDN, so a different hostname isn't suspicious by itself. The test is whether the developer's own site points to it.
- Mirrors. Some open source projects list official mirrors. Use a mirror only if it appears on the project's own site, and verify the file with the checksum published there.
- Redirects after sign-up. Some vendors send a download link by email. That is normal, but check that the email's link host matches the vendor's domain.
- Fake support pages. If a page tells you to paste a Terminal command to "fix" or install something, stop. You should only run commands you understand and that came from documentation you found yourself.
Exercise
You search for "Example app download" and the top result, marked "Sponsored", leads to https://example.com.get-app.biz/mac. Which domain controls the page, and what should you do before downloading?
Show answer
The page is controlled by get-app.biz. example.com is only a subdomain label placed to look familiar. Do not download. Find the developer's website from an independent source, such as the app's Mac App Store page or the project's documentation, and confirm the domain there.
Exercise
A developer's official site sends you to https://downloads.cdn-host.test/Example.dmg. Does the different host mean the download is unsafe? Name two checks that would settle the question.
Show answer
No. Many real developers use content delivery networks or release hosting. Check whether the developer's own site links to that host, and inspect the headers or file (for example with curl -sIL) to confirm the file type and size match what you expect. You can then verify the checksum and signature after downloading.