How-To Guides5 min read

How to Open Unidentified Developer Apps Safely Without Disabling Gatekeeper

Inspect code signatures and quarantine attributes with codesign and spctl, then safely allow trusted unnotarized apps using Privacy and Security Open Anyway in modern macOS.

First attempt to open the app normally, then open System Settings, select Privacy and Security, scroll to Security, and click Open Anyway within one hour of the blocked launch. Before overriding Gatekeeper, verify the binary's origin with codesign and spctl and never bypass alerts claiming the app is damaged or will damage your computer.

Key takeaways

  • Always inspect signature, checksum, and exact Gatekeeper prompt before approving an unnotarized app.
  • Use the per-app Open Anyway workflow instead of trying to weaken global Gatekeeper settings.
  • Treat any website telling you to paste quarantine-removal commands into Terminal as a red flag.

Quick facts

  • Starting in macOS Sequoia 15 and continuing in Tahoe 26 and Golden Gate 27, Control-click and Open no longer bypasses Gatekeeper.
  • Open Anyway remains visible under System Settings > Privacy & Security for roughly one hour after a blocked launch.
  • spctl --master-disable no longer disables Gatekeeper globally from Terminal on modern macOS.
  • Alerts stating an app is damaged or will damage your computer signal certificate revocation, tampering, or XProtect malware detection.
  • Removing com.apple.quarantine skips Gatekeeper's first-launch verification and should only be used on verified developer binaries.

If you just moved onto a recent Mac running macOS Sequoia 15, Tahoe 26, or macOS 27 Golden Gate and tried Control-clicking an open-source app to choose Open, you probably noticed that old shortcut no longer skips Gatekeeper. Apple intentionally removed Control-click overrides starting in macOS Sequoia so users have to visit System Settings > Privacy & Security and inspect what they are approving.

That extra friction exists for a real reason. Manually overriding Gatekeeper is one of the primary ways Macs pick up infostealers disguised as utilities. Whenever I install an open-source tool or internal binary that lacks an Apple notarization ticket, I verify its signature and source before touching Open Anyway, and I never try to turn Gatekeeper off system-wide.

macOS Gatekeeper, Quarantine, and Code-Signing Verification Flow
macOS Gatekeeper, Quarantine, and Code-Signing Verification Flow

Original SVG diagram by Ajay Kumar Chaturvedi (CC BY 4.0).

Prerequisites

Check these details before overriding any macOS security prompt:

  • An administrator password to approve an individual application exception in System Settings.
  • Confirmation that you downloaded the .dmg, .pkg, or .zip directly from the official project repository or vendor release page (compare the vendor's SHA-256 checksum if provided).
  • No MDM profile (DisableOverride) locking down Privacy & Security exceptions on a corporate-managed Mac.

I would skip opening the software entirely if the alert says "App will damage your computer" or "App is damaged and cannot be opened", or if an unfamiliar download page instructs you to copy-paste Terminal commands to bypass macOS warnings.

Step-by-Step Safe Verification and Override

Step 1: Read the exact macOS alert carefully

Try opening the app once by double-clicking it inside /Applications. Read the prompt wording verbatim:

  • Downloaded from the Internet: Normal confirmation for a signed and notarized app; click Open.
  • Apple cannot check it for malicious software / Developer cannot be verified: The app lacks Apple notarization or a Developer ID signature; proceed carefully to Step 2.
  • Will damage your computer / App is damaged: Stop immediately; Apple states this warning triggers when code was altered, damaged, had its certificate revoked, or matched known malware in XProtect.

Step 2: Inspect quarantine, signature, and Gatekeeper verdict

Open Terminal (Applications > Utilities) and inspect what you actually downloaded before granting an exception. Replace /Applications/Example.app with your target bundle path:

ZSH
xattr -p com.apple.quarantine /Applications/Example.app
codesign -dv --verbose=4 /Applications/Example.app
codesign --verify --deep --strict --verbose=2 /Applications/Example.app
spctl -a -vv /Applications/Example.app

Here is what each command tells you:

  1. xattr -p com.apple.quarantine shows which browser or app saved the file and when.
  2. codesign -dv prints the Identifier, TeamIdentifier, and Authority chain so you can see whether it was signed by a real developer certificate or only ad-hoc signed.
  3. codesign --verify --deep --strict confirms no files inside the app bundle were modified after signing.
  4. spctl -a -vv prints Gatekeeper's assessment (accepted with Notarized Developer ID versus rejected).

If you are checking a .pkg installer rather than a .app bundle, inspect its signature with pkgutil --check-signature ~/Downloads/Example.pkg.

Step 3: Check your global Privacy & Security policy

Make sure your baseline setting allows signed third-party software rather than restricting you exclusively to the Mac App Store:

  1. Choose Apple menu > System Settings and click Privacy & Security in the sidebar.
  2. Scroll down to the Security section.
  3. Under Allow applications from, select App Store & Known Developers.

Never hunt for outdated Terminal hacks like spctl --master-disable to enable an "Anywhere" radio button. Apple deprecated and blocked global spctl policy toggles in Sequoia and later, and keeping Gatekeeper enabled protects every future download.

Step 4: Use Open Anyway within one hour of the blocked launch

Security Warning: Overriding Gatekeeper creates a permanent per-app exception on your Mac. Back up important data regularly and approve an app only if you verified its vendor identity and download checksum.

If you verified the app in Step 2 and want to allow it:

  1. Reopen System Settings > Privacy & Security and scroll to Security.
  2. Look for the notice saying "Example.app" was blocked to protect your Mac (Apple keeps this prompt active for roughly one hour after your attempted launch).
  3. Click Open Anyway.
  4. Authenticate with your Touch ID or administrator password and confirm Open in the final dialog.

Once approved, macOS stores an exception for that specific application so double-clicking launches it normally afterward.

Step 5: Handle unsigned command-line binaries safely

Unsigned standalone CLI tools downloaded via browser often carry com.apple.quarantine and do not always trigger a clean Open Anyway row in System Settings. First verify the file's SHA-256 hash against the project's official release notes (shasum -a 256 ~/Downloads/tool), then clear only the quarantine attribute on that exact trusted binary or bundle:

ZSH
shasum -a 256 ~/Downloads/tool
xattr -d com.apple.quarantine ~/Downloads/tool

Avoid running xattr -cr recursively across entire folders, because -c wipes every extended attribute (including legitimate Finder metadata or resource forks) rather than targeting only com.apple.quarantine.

Expected Result

Gatekeeper remains active globally (spctl --status prints assessments enabled), your verified application launches cleanly without repeated blocks, and you avoided weakening system-wide runtime protection.

Troubleshooting

The "Open Anyway" button is missing in Privacy & Security

The Open Anyway button stays visible for only about one hour after you try launching the blocked app. Double-click the app in /Applications again, dismiss the alert, and immediately switch back to System Settings > Privacy & Security. If the option still does not appear on a work Mac, your IT department likely enforced DisableOverride via MDM.

macOS says "Example.app is damaged" on an unsigned open-source build

On Apple silicon Macs, unsigned binaries or bundles downloaded by browser sometimes fail code-signing execution policies or carry mismatched ad-hoc signatures after unpacking. Confirm with the maintainer whether the release is legitimately unsigned, verify the SHA-256 checksum on the official release page, and re-extract from the archive cleanly rather than guessing.

How do I check that XProtect definitions are still updating?

Verify your local XProtect.bundle version and ensure Security Responses & System Files stay enabled under System Settings > General > Software Update:

ZSH
defaults read /Library/Apple/System/Library/CoreServices/XProtect.bundle/Contents/Info.plist CFBundleShortVersionString

Sources