Stream Control Transport Protocol

Stream Transmission Control Protocol (SCTP) is a connection-oriented protocol, similar to TCP, but provides message-oriented data transfer, similar to UDP.

|275x228

SCTP Scanning Techniques Guide

Overview of SCTP

Stream Control Transmission Protocol (SCTP) is a reliable, message-oriented transport layer protocol that combines characteristics of both TCP and UDP, offering a robust alternative for specialized networking applications.

Core Features

Common Applications


SCTP Association: Four-Way Handshake

Unlike TCP's three-way handshake, SCTP establishes connections using a four-way handshake mechanism:

Client                          Server
  |                               |
  |-------- INIT ---------------→ |  (1) Initiate connection
  |                               |
  |←------- INIT-ACK ------------ |  (2) Acknowledge and send cookie
  |                               |
  |-------- COOKIE-ECHO --------→ |  (3) Return cookie for verification
  |                               |
  |←------- COOKIE-ACK ---------- |  (4) Confirm association established
  |                               |

Handshake Steps:

  1. INIT: Client sends initialization chunk
  2. INIT-ACK: Server responds with acknowledgment
  3. COOKIE-ECHO: Client echoes the cookie
  4. COOKIE-ACK: Server confirms completed association

SCTP Scanning Techniques

Attackers and security professionals leverage SCTP's handshake mechanism to perform reconnaissance and port scanning on target systems.


1. SCTP INIT Scan (-sY)

The SCTP equivalent of TCP SYN scanning, offering stealth and speed.

Operational Characteristics

Scan Process

Attacker                        Target
  |                               |
  |-------- INIT ---------------→ |
  |                               |
  |←------ Response ------------- |

Port State Interpretation

Target Response Port State Description
INIT+ACK chunk OPEN Port is listening and accepting connections
ABORT chunk CLOSED Port is not listening
No response (after retransmissions) FILTERED Firewall or filter blocking packets
ICMP Unreachable (Type 3, Codes 0,1,2,3,9,10,13) FILTERED Network device actively blocking

Nmap/Zenmap Command

nmap -sY <target>

Use Cases


An advanced, stealthier scanning technique that exploits the COOKIE-ECHO phase of the handshake.

Operational Characteristics

Scan Process

Attacker                        Target
  |                               |
  |------- COOKIE-ECHO ---------→ |
  |                               |
  |←------ Response (or none) --- |

Port State Interpretation

Target Response Port State Description
No response (silent drop) OPEN Port is listening but silently drops invalid cookie
ABORT chunk CLOSED Port is not listening and actively rejects
No response (filtered) FILTERED Cannot distinguish from open

Result Ambiguity

Critical Limitation: This scan cannot clearly differentiate between OPEN and FILTERED ports, often resulting in:

Nmap/Zenmap Command

nmap -sZ <target>

Use Cases


Feature INIT Scan (-sY) COOKIE ECHO Scan (-sZ)
Stealth Level Moderate High
Firewall Evasion Blocked by stateful firewalls Bypasses non-stateful firewalls
Port State Clarity Clear (open/closed/filtered) Ambiguous (open|filtered)
Speed Very fast Fast
Detection Standard IDS Advanced IDS only
Connection Type Half-open No connection established
Best Use Case Initial reconnaissance Firewall evasion, secondary scan

Detection and Defense

For Network Defenders

Detecting SCTP Scans:

  1. Monitor SCTP traffic patterns:

    • Unusual INIT chunks to multiple ports
    • COOKIE-ECHO chunks without prior association
  2. Deploy stateful firewalls:

    • Track complete SCTP association state
    • Block invalid COOKIE-ECHO attempts
  3. Implement advanced IDS:

    • Signature-based detection for scan patterns
    • Anomaly detection for unusual SCTP behavior
  4. Log SCTP connection attempts:

    • Record incomplete associations
    • Alert on rapid port scanning patterns

Hardening Measures:


Security Implications

For Penetration Testers

For Attackers (Understanding Threats)

SCTP scanning enables:


Summary

SCTP scanning techniques exploit the protocol's four-way handshake mechanism to identify services and assess security postures:

Both techniques require specialized tools (Nmap/Zenmap) and are primarily used in telecommunications and VoIP environments. Understanding these methods is essential for both offensive security assessments and defensive network hardening.