iPhone and iPad Security

Can iPhones Get Viruses? Here’s Everything You Must Know

Ben Stegner 09-03-2018

It’s an age-old idea that Windows and Android devices are insecure messes just waiting to pick up a virus, while Macs and iPhones are immune to such threats. And while Android can indeed pick up malware, smart habits will protect the majority of users.


On the Apple side of the fence, you have to act quite foolishly to infect your Mac. But what about iOS? Can your iPhone really get a virus and force you to factory reset? Let’s look at the facts.

Viruses and Malware Defined

Before we discuss viruses on iOS—the operating system that powers iPhones What Is iOS? Apple's iPhone Software Explained What is iOS? We look at Apple's mobile operating system to see what iOS means, what it offers, and how to get the latest version. Read More , iPads, and iPod Touches—it’s important to note what these terms mean. Most people use the word virus to refer to any kind of nasty software, but this isn’t technically correct.

Malware is the standard catch-all for malicious software. A virus proper usually infects a computer via installing software, then spreads infection around your device by replicating itself. Eventually, viruses spread to other machines too. While viruses were wildly popular decades ago, they’re not the most common type of malware seen today.

Adware, software that spawns tons of advertisements, has become popular through shady download sites and browser extensions. iPhone spyware is dangerous The Dangers of iPhone Spyware Spying on an iPhone? Reckon spyware is installed on your iPhone? Here's what you need to know about spyware and jailbreak. Read More , too. Spyware monitors your data and send it off to advertising companies. Ransomware locks up your PC and demands payment to get your files back.

To simplify our discussion, we’ll discuss the possibility of any kind of malware on iOS, not just actual viruses.


What Does iOS Do to Keep You Safe From Viruses?

Let’s look at the features built into iOS to see why iOS typically doesn’t suffer from viruses.

App Store Controls

Apple’s infamous “walled garden” approach to iOS apps keeps its users safe. Unlike Android, where you can “sideload” apps you’ve downloaded from anywhere, the only official way to install iOS apps is through the App Store.

And in theory, this means that the millions of apps available are all safe. Apple reviews every app any developer submits to the App Store by hand. If it finds malicious code or dangerous behavior, it rejects malicious apps.

This system isn’t perfect, but it weeds out the majority of dangerous apps that would otherwise be available for anyone to download.



iOS uses a security practice known as sandboxing to make sure apps can’t overstep their bounds. Essentially, this prevents any app you install from accessing data from any other apps.

In addition, nearly all apps run under a limited account on iOS. Without access to the root (administrator) account, apps can’t modify system settings and cause damage.

In effect, this means that even if you did manage to install a rogue app, it wouldn’t have complete access to the OS and files.

Timely iOS Updates

Keeping your operating system up to date is one of the best ways to protect against malware. This is another area in which iOS has a huge advantage over Android.


When Apple releases a new version of iOS, all compatible devices get it right away. Look at the breakdown of iOS installations, and you’ll see that the majority of users run the latest version.

the truth about whether iphones can get viruses

This isn’t the case with Android. A fragmented update cycle means that most users wait months for updates, and some never see them at all. Thus, by keeping their phones updated, iPhone users stay safe from old exploits.

If you want to go further, there are more steps you can take 6 Tips for Managing Privacy and Security Settings in iOS 12 You've upgraded to iOS 12, but is it secure enough for the risks of modern life? Here's how to tighten iOS 12 security. Read More  to help keep your device secure.


Examples of iPhone Malware

We’ve established that iOS is secure for several reasons. Because of these factors, and due to Android’s widespread use, it’s no surprise that Android is the majority target of mobile malware.

But that doesn’t mean iOS is completely invulnerable. Here are a few real examples of iPhone malware (the iPhone Wiki has even more):

  • In early 2017, WikiLeaks released information on methods that the CIA had used to break into iOS devices. Apple stated that it has patched these.
  • In September 2015, Apple revealed that hundreds of Chinese-made iOS apps were harboring malware. This was due to developer using a counterfeit version of the development environment Xcode, which is available for free from Apple.
    • Several developers in China downloaded altered copies of Xcode, known as XcodeGhost, and unknowingly injected malware into their apps. Apple removed the affected apps from the App Store.
  • Xsser mRAT was a Trojan from late 2014 that could infect jailbroken devices and expose nearly all of their information.

These are just a handful of examples. And while none of these were horrific vulnerabilities that could affect every iPhone user, they still show that iOS isn’t impenetrable.

Problems Not Caused by Malware

Your iPhone can run into a few issues that seem like viruses, but really have nothing to do with them.

If your phone is running slowly, you probably need to free up some space or calibrate your iPhone’s battery How to Calibrate an iPhone Battery in 6 Easy Steps Here's how to calibrate your iPhone's battery and why it's worth doing every so often. The benefits will surprise you! Read More . Seeing ads in Safari is an unfortunate reality of browsing the web, but most aren’t invasive or malicious.

And don’t forget about multi-device vulnerabilities like KRACK You're at Risk From a KRACK Attack: Everything You Need to Know An exploit called "KRACK" (Key Reinstallation Attack) is making headlines. But what exactly is a KRACK attack? Can it be fixed? And what can you do about it? Let's take a look. Read More that affected iPhones before Apple patched them.

Jailbreaking Increases Risk of Your iPhone Getting a Virus

So the average iPhone user is probably never going to see malware on their phone. But we haven’t addressed the biggest security concern for iOS users: jailbreaking.

If you’re not familiar, jailbreaking allows you to gain access to administrator privileges on your iPhone to get around Apple’s restrictions. On a jailbroken iPhone, you can install apps from anywhere and tweak the OS in ways not normally possible.

While this gives you more tools to play with, it also greatly increases your vulnerability to attack. With fewer of Apple’s protections in place, a jailbroken iPhone user could install infected apps or fall victim to an attack.

Jailbreaking has dropped in popularity, partially because iOS allows users to do more out of the box than it once did. Apple’s increased security has also contributed; developers have to come up with new ways to jailbreak every iOS version.

Thus, jailbreaking isn’t worth the effort Should You Still Jailbreak Your iPhone? It used to be that if you wanted advanced functionality on your iPhone, you'd jailbreak it. But is it really worth it at this stage in the game? Read More or risk nowadays.

Can Antivirus Apps Stop Your iPhone Getting a Virus?

You might wonder why the App Store has plenty of antivirus apps available if there’s little risk of malware on iOS. When you take a look at these apps, however, it’s evident that they really don’t provide any utility.

Apps like Lookout, Avira, and Norton don’t actually scan for viruses on your iPhone. They can’t do this due to the sandboxing we discussed earlier. Yet most offer a similar set of features, including:

  • Phone locator and alarm
  • Protection from dangerous websites
  • Notifications about iOS updates

There’s one problem with this: you already have access to all these features!

The Find My iPhone feature is built into iOS and lets you locate your phone or sound an alarm. Safari and other iOS browsers display warnings if you visit shady sites. And you’ll see a badge on the Settings app when an iOS update is available.

Other features, like VPNs and monitoring your financial accounts, are best left to dedicated apps. While these “antivirus” apps aren’t malicious, they’re at best duplicates of existing features that you don’t need. But at least they offer some features.

In 2017, Apple removed many fake antivirus apps from the App Store. These placebo apps claimed to scan for viruses, but Apple updated its guidelines to prevent developers from marketing an app “as including content or services that it does not actually offer.”

Your iPhone Should Never Get Malware

Now that we’ve examined all the angles of malware on iOS, we can answer the question: can your iPhone get viruses?

While it’s theoretically possible for iPhones to pick up malware, with a small amount of common sense, your iPhone should never get a virus.

If you avoid jailbreaking your device, install iOS updates in a timely manner, and only install trusted apps, you’ll keep your iPhone malware-free. While there’s a minuscule chance of installing an infected app similar to XcodeGhost, avoiding no-name apps and developers will help you stay away from these.

iOS has rock-solid protections in place that make it difficult to break into. And when vulnerabilities have come up, Apple is typically quick to patch them. You can rest assured that your iPhone is secure.

For more help, check out fixes for iPhone X problems 7 Most Annoying iPhone X Problems and How to Fix Issues Having iPhone X problems? We'll help you fix the most common iPhone X issues, including display problems and more. Read More . We’ve also discussed how to record an iPhone phone call How to Record a Phone Call on an iPhone Wondering how to record a phone call on iPhone? Here are several methods to record phone conversations on iPhone for free. Read More if you’re looking for some tricks.

Related topics: Antivirus, iPhone, Smartphone Security.

Affiliate Disclosure: By buying the products we recommend, you help keep the site alive. Read more.

Whatsapp Pinterest

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. Marty
    March 17, 2018 at 12:53 am

    What about if you click on an unsafe link or open an infected attachment to an e-mail on an iphone? Coyldn't that give you malware on an iphone?

  2. Fran
    March 15, 2018 at 12:59 pm

    I think there is malware on my iPhone. I often get pop ups that say I have won something because I’m an Amazon customer. I can’t get rid of it, and I know better than to click on it I have to shut down the iPhone or it won’t go away!

    • Ben Stegner
      March 15, 2018 at 2:31 pm

      Do these popups occur on a particular website? It sounds like a website might have a redirect ad that sends you to a junk page saying you've won something.

      • Fran
        March 15, 2018 at 3:48 pm

        I don’t think it’s associated with any particular web site but if I find that it is, what should I do?

  3. Admiral Jameson
    March 14, 2018 at 5:25 am

    Really. It just has to happen once. Nothing has been spotted but things can happen to any machine. Updates or not.