Skip to main content

IPV Spyware Discovery (ISDi) Tool

ISDi tool checks Android or iOS devices for apps that can be used for surveillaince (a.k.a "stalkerware", "spouseware", "spyware" apps). ISDi's technical details are included in "Clinical Computer Security for Victims of Intimate Partner Violence" (USENIX 2019). The blacklist is based on apps crawled in "The Spyware Used in Intimate Partner Violence" (IEEE S&P 2018).

ISDI_Linter Sync with IOC stalkerware indicators

Contribution Guidelines

For more information about contributing to ISDi, see the contribution guidelines.

Installing ISDi 💻

ISDi currently supports macOS, Linux, and Termux/Android. If you are using a Windows device, you can use the Windows Subsystem for Linux 2 (WSL2), which can be installed by following these instructions. After this, follow the remaining instructions as a Linux user would.

System Requirements

Python

  • Python 3.8 or higher is required
  • Check your version: python3 --version
  • On macOS, install via: brew install python
  • On Linux (Debian/Ubuntu): sudo apt install python3 python3-pip

Operating System Dependencies

ISDi needs adb for scanning Android devices and pymobiledevice3 for scanning iOS devices.

macOS:

brew bundle
# Or manually:
brew install --cask android-platform-tools

For iOS device support on macOS, pymobiledevice3 will be installed automatically with ISDi. For Android device support, ensure adb (Android Debug Bridge) is installed via the android-platform-tools above.

Linux (Debian/Ubuntu):

sudo apt install adb

For iOS device support on Linux, pymobiledevice3 will be installed automatically with ISDi. For Android device support, ensure adb is installed via the command above.

Windows Subsystem Linux (v2):

  • Install adb and pymobiledevice3 in Windows and ensure it's in PATH. Do not install them in WSL2, as WSL cannot have access to USB devices. Verify the installation by running adb.exe and pymobiledevice3.exe in a command prompt terminal.

Termux/Android: See TERMUX_INSTALL.md for Android device setup.

The easiest way to install ISDi is via pip:

pip install isdi-scanner

Option 2: Install from Source (Development)

Clone the repository and install in development mode:

git clone https://github.com/stopipv/isdi.git
cd isdi
pip install -e .

Running ISDi

After ISDi is installed, with an Android or iOS device plugged in and unlocked, run:

isdi run

ISDi will start a local web server on port 6200. Open your browser to http://localhost:6200 for the ISDi UI. In debug mode, the server is on port 6202.

Note: On first run, ISDi will download the app information database (~47MB) from GitHub. This may take a minute depending on your internet connection. An internet connection is required for the first run.

Command Options

isdi run              # Normal mode
isdi run --debug      # Debug mode (verbose logging)
DEBUG=1 isdi run      # Alternative debug flag
isdi --help           # Show all options

Then navigate to the URL shown in the terminal. Click on "Scan Instructions" and follow the instructions to prepare your device for the scan.

It should look something like this:

Phone Scanner UI before scan

Connect a device and click on the suitable button Android or iOS. Give it a nickname and click "Scan now". (Please connect one device at a time.) It will take a few seconds for the scan to complete. We are working to have all scan results done at once on Android, but for the time being please leave the device plugged in when clicking on apps on the scan results table.

After the scan, the UI will look something like this:

Phone Scanner UI after scan

Debugging Tips

Android

Check device connection:

adb devices

iOS

Check device connection:

pymobiledevice3 usbmux list

General

  • Run ISDi with --debug flag for verbose logging
  • Check logs in ~/.local/share/isdi/logs/
  • File issues on GitHub with error messages

Termux/Android

See TERMUX_INSTALL.md for Termux-specific troubleshooting.

Downloaded data

The data downloaded and stored in the study are the following. 1. A sqlite database containing the feedback and actions taken by the user. 2. phone_dump/ folder will have dump of some services in the phone. (For Android I have figured out what are these, for iOS I don't know how to get those information.)

Android

The services that we can dump safely using dumpsys are the following.

  • Application static details: package Sensor and configuration info:
  • location, media.camera, netpolicy, mount Resource information:
  • cpuinfo, dbinfo, meminfo Resource consumption: procstats,
  • batterystats, netstats, usagestats App running information: activity,
  • appops

See details about the services in notes.md

iOS

Only the appIds, and their names. Also, I got "permissions" granted to the application. I don't know how to get install date, resource usage, etc. (Any help will be greatly welcomed.)

Code Structure

  • src/isdi/scanner/ - Core scanning logic

    • parse_dump.py - Parses device dumps (Android/iOS)
    • android_permissions.py - Android permission analysis
    • privacy_scan_android.py - Android privacy scanning
    • blocklist.py - Stalkerware/spyware blocklist management
    • lightweight_df.py - CSV/data processing (pandas-free)
    • db.py - SQLite database operations
    • pmd3_wrapper.py - Termux-compatible pymobiledevice3 wrapper
  • src/isdi/web/ - Flask web application

    • templates/ - HTML templates for the web UI
    • static/ - CSS, JavaScript, and images
    • schema.sql - Database schema (embedded in code)
    • forms/ - WTForms for consultation forms
    • model/ - SQLAlchemy models
    • view/ - Flask route handlers
  • src/isdi/scripts/ - Shell scripts for device interaction

    • android_scan.sh - Android device scanning
    • ios_scan.sh - iOS device scanning
  • src/isdi/data/ - Static data and reference files

    • app-flags.csv - App classification metadata
    • app-info.db - Cached app information
    • android_permissions.csv - Android permission database
    • ios_permissions.json - iOS permission database

See notes.md for other developer helps.

Metadata

Release files for isdi-scanner 1.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for isdi-scanner 1.0.10
File Size Uploaded Provenance Actions
isdi_scanner-1.0.10.tar.gz 1.7 MB Without provenance Details for isdi_scanner-1.0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for isdi-scanner 1.0.10
File Interpreter ABI Platform Actions
isdi_scanner-1.0.10-py3-none-any.whl Python 3 none any Details for isdi_scanner-1.0.10-py3-none-any.whl

Total release size: 3.5 MB

Release files / isdi_scanner-1.0.10.tar.gz

Download URL isdi_scanner-1.0.10.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
2997ba2fc8563ccd29c283c7f8628517b5fd8f816b4cfde7a24bf1a6d936cb6e
BLAKE2b-256 checksum
How to use checksums
aea3401c324aa787e249b25f06fd01b343bf115d9ba9bc4e2be7974d0ad230fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / isdi_scanner-1.0.10-py3-none-any.whl

Download URL isdi_scanner-1.0.10-py3-none-any.whl
Size 1.7 MB
Tags Python 3
SHA-256 checksum
How to use checksums
8d6a325b3d80bed4a992890b10b9c6a4d2276fa3e4b26e40bf8a7ce395157e9f
BLAKE2b-256 checksum
How to use checksums
354995fc79c22bfdb474ce94cf65a9ec9ea07603df6019cb3db6dbb5dc6ffaaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for isdi-scanner 1.0.10

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page