Denial of Service (DoS)

Comprehensive study notes, diagrams, and exam preparation for Denial of Service (DoS).

Denial of Service (DoS)

Definition

A Denial of Service (DoS) attack is a malicious attempt to make a server, network, or website unavailable to its intended users. This is typically achieved by flooding the target with an overwhelming volume of traffic or sending information that triggers a crash, effectively exhausting system resources like bandwidth, CPU, or memory.


Main Content

1. Resource Exhaustion

  • The primary goal of a DoS attack is to consume all available resources of a victim machine.
  • Once resources like bandwidth or processing power are depleted, the system cannot process legitimate requests, leading to downtime.

2. Traffic Flooding

  • Attackers send a massive surge of data packets to a target server to exceed its capacity to handle incoming requests.
  • This often involves overwhelming the network interface, causing "packet loss" for real users.

3. Vulnerability Exploitation

  • Rather than using brute force, some DoS attacks exploit specific software bugs or protocol flaws.
  • By sending malformed data packets that the system cannot interpret, the attacker forces the system to crash or enter an infinite loop.

Working / Process

1. Selection of Target

  • The attacker identifies a specific network service, such as a web server, email server, or DNS server.
  • Research is conducted to identify the server's IP address and the ports that are currently open and listening.

2. Mobilization of Traffic

  • The attacker generates a high volume of requests designed to occupy the target's resources.
Attacker Machine
       |
       | (Flooding Traffic)
       v
  Target Server <--- Legitimate users blocked

3. Service Degradation or Crash

  • The server attempts to handle the massive load, leading to high latency.
  • Eventually, the system resources reach 100% utilization, causing the service to hang, crash, or refuse new connections entirely.

Advantages / Applications

  • Network Stress Testing: Security professionals use controlled DoS techniques (Stress Testing) to measure the resilience of their own infrastructure.
  • Cybersecurity Research: Researchers use DoS simulations to identify bottlenecks in network architecture.
  • Improving Robustness: Identifying DoS vulnerabilities allows administrators to implement better firewalls, load balancers, and rate-limiting policies.

Summary

Denial of Service (DoS) is an attack aimed at disabling a system by overwhelming it with fake requests or exploiting software vulnerabilities, rendering it unusable for legitimate visitors. It is essential to implement traffic filtering and robust server configurations to mitigate these risks. Important terms to remember include: Bandwidth, Latency, Packet Loss, and Resource Exhaustion.