How to Fix ‘macOS Cannot Verify That This App Is Free from Malware’

Downloading software from outside the official Mac App Store frequently triggers Apple’s Gatekeeper security prompt: “macOS cannot verify that this app is free from malware” or “macOS cannot verify the developer of this app”. Clicking the dialogue offers only two choices: “Move to Trash” or “Cancel”, effectively preventing legitimate open-source tools, developer utilities, and third-party software from launching. This security barrier is enforced by Apple’s Gatekeeper subsystem and the Quarantine extended attribute, which block executables that lack an official Apple Developer ID cryptographic signature or an Apple notarisation ticket. This tutorial explains how to safely review, authorize, and run trusted third-party software on macOS Sonoma, Ventura, and Sequoia.

Understanding Apple Gatekeeper and the Quarantine Flag

When you download an application, script, or disk image (DMG) via web browsers like Safari or Chrome, macOS attaches a security metadata tag known as com.apple.quarantine to the file. When you double-click the app, Gatekeeper inspects this tag:

  • Unnotarised Software: If the developer did not submit the binary to Apple’s automated notarisation scanning service, Gatekeeper refuses execution by default.
  • Ad-Hoc and Self-Signed Binaries: Open-source projects distributed on GitHub often lack expensive Apple Developer certificates, triggering verification alerts.
  • XProtect Behavioural Scans: Apple’s built-in anti-malware engine flags suspicious packing formats or unsigned dylib dependencies within the application bundle.

Method 1: Open the App via the Contextual Menu (Right-Click Override)

The simplest way to create a permanent Gatekeeper exemption without changing global security settings is using the Finder contextual menu.

  1. Open Finder and navigate to your Applications folder (or the directory containing the downloaded app).
  2. Do not double-click the app icon. Instead, hold down the Control key and click the app (or right-click with a two-finger tap).
  3. Select Open from the contextual menu that appears.
  4. A modified dialogue box will appear displaying the same warning, but with a prominent Open button alongside “Cancel” and “Move to Trash”.
  5. Click Open.
  6. macOS will save a cryptographic signature bypass to your user keychain, allowing the application to launch normally on all future double-clicks without prompting.

Method 2: Authorize via System Settings (Privacy & Security)

If right-clicking does not reveal the Open button on recent macOS releases (such as macOS Sonoma or Sequoia), authorize the app directly in System Settings.

  1. Attempt to double-click the blocked application once so that Gatekeeper records the security block event.
  2. Click the Apple menu in the top-left corner of your screen and select System Settings.
  3. In the left sidebar, click Privacy & Security.
  4. Scroll down to the Security section.
  5. Under the header “Allow applications downloaded from”, you will see a notice stating:
    “[App Name] was blocked from use because it is not from an identified developer.”
  6. Click the Open Anyway button directly next to the notice.
  7. Enter your Mac administrator password or authenticate with Touch ID when prompted.
  8. Click Open on the final confirmation dialogue.

Method 3: Remove the Quarantine Attribute via Terminal (Power Users)

If an application fails to launch due to bundled dynamic libraries (dylibs) or command-line developer tools triggering repetitive quarantine blocks, removing the quarantine extended attribute clears the block instantly.

  1. Open Terminal via Spotlight (Cmd + Space, type Terminal, press Enter).
  2. To inspect whether the quarantine attribute is present, run:
    xattr -l /Applications/ExampleApp.app
  3. If the output contains com.apple.quarantine, strip the quarantine flag recursively from the entire application bundle:
    xattr -d -r com.apple.quarantine /Applications/ExampleApp.app
  4. Tip: Type sudo xattr -rd com.apple.quarantine (with a trailing space) into Terminal, drag and drop the application icon from Finder directly into the Terminal window to auto-populate the path, and press Enter.
  5. Enter your macOS password when prompted. The application will now launch without Gatekeeper warnings.

Troubleshooting Summary for macOS Malware Verification Alert

Bypass Technique Appropriate Scenario Security Impact
Control-Click > Open Standard third-party desktop applications Creates a single, permanent app exemption in user keychain
System Settings > Open Anyway macOS Sonoma & Sequoia modern preference panel Authorizes execution while preserving global Gatekeeper rules
Terminal xattr -d Developer tools, command-line utilities, complex app bundles Strips quarantine flag recursively from internal binary components

Using these verified Gatekeeper override options ensures you can launch trusted third-party and open-source applications while keeping Apple’s built-in system security protections intact.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.