Privacy

Can iPhones get viruses?

Why a classic virus can't spread on an iPhone

A virus, in the strict sense, is a program that copies itself into other programs and spreads. Three things in iOS get in its way, all described in Apple's own security guide:

  • Apps come from one reviewed place. Apple says iOS doesn't allow you to install unsigned apps from websites. Outside the EU, every app has to be downloaded from the App Store, where it comes from an identified developer and has to pass automated and human review.
  • Every app is sandboxed. In Apple's words, sandboxing is designed to prevent apps from gathering or modifying information stored by other apps or from making changes to the device. Each app gets its own home folder and can't reach into another's.
  • iOS itself can't be rewritten. Apple says the entire operating system partition is mounted as read-only.

So even a bad app that gets through review is limited to what you allow it: the photos, contacts or location you said yes to. It can misuse those, but it can't infect your other apps.

Jailbreaking removes these layers. Apple says unauthorized modifications to iOS bypass security features, and that with them gone, hackers may steal your personal information, damage your device, or introduce malware, spyware or viruses.

What a "virus" on an iPhone usually is

When an iPhone seems infected, it's almost always one of four things. None of them copies itself or spreads to other apps, but the last two can do real harm.

  • A pop-up that says your iPhone is infected. It's a web page or an ad, not iOS. Apple lists "misleading pop-ups and ads that say your device has a security problem" among common scams. Nothing has been installed.
  • Calendar spam. Events and alerts you never created. Apple lists unwanted Calendar invitations and subscriptions as a scam too. They come from a calendar the phone is subscribed to, and they stop when you remove it.
  • A configuration profile. Apple warns about downloads, including apps, "that ask to install configuration profiles that can then control your device". On a personal iPhone that isn't managed by an employer or a school, there usually shouldn't be one.
  • A fake sign-in page. A message or a web page asks for your Apple Account password or a verification code. Apple's rule is never to share either with anyone. This is the one that does the most damage, because your photos, messages and backups sit behind that account.

How to clear each one

  1. Close the pop-up. Apple's advice: don't call the number or follow the links, ignore the message, and navigate away from the page or close the whole tab. If it comes back when you reopen Safari, go to Settings → Apps → Safari and tap Clear History and Website Data.
  2. Remove the spam calendar. In the Calendar app, tap Calendars, tap the info button next to the calendar you don't recognize, then tap Delete Calendar or Unsubscribe, and confirm. These are Apple's steps for iOS 26 or later.
  3. Delete profiles you didn't install. Go to Settings → General → VPN & Device Management. Tap any profile you don't recognize, then Delete Profile, and restart the phone.
  4. Delete apps you don't recognize or no longer trust. If an app came with a profile, delete the profile too.
  5. If you typed your Apple Account password or a code into a page you're not sure about, change the password now and look at which devices are signed in. The full check takes about ten minutes.
  6. Update iOS in Settings → General → Software Update. Updates include the latest security fixes.

Do you need antivirus on an iPhone?

No, and it couldn't do what the name promises. A security app from the App Store is sandboxed like every other app, so it can't look inside your other apps or scan iOS for infections. A pop-up or an ad that says your iPhone needs one is the scam from the list above.

Apple's advice for staying safe doesn't mention antivirus. It's to download software only from sources you can trust, not to follow links or open attachments in suspicious or unsolicited messages, and never to share your Apple Account password or verification codes.

The real exception: targeted spyware

There is malware that gets onto fully updated iPhones. Apple calls it mercenary spyware, and Pegasus is the best-known example. Apple says these attacks cost millions of dollars, are aimed at a very small number of specific people, usually journalists, activists, politicians and diplomats, and that the vast majority of users will never be targeted. It sends a threat notification to people it believes were.

If you're in one of those groups, or you've had a threat notification, Apple suggests turning on Lockdown Mode. For everyone else, the steps above are the ones that matter. How to tell whether someone is in your iPhone or your account.

What a virus-free iPhone still doesn't protect

Everything above keeps software out. It does nothing about a person. Someone who knows your passcode needs no virus: with the phone in hand they can open Photos, the Hidden album, Files, Notes and Mail, and the sandbox, App Review and iOS updates have no say in it. Stolen Device Protection keeps that person out of your account, not out of what's on the phone.

That matters most for the few things that would hurt if someone saw or copied them: a photo of your passport or driver's license, a card, private pictures. Why ID photos in your camera roll are a risk.

Questions

Can an iPhone get a virus from a website or a link?

For almost everyone, no. A link opens a web page, and Apple says iOS doesn't let websites install unsigned apps. The risk is what the page asks you to do: type a password, add a calendar or install a profile. The exception is targeted spyware, which Apple says is aimed at a very small number of people.

How do I check my iPhone for viruses?

There's no scan to run. Check four things instead: profiles in Settings → General → VPN & Device Management, apps you don't recognize, calendars you didn't add, and the devices signed in to your Apple Account under Settings → your name.

Is the "your iPhone has a virus" pop-up real?

No. It's an ad or a web page. Apple lists pop-ups that say your device has a security problem as a scam, and says to ignore the message and close the page or the tab without calling the number or following the links.

Will resetting my iPhone remove a virus?

Erasing an iPhone removes its apps and profiles, so it clears anything that was installed. It doesn't help if the problem is your Apple Account: change that password and remove devices you don't recognize first.

Can iPads get viruses?

Same answer. Apple's security guide describes the same App Store review, sandbox and read-only system for iPadOS as for iOS.

Private from the first file. Put one in your vault today.

Get Vaultstone

Free · Works offline

Sources

Private vault for IDs, docs & photosGet Vaultstone