PISA Pakistan — Community CERT

← ⚙️ Red Team Fundamentals (Ethical)

30. 5G Network Security Assessment: Red Team Perspectives on Next‑Gen Mobile Infrastructure

⏱ 8 min

5G Network Security Assessment: Red Team Perspectives on Next‑Gen Mobile Infrastructure

Pakistan’s telecom operators are rolling out 5G services, expanding attack surface beyond legacy LTE. Red teams must understand the 5G core (5GC), network slicing, and signaling protocols to emulate realistic threats against NADRA‑linked SIM verification and financial services.

5G Architecture Primer

  • gNodeB (gNB): Radio access node; communicates with the AMF (Access and Mobility Management Function) via NGAP.
  • UPF (User Plane Function) handles data traffic; SMF (Session Management Function) controls sessions.
  • Service‑Based Interface (SBI) uses HTTP/2 for inter‑function communication.

Attacking the Core Network

  • GTP‑C/D (GPRS Tunneling Protocol) remains in many 5G deployments for legacy interop; enumerate with Nmap:
    nmap -p 2123,2152 --script=gtp-info <core-ip>
    
  • Abuse Diameter‑based charging and policy control by crafting malicious CCR‑I messages using Scapy:
    build_diameter_ccri(src_host, dst_host, avp_code=268)
    
  • Perform user plane data interception via a compromised UPF by redirecting traffic to a rogue tunnel.

Rogue gNodeB & IMSI Catcher Techniques

  • Deploy a software‑defined radio (SDR) base station with srsRAN or open5GS to simulate a malicious gNB.
  • Use IMSI‑catcher mode to force devices to attach, exposing SUPI (Subscription Permanent Identifier).
  • Leverage PTA‑registered IMEI validation to test device fingerprinting bypass.

Securing and Reporting Findings

  • Map findings to MITRE ATT&CK (e.g., T1468 – Service Session Hijacking) and provide CVSS scores.
  • Recommend mutual authentication for gNB‑to‑core links, IPsec for GTP tunnels, and TLS 1.3 for SBI.
  • Include a remediation timeline aligned with SBP consumer protection guidelines.

Do / Don't

  • Do obtain explicit written authorization from the telecom operator before testing 5G infrastructure.
  • Don't transmit radio signals without clearance; illegal jamming violates PTA regulations.
  • Do use Wireshark with GTP dissector to capture legitimate traffic for baseline comparison.

Takeaway: By exercising realistic signaling attacks against the 5G core and demonstrating rogue gNB capabilities, red teams can help operators close protocol gaps and protect emerging 5G services for Pakistani consumers.

← PrevNext →