This article was reviewed by Luigi Oppido and by wikiHow staff writer, Travis Boylls. Luigi Oppido is the Owner and Operator of Pleasure Point Computers in Santa Cruz, California. Luigi has over 25 years of experience in general computer repair, data recovery, virus removal, and upgrades. He is also the host of the Computer Man Show! broadcasted on KSQD covering central California for over 7 years.
There are 20 references cited in this article, which can be found at the bottom of the page.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 246,848 times.
Pegasus is a sophisticated spyware application that steals sensitive information without the target knowing they have been attacked. Experts at Amnesty International estimate that roughly 50 thousand devices have been infected with Pegasus since 2021.[1] Unfortunately, due to its sophistication, Pegasus can be extremely difficult to detect. If you are worried that you have Pegasus on your Android, you can use MVT, a free tool designed by Amnesty International's Security Lab, to scan your phone. On an iPhone, you can use a similar tool offered by iMazing. This wikiHow article will teach you the signs your phone is infected with Pegasus spyware and how to scan your Android or iPhone for Pegasus using your computer.
Detecting Pegasus Spyware
MVT is a program developed by Amnesty International to detect Pegasus on Android and iPhone. It is developed for Linux, but you can also use it on a Mac through Homebrew or on Windows using a Windows Subsystem for Linux. iMazing has a simplified version of this tool for iPhone.
Steps
Detecting Pegasus on iPhone
-
Download and install iMazing’s Spyware Analyzer tool. Software developers iMazing have set up an easy way for iPhone owners to scan for Pegasus spyware. To download and install it, go to the iMazing Spyware Analyzer download page in a web browser and click Download iMazing. It’s available for Windows and Mac. Once it is downloaded, open the installation file in your Downloads folder and follow the prompts. [4]
- iMazing offers a paid version, but its free trial includes the spyware detection tool without a time limit or restriction.
- iMazing's tool emulates the original Mobile Verification Kit from Amnesty International. Amnesty's tool requires prior configuration in macOS or Linux, but iMazing's tool brings these features to your iPhone.
-
Connect your iPhone or iPad to your computer. Use the USB cable that came with your phone or tablet, or a compatible replacement.
- If you have previously backed up your device to iMazing, you can scan that backup without connecting a device.
- When you connect your device for the first time, you may need to tap Trust on your iPhone or iPad to trust the computer.
-
Launch iMazing and select your iPhone. The application should detect your phone immediately. You will have to enter your phone's passcode to complete the pairing process.
- Make sure your phone is unlocked while pairing it with iMazing.
- Make sure you have an internet connection on both devices.
- You should see your device in the menu bar to the left. If it is not selected, click Devices in the menu panel to the left and select your device.
-
4Open the Spyware Analyzer. To do so, click Tools in the menu bar to the left. Then click Spyware Analyzer.
-
Follow the on-screen instructions to select your preferences. iMazing will provide you with some information. Click Next to proceed to configuration, where you can accept the default settings and click Next again.
- The configuration page allows you to choose between a .csv and an .xlsx file for your exported report. The default “.csv” should be fine, but you can choose “xlsx” if you would rather download it as an Excel spreadsheet.
-
6Back up your encryption or select a backup. Next, you will be asked if you want to back up your encryption. Click Next to continue. Alternatively, you can click Backup Location and select a backup on your computer that you want to use as your default backup location. Click Next to continue.
-
7Agree to the disclaimers and click Start Analysis to start the scan. Click the checkbox below the “Consensual Use Only” disclaimer and the “Important Disclaimer," then start the analysis.
- You may need to enter your device password to unlock your device.
- If you choose to create a backup, iMazing will carry that process out first, which may take a while depending on your device's storage.
-
Click Open Report to review your results. Once the scan is done, a pop-up will report the scan's findings. A clean scan will include the phrase No signs of infection detected. If iMazing detects spyware, it will say Possible infection detected.[5]
- If you have a clean scan, you do not need to open your report. While false positives can happen, false negatives are not a concern.
- Pay particular attention to the Malware column and search for the term Pegasus.
- If you do not see any of the detected malware labeled as Pegasus, you do not have to worry about Pegasus spyware. Of course, you should still work to rid your device of any detected malware.
-
Send your report to iMazing to check for false positives. You can send the report to imazing.com/contact. The developer promises to get back to you quickly.[6]
- If iMazing confirms your positive scan, they will connect you with the help needed to clean your device. Keep in mind their tool is purely a detection service.
- While waiting for a response from iMazing, you may continue to use your device, but you should refrain from communicating with others to not expose them to the malware.
Detecting Pegasus on Android
-
Visit the MVT GitHub page to learn about the tool. If you want to know if Pegasus is on your Android phone, you will have to use the official detection tool from Amnesty International. This tool is designed for forensics experts and is only available for Linux and macOS, though Windows users can use it with Windows Subsystem for Linux. There's no graphical user interface, so you'll need to use the Terminal on Mac and Linux or PowerShell on Windows.
- You won't see any obvious "You have Pegasus!" notifications. However, you can use this tool to gather evidence that will be useful to share with experts.
- The Amnesty MVT can only offer limited insights on Android devices, as Android devices do not store as much diagnostic information as iPhones.[7]
-
2Install Windows Subsystem for Linux (Windows only). MVT is not officially supported on Windows; however, Windows users can install Windows Subsystem for Linux (WSL), which will install a Linux environment within Windows. You can use this to run MVT on your Windows computer. Use the following steps to install WSL on Windows:[8]
- Click the Windows Start menu.
- Type powershell.
- Right-click PowerShell and click Run as Administrator.
- Type wsl –install.
- Restart your computer and open a PowerShell window.
- Type wsl.exe –list –online to view the available Linux distributions
- Type wsl.exe –install <distribution name> to install a specific distribution. Enter wsl.exe –install ubuntu to install Ubuntu (recommended).
- Follow the prompts to create a username and password.
- To access Linux, open PowerShell, type WSL, and press Enter. Alternatively, you can find your Linux distribution in the Windows Start menu.[9]
-
Install Xcode and Homebrew (Mac Only). If you already have these tools installed, you can skip this step. Use teh following steps to install Xcode and Homebrew:
-
4Open a Terminal window. Use one of the following commands to do so:
- Linux: Press Ctrl + Alt + T to open the Terminal.
- Mac: Click the magnifying glass icon in the upper-right corner. Then enter “Terminal” in the search bar. Click the Terminal icon.
- Windows: Open a PowerShell window, type wsl, and press Enter. Alternatively, you can click the Linux distribution you installed in the Windows Start menu.
-
Download and install Python. You will need Python 3.6 or later installed on your computer to run MVT. Use the following steps to install it within the Terminal:
- Linux & Windows: Check your Python version by running python at the prompt. If it's an older version, use sudo apt-get install python (Ubuntu) or sudo yum install python (Redhat/Fedora) to update.
- Mac: The version of Python that comes with macOS is dated, so run the command brew install python to get the latest version.
-
Install Android SDK Platform Tools for Linux. This contains the tools you'll need to interact with your Android, including adb (Android Debug Bridge). Use one of the following steps to download and install it:
- Linux & Windows Command Line: Type sudo apt update and press Enter to update your repository. Then type sudo apt install android-sdk-platform-tools and press Enter. On Fedora/Redhat/SUSE, type sudo dnf install android-tools and press Enter.
- Mac: Type brew install --cask android-platform-tools and press Enter.[13]
-
Install the dependencies. We need to install some basic dependencies that will allow us to run MVT.
-
Linux & Windows:
- Type sudo apt install python3 python3-pip libusb-1.0-0 sqlite3 and press Enter.
- For Ubuntu 23.04 and above, run sudo apt install pipx and press Enter. Then type pipx ensurepath and press Enter.
- For Ubuntu 22.04 and below, type python3 -m pip install --user pipx and press Enter. Then type python3 -m pipx ensurepath and press Enter.
- Mac: Type brew install python3 libusb sqlite3 and press Enter.
-
Linux & Windows:
-
8Install MVT. To do so, type bash pipx install mvt into a Terminal window and press Enter.
-
Enable debugging on your Android. If you haven't already done so, open your Android's Settings, tap About phone, then tap "Build Number" 7 times.[14] Tap the back button, and you'll now see a menu called "Developer Options."[15] Once enabled, you can turn on USB debugging:
- In your Settings, go to Developer Options (it may be under System > Advanced on some devices).
- Tap the toggle switch next to “USB Debugging.”
-
Connect your Android to your PC with a USB cable. Ensure your device is unlocked and connected to the internet. When prompted on your Android, select Trust. Once your Android device is connected, open a Terminal window and type abd devices and press Enter.
- MVT can only analyze SMS messages containing links, but these tend to be the most high-risk messages anyway.[16]
- MVT may request some extra permissions to scan parts of your device, but this would require you to root your device, which would only further expose your device to malware. Simply deny these permissions and accept the available scan.
-
Type mvt-android download-iocs and press Enter. With the MVT installed, Python can now interpret its commands. This command downloads files ending with the .stix2 file extension and saves them to the app directory.[17]
- Run the ls -a command to find the files if you're not sure where they are. You'll need to specify the path to your .stix2 file to check for Pegasus.
-
Type mvt-android check-adb --iocs /path/to/stix.file --output /path/to/results and press Enter. This command will use all of MVT's options to check your Android over USB using the debug bridge, which can take a while.
- As data is compared to the specified .stix file, results will be recorded to the specified results folder. Possible matches will be indicated with a "WARNING" message, though the warnings may indicate spyware other than Pegasus.
- If you don’t want to scan your entire Android, run mvt-android without any arguments to see which individual options are available. But if you're really concerned, just run through all of the checks with mvt-android.
Expert Q&A
Video
Tips
References
- ↑ https://www.amnesty.org/en/latest/research/2021/07/forensic-methodology-report-how-to-catch-nso-groups-pegasus/
- ↑ https://www.bitdefender.com/en-us/blog/hotforsecurity/pegasus-spyware-what-it-is-and-how-to-protect-yourself
- ↑ https://securitylab.amnesty.org/case-study-the-pegasus-project/
- ↑ https://imazing.com/guides/detect-pegasus-and-other-spyware-on-iphone
- ↑ https://imazing.com/guides/detect-pegasus-and-other-spyware-on-iphone
- ↑ https://support.imazing.com/hc/en-us/requests/new
- ↑ https://docs.mvt.re/en/latest/android/methodology/
- ↑ https://www.theverge.com/2021/7/21/22587234/amnesty-international-nso-pegasus-spyware-detection-tool-ios-android-guide-windows-mac
- ↑ https://learn.microsoft.com/en-us/windows/wsl/install
- ↑ https://support.apple.com/guide/terminal/open-or-quit-terminal-apd5265185d-f365-44cb-8b09-71a064a42125/mac
- ↑ https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
- ↑ https://brew.sh/
- ↑ https://docs.mvt.re/en/latest/install/
- ↑ https://developer.android.com/studio/debug/dev-options
- ↑ https://www.samsung.com/us/support/answer/ANS00087642/
- ↑ https://github.com/mvt-project/mvt/blob/main/docs/android/backup.md
- ↑ https://docs.mvt.re/en/latest/iocs/
- ↑ https://ijclinic.law.uci.edu/clipping-pegasuss-wings/basics-of-pegasus/
- ↑ https://www.amnesty.org/en/latest/research/2021/07/forensic-methodology-report-how-to-catch-nso-groups-pegasus/
- ↑ https://www.aljazeera.com/news/2022/2/8/what-you-need-to-know-about-israeli-spyware-pegasus
- ↑ https://ijclinic.law.uci.edu/clipping-pegasuss-wings/basics-of-pegasus/
- ↑ https://www.trendmicro.com/en_us/research/21/i/analyzing-pegasus-spywares-zero-click-iphone-exploit-forcedentry.html
- ↑ https://www.belkin.com/support-article/?articleNum=8455















