Sub topic 2
What the Mac App Store review and sandbox give you
This chapter assumes you can use Finder and System Settings and know that an app, a .dmg disk image and a .pkg installer package are different things. The Terminal examples are optional. The previous chapter explained why the install source matters. This one looks at what the Mac App Store adds on top of the protections every Mac app gets.
Two layers: review and sandbox
The Mac App Store gives you two separate protections.
- App Review happens before an app is published. Apple staff and automated tools check each submission and each update.
- The App Sandbox applies while the app runs. macOS enforces it, whatever the developer intended.
The two layers fail in different ways, so it is worth keeping them apart.
What App Review checks
App Review compares each submission with Apple's published App Review Guidelines. The checks fall into five areas: safety, performance, business, design and legal. In practice that means reviewers look for:
- Crashes, obvious bugs and apps that do not do what their description says.
- Misleading or copied apps, including apps that imitate another product.
- Hidden or undisclosed functionality.
- Collection of personal data without a clear purpose and a privacy disclosure.
- Payment rules. Digital purchases go through Apple's in-app purchase system.
Developers must also enroll in the Apple Developer Program, which ties each app to an identifiable account. A rejected app never reaches you. An approved app that later turns out to be abusive can be removed from the store, and the developer's account can be terminated.
What review does not promise
Review is a filter, not a proof of safety.
- Reviewers cannot test every code path. Behavior that switches on weeks after approval, or only for certain users, can be missed.
- Review judges honesty and policy compliance. An app can pass review and still be a poor product, such as an overpriced subscription app or a thin copy of a free tool.
- Apps whose job is to look like something else, such as fake "cleaner" or "VPN" apps with aggressive subscriptions, have appeared on the store.
Treat the store as a lower-risk source, not a risk-free one. You still read ratings, the developer name and the privacy label.
What the App Sandbox enforces
Every Mac App Store app must opt in to the App Sandbox. It is a kernel-enforced policy that gives the app only the access listed in its entitlements. Entitlements are key-value pairs embedded in the app's code signature. Common ones include:
| Entitlement key | What it allows |
|---|---|
| `com.apple.security.app-sandbox` | Turns the sandbox on |
| `com.apple.security.network.client` | Outgoing network connections |
| `com.apple.security.files.user-selected.read-write` | Read and write only files you pick in an Open or Save dialog |
| `com.apple.security.device.camera` | Use of the camera, still subject to your permission prompt |
Without an entitlement, the kernel refuses the operation, even when the app's own code asks for it. The effects you see are:
- A private container. The app gets its own data folder at
~/Library/Containers/<bundle identifier>. It cannot read other apps' containers or most of your home folder. - Access by your choice. When an app needs a document, a system file picker (the "powerbox") runs outside the app. Only the files you choose are handed over.
- Limited reach into the system. A sandboxed app cannot install kernel extensions, write to system folders, or control other apps without a specific permission.
The sandbox limits damage if an app is malicious, and also if a legitimate app has a bug that an attacker exploits. It does not stop the app misusing what it was legitimately granted. A sandboxed app with network access and permission to read a folder you selected can still upload that folder's files.
Entitlements can be broadened
Developers can request extra entitlements, and Apple reviews them. Entitlements for broad file access are the most important to notice. Some apps, such as backup tools, have a real need for them. A simple app that asks for everything is a signal to look more closely.
Inspecting an App Store app yourself
You can check these properties from Terminal. Replace Example.app with an app you installed from the store.
spctl --assess --type execute --verbose=4 /Applications/Example.app
codesign -d --entitlements :- /Applications/Example.app
ls ~/Library/Containers | headThe first command reports where macOS gets its approval. For a store app the result looks like this:
/Applications/Example.app: accepted
source=Mac App StoreThe second command prints the entitlements as XML. Look for com.apple.security.app-sandbox set to true, then read the other keys to see what the app may do. The third command lists the containers of sandboxed apps on your Mac.
Store apps also contain a purchase receipt at Contents/_MASReceipt/receipt. macOS uses it to confirm the app came from the store for your Apple Account. An app that was copied from another Mac has no receipt for you, and the store version will ask you to sign in or purchase.
Practical consequences for you
- Single source of updates. Store apps update through the store, so you do not depend on each developer's own updater. The next chapters cover installing and updating.
- Cleaner removal. Because data lives in a container, removing a store app leaves less behind than a typical web-installed app.
- Refunds and subscriptions. Purchases are tied to your Apple Account. You can manage subscriptions in your account settings and request refunds through Apple's problem-report page.
- Permissions still apply. The sandbox is not a substitute for macOS privacy permissions. The camera, microphone, location and similar permissions still require your approval, and you can review them later in System Settings.
Exercises
Exercise
An app passed App Review and is sandboxed. Name one thing the sandbox does not prevent, and one thing it does.
Show answer
It does not prevent misuse of access the app was legitimately granted, for example uploading a folder you selected through a network entitlement. It does prevent access outside the granted entitlements, for example reading other apps' containers or files you never chose in a file picker.
Exercise
You run spctl --assess --type execute --verbose=4 on an app you installed from the store and see source=Notarized Developer ID instead of source=Mac App Store. What does that tell you?
Show answer
The copy on your Mac did not come through the Mac App Store. It is signed by the developer with a Developer ID and notarized by Apple, so it is probably a web download or a copy from another source. Apple's store review and the mandatory sandbox may not apply to it.