Security & Privacy

CellGuard app detects rogue base stations on iPhone

The CellGuard app helps users identify IMSI catchers and rogue base stations by analyzing packets exchanged between the cellular baseband chip and iOS. While useful for journalists and activists, the app requires manual sysdiagnose files and a developer profile to function on iOS 16.

CellGuard app detects rogue base stations on iPhone

Rogue base stations and the CellGuard app

Rogue base stations, also known as IMSI catchers or stingrays, mimic real towers to force an iPhone onto unencrypted protocols and harvest device information. These attackers can track your location, intercept network traffic, attack the firmware, or harvest data. On 2G networks, phones connect without any real verification, while 3G and newer networks authenticate themselves to the phone. State-sponsored attackers can get carriers to cooperate, which is not uncommon. I find the CellGuard app useful for spotting these rogue stations, though its developers admit most warnings will be false alarms. The app captures packets exchanged between the cellular baseband chip and iOS and compares them against location history using several metrics.

Metric Function
ALS database existence Detects short-term rogue base stations
ALS distance/frequency/ID comparison Detects stations with incorrect parameters
Bandwidth Detects low-cost or deprecated hardware
Network reject packets Uncovers authentication failures
Signal strength Detects signals sent to force connections

A new cell tower from your carrier might take days to show in Apple’s Location Services database, causing a warning. If you connect to a rogue base station, you should turn on Airplane Mode or power off the phone.

Manual setup and usability

The manual process required to use CellGuard without a jailbreak makes it a chore. You must download the "Baseband for iOS" debug profile from Apple’s developer site and install it in your settings to see detailed baseband information. After installing TestFlight and joining the CellGuard beta, you need to manually trigger a system diagnosis. You do this by pressing and releasing both volume buttons and the side or top button for about one second. After you press and release the buttons, the phone vibrates and takes a screenshot, and then you must wait about three minutes before heading to Settings > Privacy & Security > Analytics & Improvements > Analytics Data to find the specific sysdiagnose file.

  • Download the "Baseband for iOS" debug profile from Apple.
  • Install the profile in iPhone settings.
  • Install TestFlight and join the CellGuard beta.
  • Press and release both volume buttons and the side or top button for one second.
  • Find the file in Settings > Privacy & Security > Analytics & Improvements > Analytics Data.
  • Share the sysdiagnose file with CellGuard.

I find the requirement to create a sysdiagnose every few hours incredibly inconvenient, especially since Android’s built-in tool is much more useful. The app supports all iPhones running iOS 16 or later, including the iPhone Duo. I would only recommend this to a journalist, an activist, a security nerd, or a tech hobbyist who wants an inside look at cellular activity.