iPhone viruses are rare, but malware through apps and websites is real
iPhones get viruses far less often than Android phones or computers, but they are not immune. Apple's App Store review process catches most malicious software before it reaches you, and iOS's sandboxing — a technical barrier that stops apps from accessing each other's data — limits the damage if something does slip through. But malware still arrives through fake apps, phishing links in messages, and compromised legitimate apps that update with hidden code later.
The difference is that you cannot run a traditional antivirus scan on iPhone the way you would on a Windows computer. Instead, you look for signs of infection in your phone's behaviour and apps, then remove what does not belong.
Key Takeaways
- Check your installed apps against what you actually use — malware often hides as a duplicate of a real app or something you do not remember downloading.
- Look in Settings > General > iPhone Storage to see which apps are using the most data and space, which can reveal hidden activity.
- Review your Apple ID sign-in history in Settings > [Your Name] > Password & Security to spot logins from devices you do not own.
- Restart your phone in recovery mode and restore from a backup if you find signs of infection — this removes most malware without erasing your data.
- The App Store and Safari's phishing warnings catch most threats, so turning off app sideloading and keeping iOS updated closes most entry points.
Check what apps are actually on your phone
Start by opening the App Library — swipe to your last home screen or tap the App Library icon. Scroll through every category and look for apps you do not remember installing. Malware often disguises itself as a calculator, weather app, or duplicate of something real like a second "Settings" or "Photos" app with a slightly different icon.
Pay special attention to apps from developers you do not recognise. If you see something suspicious, press and hold it, tap "Remove App," then "Delete App." If you cannot delete it — if the option is greyed out — that usually means it came with iOS and is safe, though you can hide it from your home screen instead.
Next, go to Settings > General > iPhone Storage. This shows every app on your phone sorted by size, including ones you may have hidden. Look for anything that uses an unusual amount of data or space for what it claims to do. A weather app using 500 MB is a red flag. Tap any suspicious app to see when it was last used — if it was active recently but you never opened it, that is a sign of background activity you did not authorise.
Look for signs of compromise in your Apple ID account
Go to Settings > [Your Name] > Password & Security > Device List. This shows every device signed into your Apple ID. You should recognise all of them. If you see a device you do not own — especially one in a different city or country — someone may have your password. Tap it and select "Remove from Account."
Then go to Settings > [Your Name] > Password & Security > Sign-In and Security. Scroll down to "Where You've Signed In" and look at the list of devices and locations. Again, you should recognise all of them. If there are sign-ins from places you have never been or devices you do not own, your account has been compromised. Change your Apple ID password immediately — go to Settings > [Your Name] > Password & Security > Change Password.
If you find unauthorised access, also check Settings > [Your Name] > iCloud > iCloud Backup to see when your last backup was made. If someone accessed your account, they may have restored a backup to a device you do not know about. You can delete old backups by going to Settings > [Your Name] > iCloud > Manage Storage > Backups, tapping the backup you want to remove, and selecting "Delete Backup."
Check Safari and your browser for suspicious activity
Open Safari and look at your browsing history. Go to History > Show All History and scroll through the past few days. If you see websites you did not visit — especially ones with names like "secure-verify-account" or "confirm-payment" — malware or a compromised website may be opening them in the background.
Check your Safari settings for unexpected changes. Go to Settings > Safari > Search Engine and make sure it is still Google, Bing, DuckDuckGo, or whatever you chose. If it has changed to something unfamiliar, malware may have altered it. Also check Settings > Safari > Homepage to make sure it is not redirecting you somewhere unexpected.
Look at your saved passwords and autofill information. Go to Settings > Passwords > Website & App Passwords and scroll through. If you see passwords you do not remember creating, or accounts you do not use, delete them. Tap Edit in the top right, then tap the red minus sign next to any entry you want to remove.
Restart your phone in recovery mode if you find infection signs
If you have found multiple signs of infection — unfamiliar apps you cannot delete, unauthorised account access, and suspicious browser activity all together — the safest step is to restore your phone from a backup. This removes most malware without erasing your photos, messages, and settings.
First, back up your phone to iCloud. Go to Settings > [Your Name] > iCloud > iCloud Backup and tap "Back Up Now." Wait for the backup to finish — you will see "Last Backup" with today's date when it is done.
Then restart your phone in recovery mode. Turn off your phone completely. Press and hold the power button until "slide to power off" appears, then slide. Wait 30 seconds. Press and hold the power button again until you see the Apple logo and "Connect to iTunes" or "Connect to Finder" message. On a Mac with Apple Silicon, open Finder; on an Intel Mac or Windows PC, open iTunes. Click "Restore" when prompted. Your phone will erase and reinstall iOS, then ask you to restore from your iCloud backup. Choose the backup from today — the one you just made — and your phone will restore with your data but without the malware.
Keep iOS updated and avoid sideloading apps
Apple releases security updates regularly, often monthly. Go to Settings > General > Software Update and check for updates at least once a month. If an update is available, connect to Wi-Fi and plug in your phone, then tap "Install Now." These updates patch the holes that malware uses to get in.
Do not sideload apps — that is, do not install apps from outside the App Store, even if someone tells you it is safe or faster. On older iPhones, this was not possible. On iPhone 15 and later, Apple allows sideloading in some countries, but it removes the App Store's review protection. Stick to the App Store unless you have a specific reason to sideload, and understand that you are taking on the risk of malware yourself.
Also be cautious with links in messages and emails. If someone you know sends you a link you were not expecting, ask them about it before you tap it — their account may have been hacked. Safari will warn you if a website is known to be phishing or malicious, but not all malware sites are flagged yet. When in doubt, do not tap.
What to do if you cannot fix it yourself
If you have tried these steps and still see signs of infection, or if you are not comfortable doing a recovery mode restore, visit an Apple Store. Bring your phone and explain what you have found. Apple can run diagnostics and advise whether a restore is needed. There is no charge for this consultation.
If you cannot visit an Apple Store, you can also call Apple Support at 1-800-MY-APPLE. They can walk you through the steps over the phone or arrange a mail-in repair if needed.
Frequently Asked Questions
Can I get a virus just from visiting a website?
Unlikely on iPhone. Safari will warn you if a site is known to be malicious, and iOS prevents websites from directly installing code on your phone the way they can on a computer. You are more at risk from clicking a link in a message that takes you to a fake login page — that is phishing, not a virus, but it has the same result if you enter your password.
Do I need antivirus software on my iPhone?
No. Apps claiming to scan your iPhone for viruses cannot actually do what they claim — iOS does not let them access the system files where viruses would hide. The App Store's review process and iOS's built-in protections are more effective than any app you can download. If an app promises to remove viruses, it is either useless or itself malware.
What if I think my iPhone was hacked but I do not see any apps I do not recognise?
Check your Apple ID account access and Safari history first — those are the easiest signs to spot. If those look clean, the risk is low. If you still feel unsafe, do a recovery mode restore from your most recent backup. If the problem returns after a restore, your backup itself may be infected, and you should restore from an older backup or set up as a new phone.
Is it safe to restore from a backup if my phone was infected?
Usually yes. Malware on iPhone is almost always app-based, and a recovery mode restore erases all apps and reinstalls iOS fresh. When you restore from backup, you get your data back but not the malicious app — it is gone. The only exception is if the malware was in your iCloud account itself, which is extremely rare and would show up as unauthorised account access.
What should I do if someone has my Apple ID password?
Change it immediately in Settings > [Your Name] > Password & Security > Change Password. Then review your Device List and remove any devices you do not recognise. Turn on two-factor authentication if you have not already — go to Settings > [Your Name] > Password & Security and make sure "Two-Factor Authentication" is on. This prevents someone from signing in even if they have your password.