Check an iPhone or iPad for spyware¶
This guide walks you through scanning an iPhone or iPad for known spyware
(like Pegasus or Predator) using the rescue tool. It's written to be
followed step by step — you do not need to be technical.
Everything runs on your own computer. Nothing is uploaded anywhere.
What this does (and doesn't) do¶
- It looks at a backup of your iPhone/iPad that lives on your computer and checks it against a public list of known spyware fingerprints.
- A clean result does not prove the phone is safe. It only means none of the known, published spyware fingerprints were found. Brand-new or custom spyware won't show up. If you have real reason to think you're targeted, get expert help (see the end of this guide).
Before you start: two one-time setup steps¶
1. Make a backup of the phone onto this computer¶
- Plug the iPhone/iPad into your Mac with a cable.
- Open Finder. Your phone appears in the left sidebar — click it.
- Choose "Back up all the data on your iPhone to this Mac", then click Back up now.
- Wait for it to finish. (An encrypted backup is fine and recommended.)
On older macOS or on Windows, you do this in iTunes instead of Finder: Device → Back Up Now.
2. Install the scanner (MVT)¶
The scan uses a free, open-source tool called MVT (Mobile Verification Toolkit), made by Amnesty International. Install it once by opening the Terminal app and pasting this line, then pressing Return:
If that command isn't found, you may need Python first (python.org/downloads),
then run the line above again. On a Mac you also need libimobiledevice
(brew install libimobiledevice) so MVT can read the backup.
You'll know it worked if this prints a version number:
Run the scan¶
Open Terminal and run this one line:
That's it. The tool finds your backup, scans it, and prints a plain-language result. A scan can take a few minutes depending on how big the backup is.
Reading the result¶
- "No spyware indicators detected" — nothing from the known-spyware list was found. (Remember the caveat above: this is reassuring, not a guarantee.)
- "Spyware indicator detected" (shown in red/critical) — the scan matched a known spyware fingerprint. Do not panic and do not wipe the phone yet. Skip to If something is found below.
- "Backup too large to scan safely" — your backup is bigger than the safe size limit, so the tool skipped it on purpose (scanning a very large backup can use so much memory it freezes the computer). See Scanning a large backup below.
- "MVT is not installed" — go back and do setup step 2.
- "No device backups found" — go back and do setup step 1.
Scanning a large backup¶
By default the tool won't automatically scan a backup larger than 2 GB, because doing so can use a lot of memory and, on a computer without much free memory, can lock it up. Most full iPhone backups are larger than this.
You have two safe options:
- Recommended — scan it by hand on a computer with lots of free memory. Close other apps first, then run (replace the path with your backup folder, which the "too large" message prints):
Then look in the ~/mvt-results folder — any file whose name contains
_detected means something was found.
- Advanced — raise the size limit (only if you understand the memory risk).
Open
profiles/iphone_spyware_check.yamland increase themax_backup_bytesnumber, then run the scan command again. Do this only on a machine with plenty of free memory.
If something is found¶
- Don't wipe the phone yet — the backup is evidence. Keep an unchanged copy.
- Get expert help. Amnesty International's Security Lab helps people who may be targeted by this kind of spyware, for free: https://securitylab.amnesty.org/get-help/
- When you're ready to clean the device, the tool's guidance (shown after the scan) walks through it: back up only your essential personal files, factory reset the phone, update to the latest iOS, and turn on Lockdown Mode.
Why is this scan separate from the normal checkup?¶
The everyday checkup —
— is deliberately quick and light so it's always safe to run. The spyware backup scan is heavier (it reads through your whole phone backup), so it's kept as its own opt-in command. That way the normal checkup can never accidentally tie up your computer.