Signalling System No. 7 Explained

Q.700 series
Long Name:Signalling System No. 7
Status:In force
Year Started:1984
Version:(03/93)
Version Date:March 1993
Organization:ITU-T
Committee:Study Group XI, WTSC
Related Standards:Q.701, Q.711
Domain:telephony
Website:https://www.itu.int/rec/T-REC-Q.700

Signalling System No. 7 (SS7) is a set of telephony signaling protocols developed in the 1970s, which is used to set up and tear down telephone calls in most parts of the world-wide public switched telephone network (PSTN). The protocol also performs number translation, local number portability, prepaid billing, Short Message Service (SMS), and other services.

The protocol was introduced in the Bell System in the United States by the name Common Channel Interoffice Signaling in the 1970s for signalling between No. 4ESS switch and No. 4A crossbar toll offices.[1] [2] The SS7 protocol is defined for international use by the Q.700-series recommendations of 1988 by the ITU-T.[3] Of the many national variants of the SS7 protocols, most are based on variants standardized by the American National Standards Institute (ANSI) and the European Telecommunications Standards Institute (ETSI). National variants with striking characteristics are the Chinese and Japanese Telecommunication Technology Committee (TTC) national variants.

SS7 has been shown to have several security vulnerabilities, allowing location tracking of callers, interception of voice data, intercept two-factor authentication keys, and possibly the delivery of spyware to phones.[4]

The Internet Engineering Task Force (IETF) has defined the SIGTRAN protocol suite that implements levels 2, 3, and 4 protocols compatible with SS7. Sometimes also called Pseudo SS7, it is layered on the Stream Control Transmission Protocol (SCTP) transport mechanism for use on Internet Protocol networks, such as the Internet.

In North America SS7 is also often referred to as Common Channel Signaling System 7 (CCSS7) (or CCS7). In the United Kingdom, it is called C7 (CCITT number 7), number 7 and Common Channel Interoffice Signaling 7 (CCIS7). In Germany, it is often called Zentraler Zeichengabekanal Nummer 7 (ZZK-7).

History

Signaling System No. 5 and earlier systems use in-band signaling, in which the call-setup information is sent by generating special multi-frequency tones transmitted on the telephone line audio channels, also known as bearer channels. Since the bearer channels are directly accessible by users, they can be exploited with devices such as the blue box, which can replicate the tones used by the network for call control and routing. As a remedy, SS6 and SS7 implements out-of-band signaling, carried in a separate signaling channel, thus keeping the call control and speech paths separate. SS6 and SS7 are referred to as common-channel signaling (CCS) protocols, or Common Channel Interoffice Signaling (CCIS) systems.

Another element of in-band signaling addressed by SS7 is network efficiency. With in-band signaling, the voice channel is used during call setup which makes it unavailable for actual traffic. For long-distance calls, the talk path may traverse several nodes which reduces usable node capacity. With SS7, the connection is not established between the end points until all nodes on the path confirm availability. If the far end is busy, the caller gets a busy signal without consuming a voice channel.

Since 1975, CCS protocols have been developed by major telephone companies and the International Telecommunication Union Telecommunication Standardization Sector (ITU-T); in 1977 the ITU-T defined the first international CCS protocol as Signaling System No. 6 (SS6).[5] In its 1980 Yellow Book Q.7XX-series recommendations ITU-T defined the Signalling System No. 7 as an international standard.[3] SS7 replaced SS6 with its restricted 28-bit signal unit that was both limited in function and not amendable to digital systems.[5] SS7 also replaced Signaling System No. 5 (SS5), while R1 and R2 variants are still used in numerous countries.

The Internet Engineering Task Force (IETF) defined SIGTRAN protocols which translate the common channel signaling paradigm to the IP Message Transfer Part (MTP) level 2 (M2UA and M2PA), Message Transfer Part (MTP) level 3 (M3UA) and Signaling Connection Control Part (SCCP) (SUA). While running on a transport based upon IP, the SIGTRAN protocols are not an SS7 variant, but simply transport existing national and international variants of SS7.[6]

Functionality

Signaling in telephony is the exchange of control information associated with the setup and release of a telephone call on a telecommunications circuit.[7] Examples of control information are the digits dialed by the caller and the caller's billing number.

When signaling is performed on the same circuit as the conversation of the call, it is termed channel-associated signaling (CAS). This is the case for analogue trunks, multi-frequency (MF) and R2 digital trunks, and DSS1/DASS PBX trunks.

In contrast, SS7 uses common channel signaling, in which the path and facility used by the signaling is separate and distinct from the signaling without first seizing a voice channel, leading to significant savings and performance increases in both signaling and channel usage.

Because of the mechanisms in use by signaling methods prior to SS7 (battery reversal, multi-frequency digit outpulsing, A- and B-bit signaling), these earlier methods cannot communicate much signaling information. Usually only the dialed digits are signaled during call setup. For charged calls, dialed digits and charge number digits are outpulsed. SS7, being a high-speed and high-performance packet-based communications protocol, can communicate significant amounts of information when setting up a call, during the call, and at the end of the call. This permits rich call-related services to be developed. Some of the first such services were call management related, call forwarding (busy and no answer), voice mail, call waiting, conference calling, calling name and number display, call screening, malicious caller identification, busy callback.[7]

The earliest deployed upper-layer protocols in the SS7 suite were dedicated to the setup, maintenance, and release of telephone calls.[8] The Telephone User Part (TUP) was adopted in Europe and the Integrated Services Digital Network (ISDN) User Part (ISUP) adapted for public switched telephone network (PSTN) calls was adopted in North America. ISUP was later used in Europe when the European networks upgraded to the ISDN. North America has not accomplished full upgrade to the ISDN, and the predominant telephone service is still Plain Old Telephone Service. Due to its richness and the need for an out-of-band channel for its operation, SS7 is mostly used for signaling between telephone switches and not for signaling between local exchanges and customer-premises equipment.

Because SS7 signaling does not require seizure of a channel for a conversation prior to the exchange of control information, non-facility associated signaling (NFAS) became possible. NFAS is signaling that is not directly associated with the path that a conversation will traverse and may concern other information located at a centralized database such as service subscription, feature activation, and service logic. This makes possible a set of network-based services that do not rely upon the call being routed to a particular subscription switch at which service logic would be executed, but permits service logic to be distributed throughout the telephone network and executed more expediently at originating switches far in advance of call routing. It also permits the subscriber increased mobility due to the decoupling of service logic from the subscription switch. Another ISUP characteristic SS7 with NFAS enables is the exchange of signaling information during the middle of a call.[7]

SS7 also enables Non-Call-Associated Signaling, which is signaling not directly related to establishing a telephone call.[7] This includes the exchange of registration information used between a mobile telephone and a home location register database, which tracks the location of the mobile. Other examples include Intelligent Network and local number portability databases.[7]

Signaling modes

Apart from signaling with these various degrees of association with call set-up and the facilities used to carry calls, SS7 is designed to operate in two modes: associated mode and quasi-associated mode.[9]

When operating in the associated mode, SS7 signaling progresses from switch to switch through the Public Switched Telephone Network following the same path as the associated facilities that carry the telephone call. This mode is more economical for small networks. The associated mode of signaling is not the predominant choice of modes in North America.[10]

When operating in the quasi-associated mode, SS7 signaling progresses from the originating switch to the terminating switch, following a path through a separate SS7 signaling network composed of signal transfer points. This mode is more economical for large networks with lightly loaded signaling links. The quasi-associated mode of signaling is the predominant choice of modes in North America.[11]

Physical network

SS7 separates signaling from the voice circuits. An SS7 network must be made up of SS7-capable equipment from end to end in order to provide its full functionality. The network can be made up of several link types (A, B, C, D, E, and F) and three signaling nodes – Service Switching Points (SSPs), Signal Transfer Points (STPs), and Service Control Points (SCPs). Each node is identified on the network by a number, a signaling point code. Extended services are provided by a database interface at the SCP level using the SS7 network.

The links between nodes are full-duplex 56, 64, 1,536, or 1,984 kbit/s graded communications channels. In Europe they are usually one (64 kbit/s) or all (1,984 kbit/s) timeslots (DS0s) within an E1 facility; in North America one (56 or 64 kbit/s) or all (1,536 kbit/s) timeslots (DS0As or DS0s) within a T1 facility. One or more signaling links can be connected to the same two endpoints that together form a signaling link set. Signaling links are added to link sets to increase the signaling capacity of the link set.

In Europe, SS7 links normally are directly connected between switching exchanges using F-links. This direct connection is called associated signaling. In North America, SS7 links are normally indirectly connected between switching exchanges using an intervening network of STPs (Signalling Transfer Points). This indirect connection is called quasi-associated signaling, which reduces the number of SS7 links necessary to interconnect all switching exchanges and SCPs in an SS7 signaling network.[12]

SS7 links at higher signaling capacity (1.536 and 1.984 Mbit/s, simply referred to as the 1.5 Mbit/s and 2.0 Mbit/s rates) are called high-speed links (HSL) in contrast to the low speed (56 and 64 kbit/s) links. High-speed links are specified in ITU-T Recommendation Q.703 for the 1.5 Mbit/s and 2.0 Mbit/s rates, and ANSI Standard T1.111.3 for the 1.536 Mbit/s rate. There are differences between the specifications for the 1.5 Mbit/s rate. High-speed links utilize the entire bandwidth of a T1 (1.536 Mbit/s) or E1 (1.984 Mbit/s) transmission facility for the transport of SS7 signaling messages.[13]

SIGTRAN provides signaling using SCTP associations over the Internet Protocol.[7] The protocols for SIGTRAN are M2PA, M2UA, M3UA and SUA.[14]

SS7 protocol suite

The SS7 protocol stack may be partially mapped to the OSI Model of a packetized digital protocol stack. OSI layers 1 to 3 are provided by the Message Transfer Part (MTP) and the Signalling Connection Control Part (SCCP) of the SS7 protocol (together referred to as the Network Service Part (NSP)); for circuit related signaling, such as the BT IUP, Telephone User Part (TUP), or the ISDN User Part (ISUP), the User Part provides layer 7. Currently there are no protocol components that provide OSI layers 4 through 6.[3] The Transaction Capabilities Application Part (TCAP) is the primary SCCP User in the Core Network, using SCCP in connectionless mode. SCCP in connection oriented mode provides transport layer for air interface protocols such as BSSAP and RANAP. TCAP provides transaction capabilities to its Users (TC-Users), such as the Mobile Application Part, the Intelligent Network Application Part and the CAMEL Application Part.

The Message Transfer Part (MTP) covers a portion of the functions of the OSI network layer including: network interface, information transfer, message handling and routing to the higher levels. Signaling Connection Control Part (SCCP) is at functional Level 4. Together with MTP Level 3 it is called the Network Service Part (NSP). SCCP completes the functions of the OSI network layer: end-to-end addressing and routing, connectionless messages (UDTs), and management services for users of the Network Service Part (NSP).[15] Telephone User Part (TUP) is a link-by-link signaling system used to connect calls. ISUP is the key user part, providing a circuit-based protocol to establish, maintain, and end the connections for calls. Transaction Capabilities Application Part (TCAP) is used to create database queries and invoke advanced network functionality, or links to Intelligent Network Application Part (INAP) for intelligent networks, or Mobile Application Part (MAP) for mobile services.

BSSAP

BSS Application Part (BSSAP) is a protocol in SS7 used by the Mobile Switching Center (MSC) and the Base station subsystem (BSS) to communicate with each other using signaling messages supported by the MTP and connection-oriented services of the SCCP. For each active mobile equipment one signalling connection is used by BSSAP having at least one active transactions for the transfer of messages.[16]

BSSAP provides two kinds of functions:

Protocol security vulnerabilities

In 2008, several SS7 vulnerabilities were published that permitted the tracking of mobile phone users.[17]

In 2014, the media reported a protocol vulnerability of SS7 by which anyone can track the movements of mobile phone users from virtually anywhere in the world with a success rate of approximately 70%.[18] In addition, eavesdropping is possible by using the protocol to forward calls and also facilitate decryption by requesting that each caller's carrier release a temporary encryption key to unlock the communication after it has been recorded.[19] The software tool SnoopSnitch can warn when certain SS7 attacks occur against a phone,[20] and detect IMSI-catchers that allow call interception and other activities.[21] [22]

In February 2016, 30% of the network of the largest mobile operator in Norway, Telenor, became unstable due to "unusual SS7 signaling from another European operator".[23] [24]

The security vulnerabilities of SS7 have been highlighted in U.S. governmental bodies, for example when in April 2016 Congressman Ted Lieu called for an oversight committee investigation.[25]

In May 2017, O2 Telefónica, a German mobile service provider, confirmed that the SS7 vulnerabilities had been exploited to bypass two-factor authentication to achieve unauthorized withdrawals from bank accounts. The perpetrators installed malware on compromised computers, allowing them to collect online banking account credentials and telephone numbers. They set up redirects for the victims' telephone numbers to telephone lines controlled by them. Confirmation calls and SMS text messages of two-factor authentication procedures were routed to telephone numbers controlled by the attackers. This enabled them to log into victims' online bank accounts and effect money transfers.[26]

In March 2018, a method was published for the detection of the vulnerabilities, through the use of open-source monitoring software such as Wireshark and Snort.[27] [28] [29] The nature of SS7 normally being used between consenting network operators on dedicated links means that any bad actor's traffic can be traced to its source.

An investigation by The Guardian and the Bureau of Investigative Journalism revealed that the SS7 protocol was exploited in an attempt to locate Sheikha Latifa bint Mohammed Al Maktoum (II) on 3 March 2018, a day before her abduction.[30]

In 2024, Kevin Briggs, an official at the Cybersecurity and Infrastructure Security Agency, reported to the FCC that hacks related to SS7 and Diameter had been used "numerous attempts" to acquire location data, voice and text messages, deliver spyware, and influence voters in the US.[31]

See also

Further reading

Notes and References

  1. T.J. Cieslak, L.M. Croxall, J.B. Roberts, M.W. Saad, J.M. Scanlon, No.4 ESS: Software Organization and Basic Call Handling, Bell System Technical Journal 56(7), p.1113 (September 1977).
  2. B. Kaskey, J.S. Colson, R.F. Mills, F.H. Myers, J.T. Raleigh, A.F. Schweizer, R.A. Tauson, Common Channel Interoffice Signaling: Technology and Hardware, Bell System Technical Journal 57(2), p379 (February 1978)
  3. 1993-03-01 . ITU-T Recommendation Q.700 .
  4. News: It is dangerously easy to hack the world’s phones . 2024-05-28 . The Economist . 0013-0613.
  5. Book: Ronayne, John P. 1986. The Digital Network Introduction to Digital Communications Switching. 1. Indianapolis. Howard W. Sams & Co., Inc. 0-672-22498-4.
  6. Framework Architecture for Signaling Transport. 2719. IETF.
  7. Book: Russell, Travis. 2002. Signaling System #7. 4. New York. McGraw-Hill. 978-0-07-138772-9.
  8. ITU-T Recommendation Q.700, section 3.2.1. 7. 1993-03-01.
  9. ITU-T Recommendation Q.700. 4. 1993-03-01.
  10. .
  11. .
  12. ITU-T Recommendation Q.700, section 2.2.3. 4–5. 1993-03-01.
  13. Web site: ITU-T Recommendation Q.703, Annex A, Additions for a national option for high speed signaling links. International Telecommunication Union. 81–86.
  14. Web site: Understanding the Sigtran Protocol Suite: A Tutorial EE Times. EETimes. 2016-06-30.
  15. ITU-T Recommendation Q.711, section 1. 1-2.
  16. Web site: 3GPP TS 48.008, Mobile Switching Centre - Base Station System (MSC-BSS) interface; Layer 3 specification.
  17. Archived at Ghostarchive and the Wayback Machine: Web site: Engel. Tobias. Locating Mobile Phones using SS7. Youtube. 25th Chaos Communication Congress (25C3). 2016-04-19. Video. 2008-12-27.
  18. News: For sale: Systems that can secretly track where cellphone users go around the globe. Timburg. Craig. The Washington Post. 24 August 2014. 27 December 2014.
  19. News: Timburg. Craig. German researchers discover a flaw that could let anyone listen to your cell calls.. The Washington Post. 18 December 2014. 19 December 2014.
  20. SnoopSnitch is for rooted Android mobile phones with Qualcomm chip
  21. Web site: Mobile self-defence. https://web.archive.org/web/20141231144037/https://events.ccc.de/congress/2014/Fahrplan/system/attachments/2493/original/Mobile_Self_Defense-Karsten_Nohl-31C3-v1.pdf . 2014-12-31 . live . Karsten Nohl. Chaos Communication Congress. 2014-12-27.
  22. Web site: SnoopSnitch . . August 15, 2016 .
  23. Web site: Feilen i mobilnettet er funnet og rettet. no. Telenor ASA.
  24. Web site: SS7 signalering – Et ondsinnet angrep mot Telenor ville hatt samme konsekvens. no. digi.no / Teknisk Ukeblad Media AS. 2016-02-23. 2016-02-23. https://web.archive.org/web/20160223101354/http://www.digi.no/tele-kommunikasjon/2016/02/22/-et-ondsinnet-angrep-mot-telenor-ville-hatt-samme-konsekvens. dead.
  25. News: US congressman calls for investigation into vulnerability that lets hackers spy on every phone . . April 19, 2016 .
  26. News: Real-World SS7 Attack — Hackers Are Stealing Money From Bank Accounts. Khandelwal. Swati. The Hacker News. 2017-05-05. en-US.
  27. News: Análisis de ataques/vulnerabilidades SS7/Sigtran empleando Wireshark (y/o tshark) y Snort. Corletti Estrada. Alejandro. Metodología de detección de vulnerabilidades SS7/Sigtran. 2018-03-31. es-ES. 2018-04-03. https://web.archive.org/web/20180403173537/http://darfe.es/joomla/index.php/descargas/viewdownload/5-seguridad/1353-analisis-de-ataques-vulnerabilidades-ss7-sigtran-empleando-wireshark-y-o-tshark-y-snort-es. dead.
  28. News: Analysis of attacks/vulnerabilities SS7/Sigtran using Wireshark (and/or tshark) and Snort. Corletti Estrada. Alejandro. Vulnerability detection methodology SS7/Sigtran. 2018-03-31. en-US. 2018-04-03. https://web.archive.org/web/20180403173728/http://darfe.es/joomla/index.php/descargas/viewdownload/5-seguridad/1354-analysis-of-attacks-vulnerabilities-ss7-sigtran-using-wireshark-and-or-tshark-and-snort-en. dead.
  29. Web site: Definitive guide to SS7/Sigtran Attack and Preventive Measures. Full Research on SS7/Sigtran Attack Vector, Exploits and Preventive Measures. 2019-01-28. 2020-07-03. en-US.
  30. Web site: 16 December 2020. Spy companies using Channel Islands to track phones around the world. live. https://web.archive.org/web/20201219144441/https://www.thebureauinvestigates.com/stories/2020-12-16/spy-companies-using-channel-islands-to-track-phones-around-the-world. 19 December 2020. 19 December 2020. Data reviewed by the Bureau shows that a series of signals designed to reveal phone location were sent to a US-registered mobile belonging to the yacht's skipper, Hervé Jaubert, the day before commandos stormed the yacht and seized the princess. The effort appears to have been part of a huge bid by the Emiratis – mobilising boats, a surveillance plane and electronic means – to track down the fleeing princess. Signals were sent via mobile networks in Jersey, Guernsey, Cameroon, Israel, Laos and the USA..
  31. News: It is dangerously easy to hack the world’s phones . 2024-05-28 . The Economist . 0013-0613.