VoIP Security: Risks and Vulnerabilities
VoIP Security: Risks and Vulnerabilities
Angelos D. Keromytis
Symantec Research Labs Europe
Sophia-Antipolis, France
Abstract— Voice over IP (VoIP) and Internet Multimedia and to eliminate redundant equipment. Consumers have em-
Subsystem (IMS) technologies are rapidly being adopted by braced a slew of technologies with different features and costs,
consumers, enterprises, governments and militaries. These tech- including P2P calling, Internet-to-phone network bridging, and
nologies offer higher flexibility and more features than traditional
telephony (PSTN) infrastructures, as well as the potential for wireless VoIP. These new technologies and business models
lower cost through equipment consolidation and, for the con- are being promoted by a new generation of startup companies
sumer market, new business models. However, VoIP/IMS systems that are challenging the traditional status quo in telephony and
also represent a higher complexity in terms of architecture, personal telecommunications. As a result, a number of PSTN
protocols and implementation, with a corresponding increase providers have already completed or are in the process of
in the potential for misuse. Here, we begin to examine the
current state of affairs on VoIP/IMS security through a sur- transitioning from circuit-switched networks to VoIP-friendly
vey of known/disclosed security vulnerabilities in bug-tracking packet-switched backbones. Finally, as the commercial and
databases. This paper should serve as a starting point for consumer sectors go, so do governments and militaries due
understanding the threats and risks in a rapidly evolving set of to cost reduction concerns and the general dependence on
technologies that are seeing increasing deployment and use. Our Commercial Off The Shelf (COTS) equipment for the majority
goal is to gain a better understanding of the security landscape
with respect to VoIP/IMS, toward directing future research in of their computing needs.
this and other similar emerging technologies. However, higher complexity is often the price we pay for
more flexibility. In the case of VoIP/IMS technologies, a
I. I NTRODUCTION
number of factors contribute to architectural, protocol, imple-
The rate at which new technologies are being introduced mentation and operational complexity:
and adopted by society has been steadily accelerating through-
out human history. The advent of pervasive computing and • The number and complexity of the various features inte-
telecommunications has reinforced this trend. In this envi- grated in a product are perhaps the single largest source
ronment of constant innovation, individuals, governments and of complexity. For example, voice and video transmission
organizations have been struggling to manage the tension typically allow for a variety of codecs which may be used
between reaping the benefits of new technologies while un- in almost-arbitrary combinations. Since one of the biggest
derstanding and managing their risks. In this struggle, cost selling points for VoIP/IMS is feature-richness and the
reductions, convenience and new features typically overcome desire to unify personal communications under the same
security concerns. As a result, security experts (but also the umbrella, this is a particularly pertinent concern.
government and the courts of law) are often left with the task • Openness and modularity, generally considered desirable
of playing “catch up” with those who exploit flaws to further traits, allow for a number of independent implementations
their own goals. This is the situation we find ourselves in and products. Each of these comes with its own param-
with respect to one popular class of technologies, collectively eters and design choices. Interoperability concerns and
referred to as Voice over IP (VoIP). customer feedback then lead to an ever-growing baseline
VoIP, sometimes also referred to as Internet Multimedia of supported features for all products. A compounding
Subsystem (IMS), refers to a class of products that enable factor to increasing complexity for many of the open VoIP
advanced communication services over data networks. While protocols is the “design-by-committee” syndrome, which
voice is a key aspect in such products, video and other typically leads to larger, more inclusive specifications
capabilities (e.g., collaborative editing and whiteboard sharing, than would otherwise be the case (e.g., in a closed,
file sharing, calendaring) are supported. The key advantages proprietary environment such as the wireline telephony
of VoIP/IMS are flexibility and low cost. The former derives network from 20 years ago).
from the (generally) open architectures and software-based • Because VoIP systems are envisioned to operate in a
implementation, while the latter is due to new business models, variety of environments, business settings, and network
equipment and network-link consolidation, and ubiquitous conditions, they must offer considerable configurability,
consumer-grade broadband connectivity. which in turns leads to high complexity. Of particular
Due to these benefits, VoIP has seen rapid uptake in both concern are unforeseen feature interactions and other
the enterprise and consumer markets. An increasing number emergent properties.
of enterprises are replacing their internal phone switches with • Finally, VoIP are generally meant to work over a public
VoIP-based implementations, both to introduce new features data network (e.g., the Internet), or an enterprise/operator
network that uses the same underlying technology. As a aspect of VoIP systems generally includes a comparatively
result, there is a substantial amount of (strictly speaking) simpler protocol for encapsulating data, with support for
non-VoIP infrastructure that is critical for the correct multiple codecs and (often, but not always) content security.
operation of the system, including such protocols/services A commonly used media transfer protocol is RTP [13], with
as DHCP [1], DNS [2], [3], TFTP/BOOTP [4], [5], NAT a version supporting encryption and integrity (SRTP [14])
[6] (and NAT traversal protocols such as STUN [7]), defined but not yet widely used. The RTP protocol family
NTP [8], SNMP [9], routing, the web (HTTP [10], [11], also includes RTCP, which is used to control certain RTP
TLS/SSL [12], etc.) and many others. As we shall see, parameters between communicating endpoints.
even a “perfectly secure” VoIP system can be compro- However, a variety of other features are generally also
mised by subverting elements of this infrastructure. desired by users and offered by providers as a means for differ-
Because of this complexity, which manifests itself both in entiation by competing technologies and services, such video,
terms of configuration options and size of the code base for integration with calendaring and file sharing, and bridging to
VoIP implementations, VoIP systems represent a very large at- other networks (e.g., to the “regular” telephony network). Fur-
tack surface. Thus, one should expect to encounter, over time, thermore, a number of different decisions may be made when
security problems arising from design flaws (e.g., exploitable designing a VoIP system, reflecting different requirements and
protocol weaknesses), undesirable feature interactions (e.g., approaches to addressing, billing, mobility, security and access
combinations of components that make new attacks possible or control, usability, and other issues. Consequently, there exist a
existing/known attacks easier), unforeseen dependencies (e.g., variety of different VoIP/IMS protocols and architectures. For
compromise paths through seemingly unrelated protocols), concreteness, we will focus our attention on a popular and
weak configurations, and, not least, implementation flaws. widely deployed technology: the Session Initiation Protocol
In this paper, we attempt a first effort at mapping out the (SIP) [15]. We will also discuss the Unlicensed Mobile Access
space of VoIP threats and risks by conducting a survey of (UMA) architecture [16], as a different approach to VoIP that
the “actually seen” vulnerabilities and attacks, as reported is gaining traction among wireless telephony operators. In the
by the popular press and by bug-tracking databases. Our rest of this section, we give a high-level overview of SIP and
work is by necessity of evolutionary nature, and this paper UMA, followed by a brief description of the salient points of
represents a current (and limited) snapshot of the complete a few other popular VoIP systems, such as H.323 and Skype.
space. Nonetheless, we believe that it will serve as a valuable We will refer back to this overview when discussing the threat
starting point for understanding the bigger problem, and as a space and specific vulnerabilities in Section III.
basis for a more comprehensive analysis in the future.
A. Session Initiation Protocol
Paper Organization: The remainder of this paper is
organized as follows. Section II contains a brief overview SIP is a protocol standardized by the Internet Engineering
of two major VoIP technologies, SIP and UMA. While we Task Force (IETF), and is designed to support the setup
refer to other VoIP/IMS systems throughout the discussion, of bidirectional communication sessions including, but not
we focus on the specific two technologies as they are both limited to, VoIP calls. It is similar in some ways to HTTP, in
representative, widely used, and well-documented. We discuss that it is text-based, has a request-response structure, and even
VoIP threats in Section III, placing known attacks against VoIP uses a mechanism based on the HTTP Digest Authentication
systems within the taxonomy proposed by the VoIP Security [17] for user authentication. However, it is an inherently state-
Alliance1 . We analyze our findings in Section IV, and conclude ful protocol that supports interaction with multiple network
with some preliminary thoughts on the current state of VoIP components (e.g., middleboxes such as PSTN bridges). While
security, and on possible future directions for security research its finite state machine is seemingly simple, in practice it
and practices in Section V. has become quite large and complicated — an observation
supported by the fact that the main SIP RFC [15] is one of
II. VO IP T ECHNOLOGIES OVERVIEW the longest ever defined.
In their simplest form, Voice over IP protocols simply SIP can operate over a number of transport protocols,
enable two (or more) devices to transmit and receive real-time including TCP [18], UDP [19] and SCTP [20]. UDP is gener-
audio traffic that allows their respective users to communicate. ally the preferred method due to simplicity and performance,
In general, VoIP architectures are partitioned in two main although TCP has the advantage of supporting TLS protection
components: signaling and media transfer. Signaling covers of call setup. However, recent work on Datagram TLS (DTLS)
both abstract notions, such as endpoint naming and addressing, [21] may render this irrelevant. SCTP, on the other hand,
and concrete protocol functions such as parameter negoti- offers several advantages over both TCP and UDP, including
ation, access control, billing, proxying, and NAT traversal. DoS resistance [22], multi-homing and mobility support, and
Depending on the architecture, quality of service (QoS) and logical connection multiplexing over a single channel.
device configuration/management may also be part of the In the SIP architecture, the main entities are end points
signaling protocol (or protocol family). The media transfer (whether softphones or physical devices), a proxy server, a
registrar, a redirect server, and a location server. Figure 1
1 [Link] shows a high-level view of the SIP entity interactions. The
SIP Domain A SIP Domain B
Registrar
2
Location
Location Server
1 Server
4 6
5
Proxy Proxy
3 7
Fig. 1. Session Initiation Protocol (SIP) entity interactions. User Alice registers with her domain’s Registrar (1), which stores the information in the Location
Server (2). When placing a call, Alice contacts her local Proxy Server (3), which may consult the Location Server (4). A call may be forwarded to another
Proxy Server (5), which will consult its domain Location Server (6) before forwarding the call to the final recipient. After the SIP negotiation terminates,
RTP is used directly between Alice and Bob to transfer media content. For simplicity, this diagram does not show the possible interaction between Alice and
a Redirection Server (which would, in turn, interact with the Location Server).
ACK sip:Bob@D2
WiFi UMA Network
Internet
INVITE sip:Bob@D2 Network Controller
Proxy authorization:
Digest username="Alice",
realm="D1", uri="sip:Bob@D2",
response="12acb23970af",
nonce="12cc9a63", algorithm=MD5 Fig. 4. Unlicensed Mobile Access (UMA) conceptual architecture
INVITE sip:Bob@D2
RINGING RINGING
OK OK
during a call setup. We shall later see an example where this
ACK sip:Bob@D2 ACK sip:Bob@D2 can be abused by a malicious party to conduct toll fraud in
some environments.
Media Transfer (RTP)
For more complex authentication scenarios, SIP can use
S/MIME encapsulation [24] to carry complex payloads, in-
Fig. 3. SIP Digest Authentication cluding public keys and certificates. When TCP is used as the
transport protocol for SIP, TLS can be used to protect the SIP
messages. TLS is required for communication among proxies,
the proxies that the call has been terminated, using a BYE registrars and redirect servers, but only recommended between
message which is relayed through the proxies along the same endpoints and proxies or registrars. Alternatively, IPsec [25]
path as the call setup messages. may be used to protect all communications, regardless of
There are many other protocol interactions supported by the transport protocol. However, because few implementations
SIP, that cover many common (and uncommon) scenarios integrate SIP, RTP and IPsec, it is left to system administrators
including call forwarding (manual or automatic), conference to figure out how to setup and manage such configurations.
calling, voicemail, etc. Typically, this is done by semantically
overloading SIP messages such that they can play various B. Unlicensed Mobile Access
roles in different parts of the call. We shall see in Section III UMA is a 3GPP standard for enabling transparent access
examples of how this flexibility and protocol modularity can to mobile circuit-switched voice networks, packet-switch data
be used to attack the system. networks and IMS services using any IP-based substrate.
All SIP traffic is transmitted over port 5060 (UDP or Handsets supporting UMA can roam between the operator’s
TCP). The ports used for the media traffic, however, are wireless network (usually referred to as a Radio Access
dynamic and negotiated via SDP during call setup. This poses Network, or RAN) and the Internet without losing access. For
some problems when Network Address Translation (NAT) or example, a call that is initiated over the RAN can then be
firewalls are traversed. Typically, these have to be stateful routed, without being dropped and with no user intervention,
and understand the SIP exchanges so that they can open the over the public Internet if conditions are more favorable
appropriate RTP ports for the media transfer. In the case of (e.g., stronger WiFi signal in the user’s premises, or in a
NAT traversal, endpoints may use protocols like STUN to hotel wireless hotspot while traveling abroad). For consumers,
enable communication. Alternatively, the Universal Plug-and- UMA offers better connectivity and the possibility of lower
Play (uPnP) protocol 2 may be used in some environments, cost by enabling new business models and reducing roaming
such as residential broadband networks consisting of a single charges (under some scenarios). For operators, UMA reduces
subnet behind a NAT gateway. the need for additional spectrum, cellphone towers and related
Authentication between endpoints, the registrar and the equipment. A variety of cellphones supporting UMA over
proxy typically uses HTTP Digest Authentication, as shown WiFi currently exist, along with home gateways and USB-stick
in Figure 3. This is a simple challenge-response protocol that softphones. More recently, some operators have introduced
uses a shared secret key along with a username, domain name, femtocells (ultra-low power RAN cells intended for consumer-
a nonce, and specific fields from the SIP message to compute directed deployment) that can act as UMA gateways, allowing
a cryptographic hash. Using this mechanism, passwords are any mobile handset to take advantage of UMA where such
not transmitted in plaintext form over the network. It is worth devices are deployed.
noting that authentication may be requested at almost any point The basic approach behind UMA is to encapsulate complete
GSM and 3G radio frames (except for the over-the-air crypto)
2 [Link] inside IP packets. These can then be transmitted over any IP
network, including the Internet. This means that the mobile ering security, interoperability with PSTN, teleconferencing,
operator can continue to use the existing back-end equipment; and others. Authentication may be requested at several steps
all that is needed is a gateway that decapsulates the GSM/3G during call setup, and typically depends on symmetric keys
frames and injects them to the existing circuit-switched net- but may also use digital signatures. Voice encryption is also
work (for voice calls), as can be seen in Figure 4. supported through SRTP and MIKEY [30]. Unlike SIP, H.323
To protect both signaling and media traffic confidentiality does not use a well-known port, making firewall traversal even
and integrity while traversing untrusted (and untrustworthy) more complicated.
networks, UMA uses IPsec. All traffic between the handset Skype3 is a peer-to-peer VoIP system that was originally
(or, more generally, UMA endpoint) and the provider’s UMA available as a softphone for desktop computers but has since
Network Controller (or a firewall/VPN concentrator screening been integrated into cellphones and other handheld devices,
traffic) is encrypted and integrity-protected using ESP [26]. either as an add-on or as the exclusive communication mech-
The use of IPsec provides a high level of security for the anism. It offers voice, video, and text messaging to all other
traffic, once keys and other parameters have been negotiated. Skype users free of charge, and provides bridging (typically
For that purpose, the IKEv2 key management protocol [27] for a fee) to the PSTN both for outgoing and incoming
is used. Authentication uses the EAP-SIM [28] (for GSM calls and text messages (SMS). The underlying protocol is
handsets) and EAP-AKA [29] (for UMTS handsets) profiles. proprietary, and the software itself incorporates several anti-
Authentication is asymmetric: the provider authenticates to the reverse engineering techniques. Nonetheless, some analysis
handset using digital signatures and public key certificates, [31], [32] and reverse engineering [33] have taken place,
while the handset authenticates using a SIM-embedded secret indicating both the ubiquitous use of strong cryptography and
key. It is worth pointing out that UMA provides stronger the presence of some software bugs (at the time of the work).
authentication guarantees than the baseline cellphone network, The system uses a centralized login server but is otherwise
in that the provider does not authenticate to the handset in a fully distributed with respect to intra-Skype communications.
RAN. Furthermore, the cryptographic algorithms used in IPsec A number of chat (IM) networks, such as the AOL Instant
(AES and 3DES) are considered significantly stronger than the Messenger, Microsoft’s Live Messenger, Yahoo! Messenger,
on-the-air algorithms used in GSM. and Google Talk offer voice and video capabilities as well.
Despite the use of strong cryptography and sound protocols, Although each network uses its own (often proprietary) pro-
UMA introduces some new risks in the operator networks, tocol, there exist bridges between most of them, allowing
since these now have to be connected to the public Internet in a inter-IM communication at the text level. In most of these
much more intimate fashion. In particular, the security gateway networks, users can place outgoing voice calls to the PSTN.
must process IPsec traffic, including the relatively complex Some popular IM clients also integrate SIP support.
IKEv2 protocol, and a number of UMA-related discovery and
configuration protocols. These increase the attack surface and III. VO IP T HREATS
overall security exposure of the operators significantly.
In trying to understand the threat space against VoIP, our
C. Other VoIP/IMS Systems approach is to place known vulnerabilities within a structured
H.323 is an ITU-defined protocol family for VoIP (audio framework. While a single taxonomy is not likely to be
and video) over packet-switched data networks. The various definitive, using several different viewpoints and mapping the
subprotocols are encoded in ASN.1 format. In the H.323 vulnerability space along several axis may reveal trends and
world, the main entities are terminals (software or physical areas that merit further analysis.
phones), a gateway, a gatekeeper and a back-end service. The As a starting point, we use the taxonomy provided by
gatekeeper is responsible for address resolution, controlling the Voice over IP Security Alliance (VoIPSA)4 . VoIPSA is a
bandwidth use and other management functions, while the vendor-neutral, not for profit organization composed of VoIP
gateway connects the H.323 network with other networks (e.g., and security vendors, organizations and individuals with an
PSTN, or a SIP network). The back-end service maintains interest in securing VoIP protocols, products and installations.
data about the terminals, including configuration, access and In addition, we place the surveyed vulnerabilities within the
billing rights, etc. An optional multipoint control unit may traditional threat space of confidentiality, integrity, availability
also exist to enable multipoint communications, such as a (CIA). Finally, we consider whether the vulnerabilities exploit
teleconference. To setup a H.323 call, terminals first interact bugs in the protocol, implementation or system configuration.
with the gatekeeper using the H.225 protocol over either TCP In future work, we hope to expand the number of views to the
or UDP to receive authorization and perform address resolu- surveyed vulnerabilities and to provide more in-depth analysis.
tion. Using the same protocol, they then establish the end- The VoIPSA security threat taxonomy [34] aims to define
to-end connection to the remote terminal (possibly through the security threats against VoIP deployments, services, and
one or more gateways). At that point, H.245 over TCP is end users. The key elements of this taxonomy are:
used to negotiate the parameters for the actual media transfer,
including ports, which uses RTP (as in the case of SIP). A 3 [Link]
8%
Media (RTP)
48%
INVITE Attacker (Attacker on hold) 12%
(rewrite INVITE from Alice)
INVITE +1−900−PREMIUM
Fig. 5. SIP relay attack Fig. 6. Vulnerability breakdown based on effect. Most categories are self-
explanatory; “attack the user” refers to vulnerabilities that permit attackers to
affect the user/administrator of a device, without necessarily compromising
the system or getting access to its data or services. XSS attacks and traffic
time during a call, and the responder may issue an INVITE eavesdropping attacks fall in this category, whereas attacks that compromise
message during a call either automatically (because of timer state (data) resident on the system fall in the “access to data” category.
expirations) or through a user action (e.g., placing the caller
on hold in order to do a call transfer).
IV. D ISCUSSION 4%
19%
Looking at the vulnerabilities we have considered, a few
patterns emerge. First, as we can see in our informal classi-
fication of vulnerability effects show in Figure 6, half of the
problems lead to a denial of service in either an end-device 21%
(phone, softphone) or a server (proxy, registrar, etc.). This is 57%
not altogether surprising, since denial of service (especially a
crash) is something that is easily diagnosed. In many cases, the
problem was discovered by automated testing, such as protocol
or software fuzzing; software failures are relatively easy to
determine in such settings. Some of these vulnerabilities could
in fact turn out to be more serious, e.g., a memory corruption Social threats (1) Eavesdropping, hijacking (2)
Denial of Service (3) Service Abuse (4)
leading to a crash could be exploitable to mount a code
Physical Access (5) Interruption of Services (6)
injection attack. The second largest class of vulnerabilities
allows an adversary to control the device, whether by code
injection, default passwords and services, or authentication Fig. 7. Vulnerability breakdown based on VoIPSA taxonomy
failures. Note that we counted a few of the vulnerabilities
(approximately 10%) more than once in this classification.
The same pattern with respect to the predominance of denial other observation here is that, while the VoIPSA taxonomy
of service vulnerabilities holds when we look at the breakdown covers a broad spectrum of concerns for VoIP system designers
according to the VoIPSA taxonomy, shown in Figure 7. It and operators, its categories are too perhaps too broad (and, in
should not be surprising that, given the nature of the vul- some cases, imprecise) to help with characterizing the types
nerabilities disclosed in CVE, we have no data on physical of bugs we have examined.
access and (accidental) interruption of services vulnerabilities. The vulnerability breakdown according to the traditional
Furthermore, while “Access to Services” was a non-negligible (Confidentiality, Integrity, Availability) security concerns again
component in the previous breakdown, it represents only 4% reflects the predominance of denial of service threats against
here. The reason for this apparent discrepancy is in the differ- VoIP systems, as seen in Figure 8. However, we can see that
ent definitions of service: the specific element in the VoIPSA Integrity violations (e.g., system compromise) are a sizable
taxonomy refers to VoIP-specific abuse, whereas our informal component of the threat space, while Confidentiality violations
definition covers lower-level system components which may are seen in only 15% of disclosed vulnerabilities. This repre-
not be usable in, for example, placing fraudulent calls. One sents an inversion of the perceived threats by users and admin-
15%
7%
48% 91% 1%
36%