Fix macOS “Cannot Verify App Is Free from Malware”
In this article
When macOS shows ““Cannot verify app is free from malware”” when you try to open a downloaded app, it means Gatekeeper has blocked the app because it isn’t notarized by Apple. The fix is to right-click (or Control-click) the app and select Open, then confirm you want to open it—or, if that fails, temporarily change your security settings in System Settings.
What Causes This Warning
Since macOS 10.15 Catalina, Apple requires all apps distributed outside the Mac App Store to be notarized—Apple scans the app for known malware and issues a digital ticket. When you download an app from the internet, Gatekeeper checks that ticket. If the app lacks it, or if the ticket is missing or expired, macOS shows the warning and blocks the first launch.
This happens most often with:
- Apps downloaded from a developer’s website that aren’t notarized
- Older apps that haven’t been updated for recent macOS versions
- Apps downloaded via browsers other than Safari (some browsers strip the quarantine attribute)
- Files downloaded from file-sharing services or transferred from another Mac
The warning is not the same as a malware detection. It simply means macOS can’t confirm the app is safe—it doesn’t prove the app is dangerous. Still, you should only bypass it for apps you trust.
How to Open the App Anyway (The Right-Click Method)
The safest and most common way to open a blocked app is to use the context menu. This tells macOS you understand the risk and want to proceed.
- Locate the app in Finder (usually in the Applications folder or your Downloads folder).
- Right-click (or Control-click) the app icon.
- Select Open from the menu.
- A dialog appears: “macOS cannot verify the developer of ‘AppName.’ Are you sure you want to open it?” Click Open again.
- The app launches. You only need to do this once; afterward, you can open it normally by double-clicking.
If you don’t see the Open option, or the dialog doesn’t appear, try the next method.
Bypass via System Settings (When Right-Click Fails)
If the right-click method doesn’t work—for example, the app is an installer package or a command-line tool—you can allow it through security settings. This changes Gatekeeper’s behavior for all apps, so use it with caution.
- Open System Settings (or System Preferences on older macOS).
- Go to Privacy & Security (on older versions: Security & Privacy).
- Scroll down to the Security section. You’ll see a message: ““AppName” was blocked from opening because it is not from an identified developer.”
- Click Open Anyway.
- Enter your administrator password or use Touch ID, then click Open in the confirmation dialog.
This option only appears after you’ve tried to open the app and it was blocked. If you don’t see “Open Anyway,” try launching the app first, then return to this screen.
Remove the Quarantine Attribute (Advanced)
Every file downloaded from the internet gets a quarantine attribute (com.apple.quarantine) that tells Gatekeeper to check it. You can remove this attribute with a terminal command, which effectively tells macOS the file came from your Mac and bypasses the check.
- Open Terminal (in /Applications/Utilities/).
- Type
xattr -d com.apple.quarantinefollowed by a space. - Drag the app file from Finder into the Terminal window—this fills in the full path.
- Press Return, then try opening the app normally.
If the app still won’t open, the problem may be something else, like a corrupted download or a missing code signature. This method also removes the warning for future launches, but it doesn’t make the app safer—it just skips the check.
Common Problems and Solutions
Even after following the steps, you might run into issues. Here are the most frequent ones:
- Right-click Open doesn’t show the option: The app might be an installer (.pkg) or a command-line tool. Use the System Settings method instead.
- “Open Anyway” is grayed out: You need an administrator account. If you’re not an admin, ask the admin to enter their password.
- The app opens but immediately quits: This is often a separate issue—the app may be damaged, incompatible with your macOS version, or missing required components. Try re-downloading it.
- The warning appears for an app from the Mac App Store: That’s unusual. Check that you’re opening the correct file and that your macOS is up to date.
- The app is a .dmg file: You need to double-click the .dmg to mount it, then drag the app to your Applications folder, and then open the app from there. Right-click the app itself, not the disk image.
If none of these work, the app may be genuinely broken or malicious. Trust your judgment—if you downloaded it from an unfamiliar site, consider deleting it.
How to Avoid the Warning in the Future
The best way to avoid this warning is to download apps only from the Mac App Store or from developers who notarize their apps. Most reputable developers do notarize, so the warning is rare with mainstream software.
- Check the developer’s website: they usually mention if the app is notarized.
- Use Safari for downloads—it reliably sets the quarantine attribute, making the right-click method work.
- Keep macOS updated—Apple’s notarization requirements change over time.
- If you’re a developer, you can notarize your own apps with a free Apple Developer account (though you need a paid account for distribution).
Is It Safe to Bypass the Warning?
Bypassing the warning doesn’t automatically infect your Mac, but it does remove a safety check. The warning exists because Apple hasn’t scanned the app. If you trust the source—for example, a well-known open-source project or a developer you’ve used before—the risk is low. If the app comes from a random website or a torrent, the risk is much higher.
To stay safer, you can:
- Check the app’s code signature: in Terminal, run
codesign -dv --verbose=4 /path/to/appto see the signer. - Scan the app with a third-party antivirus tool if you’re concerned.
- Look for reviews or user reports about the app.
Remember, the warning is not a virus alert. It’s a “not verified” notice. Treat it as a reason to pause and think, not necessarily to delete the file.
Frequently Asked Questions
Why does macOS say it can’t verify the app even though I downloaded it from the official website?
Sometimes developers forget to notarize their apps, or the notarization has expired (Apple’s tickets can expire after a year). Also, if you transferred the app from another Mac or a USB drive, the quarantine attribute might be missing, causing the warning to appear incorrectly. In those cases, the right-click method usually works.
Can I disable Gatekeeper completely?
Yes, but it’s not recommended. You can run sudo spctl --master-disable in Terminal, which adds a ““Anywhere”” option in Security settings. This turns off Gatekeeper for all apps, leaving your Mac more vulnerable. Apple doesn’t support this for everyday use, and it’s better to use the per-app bypass instead.
What’s the difference between ““cannot be opened because the developer cannot be verified”” and ““is damaged and can’t be opened””
The first means Gatekeeper doesn’t trust the app’s signature. The second means the app’s code signature is invalid or the file is corrupted—often because the download was incomplete or the app was modified. The “damaged” error usually can’t be bypassed with the right-click method; you need to re-download the app.
Will this warning appear for apps I write myself?
Yes, if you build an app on your Mac and try to run it on another Mac, it will be blocked unless you notarize it. On your own Mac, you can right-click to open it, or you can codesign it with a self-signed certificate and set the quarantine attribute to none.
Does the warning mean my Mac is already infected?
No. The warning appears before the app runs, so it hasn’t executed yet. It simply means macOS can’t verify the app’s safety. If you don’t open it, your Mac is not affected by that file.