PISA Pakistan — Community CERT

← ⚙️ Red Team Fundamentals (Ethical)

49. Telecom Core Network Attacks: SS7, Diameter, and SIM Swap Exploitation

⏱ 9 min

Telecom Core Network Attacks: SS7, Diameter, and SIM Swap Exploitation

Overview

Modern telecom networks rely on SS7 (Signalling System No. 7) for voice and Diameter for AAA (Authentication, Authorization, Accounting) in LTE/5G cores. In Pakistan, operators such as Jazz, Telenor, Zong, and UFONE interwork through these protocols, exposing a hidden attack surface that is rarely audited.

Red Team Attack Surface in Pakistani Telecom

  • SS7 firewalking: discover hidden network elements (SGSN, MSC) by probing point‑codes.
  • SMS‑ interception: redirect OTP messages to attacker‑controlled endpoints.
  • Call‑diversion & USSD probing: used for balance‑stealing, easypaisa/JazzCash fraud.
  • SIM‑swap fraud: clone subscriber identity via SS7 Location Update, enabling account takeover; often initiated through a convincing WhatsApp forward impersonating Jazz customer support.
  • Diameter‑based handoff attacks: exploit Rx/Gx interfaces to hijack data sessions.

Hands‑On Lab: Enumerating SS7 Signalling

  1. Set up a lab environment using a virtualized SIGTRAN emulator (e.g., ss7‑simulator on Kali).
  2. Install Scapy‑ss7 or use ss7‑scan to send MAP (Mobile Application Part) updateLocation messages.
  3. Capture traffic with Wireshark, filter sccp and map to observe routing‑information‑exchange.
  4. Execute a SIM‑swap simulation: send insertSubscriberData to replace the IMSI, then verify OTP interception.
  5. Document findings in your red‑team report and propose SPC (Signalling Transfer Point) filtering and OTP‑out‑of‑band mitigations.

Detecting and Mitigating SS7/Diameter Attacks

  • Deploy SS7 firewalls (e.g., Aptilo, Nokia) that enforce point‑code whitelisting.
  • Enable MAP‑security (MAP‑S) and Diameter‑over‑TLS (DIAMETER‑TLS) to encrypt signalling.
  • Monitor for abnormal MAP operations (e.g., sendAuthenticationInfo without prior updateLocation).
  • Align with SBP consumer‑protection guidelines for banks that rely on SMS‑based OTP.
  • Report incidents to PTA and the NCCIA 1799 helpline for national coordination.

Do / Don't

  • Do obtain explicit written authorization before probing any telecom network.
  • Don't conduct SS7 enumeration against live production networks without a formal engagement.
← PrevNext →