Keywords: xattr
Extended attributes are metadata associated with a file in a os managed key-value store. These can be accessed/editeid with the xattr
command. (may need installation?)
com.apple.quarantine xattr values
Apple has a com.apple.quarantine
extended attribute used by gatekeeper to indicate the file should be run in a sandbox or, commonly, is downloaded over a network.
$ xattr -p com.apple.quarantine /file/to/inspect.txt
<value in hex>;<hex timestamp>;<source program>;<uuid>
Values:
- 0081 = airdrop
- 0083 = internet download
source: https://eclecticlight.co/2019/10/24/airdrop-and-quarantine-flags/