SYN attack

TCP SYN Flood attacks are the most popular ones amongst the DDOS attacks. Here we are going to discuss in detail, the basis of the TCP SYN attack and to stop before it reaches those servers.

It’s been more than two decades when the first DDOS attack was attempted at the University of Minnesota which knocked it down for two days. A lot followed that, including one of the biggest in history of DDOS which was against Github and involved 1.35 TBps attack against the site.

DOS attacks pose serious threats to servers and websites by flooding the targeted servers with bogus traffic and therefore denying the legitimate traffic from accessing it.

How the SYN Attack Works

TCP SYN attack is one of the most popular DDOS attacks which target the hosts that run TCP processes and exploit the normal TCP three-way handshake process. 

In a normal TCP scenario, communication between client and server begins after establishing a virtual connection. The client initiates a connection by sending SYN requests to Server, and Server then responds back by sending SYN/ACK.

This SYN/ACK is an acknowledgment of the initial SYN request from the client. The client responds by ACK packet, completing the connection to start communication.

In a DDOS environment, malicious actor spoofs the Client and starts sending an excessive number of SYN requests from random IP addresses to the targeted server.

The server, assuming it to be legitimate requests responds with SYN/ACK, but never receives a final ACK back, thus tying up the Server’s resources with half-open TCP sessions which eventually leads to denying the legitimate connection requests.

How SYN Attack Works

Attack Mitigation:

SYN cookies: 

Unlike normal TCP handshakes, it works by avoiding the need to maintain a state table for all TCP half-open connections. This method employs the use of cryptographic hashing. The server crafts the ISN (Initial Sequence Number) along with the initial SYN-ACK flood sent to the client.

This ISN is calculated on the basis of Source IP, Destination IP, port numbers and a secret number. When the server receives ACK from the Client, it validates it for its legitimacy by checking if the incremented ISN matches and then allocating memory for the connection.

Increasing Backlog Queue

Each Operating System allocates memory to half-open connections and there is a limit to the number of these connections it can hold. Once that limit is achieved, it starts dropping off the connection. In the case of the SYN attack, the limit of the backlog can be increased and would prevent the dropping of legitimate connections.

Firewall filtering

Firewall filtering can be enabled on the firewall to detect and prevent these SYN attack. For example, the source threshold can be changed. In this case, a particular threshold can be set up before the firewall starts dropping connections from one particular source.

It is important to note that unlike other attacks, SYN attack doesn’t require powerful systems, all the attacker need is a PC with a dial-up connection to launch high impact attacks.

Also Read

What is Phishing Attack? How it Works & How to Prevent Yourself?

What is Spoofing? How It Works and How to Prevent it

You can follow us on LinkedinTwitterFacebook for daily Cyber Security and hacking news updates.

Leave a Reply