See discussions, stats, and author profiles for this publication at: https://www.researchgate.net/publication/269105419
An Approach to Analyze Security of GSM Network
Conference Paper · January 2014
CITATIONS
8
READS
1,981
8 authors, including:
Mesud Hadzialic
University of Sarajevo
68 PUBLICATIONS 1,129 CITATIONS
SEE PROFILE
Mirko Skrbic
University of Sarajevo
21 PUBLICATIONS 49 CITATIONS
SEE PROFILE
Kemal Huseinovi ć
International Telecommunication Union - BDT
15 PUBLICATIONS 27 CITATIONS
SEE PROFILE
Jasmin Musovic
Communications Regulatory Agency
31 PUBLICATIONS 155 CITATIONS
SEE PROFILE
All content following this page was uploaded by Jasmin Musovic on 04 December 2014.
The user has requested enhancement of the downloaded file.
Abstract – One of the weaknesses of a GSM network is a
lack of two-way authentication. For years, this weakness has
been abused using IMSI catcher. However, due to high prices
there were no major opportunities for detailed IMSI catcher
analysis and for a practical implementation of the IMSI
catcher with lower costs and greater availability.
Development of a software defined radio has enabled a
cheaper implementation. In this paper, the implementation of
open-source IMSI catcher using USRP device is presented.
Also, it describes security attack based on sending malicious
SMS to multiple mobile users.
Keywords – IMSI catcher, GSM, OpenBTS, USRP.
I. INTRODUCTION
LOBAL System for Mobile Communications (GSM)
network is one of the most popular cellular
technologies in the world [1]. Also, this is the first cellular
technology that clearly addressed safety issues. Security is
one of the most important factors in the world of
telecommunications and the Internet, and this network
segment needs to be carefully examined.
During the last decade GSM security mechanisms have
been analyzed in detail. However, the most of the security
weaknesses have been only theoretically investigated [2].
The main reasons for this are the lack of developed
technology (e.g. processing power of computers) and a
[ім’я автора приховано], Faculty of Electrical Engineering, Zmaja od Bosne
bb, 71000 Sarajevo, Bosnia and Herzegovina (e-mail:
mhadzialic@etf.unsa.ba)
Mirko Škrbi ć, Faculty of Electrical Engineering, Zmaja od Bosne bb,
71000 Sarajevo, Bosna and Herzegovina (e-mail: mskrbic@etf.unsa.ba)
Kemal Huseinovi ć, Communication Regulatory Agency BH,
Mehmeda Spahe 1, 71000 Sarajevo, Bosnia and Herzegovina (e-mail:
khuseinovic@rak.ba)
[ім’я автора приховано], Faculty of Electrical Engineering, Zmaja od Bosne bb,
71000 Sarajevo, Bosnia and Herzegovina (e-mail:
ik15209@etf.unsa.ba)
[ім’я автора приховано], Communication Regulatory Agency BH, Mehmeda
Spahe 1, 71000 Sarajevo, Bosnia and Herzegovina (e-mail:
jmusovic@rak.ba)
[ім’я автора приховано], Communication Regulatory Agency BH, Mehmeda
Spahe 1, 71000 Sarajevo, Bosnia and Herzegovina (e-mail:
ahebibovic@rak.ba)
Lamija Kasumagi ć, Communication Regulatory Agency BH,
Mehmeda Spahe 1, 71000 Sarajevo, Bosnia and Herzegovina (e-mail:
lkasumagic@rak.ba)
high cost of equipment required for the attack simulation
implementation. As a result, only government
organizations performed practical analysis of security
mechanisms of GSM network and looked for weaknesses.
In recent years, with the development of various open-
source tools and Software Defined Radio (SDR), this trend
has changed. These tools enabled public analysis of the
security mechanisms of GSM networks, indication of the
flaws in the design of security mechanisms and open-
source devices implementation for the attacks execution.
One-way authentication is the vulnerability of GSM
network that is used for International Mobile Subscriber
Number (IMSI) catcher device implementation [2], [1].
Because of this, user cannot be sure that the connected
network is actually his real home network. Attack with
IMSI catcher is a type of man-in-the-middle attacks. In
these attacks the attacker is placed between the user and
the network and has the ability to overhear calls and
messages, or to impersonate someone else, etc. There are
different published papers that describe implementation of
some of these attacks [3], [4]. In paper [3] IMSI catcher,
using software defined platform and AM3517 controller
which is used for GSM protocol stack implementation, is
implemented. This paper, using the knowledge of security
mechanism in GSM network [2], [1] and some of the
results from papers [3] and [4], presents implementation of
IMSI catcher using Universal Software Radio Peripheral
(USRP) radio platform [5] and Open Base Transceiver
Station (OpenBTS) software [6], [7]. Implemented IMSI
catcher, in addition to its primary application, has been
used for attack in which it is possible to send malicious
Short Message Service (SMS) messages to multiple users.
It is important to note that during attacks with the IMSI
catcher the privacy of other GSM users and their data are
preserved. The general, non-encrypted traffic is collected
from the Base Transceiver Station (BTS). The room
isolated from other users is used for testing IMSI catcher
device and sending malicious SMS messages.
II. IMSI CATCHER OPERATING FRAMEWORK
IMSI catcher is actually the fake BTS which is placed
between the mobile device and the real BTSs. Fig. 1 shows
position of IMSI catcher device.
An Approach to Analyze Security of GSM
Network
[ім’я автора приховано], Member, IEEE, [ім’я автора приховано], [ім’я автора приховано], Member, IEEE, [ім’я автора приховано],
[ім’я автора приховано], Member, IEEE, [ім’я автора приховано] and [ім’я автора приховано]
G
Fig. 1. IMSI catcher.
The idea is that a fake BTS imitates the role of the real
BTS and mobile device user connects to the fake BTS.
The imitation of a real BTS includes the use of the same
identifiers and carrier frequency. As a result, the attacker
detects the IMSI number of user, which otherwise must
remain secret. One of the possible further actions is that
the attacker can switch user to the mode that does not
include encryption. The attacker may also impersonate a
person that the user wants to contact or even initiate
communication to the user. There are two types of IMSI
catcher device implementations: implementation using
frequency of the neighboring BTS and implementation
using the jammer.
A. Implementation using a frequency of neighboring BTS
When a Mobile Station (MS) wants to connect to the
BTS, it receives a list of neighboring BTSs sorted
according to the criteria for selection of a new BTS (Cell
reselection criterion), [8]. The idea is that the attacker
broadcasts at a frequency of one of the weakest BTSs from
this list. The information about neighboring BTSs is
broadcasted on the Broadcast Control Channel (BCCH)
channel. If certain conditions are fulfilled, MS connects
automatically to the fake BTS, without sending any
notifications, [3], [8].
First step is adjusting co-channel interference between
the fake BTS and the real BTS that uses the same
frequency. Influence of co-channel interference is based
on the relation between the level of carrier signal C and
the level of disturbing signals on the same frequency I (C/I
ratio). The numerical value of this ratio in the GSM
system must be greater than 12 dB without frequency
hopping, and higher than 9 dB with frequency hopping,
[1]. This means that the C/I ratio of the fake BTS and the
real BTS must be at least larger than 9 dB.
The next step is to present the fake BTS as the real BTS.
In order to do it, the fake BTS must use the same Mobile
Country Code (MCC) and Mobile Network Code (MNC)
codes as the real BTS. Also, fake BTS has to use different
Location Area Identifier (LAI) code in order to update
user location successfully, [1], [8].
B. Implementation using the jammer
In this method jammer is used to block all downlink
frequencies that BTS uses for data broadcasting. This
method is much more complex than the previous one,
because it requires an additional jammer. In our case, this
could be an additional USRP device. The problem that still
remains is that the user may be aware of the connection
loss between MS and BTS, which increases the chances of
detecting attacks. Also, the time required for switching MS
to the fake BTS is longer in this case, [3], [4].
C. Cell selection and reselection
Understanding the methods and criteria for selecting
and reselecting BTS is crucial for a successful
implementation of the IMSI catcher. By default, MS
synchronizes with the 6 strongest neighboring base
stations and every 5s recalculates values of the received
signal power, which depend on the path loss parameter, C1
and the parameter for selecting new a BTS, C2. Those
calculations are performed for a connected BTS and for
their neighboring BTSs.
The handover will occur if the measured value C2 for
the neighboring BTS is greater than the value of C2 for the
current BTS. It is necessary also to consider the hysteresis
parameter that is used to define the boundaries of
handover. Also, the handover will occur if the BTS
parameter C1, which serves the user, drops below zero.
That indicates that there is a significantly large path loss in
free space, [3], [8].
Based on the criteria described above the jammer is
required if the value of the parameter C1 needs to be
below zero. For this reason, in this paper, C2 parameter is
adjusted. It is necessary to set up a BTS so that the
measured C2 is larger than C2 for current real BTS
including the hysteresis factor. If this happens, the MS will
perform handover to the fake BTS, without user
knowledge and update the user location. In this way, IMSI
number of attacked user is det ected, [2]. It is essential to
state that the C2 depends directly on the C1 and the factors
that take into consideration different priorities and timers.
The best solution for C2 parameter is to increase C2 for
BTS, which means that the quality of the downlink signal
must be increased. This can be achieved directly by
increasing the transmit power of the fake BTS. In this
paper, this approach is implemented.
III. REQUIRED HARDWARE AND SOFTWARE
In this section, hardware devices used for practical
implementation of the IMSI catcher device are described.
Also, an overview of required software solutions is given.
A. USRP device
The hardware device used for setting the fake BTS is
the USRP device. USRP device enables the
implementation of various radio systems. In Fig. 2 USRP
device (version 2) used in this paper is shown.
Fig. 2. Used USRP device.
The motherboard Bandwidth Wideband Transceiver
(WBX) is used for sending and receiving signals in 50
MHz - 2.2 GHz frequency range. In order to receive and
send radio signals a pair of antennas is used. Precisely,
VERT900 antennas operating in the GSM band are used.
USRP device is connected to the computer via Gigabit
Ethernet interface.
B. GNU Radio
GNU Radio is an open-source tool for creating software
radio systems. The main benefit provided by GNU Radio
is to create different radio devices on a single USRP
device. One of the useful features provided by GNU Radio
is a software spectrum analyzing tool that can be used to
detect the carrier frequency of a BTS, [9]. It can also be
combined with an AirProbe tool for collecting broadcast
messages from the BTS, [10].
C. OpenBTS
OpenBTS is a software solution that contains GSM
subsystem switching (network) functions. It has an
integrated Radio Resource (RR) functions and performs
Connection Control (CC) and Mobility Management
(MM). It also enables SMS services, [6].
IV. OPEN SOURCE IMSI CATCHER
The first step in IMSI catcher implementation process is
to familiarize with the environment in which the attack
will be performed including identification of the operator
and its operating frequency. In this paper, downlink
frequency bands are consider ed. Table 1 shows allocated
spectrum in Bosnia and Herzegovina.
TABLE 1: ALLOCATED SPECTRUM IN BOSNIA AND
HERZEGOVINA.
Operator Allocated spectrum
BH Telecom 932.1 – 935.1 MHz
951.1 – 959.1 MHz
959.1 – 959.5 MHz
1805.1 – 1817.1 MHz
Telekom Srpske 925.3 – 928.7 MHz
935.1 – 943.1 MHz
1842.7 – 1854.7 MHz
HT Mostar 928.7 – 932.1 MHz
The attack is performed using BH Telecom Subscriber
Identity Module (SIM) card. Therefore, only spectrum
allocated to this operator is considered.
A. A base stations detection
The next step is to find the current BTS to which the
user is connected. Therefore, the aim is to find a BTS with
the strongest signal. To do this, we used software spectrum
analyzing tool within the GNU Radio. Spectrum analysis
results show that the BTS with the strongest signal
broadcasts on 957.2 MHz, which is equal to Absolute
Radio-Frequency Channel Number (ARFCN) 111. After
this step, the AirProbe tool is used for obtaining more
information about current BTS and its neighboring BTSs.
By listening broadcast messages on 957.2 MHz relevant
information was collected, as shown in Fig 3.
Fig. 3. BTS parameters.
Fig. 3 shows data such as MCC, MNC, Location Area
Code (LAC) code, the adjacent BTSs and hysteresis
parameter.
B. Measuring the level of signals from adjacent BTSs
The next step is to measur e the reception signal strength
of the adjacent BTSs listed in Fig. 3 and to select one of
the weakest to be imitated in attack. For these purposes a
software spectrum analyzer or mobile devices can be used
(if they can read the value of the received signals from
BTS). The positions of BTSs, users and IMSI Catcher can
be graphically presented, as shown in Fig. 4.
Fig. 4. BTSs with received signal levels.
The simplest way to perform the attack is when USRP
transmits on the frequency of the ARFCN number 89. In
order to perform a handover from the real BTS 111 to the
fake BTS, receiving signal level from fake BTS must be
greater than -55 dBm, whereby hysteresis parameter
should be considered. Due to the limited transmit power of
USRP devices the distance between the attacker and the
user is important in order to perform the attack
successfully.
C. The fake BTS parameters
Finally, in order to set up a fake BTS on a USRP device
OpenBTS software solution is used. BTS transmit power
and identifiers need to be ad justed in order to implement
IMSI Catcher successfully. It is necessary to set the
following:
• MCC code to a value 218,
• MNC code to a value 90,
• LAC code to a value different than 7,
• BTS name to a value “BH Mobile”,
• Transmitting power is expressed via power attenuation
parameters. Therefore, in order to achieve maximum,
maximum and minimum attenuation value of output power
needs to be 0.
• ARFCN frequency to value 89,
• The fake BTS has to accept all users who attempt to
connect without authentication of their IMSI numbers.
Detailed description of OpenBTS parameters that can be
edited are given in OpenBTS manual, [7]. The final step is
to run a fake BTS.
D. Using IMSI catcher device
After starting the fake BTS and setting parameters, the
attack is successfully executed in a few seconds. It took a
few seconds for MS to perform handover and to switch to
the fake BTS, without the user's knowledge and without
sending any notifications. IMSI, which was the main target
of the attack, can be obtained through a simple interaction
within the OpenBTS console. In Fig. 5 caught IMSI
numbers are shown.
Fig. 5. Caught IMSI numbers.
In this way, this attack is executed successfully. This
open-source IMSI catcher with additional equipment can
be used to perform man-in-the-middle attacks resulting in
interception of calls and SMS messages. The main idea of
these attacks is to use the caught IMSI number to connect
to his real network. Network sends RAND to the IMSI
catcher device. Then, IMSI catcher forwards it to the
attacked user which calculates Signed Response (SRES)
value. After that, user sends SRES back to IMSI catcher
assuming that the real network contacted him. Finally, the
IMSI catcher forwards SRES value to the real network and
successfully authenticates to the actual network. In this
way, IMSI catcher becomes a “man in the middle”
between the user and the real network.
E. Sending malicious SMSs via IMSI catcher
Another potential attack performed using IMSI catcher
is based on sending SMS messages from the fake BTS to
registered users. These messages can be malicious,
including different viruses, or may be used for fake
impersonation. It is important to note that it is possible to
imitate any phone number of the sender, which increases
probability of successful execution of the attack. After
sending SMS messages, fake BTS can be disabled. After
this action, the user can reconnect to the real network (still
without informing the user about it). Another advantage is
that attacker can attack many users using the same USRP
device (fake BTS). In current mobile communications
environment, described attack based on sending malicious
text messages is very common.
V. CONCLUSION
The aim of this paper is to present IMSI catcher device
implementation using USRP device, SDR and OpenBTS
software. SDR and USRP device have enabled cheaper
implementation compared to the costs of professional
IMSI catcher devices.
This paper highlights a problem caused by the one-way
authentication. This has been proved to be one of the main
GSM security vulnerabilities, because it allows an attacker
to completely isolate the user without his knowledge, i.e.
to force users to connect to the fake BTS. It turned out that
this connection process is very fast and the user is not able
to detect this change in normal operation mode. On the
other hand, some important limitations of the open-source
IMSI catcher are:
• The attacker must be close to the user,
• It is not possible to execute the attack during the call,
• Limited transmit power of USRP devices,
• It is not possible to attack a specific user.
The attack is executed on a set of users that are
positioned within the range of USRP device. This is a
common problem that occurs within the professional IMSI
catcher device. In this way, non-targeted users may be
attacked and their data compromised. In the future, after
IMSI number detection, only targeted user could be
attacked, while the others would be rejected. On the other
hand, the characteristics of the attack make it suitable for
an attack based on sending malicious text messages to
multiple users.
After a successful handover to the fake BTS, the
attacker has a wide range of attacks which may
compromise user safety and his data. It can include
sending malicious SMSs or initiating a call to the attacked
user or even performing a man-in-the-middle attack. By
connecting to the fake BTS, the user loses access to all
services that real network provides, which makes it a type
of a Denial of Service (DoS) attack.
In the future, using OpenBTS and implemented IMSI
catcher, various fake GSM services can be enabled. Those
services could be combined with malicious text messages,
which could further threaten the safety of users.
REFERENCES
[1] J. Ebe rspäc he r, H.J. Vögel, C. Be tts te tte r, and C. Har tma nn, GSM
architecture, protocols and services, John Wiley & Sons, 2008.
[2] ETSI, Digital cellular telecommunications system (Phase2);
Security-related network functions (3GPP TS 03.20 version 8.2.0
release 1999.)
[3] Y. Song, K. Zhou and X. Chen, “Fake BTS attacks of GSM system
on software radio platform, Journal of Network , 7(2):275-281,
2012.
[4] M. Glendrange, K. Hove, and E. Hvideberg, “Decoding GSM”,
Norwegian University of Science and Technology, Department of
Telematics, 2010.
[5] Ettus Research TM official page with documentation. Available:
http://www.ettus.com/home
[6] OpenBTS official page with documentation. Available:
http://openbts.org/
[7] OpenBTS Application Suite, User Manual, Version 4.0 release
2014.
[8] ETSI, Digital cellular telecommunications system (Phase 2+);
Radio subsystem link control (GSM 05.08 version 8.5.0 release
1999.)
[9] GNU Radio official page with documentation. Available:
http://gnuradio.org/redmine/projects/gnuradio/wiki
[10] AirProbe official page with documentation. Available:
https://svn.berlin.ccc.de/projects/airprobe/
View publication stats