Geolocation of GSM Mobile devices, even if they do not want to be found
David Perez (Taddong), Jose Pico (Taddong)
BruCON 0x05 · Day 2
Overview
In this insightful talk from BruCON, David Perez and Jose Pico of Taddong, a Spanish security company, delve into the complex challenge of geolocating GSM mobile devices without the cooperation of the network operator or the device user. Their research addresses a critical gap: how to track a mobile phone that has actively disabled all its location services and is not connected to a compromised network. This objective pushed them to explore novel techniques beyond conventional methods like network-based triangulation or the use of IMSI catchers.

Key moments
- 10:30 Defining the core research challenge for GSM geolocation
- 24:40 "Read the source code Luke": discovering high-resolution timing data
- 31:00 Solving signal variability and mobile-specific timing delays
- 36:00 Critical clock precision problem and its technical workaround
- 43:00 "Magical glasses": winning the network race with cell reselection offset
- 50:00 Achieved precision in open field and urban environments
- 61:00 Q&A: Minimizing disturbance to other network users
- 65:00 Q&A: Possibility of listening to conversations via fake BTS
Geolocation of GSM Mobile devices, even if they do not want to be found
Speakers: David Perez (Taddong); Jose Pico (Taddong)
Conference: BruCON
YouTube: https://www.youtube.com/watch?v=xp_KmAiHN3E
Overview
In this insightful talk from BruCON, David Perez and Jose Pico of Taddong, a Spanish security company, delve into the complex challenge of geolocating GSM mobile devices without the cooperation of the network operator or the device user. Their research addresses a critical gap: how to track a mobile phone that has actively disabled all its location services and is not connected to a compromised network. This objective pushed them to explore novel techniques beyond conventional methods like network-based triangulation or the use of IMSI catchers.
The presentation outlines the journey of their research project, detailing the hurdles encountered and the innovative solutions developed. The speakers aimed to create a standalone system capable of accurately pinpointing a target device within a known radius, even in challenging environments. Their work highlights fundamental weaknesses in the GSM standard and offers a stark reminder of the privacy implications inherent in mobile communication.
This research is significant because it demonstrates a practical, low-cost approach to mobile device tracking that bypasses traditional defenses. While geolocation is crucial for emergency services and location-based applications, its potential for malicious surveillance is undeniable. Taddong's findings provide valuable insights for both security researchers and defenders, underscoring the need for robust countermeasures against sophisticated tracking methods.
Background
▶ Watch: Defining the core research challenge for GSM geolocation (10:30)
Geolocation in GSM networks has been a fundamental capability since the standard's inception, primarily driven by the need for emergency services to locate callers. These initial methods fall into two main categories: network-based, where the operator combines signals from surrounding cell towers to estimate position, and mobile station (MS)-based or assisted, where the network requests location data (e.g., GPS coordinates) directly from the mobile device. Modern smartphones further complicate this with numerous applications that can report location data.
However, the scenario explored by Perez and Pico specifically excludes these cooperative methods. Their research was motivated by a challenging question: could a mobile phone be located if an attacker had no access to the network operator's data, and the target device had all its location services disabled? This meant bypassing traditional approaches like hacking into operator networks or relying on user-installed spy applications. Furthermore, they dismissed IMSI catchers as a primary solution due to their high cost and detectability.
The project operated under several key constraints:
- No network access: The system had to function independently of mobile network operators.
- Disabled location services: The target device would not voluntarily report its location.
- Known general area: The attacker would have an approximate understanding of the target's whereabouts, within a 2-4 kilometer radius.
- Known identity: The IMEI (International Mobile Equipment Identity) or IMSI (International Mobile Subscriber Identity) of the target device was known in advance.
- Static target: The target was assumed to be stationary (e.g., in a room, not in a moving vehicle).
- Standalone solution: The system should be deployable from a single vehicle, not requiring a widespread network of sensors.
This unique set of requirements necessitated a deep dive into the underlying GSM protocols and radio signal analysis, seeking subtle clues that could be leveraged for precise localization.
Key Findings
▶ Watch: Solving signal variability and mobile-specific timing delays (31:00)
The Taddong team's journey was characterized by an iterative process of design, implementation, testing, and problem-solving, leading to several critical discoveries and workarounds:
- Shift from Power to Timing Data: Initially, the team focused on Received Signal Strength Indication (RSSI) for triangulation, assuming it would be straightforward. However, this proved insufficiently accurate. A deeper dive into GSM Timing Advance (TA), a mechanism for synchronizing mobile devices with base stations, revealed its potential. While the GSM standard specified TA with a coarse resolution of one symbol (approximately 500 meters), inspecting the source code of OpenBTS (their chosen software-defined radio platform) showed that TA data was stored as a
float, offering a theoretical resolution of less than one meter. This was a pivotal "Aha!" moment.
- Overcoming Timing Variability and Device-Specific Delays: Despite the high theoretical resolution, real-world TA measurements exhibited significant statistical variability (0.25 to 0.75 symbols deviation) and, more importantly, a fixed, constant delay introduced by the mobile phone itself, varying by device model (e.g., iPhone vs. Nokia). To address this, they developed statistical algorithms to average out random variations and sophisticated methods to predict and compensate for the unknown device-specific delays, allowing for consistent accuracy across different phone models.
- Achieving Network Impersonation: A major hurdle was getting target devices to connect to their rogue base station. Initial attempts to impersonate a real network failed, as mobile phones wouldn't even list their station as a neighboring cell, let alone connect. The breakthrough came from identifying and correcting a subtle but critical issue: the clock precision of their USRP1 hardware. Despite using an improved clock, their transmitted frequency deviated by 900 Hertz from the intended frequency, far exceeding the GSM standard's allowed 45 Hertz deviation. A software hack to offset the transmission frequency, followed by a hardware upgrade to a Clocktamer module from Fairwaves, finally resolved this, enabling successful impersonation.
- Bypassing Real Network Competition with Cell Reselection Offset: Even with successful impersonation, the rogue base station often lacked the power to compete with real network towers, limiting its effective range to a mere 15 meters. The solution was to leverage the Cell Reselection Offset mechanism, a standard GSM feature primarily used for load balancing. By emitting System Information Type 3 (SI3) Rest Octets with a large offset (e.g., adding 60 dB to their perceived power), they could "trick" mobile phones into preferentially connecting to their less powerful, fake base station, significantly extending their operational range. This feature was not implemented in OpenBTS 2.6 and required custom code.
- Stabilizing Directional Mode by Disabling Power Control: For pinpointing a target within a building, a directional antenna was planned, relying on stable RSSI measurements. However, the mobile phones' Power Control mechanism (where the BTS tells the device to adjust its transmit power to save battery or improve signal) caused the RSSI readings to constantly oscillate. The solution was to disable this power control feature in OpenBTS when operating in directional mode, forcing the mobile phone to transmit at a fixed power level and providing stable, actionable readings.
These findings collectively demonstrated that precise, non-cooperative GSM geolocation was not only feasible but could be achieved with relatively accessible hardware and significant software ingenuity.
Technical Deep Dive
▶ Watch: "Magical glasses": winning the network race with cell reselection offset (43:00)
The core of the system revolved around a Software-Defined Radio (SDR) setup, specifically the USRP1, which served as the physical layer for their rogue GSM base station. The USRP1, controlled by a standard PC, allowed for flexible manipulation of radio signals. The radio frequency (RF) chain involved a power amplifier for transmission, a bandpass filter, a duplexer to combine transmit and receive paths, and a low-noise amplifier (LNA) for reception. Two types of antennas were planned: an omnidirectional antenna for initial broad-area scanning and a directional antenna for fine-grained localization.
For the software component, the team chose OpenBTS, a GPL-licensed open-source implementation of a GSM Base Transceiver Station (BTS). They extended OpenBTS with several custom functionalities:
- GPS data acquisition: To allow their mobile BTS to know its own precise location.
- Triangulation algorithms: To process the collected data and estimate the target's position.
- Ncurses-based console: A text-based interface for operating the system, later complemented by an iPad graphical interface.
The initial design considered two primary data sources for localization: power measurements (RSSI) and timing delays. While power seemed intuitive, its variability and environmental factors made it unreliable for the desired precision. The team then turned to timing, specifically the Timing Advance (TA) mechanism. In GSM, the BTS measures the round-trip time of signals to a mobile station to determine the distance and instruct the mobile to advance its transmission slot, ensuring signals arrive at the correct time. The standard definition of TA has a resolution of one symbol, which translates to approximately 3.69 microseconds or about 500 meters in distance. This coarse resolution initially seemed problematic.
However, a critical discovery was made by examining the OpenBTS source code: the timing data was stored internally as a float data type in C. This higher-precision storage meant that, despite the standard's coarse reporting, the raw timing data available within OpenBTS offered a theoretical resolution of less than one meter. This insight steered the project towards exploiting TA for precision.
The practical implementation of TA-based localization faced two significant challenges:
- Statistical Variability: Even with a static target and BTS, TA measurements exhibited random fluctuations. This was addressed by collecting a large number of data points (e.g., 200 points) and applying statistical averaging techniques to derive a more stable estimate.
- Mobile Phone Model Delays: Different mobile phone models introduced unique, fixed delays in their signal processing. The team developed algorithms that, through repeated measurements from various known positions, could infer and compensate for these unknown device-specific delays, making the system universally applicable without prior knowledge of the target phone's model.
The trilateration algorithm itself also required refinement. When three circles representing distance estimates from three different points do not perfectly intersect (a common occurrence with noisy real-world data), a robust algorithm is needed to find the most probable intersection point or area. The speakers mentioned developing algorithms to handle these "fuzzy" intersections.
A major technical hurdle was ensuring the rogue BTS could effectively attract target devices. This hinged on frequency stability. The initial USRP1 setup, even with an improved clock, was found to transmit at F + 900 Hz instead of the intended F, far exceeding the GSM standard's 45 Hz tolerance. This explained why mobile phones ignored their BTS. The temporary fix was a software hack to tune the USRP to F - 900 Hz, effectively transmitting at F. The permanent solution involved integrating a more precise hardware clock, the Clocktamer module, into their USRP setup.
Once the rogue BTS could be seen, the next challenge was ensuring mobiles would prefer it over stronger, legitimate networks. This was solved by exploiting the Cell Reselection Offset mechanism. This feature allows a network to instruct a mobile device to add an offset to the perceived signal strength of a particular cell when making cell reselection decisions. By sending System Information Type 3 (SI3) Rest Octets (which were not implemented in their OpenBTS 2.6 version and required custom code) with a significant positive offset (e.g., 60 dB), their comparatively weaker fake BTS could appear stronger than the real network to the target device, forcing it to connect.
Finally, for the precise directional mode, the team encountered issues with the mobile phone's Power Control mechanism. This feature dynamically adjusts the mobile's transmit power based on the BTS's reception quality. While beneficial for battery life, it caused the received power at the directional antenna to oscillate wildly, making pinpointing difficult. The solution was to disable this power control feature within OpenBTS when in directional mode, forcing the mobile to transmit at a constant power and providing stable RSSI readings for accurate direction finding.
Demo / Proof of Concept
▶ Watch: Achieved precision in open field and urban environments (50:00)
The Taddong team conducted extensive field testing in a country where such activities were legal, humorously referring to it as the "orange field testing" due to the abundance of orange trees used to hold their test mobile phones. Their prototype system was housed in two orange boxes, providing natural ventilation and easy component fixation with plastic straps, mounted inside a car. For the antenna, they devised a clever disguise: a commercial antenna was integrated into an air freshener box with magnets and painted black, allowing for discreet car-top mounting without permanent modification.
The system's operation was demonstrated through various interfaces and scenarios:
- Ncurses Console: An initial text-based console displayed real-time data including the system's GPS position, estimated target position, course to the target, and messages to the operator. It showed the IMSI/IMEI of connected devices (sanitized for the demo).
- iPad Console: Recognizing that the ncurses console was not suitable for a driver, they developed an iPad application. This graphical interface displayed a map with a blue dot representing the car's position and a red dot representing the estimated target location.
The results of their field tests were presented with specific examples:
- Open Field Environment: In an area with orange groves, the car's path was tracked, and the system's estimated target positions were shown as blue dots converging on the actual target. While initial estimates could be scattered, precision significantly improved as the car drove past the target. Over a distance of 2 to 2.5 kilometers, the system achieved an accuracy of approximately 20 meters from the real target.
- Urban Environment: In a city setting, signal attenuation from buildings reduced the range to about two to three blocks. The system's estimates converged to "the block across the street" from the actual target. Once within this vicinity, the operator would switch to the directional antenna mode.
A video demonstration of the directional mode, recorded before the power control problem was fully solved, showed the oscillating power bar. However, it still illustrated the principle: pointing the antenna away from the target yielded low, fluctuating power, while pointing towards it resulted in higher, still fluctuating power. After the power control fix, this mode allowed for precise identification of a target within a specific building or even a window.
The speakers also touched upon future enhancements, including extending functionality to 3G networks (which would require different techniques and custom base station software), improving algorithms, and porting more console features to the iPad app.
Defensive Implications
▶ Watch: Q&A: Possibility of listening to conversations via fake BTS (65:00)
The research presented by Taddong highlights significant vulnerabilities within the GSM standard, particularly concerning location privacy and the ease with which a rogue base station can operate.
- Exploiting GSM Fundamentals: The ability to leverage Timing Advance (TA) data and Cell Reselection Offset demonstrates that even fundamental, seemingly innocuous GSM mechanisms can be repurposed for malicious tracking. The fact that the GSM standard allows for features like A5/0 (no encryption) or the broken A5/1 encryption algorithm further exacerbates the risk, enabling not just location tracking but also call interception if the attacker chooses to route calls.
- Difficulty of Detection: Unlike large, expensive IMSI catchers that might be detectable, the Taddong system is designed to be mobile, discreet (e.g., the air freshener antenna), and operates without requiring direct network access. A device whose location services are disabled will not alert the user to its tracking, making this a silent and insidious form of surveillance. The system is also designed to minimize disturbance to other users by rejecting non-target devices with a specific cause code, preventing repeated registration attempts and making its presence less noticeable.
- Network Operator Challenges: While this attack operates outside the network operator's direct control, it underscores the need for operators to continuously monitor their spectrum for rogue BTS activity. However, even with such monitoring, a well-tuned, low-power fake BTS using techniques like Cell Reselection Offset could be challenging to detect, especially if it only operates sporadically or in specific target areas.
- User Awareness and Mitigation: For end-users, the implications are stark. Relying solely on disabling location services is insufficient against such an attack.
- Prioritize 3G/4G/5G: Where available, users should prefer newer cellular technologies. While the speakers acknowledge that 3G has its own vulnerabilities at lower layers and bidirectional authentication makes it harder to impersonate, it still offers a higher bar for attackers than 2G GSM.
- Device Security: Using devices with robust security features that might detect or resist connection to rogue base stations could offer some protection, though this is not a guaranteed defense.
- Awareness: Understanding that even a seemingly "offline" or privacy-hardened GSM device can still be located is crucial for individuals concerned about surveillance.
In essence, the talk serves as a potent reminder that the foundational elements of 2G GSM, while functional, were not designed with modern adversarial capabilities in mind, leaving users vulnerable to sophisticated, non-cooperative geolocation techniques.
Key Takeaways
- Non-Cooperative GSM Geolocation is Feasible: It is possible to accurately locate a GSM mobile device without network operator assistance or the device's consent, even if all location services are disabled.
- Timing Advance (TA) is a Powerful Vector: Exploiting the internal, high-resolution timing advance data available in OpenBTS proved far more effective for precise localization than traditional power measurements.
- Iterative Research and Source Code Analysis are Crucial: The project's success stemmed from persistent problem-solving, detailed field testing, and a willingness to delve into the source code of tools like OpenBTS to uncover hidden capabilities and overcome limitations.
- Overcoming RF and Protocol Challenges is Key: Achieving network impersonation required addressing fundamental RF issues like clock precision and leveraging obscure GSM protocol features like Cell Reselection Offset to effectively compete with real networks.
- Practical Precision Achieved: The system demonstrated the ability to locate a target within 20 meters in open fields and to pinpoint a specific building or even window in urban environments using a directional antenna.
- GSM's Inherent Vulnerabilities: The research underscores the inherent weaknesses in the 2G GSM standard, making devices reliant on it susceptible to tracking and other attacks.
About the Speaker(s)
David Perez and Jose Pico are security researchers from Taddong, a small security company based in Spain. Their work, as demonstrated in this BruCON talk, focuses on practical, hands-on security research, particularly in the realm of mobile and radio communications. They shared their experiences, including the challenges and errors encountered during their project, to provide valuable insights to the security community. Their presentation reflects a deep understanding of GSM protocols and the intricacies of software-defined radio for security applications.