How to protect your Mac against malware

You might feel relatively safe using a Mac, but you’re still vulnerable to social engineering and other tricks that may allow malicious software to run. 

That’s why Apple has built in some protections against unknown software running. The key one is Gatekeeper. Though its name isn’t written anywhere in System Preferences, naturally you’ll find its settings in the Security & Privacy pane.

Look in that pane’s General tab and under the heading ‘Allow apps downloaded from’ you’ll find two options that either allow apps to run only if they’re from the Mac App Store or if they have been signed by identified developers (known to Apple) and distributed outside the store. 

  • Make your computer more secure by switching to the MacBook Pro

Naturally, given this relates to system security, your choice applies to all users. Gatekeeper used to provide a third option, 'Anywhere', but this was a risky choice and best avoided in favour of overriding the feature for individual apps as needed. 

Thankfully, this option being removed in Sierra isn’t a sign that Apple has withdrawn the ability to override Gatekeeper and restricted your choice of apps; it simply enforces that you must explicitly grant permission for an unsigned app to run.

If you try to open an app that doesn’t meet your chosen security level, macOS will flash up a dialog that tells you so. Should you avoid all such apps? Not necessarily, but you should exercise caution based on their source. 

Plenty of useful apps are blocked by Gatekeeper because their code hasn’t been signed by a registered developer. One of the most popular is HandBrake, a free tool that converts many video formats for iOS and other devices.

Dealing with known malware

Gatekeeper is backed up by another security measure whereby macOS receives details from Apple about known malware and implicit threats and blocks their ability to run. 

When it detects a threat, macOS warns that the file you’re trying to open will damage your Mac and offers to trash it. There’s a setting in the App Store pane in System Preferences that determines whether you receive updates that keep macOS’s knowledge of threats up to date.

Other threats include versions of plug-ins, such as Adobe Flash Player, in which critical vulnerabilities have been discovered. When Apple adds one of these to the list of known threats, your Mac will then block that version and you’ll need to download the latest one from its official source.

How to manage your Mac’s anti-malware features

1. Configure Gatekeeper

Go to System Preferences > Security & Privacy, click the padlock at the bottom left and then enter an admin username password so you can alter Gatekeeper’s settings. 

In the General tab, make your choice from the two security levels.

2. Get security updates

If you like to manually download and install updates, you may have turned off the App Store’s automatic behaviours in System Prefernces. 

Enable the system data files and security updates item so macOS receives info from Apple about threats.

3. Override Gatekeeper

To allow an app past Gatekeeper’s protection, Ctrl-click its icon in Finder and choose Open. 

You will still be shown a cautionary warning, but it’ll include an option to open the app anyway. In future, you only have to double-click the app.

Latest in Macs
A mockup of the possible Apple M3 Ultra logo
Performance isn't the only reason you should buy Apple's M3 Ultra Mac Studio - it's reportedly one of the most power-efficient processors too
Mac Studio on a desk
Apple Mac Studio (M3 Ultra): the ultimate creative workstation
Mac Studio from above.
New benchmark suggests Apple's M3 Ultra may not be much faster than the M4 Max - only a minor uplift in multi-core performance
Apple Mac Mini on wood desk
Forget President’s Day sales, Apple is selling an M2 Mac mini refurb for just over $300 which could be the PC bargain of the year
Sergii Figurnyi
Apple's M5 chip is rumored to be in mass production - but we're still waiting for M4 MacBook Airs
A hand holding up the new Mac mini M4
Apple's M4 Mac mini might be one of the best Macs ever, but it has a serious issue that needs fixing right now
Latest in How Tos
Trinity Rodman #2 of the Washington Spirit crosses the ball during a game between Bay FC and Washington Spirit at Audi Field on November 10, 2024 in Washington, DC.
National Women's Soccer League 2025: How to watch NWSL games live from anywhere
AMD Radeon RX 6000 Series Graphics Card on top wooden desk beside a keyboard
How to update AMD GPU drivers
tiktok
How to edit TikTok videos
Using an Amazon Fire Stick on a Smart TV
How to use a VPN with Fire Stick
Irish boxer TJ Doheny receives an undercard bout, ahead of the WBO super welterweight world title fight in March, 2023
Ball vs Doheny live stream: how to watch the boxing from anywhere now, full undercard, start time, weigh-in results
 Facebook social media app logo on log-in, sign-up registration page
How to delete all your Facebook posts