Journal of Independent Cultural Commentary

DAWAT FREE MEDIA

Promoting independent discourse, regional literature, and historical research across borders.

Mobile Surveillance Forensics

How to Tell if Your Phone is Tapped: The Technical Guide to Detecting Spyware, IMSI-Catchers, and Surveillance

A forensic diagnostic manual for uncovering commercial stalkerware, state-grade spyware like Pegasus, rogue cellular base stations, and baseband telemetry leaks on iOS and Android devices.

Mobile device forensic triage and hardware isolation setup
Conducting hardware-level mobile diagnostics: analyzing system logs, packet dumps, and cellular baseband telemetry for indicators of compromise (IoCs). (Illustration: Dawat Security Desk)

When public-interest journalists, legal counsel, or civil activists suspect their smartphones have been compromised, they are frequently misdirected by consumer folklore. Popular internet rumors claim that dialing USSD codes like *#21# or listening for “clicking sounds during calls” proves wiretapping. In reality, modern cellular interception operates entirely silently through digital baseband manipulation, SS7 signaling exploitation, and zero-click mobile exploit chains such as NSO Group’s Pegasus or Cytrox’s Predator.

Detecting whether a modern iOS or Android device is actively monitored requires forensic evidence triage: analyzing background battery discharge curves, extracting device crash logs, inspecting cellular radio handoffs for rogue base stations (IMSI-catchers), and parsing filesystem artifacts using open-source forensic toolkits.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚             MOBILE THREAT TAXONOMY & INTERCEPTION VECTORS              β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ ATTACK VECTOR      β”‚ EXPLOIT MECHANISM  β”‚ VISIBLE ARTIFACTS            β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 1. Zero-Click Spywareβ”‚ Memory corruption  β”‚ WebKit/iMessage crash logs,  β”‚
β”‚    (Pegasus/Predator) β”‚ (FORCEDENTRY, etc) β”‚ persistent anomalous daemon  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 2. IMSI-Catcher     β”‚ 2G/GSM downgrade   β”‚ Unencrypted BTS broadcast,   β”‚
β”‚    (StingRay/Hailstorm)β”‚ Forced radio attachβ”‚ Sudden signal drop to Edge/2Gβ”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 3. Commercial Stalkerβ”‚ Sideloaded APK or  β”‚ Accessibility abuse, rogue MDMβ”‚
β”‚    Apps (mSpy/Flexi) β”‚ iCloud sync abuse  β”‚ profile, high battery drain  β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 4. SS7 / Diameter   β”‚ Core telco routing β”‚ Zero device artifacts;      β”‚
β”‚    Network Attacks   β”‚ Location & SMS rerouteβ”‚ Intercepts SMS 2FA codes   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

1. Debunking the USSD Code Myth (*#21#, *#62#)

A persistent myth across social media claims that dialing MMI/USSD codes such as *#21# or *#62# reveals whether government agencies or hackers are wiretapping your device.

DIALED STRING:  *#21#
RESPONSE:       "Voice Call Forwarding: Not Forwarded"
                "Data Call Forwarding: Not Forwarded"

The Technical Reality: These GSM feature codes query your carrier’s standard conditional call-forwarding settings. If your voice calls are forwarded to your voicemail provider’s number (e.g., when your line is busy or outside coverage), the screen displays a phone number. This is ordinary carrier voicemail routing, not a tap.

Government lawful intercept (CAPI/ETSI standards) occurs directly at the telephone exchange or mobile core network (PGW/SGW). It executes inside the telecommunications service provider’s infrastructure without modifying your local phone’s call-forwarding tables.


2. Hard Indicators of Compromise (IoCs)

To determine if malicious implants are running locally on your device, monitor for verifiable telemetry anomalies:

A. Abnormal Ambient Thermal Output & Battery Drain

Malicious spyware operating on mobile OS must maintain persistence, harvest data (microphone buffers, ambient room audio, location history, WhatsApp SQLite databases), and exfiltrate payloads to Command-and-Control (C2) domains. - If your device is noticeably warm while sitting idle on a nightstand with all foreground applications closed, background processes are consuming CPU cycles. - On iOS, navigate to Settings > Battery and inspect the 24-hour battery utilization. If system daemons or deleted applications account for more than 15% of battery drain without corresponding screen time, investigate immediately.

B. Cellular Radio Downgrade Attacks (IMSI-Catchers)

Rogue Cell-Site Simulators (commonly called StingRays) operate by transmitting higher power beacons than surrounding legitimate cell towers, forcing nearby mobile devices to disconnect from LTE/5G and attach to the rogue tower. - Forced 2G Downgrade: Because 2G (GSM) authentication is one-way (the handset proves identity to the tower, but the tower never cryptographically authenticates itself to the handset), StingRays force connections onto 2G where A5/1 or A5/2 encryption can be broken or disabled completely. - If your phone abruptly shifts from full 5G/LTE reception to 2G / EDGE / E / GPRS while in a central urban zone or government district, an active radio interception device may be operating in your immediate vicinity.

[Target Mobile Handset]
        β”‚
        β”œβ”€β”€ 1. Broadcasts higher transmit power beacon ──────► [Rogue BTS / IMSI-Catcher]
        β”œβ”€β”€ 2. Forces radio disconnect from legitimate 5G tower β”€β”€β”˜
        β”œβ”€β”€ 3. Demands unencrypted 2G (GSM) attach request
        └── 4. Reads IMSI, IMEI, and captures unencrypted voice/SMS traffic

3. Forensic Triage on iOS: Sysdiagnose & MVT

The gold standard for validating whether an iPhone has been targeted by state-sponsored zero-click spyware is the Mobile Verification Toolkit (MVT), developed by Amnesty International Security Lab.

AIR-GAPPED COMPLIANCE AUDIT

Score Your Operational Hardware Security

Run our 5-pillar verification checklist in local browser memory to audit your mobile operating system integrity, passphrase entropy, and communications security.

Launch Verification Decision Tree

Running Mobile Verification Toolkit (MVT) on iOS

# 1. Install MVT via Python Package Index
pip3 install mvt

# 2. Generate an unencrypted local iPhone backup using libimobiledevice
idevicebackup2 backup --full ~/ios_backup/

# 3. Download the latest Citizen Lab & Amnesty STIX Indicators of Compromise (IoCs)
git clone https://github.com/AmnestyTech/investigations.git ~/mvt_iocs/

# 4. Execute forensic database scan against SMS, Safari history, and WhatsApp databases
mvt-ios check-backup --iocs ~/mvt_iocs/ ~/ios_backup/[DEVICE_UUID]/

MVT parses SQLite records across: - DataUsage.sqlite (monitors binary processes making outbound socket connections). - Safari.db (detects known exploit redirect domains). - SMS.db (flags invisible binary SMS containing WAP-push trigger vectors).


4. Forensic Triage on Android: Logcat & Network Dumps

On Android devices, commercial stalkerware often disguises itself under generic system package names like com.network.engine, Device Health Services, or System Update.

Auditing Installed Packages via Android Debug Bridge (ADB)

# Connect device via USB with USB Debugging enabled in Developer Options
adb devices

# List all third-party installed packages with associated installer provenance
adb shell pm list packages -3 -i

# Inspect applications granted Device Administrator privileges (wiping, lock-screen bypass)
adb shell dpm list-active-admins

# Check for applications granted accessibility service permissions
adb shell settings get secure enabled_accessibility_services

[!WARNING] If any application other than legitimate screen readers (e.g., TalkBack) or password autofill managers is listed under enabled_accessibility_services, it has full programmatic access to read all screen text, capture passwords, and log encrypted Signal/WhatsApp chat windows in real-time.


5. Mobile Hardware Comparison: Vulnerability Profiles

Surveillance Threat Standard iPhone (iOS) Google Pixel with GrapheneOS Standard Android (Samsung/Xiaomi)
Zero-Click iMessage Exploits Vulnerable (Unless Lockdown Mode Enabled) Immune (No iMessage subsystem) Immune to iMessage; vulnerable to RCS/MMS
Baseband Radio Isolation Shared memory space with AP Sandboxed baseband IOMMU memory protection Varies; budget chips often share SoC bus
IMSI-Catcher Protection Disables 2G via Settings toggle Hardened baseband filtering; zero 2G support Requires manufacturer toggle (often absent)
Accessibility Stalkerware Immune (Sandboxed iOS IPC) Immune (Fine-grained permission toggles) Highly Vulnerable (Sideloaded APKs)
Air-gapped Forensic Extraction Full sysdiagnose / MVT support Native audited memory dump support Fragmented log files across vendor UIs

6. Immediate Remediation Protocol

If diagnostic indicators suggest your device has been compromised:

  1. Physical Air-Gap Isolation: Immediately power down the device and place it into a multi-layer radio-frequency shielding Faraday bag or metal enclosure. Merely toggling “Airplane Mode” does not prevent malicious malware from continuing to record ambient room audio and caching GPS coordinates for later exfiltration.
  2. Do Not Restore from Cloud Backups: Never restore an iCloud or Google One backup to a new device. Exploit payloads and persistence scripts can reinfect the clean handset upon sync.
  3. Migrate Accounts on Clean Hardware: Using an uncompromised desktop workstation, immediately reset your primary email account, password vault, and mobile carrier account credentials. Revoke all active session tokens and enroll physical FIDO2 hardware security keys.
  4. Permanent Device Retirement: Once an endpoint is infected with state-level firmware or baseband implants, factory resetting the partition table is insufficient. The hardware should be quarantined for academic research or permanently retired.
Standard Operating Procedure Step-by-Step Field Protocol

How to Detect Spyware and Interception on a Smartphone

A technical procedure for detecting mobile spyware, IMSI-catchers, and unauthorized background telemetry.

  1. Audit Background Battery and Data Consumption: Inspect Settings > Battery and Data Usage for unexplained consumption by background daemons.
  2. Inspect Cellular Handoffs for 2G Downgrade Attacks: Watch for abrupt signal drops from 5G/LTE to unencrypted 2G/EDGE in urban government sectors.
  3. Extract System Logs via iOS Sysdiagnose or Android ADB: Dump device diagnostics and audit active device administrators and accessibility privileges.
  4. Run Amnesty MVT to Scan Against Known Threat Indicators: Execute Mobile Verification Toolkit to cross-reference SMS and Safari databases against STIX IoCs.
  5. Isolate Device in an RF Faraday Bag and Rotate Passwords: Power down the device, place in physical radio-shielding storage, and reset credentials on clean hardware.
Forensic Q&A

Frequently Asked Verification Questions

Key technical principles, error traps, and diagnostic standards for investigative researchers.

Does dialing *#21# reveal if your phone is tapped?
No. The *#21# code merely queries standard carrier conditional call-forwarding settings and has nothing to do with surveillance or wiretapping.
What is an IMSI-catcher or StingRay?
An IMSI-catcher is a rogue cellular base station that emits high-power beacons to trick nearby phones into connecting, downgrading them to unencrypted 2G to capture voice, SMS, and device identifiers.
How does Pegasus infect a phone without clicking a link?
Pegasus uses zero-click exploit chains targeting image and document parsing libraries in iMessage or WebKit to achieve remote memory corruption without user interaction.
Air-Gapped Compliance Audit Zero Server Uploads β€’ 100% Private RAM

Score Your Operational Hardware Security

Run our 5-pillar verification checklist in local browser memory to audit your mobile operating system integrity, passphrase entropy, and communications security.

Launch Verification Decision Tree β†’ Verification Navigator β†’

About the Contributor

The Dawat Digital Security Desk produces tactical countermeasures and forensic audits for at-risk reporters, researchers, and human rights defenders.

Curated Intelligence

Related Research & Dispatches

View Complete Investigative Archive β†’