A pop-up says “Your iPhone is infected!”, the battery drains fast, or apps act strangely, and you wonder if your iPhone has a virus. The good news: true viruses on iPhones are very rare because iOS keeps every app in its own sandbox. The bad news: scams, dangerous profiles, spam calendar invites and stolen passwords are common. Here’s how to check your iPhone for viruses and hacking in Settings, step by step, and how to clean it up.
Short answer: there’s no “virus scan” button in iPhone Settings, because classic viruses almost never infect iPhones. Instead, check these: Settings → General → VPN & Device Management (delete profiles you don’t recognize), Settings → Privacy & Security → Safety Check (see who has access to your data), your apps list (remove apps you didn’t install), your Calendar subscriptions, and Software Update. Then change your Apple Account password. “Your iPhone has a virus” pop-ups in Safari are scams; close them and don’t tap anything.
Applies to: iPhone on iOS 26 and iOS 27. Last checked in November 2026.
Can iPhones get viruses?
Traditional viruses (programs that copy themselves to other files) almost never affect iPhones. iOS only lets you install apps from the App Store (or approved alternative stores in the EU), and every app is sandboxed, so it can’t touch other apps or the system.
What does happen to iPhone users:
- Scam pop-ups in Safari pretending your phone is infected,
- Phishing messages that steal your Apple Account or bank password,
- Malicious configuration profiles that route your traffic or add tracking,
- Spam calendar subscriptions that flood your calendar with fake alerts,
- Account takeovers when someone knows your passcode or password,
- Very rarely, targeted spyware against journalists, activists or officials.
Step 1: Check VPN and Device Management for unknown profiles

- Open Settings → General → VPN & Device Management.
- Look under Configuration Profile or Device Management.
- If you see a profile you didn’t install and it’s not from your work or school, tap it → Delete Profile → enter your passcode.
- Restart your iPhone.
If this menu doesn’t appear at all, you have no profiles installed, which is good.
Step 2: Run Safety Check

Safety Check shows who you share data with and which apps have access:
- Open Settings → Privacy & Security → Safety Check.
- Tap Manage Sharing & Access to review people and apps step by step, or Emergency Reset to stop all sharing at once and reset your Apple Account security.
Use it if you think someone you know has access to your phone or location.
Step 3: Check your Apple Account devices
- Open Settings → tap your name.
- Scroll down to the list of devices signed in to your account.
- Tap any device you don’t recognize → Remove from Account.
- Then change your password: Sign-In & Security → Change Password.
Step 4: Remove apps you don’t recognize
- Swipe left past your last Home Screen to open the App Library.
- Look through the list for apps you didn’t install, or “cleaner” and “antivirus” apps with lots of ads.
- Touch and hold the app → Delete App.
Step 5: Remove spam calendar subscriptions
If your calendar shows alerts like “Your iPhone is infected” or “You won a prize”:
- Open Settings → Apps → Calendar → Calendar Accounts (or Accounts).
- Tap Subscribed Calendars.
- Tap the unknown calendar → Delete Account.
Step 6: Update iOS and clear Safari
- Update: Settings → General → Software Update. Updates fix security holes. Here’s how to update an iPhone.
- Clear Safari data if pop-ups keep appearing: Settings → Apps → Safari → Clear History and Website Data. Here’s more on clearing cache on iPhone.
- Block pop-ups: Settings → Apps → Safari → turn on Block Pop-ups and Fraudulent Website Warning.
Signs your iPhone might be hacked

| Sign | What it may mean |
|---|---|
| Apple Account alerts about sign-ins you didn’t do | Someone has your password |
| Unknown profile in VPN & Device Management | Traffic may be monitored |
| New apps you didn’t install | Someone had access to your phone |
| Friends get strange messages from you | Account or messaging app takeover |
| Battery and data use suddenly very high | Possible, but usually just an app or iOS update |
| Camera/microphone dot when no app is open | Check Control Center to see which app used it |
The green or orange dot at the top of the screen means the camera or microphone is in use; swipe into Control Center to see which app. Here’s what the orange dot on iPhone means.
Do I need an antivirus app on iPhone?
No. Antivirus apps on iPhone can’t scan other apps because of the sandbox. Many “security” apps just block ads or websites, and some push expensive subscriptions with scary warnings. Apple’s built-in protections (App Store review, updates, Safari warnings) are the main defense.
What to do if you think you’re being targeted
If you’re a journalist, activist or public figure, or you get an Apple threat notification, turn on Lockdown Mode: Settings → Privacy & Security → Lockdown Mode. It limits features attackers use. Apple notifies users it believes were targeted by mercenary spyware.
Last resort: erase and restore
If problems continue after all steps, back up and erase the iPhone, then set it up again. Restore from a backup made before the problem started, or set it up as new to be safest. Here’s how to factory reset an iPhone.
Can an iPhone get a virus from a website?
It’s extremely unlikely. Websites can show scam pop-ups and fake alerts, but they can’t install apps or change your system on an updated iPhone. The danger is what you do next: tapping a link, calling a fake support number, or typing your password. Close the tab and clear Safari data instead.
Related guides
The short version
iPhones rarely get viruses. To check yours, delete unknown profiles in Settings → General → VPN & Device Management, run Safety Check, remove unknown devices and apps, delete spam calendar subscriptions, update iOS and change your Apple Account password. Close fake “virus” pop-ups without tapping them, and use Lockdown Mode only if you may be targeted.
Sources
- Apple Support: Review and delete configuration profiles