File quarantine is the macOS record that software arrived from elsewhere. Gatekeeper uses it to check a downloaded app, plug-in, or installer on first open: whether it has an identified developer, whether Apple notarised it, and whether it was altered. You are asked to approve the first open. By default, all software in macOS is checked for known malicious content on first open regardless of how it arrived. The mechanism is a prompt and a check, not a general malware scanner, and it can be overridden or switched off.
What it is
Gatekeeper tracks the provenance of files written by downloaded software. The practical marker is an extended file attribute called com.apple.quarantine, which records that a file came from outside the Mac rather than being created locally. When you open a downloaded app, plug-in, or installer, that attribute is what brings Gatekeeper into the path. Quarantine itself does not decide anything about the software; it is the mechanism that makes Gatekeeper apply its first-open checks to files that arrived this way. Since 18 February 2025, the attribute must be removed from all files in macOS apps uploaded to TestFlight or the App Store, so it also matters in app packaging and submission.
How it works
On first open of a quarantined item, Gatekeeper looks for three things: an identified developer, Apple notarisation, and alteration of the software. It then asks for your approval before the downloaded software opens for the first time. That approval is a user decision, not a silent pass: the point is to make you confirm that you intend to run software that came from elsewhere. Independently of quarantine, by default all software in macOS is checked for known malicious content on first open, no matter how it arrived. Users can override Gatekeeper policies unless device management imposes restrictions, and Gatekeeper can be turned off entirely. Both are possible, which means the prompt is a safeguard you can choose to set aside, not a barrier that cannot be crossed.
What it means in practice
For everyday use, quarantine explains the first-launch dialog you see after downloading an app. It is worth reading rather than clicking through, because the information presented reflects the checks Gatekeeper performed. For developers, the 18 February 2025 requirement means an app uploaded to TestFlight or the App Store must have com.apple.quarantine removed from all of its files; leftover attributes can interfere with submission. In managed environments, device management can remove the usual option to override policies, changing what a user is allowed to approve. Keep in mind that after the first approved open, the quarantine prompt is no longer the gate it was — the check happens at that first-open moment.
Limits and misconceptions
Quarantine is a Gatekeeper mechanism, not a general malware scanner. Apple’s checks cover known malware and signing issues, which is narrower than analysing everything software might do. Passing the check is not a statement that an app is harmless, and the first-open prompt is not a deep inspection of the code. Removing the com.apple.quarantine attribute or overriding the warning bypasses a safety prompt, and that is a security trade-off rather than a harmless cleanup step. Turning Gatekeeper off removes the check altogether. The honest boundary is this: quarantine makes sure downloaded software is examined and confirmed at first open, and gives you a decision point. It does not promise that software is free of malicious behaviour, and it does not keep watching after that decision.
Related software
For readers who want a tool in this area, Santa — binary and file access authorization system. It is a related utility, not a replacement for the macOS behaviour explained above.
Sources
- Apple Support: Gatekeeper and quarantine in the macOS security guide
- Apple Developer: Upcoming app submission requirements
Frequently Asked Questions
Is file quarantine a malware scanner?
No. It is a Gatekeeper mechanism: Apple checks known malware and signing issues, and quarantine triggers that check on first open. It is not a general malware scanner.
What is com.apple.quarantine?
It is an extended file attribute that marks a file's quarantined state. Since 18 February 2025, it must be removed from all files in macOS apps uploaded to TestFlight or the App Store.
Can I bypass the first-open prompt?
Users can override Gatekeeper policies unless device management restricts it, and Gatekeeper itself can be turned off. Both choices bypass a safety prompt, so they are a security trade-off.



