You probably don’t think much about where the signal bars in your iPhone’s status bar come from. Cell towers are all over the place, and it basically Just Works. But that’s exactly what nefarious parties are banking on.
In reality, not all cell towers are created equal. Rogue base stations, also known as IMSI catchers and stingrays, can mimic real cell towers, force your iPhone onto an unencrypted protocol, and harvest device information. An app called “CellGuard” can help protect you.
What is CellGuard?
Catching rogue cell towers
CellGuard is an iPhone app that looks for signs of these rogue base stations. They trick your phone into connecting to them by masquerading as a cell tower. Then, the attacker can track your location, intercept network traffic, or even try to attack the firmware of your iPhone’s baseband chip.
On 2G networks, phones connect without any real verification, which is pretty insecure. It’s why people are encouraged to disable 2G connectivity. However, 3G and newer networks have to authenticate themselves to your phone. This isn’t perfect, though. State-sponsored attackers can get carriers to cooperate, and that’s not as uncommon as you might think.
Some rogue base stations are so well made that they’re indistinguishable from a real one. The good news is attackers still have to deal with practical limitations, and that’s where CellGuard comes in. It captures the “packets” exchanged between your iPhone’s cellular baseband chip and iOS, then compares them against your location history using a handful of metrics.
From CellGuard:
- Existence of a cell in Apple’s Location Services (ALS) database. This metric detects rogue base stations that are put up for a short period of time.
- Distance between ALS cell and actual user location. This metric detects rogue base stations that were set up with the wrong parameters.
- Comparison of a cell’s frequency channel and physical cell ID with ALS. This metric also detects rogue base stations that were set up with the wrong parameters.
- Bandwidth. This metric detects rogue base stations that use low-cost or deprecated hardware.
- Network reject packets. This metric uncovers network authentication failures.
- Signal strength. This metric shows if a rogue base station tried to force users to connect to it by sending a significantly stronger signal than other base stations.
Don’t panic over a warning
False alarms are expected
Now, once you have CellGuard set up, it likely won’t take long to get a few warnings. There are several legitimate reasons why that can happen. For example, a brand new cell tower from your carrier can take a few days to show up in Apple’s database. CellGuard won’t recognize it right away.
This is why CellGuard uses so many different metrics. Still, the developers admit that most warnings you see will be false alarms. Thankfully, rogue base station attacks are rare. And even if you really did connect to one, that doesn’t mean you’re being hacked or surveilled.
Plus, should you actually connect to a rogue base station, there’s not a ton you can do. A warning means you’re already connected to the suspicious cell. If you think it’s legit, your best course of action is to turn on Airplane Mode or power off the phone.
So, this isn’t a magic shield, but it’s better to have a smoke detector that’s easily tripped than no smoke detector at all.
How to install CellGuard for iPhone
Time for a Test Flight
CellGuard is currently in beta, and it supports all iPhones running iOS 16 or later (even the iPhone Duo). There are a few different ways to install it, but I’ll cover the method that applies to most people: an iPhone without jailbreak or Lockdown Mode.
The downside to using CellGuard without jailbreak is you’ll need to manually create a system diagnosis (sysdiagnose) every few hours and import it into CellGuard. Detailed baseband information only shows up in these logs after you install a special debug profile from Apple.
- Download the “Baseband for iOS” debug profile from Apple’s developer site.
- Go to your iPhone settings and install the profile.
- Install TestFlight and follow the on-screen instructions to join the CellGuard beta.
Once you’re in the app, you’ll want to capture your first sysdiagnose.
- Press and release both volume buttons and the side button (or top button on some models) for about 1 second. You’ll feel a short vibration, and your phone will probably take a screenshot.
- After it’s done (about 3 minutes), head to Settings > Privacy & Security > Analytics & Improvements > Analytics Data.
-
Scroll down and select the file named
sysdiagnose_[...].tar.gz. Tap the share button and send it to CellGuard.
Don’t expect life-changing information
For most people, CellGuard isn’t going to reveal anything super suspicious. The warnings will mostly be false alarms, and the manual sysdiagnose routine isn’t exactly convenient. Android’s built-in tool is much more useful. But if you’re a journalist, an activist, a security nerd, or just someone who finds this stuff interesting, it’s an inside look at what your phone is doing on the cellular side.

Credit: CellGuard
Credit: CellGuard


























































