M3UAScan: Scanner for M3UA protocol to detect Sigtran supporting nodes

M3UAScan

M3UAScan

A Scanner for M3UA protocol to detect Sigtran supporting nodes

M3UA stands for MTP Level 3 (MTP3) User Adaptation Layer as defined by the IETF SIGTRAN working group in RFC 4666 .M3UA enables the SS7 protocol’s User Parts (e.g. ISUP, SCCP and TUP) to run over IP instead of telephony equipment like ISDN and PSTN. It is recommended to use the services of SCTP to transmit M3UA.

M3UA uses a complex state machine to manage and indicate states it’s running. Several M3UA messages are mandatory to make an M3UA association or peering fully functional (ASP UP, ASP UP Acknowledge, ASP Active, ASP Active Acknowledge).

Why Use M3UAScan

M3UA scan is a simple scanner that aims to help pentesters to identify nodes that has SCTP ports opened with m3ua on top of it.

Detecting a node with m3ua is an indication that this is a node core node in a telecom infrastructure that provides signaling. This scanner could be helpful to identify signaling nodes exposed on the internet, that could be compromised and used as a gate to the SS7 network.

One benefit could be testing if telecom nodes are hardened and only forming SCTP associations with the nodes that suppose to connect to only, testing if there is some filtering done on the nodes to prevent anyone to perform SCTP associations with it thus connect to the network.

Install

git clone https://github.com/SigPloiter/M3UAScan.git
cd M3UAScan
sudo ./setup.py install

Usage

m3uascan.py -l [sctp listening IP] -p [sctp listening port]-r [Remote subnet/mask] -P [Remote sctp port]-o [Output filename]

Example: ./m3uascan.py -l 192.168.1.1 -p 2905 -r 179.0.0.0/16 -P 2906 -o output.txt

Or you can opt-out “-P” and use the built-in SCTP ports in the script

Source: https://github.com/SigPloiter/