“macOS cannot verify that this app is free from malware”: Why you see this error and how to fix it: Header image
Security 7 min read

“macOS cannot verify that this app is free from malware”: Why you see this error and how to fix it

Published:Jan 23, 2025

Updated:Oct 22, 2025

Like any operating system, macOS has a set of standard error messages that pop up now and then. Most of them are self-explanatory, but one — “macOS cannot verify that this app is free from malware” — is one that perhaps requires a clearer explanation.

Why do you see the “macOS cannot verify that this app is free from malware” error on your Mac?

When it comes to downloading apps and software, the best security practice on a Mac is to limit your downloads to the App Store. By doing so, you can be assured that you’re getting apps that are free of malware and viruses. Apple continually scans the App Store for malware, so limiting your downloads to their platform will help you stay safe.

However, if you choose to go outside of the App Store, things become slightly more difficult. If an app is not from a “trusted developer” (one approved by Apple), Mac’s Gatekeeper function will kick in and block it. When that happens, you’ll see the “macOS cannot verify” error.

This error message can also be triggered by a problem with the app’s digital signature. The digital signature is either corrupted or completely missing. If, however, the app is from the App Store or a trusted developer, this problem is unlikely to occur.

Gatekeeper is specifically designed to monitor all incoming app installations and block any that it deems to be problematic. It won’t block anything from the App Store or from a trusted developer, but out of an abundance of caution, it will block everything else.

A screenshot of the “macOS cannot verify that this app is free from malware” error on Mac.
Image from apple.com. macOS is a trademark of Apple LLC.

How to resolve the “macOS cannot verify that this app is free from malware” issue

If you’re convinced that Gatekeeper is taking too many liberties, there are ways to temporarily override it and let an app through. However, you should only do so if you’re absolutely certain that you can trust the app.

Gatekeeper is a powerful safeguard for your Mac, so use your best judgment when overruling it. There are 3 ways to go about it, 1 of which is really not recommended, but we include it here for the sake of completeness.

Option 1: Press the Control key and right-click the app

A screenshot showing how to bypass Gatekeeper by pressing the Control key and right-clicking the app.
macOS and Gatekeeper are trademarks of Apple Inc.

To quickly allow an app to pass through Gatekeeper, simply hold the Control key on your Mac’s keyboard and right-click the app. Then select Open. This will temporarily disable Gatekeeper and let the app through.

Option 2: Allow the app in the Privacy & Security settings

The next option is also quite easy, but it requires a few more clicks (and your administrator password).

  1. Go to System Settings > Privacy & Security.
  2. Scroll all the way down to Security.
  3. The name of the app will be there. Click Open Anyway.
  4. You’ll need to enter your macOS administrator password.

The most drastic measure is to disable Gatekeeper entirely, but this is not recommended whatsoever. If you choose to pursue this option, you will be leaving the door wide open to malware.

Although we don’t recommend disabling Gatekeeper, here’s how to do it:

  1. Open Terminal.
  2. Type the command “sudo spctl –master-disable”.
  3. Press Enter.
  4. Enter your administrator password.
  5. Restart your Mac.

To reverse this action, follow the same steps but change “disable” to “enable.”

Should you open apps triggering the “macOS cannot verify” warning?

Gatekeeper exists to prevent your machine from becoming infected with malware. In general, you shouldn’t override it.

That said, Gatekeeper can get a bit overzealous sometimes, and if you’re convinced that an app is safe, you can use one of the above methods to temporarily bypass it. But if you aren’t certain that the app is safe, trust Gatekeeper and don’t open it.

Potential risks when you bypass a macOS app security warning

By ignoring Gatekeeper and bypassing it, you’re increasing the risk of malware affecting your Mac. This malware can then do the following:

  • Steal your data, such as your social security number and credit card number, potentially leading to identity theft
  • Corrupt your files
  • Add more malware, such as ransomware and spyware
  • Crash your Mac or greatly slow it down
  • Take control of your Mac and use it in a denial of service (DDoS) attack or send spam

How to keep your Mac safe from malware and viruses

Keep this handy list of tips nearby to keep your Mac safe from malware and viruses.

Run regular scans with Moonlock

Screenshot of Moonlock, a Mac security app: The Home screen.

If you’re not sure of the status of your Mac in terms of malware and other malicious files, the best course of action is to run regular scans with Moonlock.

Moonlock is a streamlined, easy-to-use antivirus that is built specifically for macOS. On top of running regular scans, you can enable real-time protection and background monitoring with Moonlock to make sure your Mac is protected 24/7. Start your free trial of Moonlock and run a full scan to ensure that your Mac is clean and secure.

Here’s how to do it:

  1. Get started with Moonlock and open the software.
  2. Find the Malware Scanner.
  3. If this is your first scan, you will want to run a Deep Scan.
    • This will scan all the files on your Mac, even hidden files or files that have been dormant.
    • You can also set up a schedule in the scan settings. Try to aim for a time when your Mac is on but isn’t being used heavily, e.g., lunchtime.
  4. As the scan finds threats, it will neutralize them by sending them to Quarantine immediately. This will stop them from causing any more harm.
  5. When the scan is finished, you can review the results and delete everything the scan found by clicking Remove.
Screenshot of Moonlock, a Mac security app: The malware scan results screen.

If someone sends you a web link, you need to decide if you trust them enough to open it. If the link is from a relative, a close friend, or a trusted acquaintance, you can likely click on it.

If there’s a shadow of a doubt, don’t click the link. It’s not worth the risk.

Use a VPN

Anytime you are connected to the internet, there is a chance that malware or bad actors may gain access to your device by intercepting traffic. Moonlock’s VPN is the simplest and easiest way to stop that from happening.

This built-in VPN hides your real IP address and sends all traffic through a secure server, making it almost impossible to see what you’re accessing and doing from the outside. Some other features Moonlock’s VPN has:

  • Kill switch: If the VPN disconnects, it kills the internet connection immediately.
  • No-logs policy: No data is ever stored from your browsing activity.
  • One-tap protection: Enable protection with a click of a button.
Screenshot of Moonlock, a Mac security app: the VPN screen.

Enable the Mac Firewall

When malware is trying to knock down the gates of your device, you need a solid line of defense to stand in its way. You have this in the form of the built-in Mac Firewall.

Enable the Mac Firewall by going to System Settings > Network > Firewall. It’s as simple as enabling it once, and you never have to think about it again. No complicated learning curve is required.

Think before opening email attachments

We get a lot of email attachments, ranging from paychecks to invoices, online shopping receipts, and more.

As with clicking email links, opening attachments is a matter of deciding who you can trust and who you can’t. If in doubt, delete the email without opening the attachment or ask the supposed sender for confirmation.

Be careful even when installing legitimate software

In the case of a trojan horse, malware can hide inside software and install itself in the background. This can sometimes happen even with legitimate software.

As we said at the beginning of this article, you can mitigate this risk and greatly reduce the chance of downloading malware by restricting your downloads to the Apple App Store.

Keep your devices and apps updated

Malware takes advantage of unpatched software vulnerabilities. Cyber attackers exploit any hole they can find and make the most of it before Apple spots the problem and pushes out an update.

When your Mac or MacBook says it has an update, install it right away.

Develop strong security habits

Screenshot of Moonlock, a Mac security app: The Security Advisor screen.

Moonlock includes a Security Advisor within the app. This feature is designed to give you helpful hints and tips on how to build good habits centered around digital safety. It will give recommendations on how to improve system settings, spot phishing attempts, and more. Over time, these small changes add up to huge improvements in your security.

This particular error message is one of the most important built-in security tools on your Mac. It may be tempting to disable it, but in general, this would be a big mistake. Accept the protection so you can keep your device as risk-free as possible.

This is an independent publication, and it has not been authorized, sponsored, or otherwise approved by Apple Inc. Mac and macOS are trademarks of Apple Inc.

MoonLock Banner
Ray Fernandez

Ray Fernandez

Ray has been covering tech and cybersecurity for over 15 years. His work has appeared on TechRepublic, VentureBeat, Forbes, Entrepreneur, and the Microsoft Blog, among others.