How to open unnotarized binary via the Terminal

I tested a static binary ffmpeg version in Sonoma. I just dropped it into a folder without adding it to the path and tried to open it via ./ffmpeg and was greeted by XProtect message below.


I could continue by going to Finder and via ctrl-Open bypass that check so that ffmpeg version could then be launched via the Terminal.


-> Is that possible only via the Terminal?


Safely open apps on your Mac - Apple Support


Usually I use MacPorts to install ffmpeg etc and this is a not a problem there.


p.s. To my surprise I noticed that MacPorts has still ffmpeg v4.4.4 while the newest is v6.1.1. This is because "v5.x breaks a number of dependent ports".


So I installed ffmpeg6 (with v4 still active) and also 8-10-12 bit H.265 support (although with my footage 8 vs 10 bit output is essentially the same, i.e. with yuv420p vs yuv420p10le):


sudo port install ffmpeg6


sudo port install x265 +highdepth


Posted on Mar 25, 2024 1:04 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 25, 2024 4:50 AM

You can remove the quarantine attributes with:


sudo xattr -r -d com.apple.quarantine /path/to/MyApp.app


But, in theory, all binaries must also be signed on Apple Silicon. I say "in theory" because even an ad-hoc signature will work. So this presents no barrier to malware, only to people trying to build something themselves from the command line.

Similar questions

5 replies
Question marked as Top-ranking reply

Mar 25, 2024 4:50 AM in response to Matti Haveri

You can remove the quarantine attributes with:


sudo xattr -r -d com.apple.quarantine /path/to/MyApp.app


But, in theory, all binaries must also be signed on Apple Silicon. I say "in theory" because even an ad-hoc signature will work. So this presents no barrier to malware, only to people trying to build something themselves from the command line.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to open unnotarized binary via the Terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.