Sub topic 1
Why the install source matters
Every app you install runs with your user account's privileges. It can read your files, use your network connection, and ask for access to your camera or contacts. Where the app came from decides how much you can know about it before it runs. This chapter explains the two main sources on macOS and what each one guarantees. It also sets up the rest of the tutorial.
Prerequisites
This chapter assumes you can do the following:
- Use Finder, the Applications folder, and System Settings.
- Tell an app (
.app) from a disk image (.dmg) and from an installer package (.pkg). - Open Terminal and run a command. This is optional and only matters for the later command-line chapters.
No earlier chapter is required, because this is the first one.
The core idea: trust is established before the app runs
When you open an app, macOS cannot read the developer's intentions. It can only check evidence. The evidence differs by source:
- Who made the app, and can that claim be verified?
- Has anyone examined the app before you got it?
- Has the app changed since it was examined?
- Can the app be stopped or removed if it turns out to be harmful?
The Mac App Store and the open web answer these questions in different ways. Neither answer is "the app is safe." They are different sets of guarantees, each with limits.
Two trust models
The Mac App Store
Apple distributes every App Store app. Developers submit their builds to Apple, and Apple reviews them before they are published. Apple also requires App Store apps to run in the app sandbox. The sandbox is a set of restrictions that limit what an app can touch. A sandboxed app declares the capabilities it needs, such as network access or the Downloads folder. By default, it cannot reach beyond those capabilities.
What this gives you:
- A single, well-known place to get software, so you are unlikely to land on a fake copy.
- A review step before publication.
- Limits on what the app can do, enforced by macOS and not by the developer's goodwill.
- Updates delivered through the same channel, which you can manage in one place.
- A simple removal path, because the app lives in one bundle.
What it does not give you:
- A guarantee that the app is good, honest, or free of unwanted behavior. Review is not an audit of the source code.
- Every app you may want. Some developers do not publish there, because the sandbox rules out features they need.
The web
When you download an app from a developer's website, no central review happens before you get it. Apple does not host the file, so a download is only as trustworthy as the site and the link that served it. macOS adds its own layers on top:
- Code signing proves which developer built the app and that it has not been altered since.
- Notarization is an automated scan by Apple of software signed by a developer. Apple issues a ticket if the scan passes.
- Quarantine is a flag that macOS places on files that arrive from the internet.
- Gatekeeper is the check that reads these signals the first time you open a quarantined app.
- XProtect is Apple's built-in malware detection, which updates in the background.
Later chapters cover each of these in detail. For now, note that they are all checks on the file. None of them make the website itself trustworthy. If you start at a fake site, you may download a perfectly signed file that is still the wrong software.
Comparing the sources
| Question | Mac App Store | Developer website |
|---|---|---|
| Who distributes the file? | Apple | The developer, or whoever controls the site |
| Is there a review before you get it? | Yes, App Review | No review of the app by a person at Apple. Notarization is an automated scan. |
| Is the app sandboxed? | Required | Optional |
| How do you find updates? | The App Store | The app's own updater, or a manual download |
| What is your main risk? | Misleading or low-quality apps | Fake sites, tampered downloads, and unsigned apps |
| Can you verify the download yourself? | Not needed in normal use | Yes: checksum, `codesign`, `spctl`, `pkgutil` |
How the checks fit together on the web
The following diagram shows the path a web download takes. Each step either adds evidence or stops the app from opening.
Step A is the only one you control before the file exists. This is why the tutorial spends time on vetting sites before it spends time on the technical checks.
What each layer can and cannot tell you
A signature tells you who built the app. It does not tell you whether that developer is trustworthy. Criminals can also enroll as developers, though Apple can revoke their certificates. Notarization tells you that Apple's automated scan found no known malware at that time. It does not tell you the app respects your privacy. Gatekeeper only runs its check when a quarantined file is first opened, so it does not watch an app that is already running.
For these reasons, safe installation combines three habits:
- Prefer the most controlled source that offers the app.
- Confirm that a website and link are the real ones before you download.
- Let macOS checks run, and add your own verification when the app is sensitive.
A quick look at the evidence on your own Mac
You can see the difference between sources by inspecting an app you already have. Run these in Terminal. Replace Example with a real app name.
spctl --assess --type execute --verbose=4 /Applications/Example.appFor an App Store app, the output reports the source as Mac App Store. For a web download that passed notarization, it reports Notarized Developer ID. An app that fails the assessment is reported as rejected. This is one command that shows you which trust model an installed app falls under.
You can also check whether a file you downloaded is still marked as coming from the internet:
xattr -l ~/Downloads/Example.dmgIf the output includes com.apple.quarantine, macOS will apply Gatekeeper's checks when you first open it.
Choosing a source: decision criteria
Use these questions in order:
- Is the app on the Mac App Store, and does that version have the features you need? If so, start there. You get review, sandboxing, and managed updates.
- If not, does the developer have an official website you can reach from a trusted route? Use the developer's own site, reached from a link you trust, such as a bookmark or the official product page linked by a source you already know.
- Is the software sensitive, such as a password manager, VPN, or disk tool? Verify the download more strictly, with a checksum and a signature check.
- Is the only source a third-party download site, a forum link, or a file shared by a stranger? Treat this as a warning sign. Look for the official source instead.
Common errors in thinking about trust
- "It's from the App Store, so it has no risk." App Store apps can still collect data you would prefer not to share, or be poor value. Review the permissions they request.
- "It's notarized, so it's safe." Notarization is an automated malware scan. It is not an endorsement.
- "macOS opened it without a warning, so it's fine." An app that is not quarantined, for example one copied from a USB drive, may skip Gatekeeper's first-launch check.
- "The site looks professional." Copying a site's appearance is easy. Check the address and where the link came from.
Exercise
You find a popular editing app both on the Mac App Store and as a download from the developer's website. The website version has an extra feature you need. Name two trust differences between the two versions and one step you take before running the website version.
Show answer
The App Store version has been through App Review and must run in the app sandbox. The website version has no pre-publication review of the app and is not required to be sandboxed, though it can still be signed and notarized. Before running the website version, confirm the site is the developer's official one. Then optionally verify the download with a checksum or codesign, and let Gatekeeper complete its first-launch check.
Exercise
You run spctl --assess --type execute --verbose=4 /Applications/Example.app and the source is Notarized Developer ID. Which trust model does the app follow, and what does that result not tell you?
Show answer
It follows the web (Developer ID) model. The result means the app is signed by an identified developer and passed Apple's automated notarization scan. It does not tell you the developer is trustworthy, that the app respects your privacy, or that the site you downloaded it from was legitimate.