Malware & ransomware

How to Remove Malware From iPhone: 7 Steps That Actually Work

iPhones rarely get true malware, but adware, scam popups and rogue profiles are common. Here is how to find the cause and clean it out, step by step.

Cysoro Security TeamPublished · 9 min read
VIRUS ALERTFake warning — close itSettings > General >Software UpdateCleanRemove it 7 steps MALWARE & RANSOMWARE Remove malwarefrom iPhone Seven steps, no scanner needed.
Quick answer

To remove malware from an iPhone, update iOS, restart the phone, delete any app you do not recognize, remove unknown configuration profiles in Settings, clear Safari history and website data, and delete spam calendar subscriptions. If problems continue, restore from a backup made before the trouble started, or erase all content and settings as a last resort. There is no antivirus scan to run, because iOS has no built-in scanner.

Key takeaways

  • True iPhone malware is rare, but adware, scam popups, rogue profiles and spam calendars are common.
  • Update iOS first, then delete suspicious apps and profiles, clear Safari data and remove spam calendars.
  • Erase the iPhone only as a last resort, after backing up what you need.

Your iPhone is acting strangely: popups appear, the battery drains fast, or calendar alerts you never set keep buzzing. Before you panic, know this — true malware on an iPhone is rare. Most problems that look like a virus are adware, scam popups, spam calendars or a rogue profile, and all of them can be removed by hand.

Can iPhones get malware?

Yes, but it is rare on iPhones that have not been jailbroken. iOS keeps every app in its own sandbox, so one app cannot reach another app's data, and Apple reviews apps before they reach the App Store. That design makes the classic computer virus very hard to pull off.

Real iPhone malware does exist, but it almost always works by attacking an out-of-date version of iOS, which is why updating is the first and most important fix in every case. Targeted spyware also exists, but it is expensive and used against a small number of people, such as journalists and officials — not against ordinary users.

What most people meet is not malware at all. It is a web page showing a fake virus warning, a calendar subscription that floods you with scam events, an app that shows aggressive ads, or a configuration profile installed by a scam site.

ProblemWhat it isHow you fix it
True malwareMalicious code exploiting iOSUpdate iOS; erase if it persists
Adware appAn app showing aggressive adsDelete the app
Fake virus popupA scam web page, not an infectionClose the tab; clear Safari data
Spam calendarUnwanted calendar subscriptionDelete or unsubscribe the calendar
Rogue profileA configuration profile from a scam siteDelete it in VPN and Device Management

Each problem has a different fix, and this guide covers all of them. If the symptoms match a hacked device more broadly, see our guide to checking whether your phone is hacked.

How do you know if your iPhone has malware?

Look for a pattern rather than a single symptom. One odd popup is usually a bad website; several of these together point to something installed on the phone.

Seven warning signs to check Popups and redirectsfake virus warnings in Safari or Chrome Apps you don't recognizeinstalled around the time trouble began Battery drains fastor the phone runs hot while idle Spam calendar eventsalarming events with links you never added Data usage spikeswithout a change in how you use the phone Unknown profilesin VPN & Device Management settings One sign alone is usually a bad website. Several together mean something is installed.
Warning signs of iPhone malware, adware or a rogue profile. Illustration by Cysoro.
  • Popups and redirects in Safari or Chrome, especially fake virus warnings.
  • Apps you do not recognize, especially ones installed around the time the trouble began.
  • Battery draining fast or the phone running hot while idle.
  • Spam calendar events with alarming titles and links you never added.
  • Data usage spikes with no change in how you use the phone.
  • Unknown configuration profiles in Settings under General, then VPN and Device Management.
  • Settings you did not change, such as a new default search engine or homepage.

How do you remove malware from an iPhone?

Work through these steps in order. Most problems are fixed by step four, and each step is quick. Do not skip the iOS update: it patches the holes malware uses to get in.

The cleanup, in order 1Update iOSpatch the holes 2Restartclear temp files 3Delete appsunknown ones 4Remove profilesunknown ones 5Clear Safarihistory + data 6Fix calendardelete spam 7Erase Step 7 is the last resort — only if the problem survives steps 1 to 6. Check after each step: if the problem is gone, stop.
Seven steps to clean an iPhone, in order. Illustration by Cysoro.

Step 1: Update iOS

Go to Settings, then General, then Software Update, and install anything available. Apple regularly releases iOS updates that include security patches for vulnerabilities, and an out-of-date iPhone is the easiest target there is. Apple's guide to updating your iPhone lists the same steps.

Also update your apps. An old app with a known flaw can be the entry point, and App Store updates often include security fixes alongside new features.

Step 2: Restart your iPhone

Press and hold the side button and either volume button until the power-off slider appears, drag the slider, wait about 30 seconds, then press and hold the side button until the Apple logo appears. A restart clears temporary files and processes and can stop malicious behavior.

If the problem returns after the restart, keep going. A restart alone does not remove an installed app, a profile or a spam calendar.

Step 3: Delete suspicious apps

Scroll through your Home Screen pages and the App Library (swipe left past the last Home Screen page) and look for apps you do not remember installing, apps with vague names, or anything installed around the time the trouble began. Touch and hold the app icon, tap Remove App, then Delete App.

Removing an app from the Home Screen only moves it to the App Library, so make sure you choose Delete App rather than just removing it from the screen. If you find apps that were clearly not installed by you or anyone you trust, consider moving straight to the erase step below.

Step 4: Remove unknown configuration profiles

Go to Settings, then General, then VPN and Device Management. If you do not see this option, no profiles are installed. If you see a profile you did not install yourself and that did not come from your employer or school, tap it and choose Delete Profile, then restart your phone.

Deleting a profile also removes the settings, apps and data it installed, so if your employer or school issued the phone, ask their IT team before removing anything. A profile is one of the most powerful things that can be installed on an iPhone, which is why scam sites try to get you to install one.

Step 5: Clear Safari history and website data

Go to Settings, then Apps, then Safari (on older versions, Settings then Safari), and tap Clear History and Website Data. Choose a timeframe and confirm. This removes the cookies and cached data that adware and scam pages use to keep coming back. Apple's Safari history and cookies guide lists the same steps, including removing website data while keeping history.

If you use Chrome or Firefox, clear browsing data from inside that app as well. Clearing history logs you out of websites, so you will need to sign in again — that is also a good moment to change any password you typed into a suspicious page. You can check whether a password has appeared in known breaches with our free pwned password checker.

Step 6: Remove spam calendar events

Unwanted events usually come from a spam invitation or a calendar you subscribed to by accident. Open the Calendar app, tap Calendars, tap the info button next to the unfamiliar calendar, then tap Delete Calendar or Unsubscribe and confirm.

For a single unwanted event from someone you do not know, tap the event, then Report Junk, then Delete and Report Junk. Never tap a link inside a spam event.

How do you remove a fake virus popup?

If a web page tells you your iPhone is infected, do not tap its buttons, do not call the number it shows and do not install anything it offers. Apple describes these alerts as fraudulent ads that use warnings to trick you into sharing personal or financial information or installing unwanted software.

Close the tab instead. In Safari, tap the tabs button and close the tab showing the warning. If the popup keeps reappearing, clear Safari history and website data as in step 5 above, and check your notification permissions: many fake warnings arrive as browser notifications you granted to a scam site.

If you already typed a password or payment details into such a page, change that password right away from a trusted device and contact your bank. Apple's advice on recognizing phishing covers what to do next, and our spear phishing guide explains how these scams are built.

When should you erase your iPhone?

Erase the iPhone when the problem survives every step above, or when you find apps that were clearly installed without your knowledge. Erasing removes all data, settings and apps, which removes any malware on the device.

Before erasing, back up what you need. Photos, contacts and messages can be backed up to iCloud or a computer, but be careful: restoring from a backup made after the problem started can bring the problem back. If you have a backup from before the trouble began, restore from that one. Apple's factory-reset guide explains how to back up first so you can restore your content, settings and apps afterwards.

To erase, go to Settings, then General, then Transfer or Reset iPhone, then Erase All Content and Settings, and follow the instructions. After the erase, set the phone up and restore from the clean backup, or set it up as new if you are unsure the backup is clean.

If the problems continue even after an erase and a clean setup, contact Apple Support. A persistent problem after a full erase is rare, and it may point to a compromised Apple Account rather than the device itself.

What is Lockdown Mode, and should you use it?

Lockdown Mode is an extreme protection setting for the very few people who might be personally targeted by mercenary spyware. It strictly limits some apps, websites and features to reduce what spyware can attack.

Apple sends threat notifications to users it believes have been individually targeted. They appear on the Lock Screen and in Settings, by email, and as a banner when you sign in at account.apple.com. Apple says these notifications never ask you to click links, install apps or profiles, or give your password — if a message asks for any of those, it is a scam.

To turn Lockdown Mode on, go to Settings, then Privacy and Security, then Lockdown Mode, and tap Turn On Lockdown Mode. Apple designed it for people who face targeted attacks, not for everyday use: it makes websites and Messages work differently. For most people it is unnecessary, and the ordinary steps in this guide are the right protection.

How do you keep your iPhone malware-free?

Prevention is mostly habits, and none of them require a security app. iOS does the heavy lifting if you let it.

Five habits that keep an iPhone clean 1Keep iOS and apps updated — install updates promptly 2Install apps only from the App Store — never sideload from links 3Never install a configuration profile from a website you don't trust 4Don't tap popups or call numbers shown in warnings — close the tab 5Run Safety Check — review who and what can reach your data
Five habits that keep an iPhone free of malware and adware. Illustration by Cysoro.
  • Install updates promptly. Turn on automatic iOS updates so security patches arrive without you thinking about them.
  • Install apps only from the App Store. Never install an app from a link, a popup or a third-party store.
  • Never install a profile from a website. A legitimate employer or school profile comes through their own process, not a random download link.
  • Be careful with taps. Do not tap "Allow" on notification prompts from sites you do not know, and do not accept calendar invitations from strangers.
  • Run Safety Check. Go to Settings, then Privacy and Security, then Safety Check (iOS 16 or later) to review which people and apps can access your information and which devices are signed in to your Apple Account.
  • Use strong, unique passwords and MFA. If an account is compromised, the damage spreads through password reuse. A password manager helps.

On your home network, the same caution applies to every device: keep your router's firmware updated and its admin password changed. Our guide to securing your Wi-Fi walks through the settings.

The bottom line

Most iPhone "virus" scares end with a simple fix: update iOS, delete the suspicious app or profile, clear Safari data and remove the spam calendar. There is no scanner to run and no antivirus to buy — the cleanup is a manual check of the few places junk can hide.

Work through the steps in order, and erase the phone only if the problem survives them all. If you typed a password into a suspicious page along the way, change it now and check it with the free pwned password checker.

Frequently asked questions

Can iPhones get malware?

Yes, but true malware is rare on iPhones that are not jailbroken. iOS sandboxes every app, so one app cannot reach another app's data, and Apple reviews apps before they reach the App Store. Most iPhone problems that look like malware are actually adware, scam popups, spam calendars or rogue configuration profiles.

How do I scan my iPhone for malware?

You cannot run a traditional virus scan on an iPhone, because iOS has no built-in scanner and its sandbox keeps every app out of other apps' data. Instead you check by hand: update iOS, look for unknown apps and profiles, clear Safari data and remove spam calendars.

Do I need antivirus on my iPhone?

Most people do not. iOS itself provides the protection, through app sandboxing, App Store review and automatic security updates. An antivirus app cannot scan other apps on iOS the way it can on a computer. Keeping iOS updated matters far more than any security app.

What is the fake iPhone virus warning popup?

It is a scam. A web page shows a warning that your iPhone is infected and tells you to call a number or install an app. Apple describes these alerts as fraudulent ads that use warnings to trick you into sharing personal or financial information. Close the tab and never call the number.

Will a factory reset remove malware from my iPhone?

Yes. Erasing all content and settings removes your data, settings and apps, which removes any malware on the device. It is the last resort because it deletes everything, so back up your photos and data first and restore only from a backup made before the problem started.

What is Lockdown Mode on iPhone?

Lockdown Mode is an extreme protection setting for the very few people who might be personally targeted by mercenary spyware, such as journalists and activists. It strictly limits some apps, websites and features to reduce what spyware can attack. Apple does not recommend it for everyday use.

Can malware survive an iPhone restart?

A restart clears temporary processes and can stop some malicious behavior, but it does not remove an installed app, a configuration profile or a spam calendar. If the problem returns after a restart, work through the full cleanup: apps, profiles, browser data and calendars.

Sources

  1. Apple Support — Update your iPhone or iPad
  2. Apple Support — Delete your Safari history, cache, and cookies on iPhone
  3. Apple Support — Recognize and avoid social engineering schemes including phishing messages, phony support calls, and other scams
  4. Apple Support — How to factory reset your iPhone, iPad, or iPod touch
  5. FTC — Malware: How To Protect Against, Detect, and Remove It
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against Apple's iPhone support documentation on software updates, configuration profiles, Safari data, Safety Check and Lockdown Mode, and FTC malware guidance.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free