Ethical Hacking DoS and DDoS

A denial-of-service attack, or DoS, makes a website or service unavailable by overwhelming it. A distributed denial-of-service attack, or DDoS, does the same using thousands of machines at once. Ethical hackers study these attacks to help organizations stay online under pressure. The content explains concepts and defense only.

A Simple Picture

Imagine a small shop with one door. A handful of customers walk in and out with no trouble. A crowd of ten thousand people shows up at once with no plan to buy anything. Real customers cannot enter, and the shop loses business. A DoS attack creates that crowd against a server.

DoS vs DDoS

DoS:    [One Attacker] ===========> [Server]

DDoS:   [Machine 1] ---+
        [Machine 2] ---+
        [Machine 3] ---+===========> [Server]
        [Machine 4] ---+
        [Machine N] ---+

A DoS attack comes from one source, so a firewall can block it by blocking that source. A DDoS attack comes from many sources spread across the globe, which makes blocking harder.

Main Attack Categories

Volume Attacks

These attacks fill the network pipe with huge amounts of traffic. The goal is to use up all available bandwidth.

Protocol Attacks

These attacks abuse how network rules work. A SYN flood sends many connection requests and never completes them, leaving the server waiting and out of room for real users.

Application Attacks

These attacks target a website's features, such as search or login pages. Each request looks normal, but the volume drains server memory and processing power.

What Is a Botnet

A botnet is a group of infected devices that an attacker controls remotely. Owners usually do not know their device takes part. Smart cameras, routers, and old computers with weak passwords often join botnets. Keeping devices updated and changing default passwords reduces the pool of devices available to attackers.

Warning Signs

  • The website loads very slowly or times out.
  • Traffic jumps sharply from unusual countries.
  • Server processor use hits the maximum.
  • Many requests arrive for the same page.
  • Network equipment shows full connection tables.

How Ethical Hackers Test Resilience

Companies sometimes hire testers to check how systems behave under heavy load. This practice, called stress testing, runs only with written approval, careful limits, and a planned time window. Testers use controlled traffic against a test copy or an approved system. They measure how many requests the server handles before it slows down and where the weak point appears.

Defense Strategies

DefenseHow It Helps
Content Delivery NetworkSpreads traffic across many servers worldwide
Rate limitingCaps requests from a single source
Web application firewallFilters harmful requests
DDoS protection serviceAbsorbs and cleans attack traffic before it arrives
Extra bandwidth and scalingGives the system room to handle spikes
Response planTells staff exactly whom to call and what to do

Response Plan Example

  1. Detect the spike through monitoring alerts.
  2. Confirm the traffic is an attack and not a popular sale or news event.
  3. Contact the internet provider and protection service.
  4. Turn on stricter filters.
  5. Inform customers through social media or a status page.
  6. Review logs afterward and improve the plan.

Legal Warning

Launching a DoS or DDoS attack against any system without approval is a serious crime in most countries. Penalties include prison and large fines. Learners should study defense, build their own test labs, and never aim traffic at systems they do not own.