Detecting SYN Flood Attacks with Colasoft Capsa
Denial-of-service attack (DoS attack) is a malicious attack to make a machine or network resource unavailable to users, usually by temporarily or indefinitely disrupting services of a host connected to the Internet. (US-CERT 2013)
Today, DoS attack is a common cyber-attack on the network. According to the statistics, every three seconds, there is a DoS attack happening on the Internet. The low cost of launching a DoS attack is one of the major causes of frequent DoS attacks.
Some of the most commonly used DoS attack types include Ping of Death, Teardrop, WinNuk, UDP flood, TCP SYN flood, IP Spoofing, Land Attack, Smurf, ICMP flood, etc.
In this article, we will show you how to detect SYN flood attacks using a network analyzer named Colasoft Capsa.
You can download some awesome tools here - Including the Freeware Capsa -
In order to analyze DoS attacks (and Others) , I suggest you follow the three steps below:
Observations - Most hosts which are under DoS attack will show high CPU and memory usage or the network bandwidth is occupied by garbage traffic.
Analysis - We can analyze and locate the attacks by decoding the raw packets. In this way, we will get protocols and behaviors of packets. Compare these information with attack signature, then we can locate the actual attack type.
Locate issues - With TCP/UDP session and chart function, we can more accurately and quickly locate DOS attacks.
Now, I will give you an example to show you the detailed steps using the visual capabilities of Capsa!
The Dashboard view dynamically displays statistics with various charts. In Dashboard view, the first graph definitely points out our network has the anomaly traffic. Because the utilization of our network almost reached to 100％. Then, go to Summary view to check summary data statistics.
Figure 1. Statistical charts
Under the Summary view, summary statistics of current capture are displayed. According to these statistics, we can find out there are too many small size packets in the network. In addition, the count of TCP conversations and TCP SYN sent packets are abnormal.
Figure 2. Summary data statistics
Then, go to TCP Conversation view to check up abnormal TCP conversations. From this view, we can see this IP address “22.214.171.124” received a lot of packets from random Internet IP addresses. All these random Internet IP addresses sent the same 64 bytes packet to 80 port on the host “126.96.36.199”.
Figure 3. TCP conversations
Besides, with Matrix view, it shows that almost 10,000 hosts have conversations with the host “188.8.131.52”.
Figure 4. Matrix graph
Last, by decoding TCP packets, we can see the Time Sequence diagram of TCP conversations. The host “184.108.40.206” received repeated SYN packets from different Internet IP addresses. But TCP three-way handshake didn’t establish normally in every TCP conversation.
Figure 5. Time Sequence diagram
Combine with the above information, we can identify that there are SYN Flood Attacks happened in our network. And IP address of the targeted server is “220.127.116.11”. Because of the attack, it caused the abnormal traffic and consumed our network resources.
Author Profile - Jack Wei is a technical engineer at Colasoft. Jack has more than three years’ working experience in IT and has concentrated in network administration, network security analysis based on packet sniffer software and network troubleshooting. He loves to study new computer technologies and enjoys different challenges.
Colasoft Technical Engineer - firstname.lastname@example.org
Visit us for more information at www.colasoft.com