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
- Set up a lab environment using a virtualized SIGTRAN emulator (e.g., ss7‑simulator on Kali).
- Install Scapy‑ss7 or use
ss7‑scanto send MAP (Mobile Application Part)updateLocationmessages. - Capture traffic with Wireshark, filter
sccpandmapto observe routing‑information‑exchange. - Execute a SIM‑swap simulation: send
insertSubscriberDatato replace the IMSI, then verify OTP interception. - 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.,
sendAuthenticationInfowithout priorupdateLocation). - 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.
