To remove a hacker from your iPhone, first change your Apple Account password from a trusted device, remove unknown devices and profiles, run Safety Check in Settings, Privacy and Security, check for unknown apps and VPNs, and update iOS. If tampering or stalkerware is plausible, erase the iPhone and set it up as new — do not restore from a backup, because that can reinstall the malicious software.
Key takeaways
- Most iPhone hacks are account takeovers, not malware — secure the Apple Account first.
- Safety Check on iOS 16 or later reviews sharing, devices, permissions and your passcode in one place.
- If stalkerware is plausible, erase and set up as new; restoring a backup can reinstall the problem.
Your iPhone feels wrong: a sign-in alert you did not trigger, a message you did not send, or a device on your Apple Account you do not recognize. Do not panic, and do not tap anything in a pop-up that tells you to call a number. Work through the steps below in order — most iPhone compromises are fixed in the first four.
What does a hacked iPhone actually mean?
A "hacked iPhone" usually means one of several different things, and the fix depends on which one you have. It may be an Apple Account takeover, phishing that stole your password, unwanted location sharing, a stolen passcode, a malicious configuration profile, a jailbroken device, or genuine spyware.
True iPhone malware is rare on a phone that has not been jailbroken. Apple reviews App Store apps, and iOS sandboxes apps so they cannot freely reach each other's data. That does not mean iPhones are immune — it means the attacker usually comes through your account, your passcode, or your own taps, not through a virus in the usual sense.
Start by naming the symptom, because each one points to a different first action:
| What you notice | More likely explanation | First action |
|---|---|---|
| Unfamiliar Apple sign-in, device, purchase or account change | Apple Account compromise | Do not approve it; change the password and remove unknown devices |
| Unexpected two-factor code | Someone is trying to sign in, or a password was exposed | Do not share the code; secure email and Apple Account |
| Someone knows your location | Find My, Family Sharing or a location app is sharing it | Run Safety Check; inspect non-Apple services too |
| Pop-up says the iPhone is hacked and tells you to call | Tech-support scam or malicious advertising | Close the page; do not call or install anything |
| Unfamiliar profile, VPN or device-management entry | Malicious configuration profile | Review Settings, General, VPN and Device Management; remove only what is genuinely unrecognized |
| Someone had physical access and knew the passcode | Unauthorized access or stalkerware risk | Change passcode and credentials from a trusted device; consider a full erase |
How do you know if your iPhone is hacked?
Apple lists the clearest signs of a compromised Apple Account: a notification or email about activity you do not recognize, a two-factor code you did not request, or messages you did not send.
Other signs include items deleted that you did not delete, account details you do not recognize, trusted devices you did not add, purchases you did not make, a password that no longer works, or a device locked or placed in Lost Mode by someone else.
Other signs include unknown apps, unfamiliar configuration profiles, strange calendar events, contacts receiving messages you did not send, and unauthorized transactions in banking apps. Check your Messages inbox and Mail outbox — if someone is using your account to contact people, the evidence is usually there.
Battery drain, overheating, crashes and strange ads are not proof of hacking on their own. Ordinary app behavior, bugs, poor reception and an aging battery cause all of those. Treat them as a reason to look, not as a diagnosis.
Step 1: Change your Apple Account password from a trusted device
Change your Apple Account password the moment you notice suspicious activity. Assume the attacker already knows your login credentials — they will keep using them until you lock them out.
Do this from a trusted device if you can, not from the phone you suspect is compromised. On iPhone, go to Settings, tap your name, then Sign-In and Security, then Change Password. Use a strong, unique password you do not use anywhere else, and store it in a password manager rather than in Notes or photos.
If you cannot change the password because it has already been changed by someone else, reset it at iforgot.apple.com and start account recovery. Apple warns that account recovery involves a waiting period, so start it as soon as you know you are locked out.
Apple's own guidance, in If you think your Apple Account has been compromised, lists the next steps in this order: change the password, reset it if you cannot, update your personal and security information at account.apple.com, remove devices you do not recognize, and check with your email provider and carrier that you control every email address and phone number on the account.
Step 2: Secure your email and phone number first
Changing the Apple Account password alone is not enough if someone controls the email account or phone number attached to it. They can simply reset the password again.
Go to account.apple.com and check every email address and phone number on the account. Remove anything you do not recognize. Then change the password on your main email account, turn on two-factor authentication for it, and check its recovery options and forwarding rules. A hacker who controls your email controls every "reset password" link you receive.
Call your carrier if your number was ported or changed without your permission. A SIM swap lets an attacker receive your verification codes, and it is fixed by the carrier, not by any setting on your phone.
Step 3: Remove unknown devices and check sign-ins
On your iPhone, go to Settings, tap your name, and scroll to Devices. Tap any device you do not recognize and select Remove from Account. Do the same at account.apple.com under Devices.
Then check every service signed in with your Apple Account: FaceTime, Messages, Media and Purchases, Internet Accounts, Mail and Calendar. On each device, verify the email address shown under your name is yours. If you have not already, set up two-factor authentication — Apple says this is designed to prevent someone else from accessing your account even if they know your password.
Also check for an unexpected Face ID or Touch ID enrolment, and review the trusted devices list for anything unfamiliar. If someone added their own device as trusted, they can approve their own sign-ins.
Step 4: Run Safety Check
Safety Check is available on iPhones with iOS 16 or later, in Settings, Privacy and Security, Safety Check. It lets you review who has access to your information, stop sharing with people and apps, review devices connected to your Apple Account, reset system privacy permissions, and change your passcode and Apple Account password.
Use Emergency Reset if you need to stop sharing everything at once. Apple notes that Safety Check cannot review non-Apple accounts, social media sharing, or devices signed in to a different Apple Account — check those separately.
If you are concerned about personal safety, plan before you make changes: deleting sharing can alert the other person. Apple's personal safety guide covers this, and its Quick Exit button closes Settings and returns to the Home Screen immediately.
Step 5: Remove unknown apps, profiles, VPNs and keyboards
Review the apps installed on your device for any you do not recognize. Go to Settings, General, iPhone Storage, tap Show All, and scroll the list. Tap any app you do not recognize and delete it, including in the Hidden Apps list.
Check Settings, General, VPN and Device Management for profiles you do not recognize. A configuration profile can manage email accounts, passwords and other sensitive data, so an unfamiliar one is a serious finding. Remove only entries that are genuinely unrecognized and unnecessary — your employer or school may have installed a legitimate one.
Check Settings, General, VPN for VPN configurations you did not add, and Settings, General, Keyboard, Keyboards for custom keyboards you do not recognize. A malicious keyboard can log keystrokes, including passwords.
If you jailbroke your iPhone, that removed Apple's security protections and made malware far easier to install. The only reliable way to remove a jailbreak is to restore the iPhone to factory settings.
Step 6: Review app permissions and sharing
Go to Settings, Privacy and Security and work through Location Services, Camera, Microphone, Contacts, Calendars and Photos. Revoke access from any app that seems suspicious or does not need it.
Check Find My sharing, Family Sharing, and any location-sharing app such as Google Maps, Snapchat or Life360. Also check shared calendars, shared photo albums and shared notes — someone with access to those can see a great deal about your life without ever touching your Apple Account password.
For a wider view of what your phone shares, our guide to how to know if your phone is hacked covers the same checks in a diagnostic order.
Step 7: Update iOS and check for Stolen Device Protection
Go to Settings, General, Software Update and install any available update. Updates patch the flaws attackers actually use, and a phone several versions behind is an easier target.
Turn on Stolen Device Protection in Settings, Face ID and Passcode. It adds a layer of security when your iPhone is away from familiar locations such as home or work, requiring Face ID or Touch ID — not just the passcode — for sensitive changes such as changing your Apple Account password.
Also add an Account Recovery Contact in Settings, your name, Sign-In and Security, Recovery Contacts. Choose someone you trust to help you reset your password and regain access if you are locked out again.
Step 8: Change leaked and reused passwords
Open the Passwords app on your iPhone and tap Security Recommendations. Change any password flagged as leaked or reused, starting with email, banking and social media. If the stolen password was used anywhere else, change it there too.
You can check whether a password already appears in known breaches with our free pwned password checker. Never store passwords in photos or in the Notes app.
Generate a strong replacement with our free password generator, and store it in a password manager.
Sign out of all sessions where the service allows it, and check for new mail-forwarding rules, unknown MFA devices and changed recovery options on each important account.
Step 9: Erase and set up as new — only if you need to
If you are concerned someone had physical access, tampered with the device's built-in security, or installed stalkerware, Apple says you can restore the device to factory settings. A factory restore erases all data, removes all apps including any installed without your knowledge, resets privacy settings, and installs the latest iOS.
Before erasing, run Safety Check's Manage Sharing and Access first — the issue may be sharing settings, not malware. Apple also warns: if you erase because you are concerned the device was tampered with, do not restore from a backup. Restoring from a backup may reinstall the malicious software you are trying to remove.
To erase, go to Settings, General, Transfer or Reset iPhone, Erase All Content and Settings, and follow the prompts. Set the phone up as new, sign in with your secured Apple Account, and reinstall only the apps you recognize. "Reset All Settings" is not the same thing — it does not delete apps, photos or messages.
Step 10: Report it and watch your accounts
If money moved, call your bank's fraud line immediately and ask for a recall of the transfer. File a report at ic3.gov, the FBI's Internet Crime Complaint Center, and report fraud to the FTC at reportfraud.ftc.gov.
Monitor your bank, email and social accounts for at least a month. Watch for password-reset emails you did not request, new forwarding rules, and transactions you do not recognize. Tell the person being impersonated if someone used your account to contact them — their contacts may be targeted next.
If you cannot regain access to your Apple Account at all, go to iforgot.apple.com to start account recovery, or contact Apple Support. Do not pay anyone who claims they can unlock your account for a fee — that is a second scam.
How do you stop it happening again?
Use two-factor authentication on your Apple Account and your email. Use a unique password for each important account, stored in a password manager. Keep iOS updated, and do not jailbreak your phone or install apps from outside the App Store.
Be careful with links in texts and emails, especially ones that claim your account is locked or a payment failed. Go to the site yourself from a bookmark instead of tapping the link. And keep your passcode private — a stolen passcode plus a few minutes of physical access is enough to change your Apple Account password and lock you out.
For a regular check, run through the small business cybersecurity checklist — its device and account sections cover the same controls for a whole team.
The bottom line
Removing a hacker from your iPhone is mostly about taking your account back: change the password from a trusted device, secure your email, remove unknown devices and profiles, and run Safety Check. Only erase the phone if tampering or stalkerware is plausible — and then set it up as new.
Act within minutes, not days. The sooner you lock the account, the less the attacker can do with it. Check your passwords against known breaches with the free pwned password checker once you are back in control.
Frequently asked questions
How do I know if my iPhone is hacked?
Look for signs you did not cause: Apple Account sign-ins you do not recognize, messages you did not send, purchases you did not make, unknown devices on your account, or a passcode that no longer works. Battery drain or slowness alone is not proof — bugs, poor reception and an aging battery cause those too.
Can an iPhone get a virus?
True iPhone malware is rare on a phone that has not been jailbroken, because Apple reviews App Store apps and iOS sandboxes them. Most iPhone compromises are account takeovers, phishing, malicious profiles, or someone who knew your passcode and had physical access.
Should I factory reset my iPhone if I think it is hacked?
Only if tampering or stalkerware is plausible, or after the account steps have not fixed the problem. A factory reset erases everything, and Apple warns not to restore from a backup afterward, because the backup may reinstall the malicious software or settings.
Will changing my Apple Account password remove a hacker?
It locks them out of the account, but only if you also remove unknown devices, check the email and phone number on the account, and change the password of any email account the hacker controls. If the hacker controls your email, they can reset the Apple Account password again.
What is Safety Check on iPhone?
Safety Check is a feature on iPhones with iOS 16 or later, in Settings, Privacy and Security. It lets you review who has access to your information, stop sharing with people and apps, review devices on your Apple Account, reset app permissions, and change your passcode and Apple Account password.
What should I do if someone knows my iPhone location?
Run Safety Check and check Find My, Family Sharing, Messages, Google Maps and any location-sharing app such as Life360. Stop sharing with anyone you do not recognize, and check for unknown devices signed in to your Apple Account.
I got a pop-up saying my iPhone is hacked. Is it real?
No. That is a tech-support scam or malicious advertising. Close the page, do not call the number, do not install anything, and never give a passcode or verification code to a caller. Apple will never ask for your password or verification codes.
How do I report a hacked iPhone?
Report financial loss to the FBI at ic3.gov and to the FTC at reportfraud.ftc.gov. Tell your bank if money moved, tell your carrier if your number was changed, and contact Apple Support if you cannot regain access to your Apple Account.
Sources
- Apple Support — If you think your Apple Account has been compromised
- Apple Support — Safety Check for an iPhone with iOS 16 or later
- Apple Support — Checklist 1: Limit device and account access
- Apple Support — Restore device to factory settings
- The Mac Observer — How to Fully Remove a Hacker From Your iPhone
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.
Checked against Apple Support guidance on compromised Apple Accounts, Safety Check and factory restore.
How we write and fact-check →