'why download files from safari could execute while chrome not
If some files are downloaded from web, you will get security warnings when executing them directly, but you can use xattr -d com.apple.quarantine /path/to/downloaded/file to skip.
I find a Skip macOS Catalina security check recently, I can overwrite the com.apple.quarantine attr, pretend the file is downloaded from safari. After this process, the file can execute directly.
xattr -w com.apple.quarantine "0062;5e9dca67;Safari;2D1ADCF0-049C-4251-9EE5-5FCD16E74B6B" /path/to/downloaded/file
So why the value of com.apple.quarantine attr 0062;5e9dca67;Safari;2D1ADCF0-049C-4251-9EE5-5FCD16E74B6B works while 0081;62748570;Chrome;8F462943-E013-44BE-A1D4-F9EA7C7C38F5 not.
Edit: I tried to download the file from Safari, which the value of com.apple.quarantine attr is 0083;62748f61;Safari;4649353C-E19E-4B52-9E0E-8F825F923EEA, and it also has security warnings.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

