Code Monkey home page Code Monkey logo

analyze-network-with-wireshark's Introduction

Packet Sniffer (Wireshark)

image

Description:

In this project, I will be using a network packet sniffer tool called, "Wireshark", which allows me to see all incoming and outgoing traffic in my network. I will also explain the process of how I was able to identify what type of an attack this was on a network, explain what may have caused this website to malfunction, and provide recommendations how this could be resolved.

Scenario:

You work as a security analyst for a travel agency that advertises sales and promotions on the company’s website. The employees of the company regularly access the company’s sales webpage to search for vacation packages their customers might like.

One afternoon, you receive an automated alert from your monitoring system indicating a problem with the web server. You attempt to visit the company’s website, but you receive a connection timeout error message in your browser.

You use a packet sniffer to capture data packets in transit to and from the web server. You notice a large number of TCP SYN requests coming from an unfamiliar IP address. The web server appears to be overwhelmed by the volume of incoming traffic and is losing its ability to respond to the abnormally large number of SYN requests. You suspect the server is under attack by a malicious actor.

You take the server offline temporarily so that the machine can recover and return to a normal operating status. You also configure the company’s firewall to block the IP address that was sending the abnormal number of SYN requests. You know that your IP blocking solution won’t last long, as an attacker can spoof other IP addresses to get around this block. You need to alert your manager about this problem quickly and discuss the next steps to stop this attacker and prevent this problem from happening again. You will need to be prepared to tell your boss about the type of attack you discovered and how it was affecting the web server and employees.

Walkthrough:

Identify the type of attack causing the network interruption

As I scan through the network with Wireshark, I am seeing three different highlighted colors that indicate the status of what the packets are doing. For example:

  • ${\color{lime}{Green}}$ represents that the connection is normal and is doing a complete three-way handshake.
  • ${\color{yellow}{Yellow}}$ represents that the connection is still a normal three-way handshake, however, the connection failed due to an attack. This is caused by a [RST, ACK] response.
  • ${\color{red}{Red}}$ represents that the attacker is sending a bunch of [SYN] responses to a specific device, which interrupts any traffic that is supposed to go to that network device.

In this scenario, the attacker is doing a DoS attack because the attacker is using one machine of theirs to attack another machine. From what is shown on this catalog, is that the attacker is attacking a web server since the IP address of 198.51.100.23 is the source of the web server. The attacker here is sending a flood of SYN responses which is considered a DoS attack.

image

Explain how the attack is causing the website to malfunction

Based on my analysis, I can see that the website visitors try to establish a connection with the web server, which is a three-way handshake that occurs using TCP protocol. I will explain a quick detail how the three-way handshake works:

  1. A SYN packet is sent from the source to the destination, requesting to connect.
  2. The destination replies back to the source with a SYN/ACK response. Telling the source that they did receive the response and are sending it back with the contents.
  3. Once the source IP address has received the SYN/ACK response it will finalize the response back to the server with an ACK. Meaning it has been acknowledged and is fully connected to the other device.

In an SYN flood attack, a malicious actor sends numerous SYN packets all at once, overwhelming the server's capacity to reserve resources for the connection. When this occurs, there are no resources left on the server for valid TCP connection requests.

The logs show that the web server is overloaded and unable to handle SYN requests from visitors. When a new visitor encounters a connection timeout message, the server is unable to establish a new connection.

Recommendations to resolve this problem

The steps for how I would resolve this issue is by contacting my boss and explaining what is causing the server to crash and how this can be fixed. There is a DoS attack occurring on the web server which is when an attacker sends a bunch of SYN requests to the web server. By doing this it will block any other incoming traffic and cause the server to crash.

The best solution to fix this problem is to integrate a Firewall on the web server so that it can detect any malicious device that is trying to send out a flood of SYN responses and block them from the attack. This is so that other users can experience the web browser without any interruptions or lag as they browse through the web page.

analyze-network-with-wireshark's People

Contributors

darias08 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.