Skip to content
iPhone & iPad

How to Check Your iPhone for Viruses and Hacking (in Settings)

Illustration of a phone with a shield and a crossed-out bug

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

Settings path to check iPhone configuration profiles
  1. Open Settings → General → VPN & Device Management.
  2. Look under Configuration Profile or Device Management.
  3. 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.
  4. Restart your iPhone.

If this menu doesn’t appear at all, you have no profiles installed, which is good.

Step 2: Run Safety Check

iPhone security checkup checklist

Safety Check shows who you share data with and which apps have access:

  1. Open Settings → Privacy & Security → Safety Check.
  2. 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

  1. Open Settings → tap your name.
  2. Scroll down to the list of devices signed in to your account.
  3. Tap any device you don’t recognize → Remove from Account.
  4. Then change your password: Sign-In & Security → Change Password.

Step 4: Remove apps you don’t recognize

  1. Swipe left past your last Home Screen to open the App Library.
  2. Look through the list for apps you didn’t install, or “cleaner” and “antivirus” apps with lots of ads.
  3. 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”:

  1. Open Settings → Apps → Calendar → Calendar Accounts (or Accounts).
  2. Tap Subscribed Calendars.
  3. Tap the unknown calendar → Delete Account.

Step 6: Update iOS and clear Safari

  1. Update: Settings → General → Software Update. Updates fix security holes. Here’s how to update an iPhone.
  2. Clear Safari data if pop-ups keep appearing: Settings → Apps → Safari → Clear History and Website Data. Here’s more on clearing cache on iPhone.
  3. Block pop-ups: Settings → Apps → Safari → turn on Block Pop-ups and Fraudulent Website Warning.

Signs your iPhone might be hacked

Signs your iPhone may be hacked and what to do
SignWhat it may mean
Apple Account alerts about sign-ins you didn’t doSomeone has your password
Unknown profile in VPN & Device ManagementTraffic may be monitored
New apps you didn’t installSomeone had access to your phone
Friends get strange messages from youAccount or messaging app takeover
Battery and data use suddenly very highPossible, but usually just an app or iOS update
Camera/microphone dot when no app is openCheck 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.

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

Frequently Asked Questions

Can iPhones get viruses?

Traditional viruses are very rare because apps are sandboxed, but scams and account takeovers happen.

How do I check my iPhone for viruses in Settings?

Check VPN & Device Management for unknown profiles, run Safety Check, review devices and apps, and update iOS.

Are "your iPhone has a virus" pop-ups real?

No. They are scams. Close the tab without tapping anything.

Do I need antivirus on iPhone?

No. Antivirus apps cannot scan other apps on iPhone.

How do I know if my iPhone is hacked?

Look for unknown sign-in alerts, profiles, apps or messages you did not send.

Was this guide helpful?

How this guide was made

  • Researched from official help pages (Apple, Google, Microsoft, Meta, OpenAI) and recent reporting
  • Last checked and updated:
  • No sponsored posts: advertisers have no say in what we recommend
Wali

I'm Wali, a digital marketer based in Bangladesh with 8 years of hands-on experience using WhatsApp, Android and Windows, and AI tools since they went mainstream. I write clear, step-by-step guides that fix the everyday problems people run into with their phones, apps and computers. Every guide is researched against official help pages and updated when the apps change.

More articles by this author →

Read next → How to Reset Network Settings on iPhone (and What It Deletes) 6 min read reset-network-settings-iphone-featured-v2

Keep reading

More guides like this

Leave a Reply

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