Practical guide, written for Europe
Find fake phone towers, and keep your devices away from them
A stingray is a fake mobile phone tower that tricks nearby phones into connecting to it. This guide explains how they work and shows you how to build a cheap detector with the EFF's free Rayhunter software. It then covers how to investigate a suspicious cell and how to make your phone and home router harder to catch.
How to use it
Chapters 1 and 2 explain the threat. Chapters 3 to 6 build and run the detector. Chapters 7 to 9 explain what to do with what you find.
Just want to protect your phone?
Jump straight to chapter 8. It needs no extra hardware and takes about ten minutes.
Beginner first
The main text is written for beginners. The dashed Advanced boxes cover Wireshark, cell maths and modem commands. Skip them if you like.
Keep it in proportion. Most people will never be targeted by a fake tower. The settings in chapter 8 are cheap insurance for everyone. A Rayhunter detector is most useful for journalists, activists, protest observers, lawyers, and anyone who wants to help collect evidence of how these devices are used.
Chapter 1 · Understand
What a stingray is and what it can do
In one sentence: a stingray, also called an IMSI catcher or cell site simulator, is a radio box that pretends to be a mobile phone tower. Phones nearby connect to it automatically, and it learns who they are.
Your phone always looks for the strongest tower from your operator. It has no reliable way to check whether that tower is real. A fake tower that sends a strong signal with the right operator code (country plus network code) will often win. Once your phone connects, the fake tower can ask for its permanent identity.
What it can do
- Identify and count phones. It collects the IMSI (the number stored in your SIM card) and often the IMEI (the serial number of the phone). Together these show which people were at a place, for example a protest.
- Locate a phone. By measuring signal strength from several positions, an operator can find a specific phone to within a few metres.
- Push phones down to 2G. 2G (GSM) is from the early 1990s. Its encryption is weak, and the network does not have to prove it is genuine. A fake 2G tower can then read or block ordinary calls and SMS, or send fake SMS.
- Block service. While your phone is attached to a fake tower, calls and data may silently fail.
What it usually cannot do
- Read end-to-end encrypted apps. Signal, WhatsApp, and FaceTime encrypt messages and calls on your device. A fake tower sees only scrambled data.
- Read HTTPS websites. The tower can see which servers you contact, not what you send to them.
- Break modern 4G and 5G encryption directly. That is why most attacks either grab your identity before encryption starts, or push you down to 2G.
Why 4G is not enough on its own. On 4G a phone may send its IMSI in plain text before it has checked the tower, so a fake 4G tower can still collect identities. 5G "standalone" networks fix this by encrypting the identity (called SUCI). Many European networks still run 5G "non-standalone" on top of 4G, and phones fall back to 4G and 2G all the time.
Chapter 2 · Understand
Who uses them, and the situation in Europe
Police and intelligence services are the best documented users. In Europe, several countries allow it explicitly in law. Germany is one example: section 100i of its Code of Criminal Procedure covers "IMSI catchers". Most countries do not publish how often they are used, against whom, or under what oversight. That lack of data is why the EFF built Rayhunter.
Criminals use cheaper versions too. The most common today is the "SMS blaster". It pushes nearby phones down to 2G and sends thousands of phishing text messages that appear to come from a bank or delivery company. Police in several countries, including in Europe, have arrested people driving around with these devices in their cars.
Foreign intelligence is the third group. Suspected fake towers have been reported over the years near government buildings in several European capitals.
Detection is legal. Interference is not. Rayhunter only listens to what a cheap mobile hotspot receives anyway. It does not transmit anything unusual. Jamming, building your own transmitter, or interfering with a tower, real or fake, is a crime across the EU. Laws on recording radio traffic differ between countries, so check local rules if you plan to use this for work. This guide is not legal advice.
Chapter 3 · Detect
Get the right hardware
Why this device: Rayhunter needs a mobile hotspot with a particular Qualcomm chip that lets software read the raw talk between modem and tower. The EFF recommends the TP-Link M7350 for Europe, Africa and the Middle East.
Do not buy hardware version 10.0. Rayhunter does not work on V10.0, and the EFF expects it never will. Most new M7350 units sold today are V10.0. Buy a second-hand unit and check its version before you pay.
Check the hardware version
The version is printed on the label under the battery, or next to the barcode on the box, written like Ver: 3.0 or V3.0. When you buy online, ask the seller for a photo of that label.
| Hardware version | Works with Rayhunter? | Notes |
|---|---|---|
| 1.0 | Yes | Format the microSD card as FAT32 first. |
| 2.0 | No | Not supported. The developers have no unit to test. |
| 3.0, 3.2 | Yes | V3.0 has a simple black and white screen. |
| 4.0 | With effort | Needs a manual firmware downgrade first. Avoid unless you are comfortable doing that. |
| 5.0, 5.2, 7.0, 8.0 | Yes | Tested, no known issues. |
| 6.2 | Probably | One user reports it works. Not officially tested. |
| 9.0 | Yes | Works since Rayhunter 0.3.2. |
| 10.0 | No | Does not work. Most new units are this version. |
Where to look in Europe
- Second-hand marketplaces such as eBay, Kleinanzeigen, Marktplaats, Leboncoin, Subito, Wallapop, OLX, or local equivalents. Search for "M7350".
- Refurbished electronics shops sometimes have older stock.
- Ask friends. Many people have an old pocket hotspot in a drawer.
What else you need
- A SIM card. It must be inserted, but it does not need an active plan. For the best results, use a SIM from the same operator as your phone, because a fake tower normally imitates one operator. An active data plan is needed only if you want push alerts on your phone (chapter 5).
- A microSD card. Any small card works, formatted as FAT or FAT32. Rayhunter stores all recordings on it.
- A computer running Windows, macOS, or Linux, for the one-time installation.
- A USB cable that carries data, not only power.
Know its blind spots. The M7350 only receives 4G bands 1, 3, 7, 8 and 20, 3G bands 1 and 8, and 2G at 850, 900, 1800 and 1900 MHz. It has no 5G and no 4G band 28 (700 MHz). A fake tower on a band it cannot hear goes unnoticed. It also follows only the operator of its own SIM.
Other supported devices. In the Americas, the EFF recommends the Orbic RC400L. Other hotspots work too, such as the TP-Link M7310 and M7200 and the FY UZ801. See the supported devices list. The rest of this guide covers only the M7350.
Chapter 4 · Detect
Install Rayhunter on the TP-Link M7350
1. Prepare the hotspot
- Open the back cover. Insert the SIM card and the microSD card, then the battery.
- Charge it, then turn it on by holding the power button on the front.
- Connect your computer to the hotspot's Wi-Fi. The network name and password are on the label under the battery, or on the hotspot's screen menu.
- Open
http://192.168.0.1in your browser. If you see the TP-Link login page, the connection works. You can close it again.
2. Download the installer
Open the Rayhunter releases page. Under the release marked Latest, click Assets and download the file for your computer. At the time of writing the newest version is v0.13.0. If a newer one exists, use that and change the version number in the commands below.
Download the file named rayhunter-v…-PLATFORM.zip. Do not download "Source code (zip)", which GitHub adds to every release automatically.
Windows Download and open PowerShell
- Download
rayhunter-v0.13.0-windows-x86_64.zip. - In File Explorer, right-click the file and choose Extract All.
- Hold Shift, right-click the extracted folder, and choose Open in PowerShell (on Windows 11: Open in Terminal). Use PowerShell, not the old Command Prompt.
macOS Download and open Terminal
Download rayhunter-v0.13.0-macos-arm.zip for Apple silicon (M1 or newer) or …-macos-intel.zip for an Intel Mac. Not sure? Apple menu > About This Mac shows "Chip: Apple" or "Processor: Intel". Open Terminal and run:
cd ~/Downloads unzip rayhunter-v0.13.0-macos-arm.zip cd rayhunter-v0.13.0-macos-arm xattr -d com.apple.quarantine installer
The last line tells macOS that you trust this downloaded program. Without it, macOS blocks the installer.
Linux Download and open a terminal
Download rayhunter-v0.13.0-linux-x64.zip for a normal PC. Use linux-aarch64 for a 64-bit ARM machine such as a Raspberry Pi 4 or 5. Then run:
cd ~/Downloads unzip rayhunter-v0.13.0-linux-x64.zip cd rayhunter-v0.13.0-linux-x64
Advanced Check the download is genuine
Each zip has a matching .sha256 file on the release page. Download it next to the zip and compare the two values:
macOSLinux
shasum -a 256 rayhunter-v0.13.0-linux-x64.zip cat rayhunter-v0.13.0-linux-x64.zip.sha256
Windows
Get-FileHash .\rayhunter-v0.13.0-windows-x86_64.zip -Algorithm SHA256 Get-Content .\rayhunter-v0.13.0-windows-x86_64.zip.sha256
The two long strings must match exactly. If they do not, delete the zip and download it again.
3. Run the installer
Your computer must still be connected to the hotspot's Wi-Fi, or plugged in by USB. Then run this in the same window:
macOSLinux
./installer tplink
Windows In PowerShell
./installer tplink
The TP-Link version needs no admin password. The installer copies Rayhunter to the hotspot and restarts it. That takes a minute or two.
4. Check that it works
- After the restart, a green line appears at the top of the hotspot's screen. That means Rayhunter is running and recording.
- On the older black and white screen (V3.0), you see
:)while recording. - Open
http://192.168.0.1:8080in your browser. This is Rayhunter's own web page (chapter 5).
Something went wrong? Try a different USB cable or port, restart the hotspot, and run the installer again. ./installer --help lists all options. For further help, the Rayhunter GitHub issues are the place to ask.
5. Stop it falling asleep
By default the M7350 goes to sleep after a few minutes with no Wi-Fi devices connected. That also cuts its mobile connection, so Rayhunter stops seeing anything. Turn this off:
- Open
http://192.168.0.1and log in to the TP-Link admin page. - Go to Advanced > Power Saving and turn power saving off.
Advanced Update or remove Rayhunter
Update: download the newer release and run ./installer tplink again.
Remove: there is no one-click uninstaller. Open a root shell on the hotspot, delete the files, and remove the start-up entry:
./installer util tplink-shell # then, on the hotspot: rm -rf /data/rayhunter /etc/init.d/rayhunter_daemon update-rc.d rayhunter_daemon remove reboot
On V4.0 and newer, also delete the two port trigger entries in the admin page. Full steps are in the official uninstall guide.
Chapter 5 · Detect
Use it every day
Read the line on the screen
- Green line. Running and recording. Nothing suspicious seen.
- Yellow dots. Low-severity warning.
- Orange dashes. Medium-severity warning.
- Solid red. High-severity warning. Something looked like a fake tower.
A warning line stays until you restart the hotspot or start a new recording in the web page. That way you will not miss one that happened while the device was in your bag. On the black and white V3.0 screen you see ! for a warning, :) while recording, and : when paused.
Open the web page
Connect your phone or laptop to the hotspot's Wi-Fi and open http://192.168.0.1:8080. To see the Wi-Fi password on the device itself, use its screen menu: Advanced > Wireless > Basic Settings. On the web page you can:
- start and stop recordings,
- see each recording with its analysis and any warnings,
- download recordings (chapter 6),
- delete old recordings,
- change settings.
Rayhunter's page uses plain http, not https. Your browser may show "Not secure" or "Insecure download blocked". That is expected for a device on your own small Wi-Fi network. Choose to keep the file.
Settings worth changing
| Setting | What it does | Suggestion |
|---|---|---|
| Device UI Level | How visible the screen is: Invisible, Subtle, Demo, EFF logo, or High visibility. | Subtle if you do not want to draw attention. |
| Colorblind Mode | Shows blue instead of green. | Turn on if red and green look similar to you. |
| Clock Sync | Keeps the hotspot clock correct, so recording times match reality. | Autosync. Correct times matter when you report a warning. |
| ntfy URL and Enabled Notification Types | Sends a push alert to your phone through the free ntfy app. Choose Warnings, Low Battery, and Software Updates. | Needs an active data plan on the hotspot SIM. Use a long random topic name, for example https://ntfy.sh/rh-8f3k2q9x7w, because anyone who guesses it can read your alerts. |
| GPS Settings | Adds a location to recordings: Disabled, Fixed, or API Endpoint. | Leave Disabled unless you plan to report to the EFF. Then write down where you were instead. |
| Automatically check for software updates | Checks for new versions. | On, if the SIM has data. |
| Analyzer Heuristic Settings | Turns individual checks on and off (chapter 6). | Leave the defaults. Turn on "Test Analyzer" once to test, then off again. |
Test it once
In Analyzer Heuristic Settings, turn on the Test Analyzer. It warns every time the hotspot sees a new tower, so you should see a warning within minutes of walking around. When that works, turn it off again and start a new recording. Otherwise you get constant false alarms.
Carry it
- Battery. Plan to recharge every day. A small power bank keeps it running for a full day of events.
- Where. In a bag or jacket pocket, not wrapped in foil or at the bottom of a metal case.
- Restart counts. Check the line when you arrive somewhere and again when you leave. Then you know roughly when and where a warning appeared.
- Optional: in the settings you can enable a double-tap on the power button that starts a new recording. That is a quick way to mark "I just arrived".
Chapter 6 · Detect
Read and export the data
What Rayhunter checks for
Each recording is analysed by several separate checks, called heuristics. Each check that fires creates a warning in the web page:
| Check | What it means in plain words |
|---|---|
| IMSI Requested | A tower asked for your permanent SIM identity in a suspicious pattern: a new tower, an identity request, no normal login, then a disconnect. |
| Connection Release / Redirected Carrier 2G Downgrade | A tower dropped the connection and told the device to go to a 2G tower. |
| LTE SIB6/7 Downgrade | A 4G tower announced that 2G or 3G should be preferred over 4G. Real networks rarely do that. |
| Null Cipher | The tower proposed "no encryption" for the radio link. |
| NAS Null Cipher | The same, one layer higher, for the messages between phone and core network. |
| Incomplete SIB | The tower's broadcast information is missing parts a real tower normally sends. Cheap fake towers often skip them. |
| Diagnostic Information | Background information about connects and disconnects. Ignore it unless there is also a real warning. |
| No NAS Messages | No normal network messages for 5 minutes. Usually means the SIM is missing, inactive, or loose. |
| Test Analyzer | Fires on every new tower. Only for testing. |
Download a recording
In the web page, find the recording with the warning and use its download link. The ZIP download holds everything:
| File | What it is | Open it with |
|---|---|---|
.qmdl | The raw recording, straight from the modem chip. | Rayhunter only. Keep it as the original evidence. |
.pcap | The same messages converted to a standard network-capture format. | Wireshark (free, for all systems). |
.ndjson | Rayhunter's analysis: which checks fired, and when. | Any text editor. |
GPS .json | Only present if you turned on GPS settings. | Any text editor. |
A recording is personal data. It contains your SIM's IMSI, the IDs of the towers around you, and with GPS on, your location. Store it encrypted, and never post it publicly. Chapter 9 explains how to share it safely with the EFF.
Advanced Look inside the PCAP with Wireshark
Install Wireshark from wireshark.org (or your Linux package manager) and open the .pcap. Each line is one control message between the modem and a tower. It contains no calls, texts, or web traffic.
Useful display filters (type into the bar at the top and press Enter):
lte-rrc # 4G radio messages: tower broadcasts, connects, releases nas-eps # 4G core messages: login, identity, security gsm_a.dtap # 2G messages, if the device was pushed to 2G
Find the suspicious moment. Use the time from the .ndjson file, or press Ctrl+F, choose String and Packet details, and search for:
Identity request: the network asked who you are. Look for "IMSI" as the identity type, then check whether an "Authentication request" follows. If not, that is the classic IMSI catcher pattern.redirectedCarrierInfoinside anrrcConnectionRelease: the tower sent you elsewhere. If it points to a GERAN (2G) frequency, that is a downgrade.eea0: "no encryption" was selected.
Identify the cell for chapter 7. Just before the suspicious messages, look for SystemInformationBlockType1. Expand it and note:
plmn-Identity: MCC (country) and MNC (operator), for example 262 / 01,trackingAreaCode(TAC),cellIdentity: a 28-bit number, the E-UTRAN Cell Identity (ECI).
The frequency (EARFCN) is shown in the GSMTAP header at the top of each packet, in the ARFCN field.
Chapter 7 · Investigate
Look up a suspect cell on CellMapper
Why: CellMapper is a free, crowd-sourced map of mobile towers. Volunteers record which cells they see, where, and on which frequency. If a cell your devices connected to is missing from the map, sits where there is no mast, or uses odd settings for that operator, that is worth noting. CellMapper also shows which bands and frequencies the real towers near you use. You need that for chapter 8.
Step 1: find out which cell you are on
You need a few numbers: the operator code (MCC and MNC), the tracking area code (TAC), the cell ID, and if possible the PCI and EARFCN. You can get them from a Rayhunter capture (chapter 6), or live from your phone:
Android Use a cell info app
Install CellMapper or Network Cell Info Lite from the Play Store. Both show the cell you are on: MCC/MNC, TAC, cell ID (CI or ECI), eNB, PCI, EARFCN, and band. Take a screenshot when Rayhunter warns.
iPhone Field Test Mode
iOS does not let apps read cell details. The built-in Field Test Mode shows a little: open the Phone app, dial *3001#12345#, and press call. Depending on your iPhone model and iOS version, it shows the serving cell's ID, TAC, band and frequency. Some newer models show very little. Use a Rayhunter capture instead.
Advanced Cell ID maths: from ECI to eNB
A 4G cell identity (ECI) is a 28-bit number. The first 20 bits are the eNB ID, the number of the base station or mast. The last 8 bits are the sector, one of its antennas.
eNB ID = ECI ÷ 256 (whole number, drop the remainder) sector = ECI mod 256 Example: ECI 26897410 eNB ID = 26897410 ÷ 256 = 105068 sector = 26897410 − 105068 × 256 = 2
CellMapper has an eNB ID calculator that does this for you. Choose "4G LTE" and enter the cell ID.
Step 2: search CellMapper
- Open cellmapper.net/map.
- Open Provider and choose your country and operator. Operators are listed by MCC and MNC, for example "262-01".
- Choose the network type (LTE for 4G, NR for 5G, GSM for 2G) and, if you know it, the band.
- Open Search. Use Tower Search with the eNB ID, Cell Search with the full cell ID, or BSIC/PCI/PSC Search with the PCI.
- Click the tower marker to see its details: sectors, PCI, band, frequency (EARFCN), bandwidth where known, and when it was first and last seen.
Step 3: judge what you see
| You find | What it may mean |
|---|---|
| The cell is on the map, at a known mast, seen for months | Very likely a real tower. Check the time and place of your warning again. |
| No cell with this ID exists anywhere nearby | Suspicious, but new real cells appear all the time and rural areas are poorly mapped. |
| The eNB ID or TAC does not fit the pattern of the operator's other cells in the area | Suspicious. Fake towers often copy the operator code but pick IDs at random. |
| A band or frequency the operator does not use there | Suspicious. Compare with the operator's other towers in the same city. |
| A cell seen only once, briefly, at one place and time | Fits a mobile fake tower, or simply poor map coverage. |
Absence is not proof. CellMapper depends on volunteers, and the map can take from minutes to a week to update. Treat it as one more piece of evidence, together with Rayhunter's warning, the time, and the place.
Step 4: write down the good cells near home
This is the part most people skip, and it is the one you need for chapter 8. Note for each real tower near your home or office:
- operator (MCC-MNC),
- bands in use, for example B3, B7, B20,
- for each sector that reaches you: PCI and EARFCN.
Chapter 8 · Protect
Set up your phone and router to avoid fake cells
The honest truth first: a normal phone cannot block one particular tower. What you can do is remove the weak spots fake towers depend on, mainly 2G, and get warned when something odd happens. A home router with the right modem can go further and lock itself to the real towers you identified in chapter 7.
Android 1. Turn off 2G
Android 12 and newer can refuse 2G entirely. The name and place differ by version and brand:
- Pixel, Android 12 to 15: Settings > Network & internet > SIMs > your SIM > turn Allow 2G off.
- Android 16: the switch is renamed 2G network protection, and you turn it on. It also appears in Settings > Security & privacy, under Mobile network security.
- Samsung Galaxy: Settings > Connections > Mobile networks. Look for Allow 2G service and turn it off. If it is missing, open Network mode and choose an option without 2G, for example "5G/LTE/3G" or "LTE/3G".
Protects against
- Being pushed down to 2G
- Calls and SMS being read over weak 2G encryption
- Most "SMS blaster" phishing devices
Does not protect against
- A fake 4G tower collecting your IMSI
- Location tracking
- Emergency calls: these can still use 2G when nothing else is available, which is intended
Android 2. Turn on network security alerts
Android 16 adds alerts when the network asks for your phone's identity or turns off encryption. Go to Settings > Security & privacy > Mobile network security > Notifications. If you cannot find it, search Settings for "Mobile network security".
Protects against
- Not knowing: you get a notification when the classic IMSI catcher steps happen
Does not protect against
- The collection itself, which has already happened when you see the alert
- False alarms: real networks sometimes do the same
Android 3. Prefer 4G and 5G only
In the same Network mode or Preferred network type menu, some phones offer "LTE only" or "5G/LTE". In Europe, most 3G networks are already switched off, so this costs little.
Only choose "LTE only" if your operator supports VoLTE (calls over 4G) and it is switched on. Otherwise you can no longer make or receive normal calls.
Protects against
- 2G and 3G downgrade attacks
Does not protect against
- Fake 4G towers
- Your operator's emergency fallback
iPhone 1. Lockdown Mode turns off 2G
iPhones have no separate 2G switch. The only way to turn off 2G is Lockdown Mode. Since iOS 17 it turns off 2G and 3G, among many other protections against targeted attacks.
- Open Settings > Privacy & Security.
- Scroll down, tap Lockdown Mode > Turn On Lockdown Mode.
- Tap Turn On & Restart and enter your passcode.
Lockdown Mode also blocks some website features, most message attachments, and calls from unknown FaceTime contacts. Many people turn it on only before a protest, a trip, or a sensitive meeting.
Protects against
- 2G and 3G downgrades
- SMS blasters
- Many other targeted attacks, as a bonus
Does not protect against
- A fake 4G tower collecting your IMSI
- Location tracking
iPhone 2. What the "Voice & Data" setting does not do
Settings > Mobile Service > Mobile Data Options > Voice & Data lets you choose 5G or LTE. This only sets a preference. The iPhone still falls back to 2G when told to, so it does not protect you. Use Lockdown Mode instead.
AndroidiPhone Habits that help on every phone
- Use end-to-end encrypted apps such as Signal for messages and calls. A fake tower then only sees scrambled data. Avoid normal SMS and phone calls for anything sensitive.
- Never trust SMS links, especially near crowds or stations, where SMS blasters operate.
- Airplane mode or power off when you do not want to be counted at a place. Airplane mode stops the mobile radio, so no tower, real or fake, sees you. Wi-Fi can stay on if you turn it back on by hand.
- Use a SIM PIN so that a stolen SIM cannot be used in another phone.
Home router Which routers can do this?
This applies to 4G/5G home routers with a SIM card, not to fibre or cable routers. How much control you get depends on the modem inside:
| Type | Typical options |
|---|---|
| Simple operator boxes (many Huawei, ZTE, TP-Link models) | Often only "Network mode" (4G only, 4G/5G). Some show band selection under an advanced or expert menu. |
| Business routers, for example Teltonika RUT series | Network mode, band lock, and cell lock in the web interface. See Teltonika's guide. |
| OpenWrt, or a router with a Quectel modem | Full control with modem "AT" commands (advanced box below). The OpenWrt "ROOter" firmware adds a cell lock page. |
Home router 1. Switch off 2G and 3G
In the router's admin page, look for Network mode, Preferred network, or Connection mode, and choose 4G only or 4G/5G. Unlike a phone, a router needs no voice calls, so there is no downside.
Protects against
- 2G and 3G downgrades
Does not protect against
- A fake 4G tower on the same bands
Home router 2. Lock to your operator's bands
Allow only the bands your operator actually uses at your home, as found on CellMapper in chapter 7, for example B3, B7, and B20.
Protects against
- Fake towers that use a different band
Does not protect against
- A fake tower on one of your allowed bands, which is common
- It can also cost speed if the operator adds a new band later
Home router 3. Lock to known good cells
This is as close as you get to "never connect to anything else". You tell the modem to connect only to cells with a specific PCI and EARFCN pair: the real sectors you wrote down in chapter 7, step 4. A fake tower would have to copy both values exactly and outshine the real one.
Protects against
- Almost all fake towers, because the router ignores everything else
Does not protect against
- A fake tower that copies the exact PCI and EARFCN
- Losing internet when the operator changes or switches off that cell. Check the lock after an outage.
Advanced Quectel AT commands for OpenWrt routers
Most OpenWrt LTE routers use a Quectel modem. Send commands with a serial terminal (for example picocom, or sms_tool at if installed) on the modem's AT port. This is often /dev/ttyUSB2, but it depends on the model. Exact syntax differs between modem models and firmware, so first check the AT command manual for your modem. Commands that work on one firmware may return ERROR on another.
Allow only 4G and 5G (RM5xx / RG5xx and other newer modules):
AT+QNWPREFCFG="mode_pref",LTE:NR5G
Lock to 4G bands 3, 7 and 20:
AT+QNWPREFCFG="lte_band",3:7:20
Lock to specific cells (number of cells, then EARFCN and PCI for each):
# one cell: EARFCN 1300, PCI 251 AT+QNWLOCK="common/4g",1,1300,251 # two cells AT+QNWLOCK="common/4g",2,1300,251,6300,64 # show the current lock AT+QNWLOCK="common/4g" # remove the lock AT+QNWLOCK="common/4g",0
- Some firmware uses
"common/lte"instead of"common/4g".AT+QNWLOCK=?shows what yours supports. - On many modems a cell lock is lost after a reboot. Add it to a start-up script, or use ROOter's cell lock page.
- Write down your current settings first, so you can undo everything.
Chapter 9 · Act
What a warning means and what to do next
A warning is a lead, not proof. Real networks sometimes ask for identities, for example after a SIM swap or a network fault. They also redirect phones during maintenance. Rayhunter is designed to warn rather than to miss something, so some warnings are false alarms.
At the moment of the warning
- Stay calm and note the facts: time, exact place, what was happening (an event, a protest, a police presence), and the colour of the line.
- If you are somewhere sensitive, switch your phone to airplane mode or turn it off, and leave the area if you can. The EFF gives no one rule for everyone. It depends on your situation.
- Do not restart the hotspot yet. Let it keep recording.
Afterwards
- Download the recording's ZIP from the web page (chapter 6).
- Check the cell on CellMapper (chapter 7) and note what you found.
- Start a new recording to clear the warning.
- If you think it is real, report it.
Report it to the EFF, safely
The EFF collects recordings to document how fake towers are used worldwide, including in Europe. They ask you to send the ZIP file over Signal, which is end-to-end encrypted, to the username ElectronicFrontierFoundation.90. Include:
- the date and time of the recording,
- the location,
- the device and its hardware version, for example "TP-Link M7350 V5.0",
- the Rayhunter version.
Never post a recording publicly, not on social media, not in a public GitHub issue, and not in a forum. It contains your SIM identity, the cell IDs around you, and possibly your location. Share it only through an encrypted channel with people you trust.
Other places to turn to in Europe
- Access Now Digital Security Helpline: free, confidential help for journalists, activists, and civil society, available around the clock.
- EDRi member organisations: digital rights groups in most European countries, who follow local surveillance law.
- If you are a journalist, your newsroom's security desk, or a press freedom organisation in your country.
Your checklist
Chapter 10 · Wrap up
Sources, further reading and glossary
Rayhunter
- EFF: Meet Rayhunter (announcement)
- Rayhunter on GitHub
- Rayhunter documentation
- TP-Link M7350 notes
- What each check means
- Rayhunter FAQ
Cell maps
Phone and router settings
- Android: mobile network security
- Android: 2G toggle
- Apple: About Lockdown Mode
- Teltonika: locking to a mobile cell
Tools and help
Glossary
- IMSI
- International Mobile Subscriber Identity. The permanent number stored on your SIM card that identifies you to your operator.
- IMEI
- The serial number of the phone itself.
- IMSI catcher, stingray, cell site simulator
- Different names for a fake tower that collects identities. "StingRay" was originally a product name.
- MCC / MNC
- Mobile Country Code and Mobile Network Code. Together they identify an operator, for example 262-01.
- TAC
- Tracking Area Code. A group of cells in one area.
- ECI, eNB ID, sector
- A 4G cell's full ID (ECI), split into the base station number (eNB ID) and the antenna (sector).
- PCI
- Physical Cell ID, a number from 0 to 503 that phones use to tell nearby cells apart.
- EARFCN
- A channel number that gives the exact frequency a 4G cell transmits on. ARFCN is the 2G version and NR-ARFCN the 5G version.
- Band
- A frequency range, for example B20 (800 MHz) or B3 (1800 MHz).
- SIB
- System Information Block: what a tower broadcasts about itself to all phones.
- SUCI
- The encrypted form of the IMSI, used on 5G standalone networks so a fake tower cannot read it.
- Downgrade
- Forcing a phone onto an older, weaker network type such as 2G.
- Null cipher
- "No encryption" selected on a connection that should be encrypted.
- QMDL, PCAP, NDJSON
- Rayhunter's raw recording, its Wireshark-readable copy, and its analysis results.