This executable cames from a .dmg which is signed, notarized and stapled successfully.“Main” cannot be opened because the developer cannot be verified.
macOS cannot verify this app is free from malware.
Code Block stapler validate /Users/jtripoz/Downloads/XXX.dmg Processing: /Users/jtripoz/Downloads/XXX.dmg The validate action worked!
Code Block codesign -dvvv /Users/jtripoz/Downloads/XXX.dmg Executable=/Users/jtripoz/Downloads/XXX.dmg Identifier=com.xxx.xxx Format=disk image CodeDirectory v=20200 size=309 flags=0x0(none) hashes=1+6 location=embedded Hash type=sha256 size=32 CandidateCDHash sha256=xxx CandidateCDHashFull sha256=xxx Hash choices=sha256 CMSDigest=xxx CMSDigestType=2 CDHash=xxx Signature size=8959 Authority=Developer ID Application: XXX (xxxxxxxxx) Authority=Developer ID Certification Authority Authority=Apple Root CA Timestamp=4 Mar 2021 at 15:35:28 Info.plist=not bound TeamIdentifier=XXX Sealed Resources=none Internal requirements count=1 size=184
and the executable is signed/hardened:
Code Block codesign -dvvv ./Main Executable=xxx/Main Identifier=Main Format=Mach-O thin (x86_64) CodeDirectory v=20500 size=13680 flags=0x10000(runtime) hashes=419+5 location=embedded Hash type=sha256 size=32 CandidateCDHash sha256=xxx CandidateCDHashFull sha256=xxx Hash choices=sha256 CMSDigest=xxx CMSDigestType=2 CDHash=xxx Signature size=8960 Authority=Developer ID Application: XXX (XXXXXXX) Authority=Developer ID Certification Authority Authority=Apple Root CA Timestamp=4 Mar 2021 at 15:33:59 Info.plist=not bound TeamIdentifier=XXXXX Runtime Version=10.15.0 Sealed Resources=none Internal requirements count=1 size=164
And has 2 entitlements:
codesign -d --entitlements :- Main
Code Block Executable=xxx/Main <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>com.apple.security.cs.allow-dyld-environment-variables</key> <true/> <key>com.apple.security.cs.disable-library-validation</key> <true/> </dict>
I'm running on 10.15.7, and assessments are enabled.
Code Block spctl --status assessments enabled
What did I missed ?
TIA,
J.