Sub topic 1
Why the install source matters
Prerequisites
This chapter assumes you can use Finder, open the Applications folder, and find System Settings. You should know the difference between an app, a disk image (.dmg) and an installer package (.pkg). Terminal is optional here. It appears only in the exercise at the end.
The source decides who vouches for the software
Every app you install comes from somewhere, and that source decides who has checked it before it reaches you. macOS offers two main routes, and they give different guarantees.
- Mac App Store: Apple reviews each app and its updates, and the app runs inside a restricted environment called the app sandbox. Apple distributes the app and its updates.
- The web: The developer, or someone pretending to be one, distributes the file. Apple does not review the app by hand. macOS checks only whether the developer signed it and whether Apple's automated scan approved it.
Neither route is perfectly safe. They differ in how much checking happens before you click Install, and how much is left for you to do.
Comparing the two routes
| Question | Mac App Store | Web download |
|---|---|---|
| Who reviews it? | Apple, before release | Nobody by hand. Apple scans notarized apps automatically |
| Is it sandboxed? | Yes, required | Optional. The developer chooses |
| Who delivers updates? | The App Store | The app itself, or you download again |
| Who finds the file? | Apple's catalog | You, through a search or a link |
| Main risk | Misleading apps or excess permissions | Fake sites, tampered files, malware |
The last row matters most. In the App Store you cannot easily land on a lookalike. On the web, much of the risk comes from picking the wrong site before any macOS protection runs.
The layers macOS adds for web downloads
An app from the web passes through several checks. This tutorial covers each in its own chapter. Here is how they connect.
Code signing proves who built the app and that it has not changed since. Notarization is Apple's automated scan of the signed app. The quarantine attribute marks the file as downloaded. Gatekeeper uses these facts at first launch. XProtect looks for known malware.
What these checks cannot tell you
A valid signature says who signed the app. It does not say the developer is trustworthy. Malware authors can obtain Developer ID certificates, and Apple revokes them only after the abuse is found. Notarization also does not guarantee an app is harmless. It means Apple's automated scan found no known malicious content at that time.
Some downloads skip quarantine. Files fetched with curl, or by some tools, may carry no quarantine attribute, so Gatekeeper does not check them at first launch.
A practical rule of thumb
- Check the Mac App Store first.
- If the app is not there, find the developer's official site.
- Verify the download before you run it.
- Review the permissions it asks for.
The rest of the tutorial follows this order.
Exercise
A friend sends you a link to a free video editor. The page is not the developer's official site, and the file is a .dmg. List two reasons the Mac App Store route would give you more protection, and name one macOS check that could still help if you download the .dmg. You can use xattr -l ~/Downloads/Example.dmg to see whether the file is marked as downloaded.
Show answer
In the App Store, Apple reviews the app and its updates, and the app runs in the sandbox. You also avoid lookalike sites. For the .dmg, Gatekeeper checks the signature and notarization at first launch, but only if the file carries the quarantine attribute (com.apple.quarantine), which xattr -l shows. Gatekeeper cannot tell you whether the site was the right place to download from.