What is the quarantine attribute?

A hidden tag macOS adds to downloaded files, which makes Gatekeeper check them before they open.

When a browser, Mail or a messaging app saves a file, macOS adds a hidden tag to it called com.apple.quarantine. The tag records that the file came from the internet, and it’s what makes Gatekeeper check the file the first time you open it.

How to see it

In Terminal, xattr -l followed by the file’s path lists the tags on a file.

Why it matters for security

Removing the tag means Gatekeeper never checks the file. Fake installers and “cracked” apps often tell you to paste a command such as xattr -c or xattr -d com.apple.quarantine to “fix” an app that won’t open. Don’t run it for an app you don’t fully trust: the warning is there for a reason.

Every term in the glossary