There are affiliate links on this page.
Read our disclosure policy to learn more.

Denial of Service Attacks (DoS) Explained

Denial of Service Attacks (DoS)

An interruption of an authorized user's access to any system or network, typically caused with malicious intent. A denial-of-service (DoS) attack occurs when legitimate users are unable to access websites, servers, information systems, devices, or other networkconnected resources due to the actions of a malicious cyber criminal.

Services affected may include

  • email,
  • websites,
  • online accounts (e.g., banking), or
  • other services that rely on the affected computer or network.

A denial-of-service is accomplished by flooding the targeted host or network with traffic until the target cannot respond or simply crashes, preventing access for legitimate users. The crinimal uses his own computers and sometimes zombie computers (consumer computers infected with malware) to send out massive amounts of emails or viruses. DoS attacks can cost an organization both time and money while their resources and services are inaccessible.

Common Types of Denial-of-Service Attacks

There are many different methods for carrying out a DoS attack. The most common method of attack occurs when an attacker floods a network server with traffic. In this type of DoS attack, the attacker sends several requests to the target server, overloading it with traffic. These service requests are illegitimate and have fabricated return addresses, which mislead the server when it tries to authenticate the requestor. As the junk requests are processed constantly, the server is overwhelmed, which causes a DoS condition to legitimate requestors.

Smurf Attack

In a Smurf Attack, the attacker sends Internet Control Message Protocol broadcast packets to a number of hosts with a spoofed source Internet Protocol (IP) address that belongs to the target machine. The recipients of these spoofed packets will then respond, and the targeted host will be flooded with those responses.

SYN Flood

A SYN flood occurs when an attacker sends a request to connect to the target server, but never completes the connection through what is known as a three-way handshake, a method used in a TCP/IP network to create a connection between a local host/client and server. The incomplete handshake leaves the connected port in an occupied status and unavailable for further requests. An attacker will continue to send requests, saturating all open ports, so that legitimate users cannot connect.

Individual networks may be affected by DoS attacks without being directly targeted. If the network's internet service provider (ISP) or cloud service provider has been targeted and attacked, the network will also experience a loss of service.

Distributed Denial-of-Service attacks (DDoS)

A distributed denial-of-service (DDoS) attack occurs when multiple machines are operating together to attack one target. DDoS allows for exponentially more requests to be sent to the target, therefore increasing the attack power. It also increases the difficulty of attribution, as the true source of the attack is harder to identify.

DDoS attackers often leverage the use of a botnet, a group of hijacked internet-connected devices to carry out large scale attacks. Attackers take advantage of security vulnerabilities or device weaknesses to control numerous devices using command and control software. Once in control, an attacker can command their botnet to conduct DDoS on a target. In this case, the infected devices are also victims of the attack.

Once established, the botnet, made up of compromised devices, may also be rented out to other potential attackers. Often the botnet is made available to "attack-for-hire" services which allow even the most unskilled user to launch DDoS attacks.

DDoS attacks have increased in magnitude as more and more devices come online through the Internet of Things (IoT) (see Securing the Internet of Things for additional information). IoT devices often utilize default passwords and do not have sound security postures, making them vulnerable to compromise and exploitation. Infection of IoT devices often goes unnoticed by users, and an attacker could easily compromise hundreds of thousands of these devices to conduct a high-scale attack without the device owners' knowledge.

How to Protect Yourself and Your Business

While there is no way to completely avoid becoming a target of a DoS or DDoS attack, there are proactive steps administrators can take to reduce the effects of an attack on their network.

Protection Methods for Individuals

Install and maintain antivirus software on all of your devices (phones, tablets, ipad, computers). (see Anti-Virus Software).

Use a secure password on your router and turn the firewall on - configure it to restrict traffic coming into and leaving your computer (see Firewalls Tutorial).

Evaluate security settings and follow good security practices in order to minimalize the access other people have to your information, as well as manage unwanted traffic (see Good Security Habits).

Protection Methods for Businesses

Many server apps like WHM / Cpanel that can detect unusual patterns of traffic and suspicious origins, like China, and then block them quickly and automatically. The DoS traffic is then filtered out, while clean traffic is passed on to your network.

Create a disaster recovery plan to ensure successful and efficient communication, mitigation, and recovery in the event of an attack.

It is also important to take steps to strengthen the security posture of all of your internet-connected devices in order to prevent them from being compromised.

Install and maintain antivirus software (see Understanding Anti-Virus Software).

Install a firewall and configure it to restrict traffic coming into and leaving your computer (see Understanding Firewalls).

Evaluate security settings and follow good security practices in order to minimalize the access other people have to your information, as well as manage unwanted traffic (see Good Security Habits).

How do you know if an attack is happening?

Symptoms of a DoS attack can resemble non-malicious availability issues, such as technical problems with a particular network or a system administrator performing maintenance. However, the following symptoms could indicate a DoS or DDoS attack:

  • unusually slow network performance (opening files or accessing websites),
  • unavailability of a particular website, or an inability to access any website.

The best way to detect and identify a DoS attack would be via network traffic monitoring and analysis. Network traffic can be monitored via a firewall or intrusion detection system. At home, you configure it in your router's settings. In a business, an administrator may even set up rules that create an alert upon the detection of an anomalous traffic load and identify the source of the traffic or drops network packets that meet a certain criteria.

What do you do if you think you are experiencing an attack?

If you think you or your business is experiencing a DoS or DDoS attack, it is important to contact the appropriate technical professionals for assistance. That would be the website of the manufacturer of your router or firewall software typical.

At work, contact your Network Administrator to confirm whether the service outage is due to maintenance or an in-house network issue. They can also monitor network traffic to confirm the presence of an attack, identify the source and mitigate the situation by applying firewall rules and possibly rerouting traffic through a DoS protection service.

At home, contact your ISP to ask if there is an outage on their end or even if their network is the target of the attack and you are an indirect victim. They may be able to advise you on an appropriate course of action.
In the case of an attack, do not lose sight of the other hosts, assets, or services residing on your network. Many attackers conduct DoS or DDoS attacks to deflect attention away from their intended target and use the opportunity to conduct secondary attacks on other services within your network.