WhichWebHosting home

HomeGuidesSSL and securityWhat is a DDoS attack?

What is a DDoS attack?

Published

Share

A distributed denial of service (DDoS) is a denial of service technique that uses numerous hosts to perform the attack.1, source 1 A DDoS attack occurs when multiple machines operate together to attack one target.2, source 2 It is a form of DoS attack that originates from more than one source.3, source 3

What does DDoS mean?

A denial of service (DoS) attack is an attempt to overload a website or network, with the aim of degrading its performance or even making it completely inaccessible.3, source 3 A DoS attack occurs when legitimate visitors are unable to access information systems, devices or other network resources because of the actions of a malicious cyber threat actor.2, source 2 Services affected by a denial-of-service attack may include email, websites, online accounts such as banking, or other services that rely on the affected computer or network.2, source 2 A denial-of-service condition is accomplished by flooding the targeted host or network with traffic until the target cannot respond or simply crashes, which prevents access for legitimate visitors.2, source 2

DDoS attacks are typically more effective than attacks from a single source because they usually generate more attacking traffic.3, source 3 Because DDoS traffic is spread across many sources, it is harder to distinguish attacker traffic from legitimate traffic.3, source 3 Denial-of-service attacks can cost an organization both time and money while its resources and services are inaccessible.2, source 2

How does a DDoS attack work?

DDoS attackers often use a botnet, a group of hijacked internet-connected devices, to carry out large scale attacks.2, source 2 Attackers take advantage of security vulnerabilities or device weaknesses to control numerous devices using command and control software.2, source 2 Internet of Things (IoT) devices often use default passwords and do not have sound security postures, which makes them vulnerable to compromise and exploitation.2, source 2

Infection of IoT devices often goes unnoticed by the people using them.2, source 2 Once an attacker is in control of a botnet, the attacker can command it to conduct a DDoS attack on a target.2, source 2 In a botnet attack, the infected devices are also victims of the attack.2, source 2 The botnet is often made available to attack-for-hire services, which allow unskilled people to launch DDoS attacks.2, source 2

DDoS allows exponentially more requests to be sent to the target, which increases the attack power.2, source 2 DDoS also increases the difficulty of attribution, because the true source of the attack is harder to identify.2, source 2

What are the main types of DDoS attacks?

Different types of DoS attack target different parts of a system, such as a network's bandwidth or the processor limitations of servers.3, source 3 Volumetric DDoS attacks aim to consume available bandwidth.4, source 4 Protocol DDoS attacks exploit vulnerabilities in network protocols.4, source 4 Application DDoS attacks target vulnerabilities in specific applications or running services.4, source 4

The overall impact of a DoS attack depends on what is targeted, how long the attack lasts and the effectiveness of the organization's response plan.3, source 3 The most common method of DoS attack is for an attacker to flood a network server with traffic.2, source 2 In a flooding attack, the illegitimate service requests have fabricated return addresses, which mislead the server when it tries to authenticate the requestor.2, source 2 In a Smurf attack, the attacker sends Internet Control Message Protocol broadcast packets to a number of hosts with a spoofed source IP address that belongs to the target machine, and the recipients' responses flood the target.2, source 2

A SYN flood occurs when an attacker sends a request to connect to the target server but does not complete the connection through the three-way handshake.2, source 2 In a SYN flood, the incomplete handshake leaves the connected port occupied and unavailable for further requests, and the attacker keeps sending requests until all open ports are saturated.2, source 2 A network can lose service without being directly targeted when its internet service provider or cloud service provider has been targeted and attacked.2, source 2

How does a SYN flood work?

A SYN flooding attack is a denial-of-service method affecting hosts that run TCP server processes.5, source 5 SYN flooding takes advantage of the state that TCP retains for some time after receiving a SYN segment to a port in the LISTEN state.5, source 5 The aim of a SYN flood is to make a host retain enough state for bogus half-connections that no resources are left to establish new legitimate connections.5, source 5

A SYN flood attempts to exhaust the backlog of half-open connections associated with a port number.5, source 5 Systems commonly implement a parameter to the listen() system call that lets the application suggest a value for the backlog limit.5, source 5 When the backlog limit is reached, either incoming SYN segments are ignored or uncompleted connections in the backlog are replaced.5, source 5 The attacker sends a quick barrage of SYN segments from IP addresses, often spoofed, that will not reply to the SYN-ACKs the victim produces.5, source 5

By keeping the backlog full of bogus half-opened connections, the attack causes legitimate requests to be rejected.5, source 5 A SYN flood aims to block only new incoming connections to the victim port.5, source 5 It does not affect outgoing connection requests or previously established connections to that port.5, source 5

Removing an attacker's ability to send spoofed IP packets is an effective solution to SYN flooding that requires no modifications to TCP.5, source 5 An attacker who can use a group of compromised hosts or rapidly change between access providers makes such filtering ineffective.5, source 5 SYN cookies allocate no state at all for connections in the SYN-RECEIVED state.5, source 5 SYN cookies are typically not used by default on systems that implement them, and are enabled only under high-stress conditions that indicate an attack or by administrative action.5, source 5

How do you know your website is under attack?

Whatever the type of DoS attack, a successful one will cause the targeted system to become unreliable or unresponsive to a person trying to access it.3, source 3 An unavailable public-facing website can significantly affect an organization's productivity when it affects business-critical functions, including through loss of sales or employees being unable to work.3, source 3 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.2, source 2 Symptoms that could indicate a DoS or DDoS attack include unusually slow network performance, unavailability of a particular website, and an inability to access any website.2, source 2

The best way to detect and identify a DoS attack would be through network traffic monitoring and analysis.2, source 2 Network traffic can be monitored via a firewall or intrusion detection system.2, source 2 An administrator may set up rules that create an alert when an anomalous traffic load is detected, and that identify the source of the traffic or drop network packets that meet certain criteria.2, source 2 Many attackers conduct DoS or DDoS attacks to deflect attention from their intended target and use the opportunity to conduct secondary attacks on other services within the network.2, source 2

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.2, source 2 Ask your network administrator to confirm whether a service outage is due to maintenance or an in-house network issue.2, source 2 Network administrators can monitor traffic to confirm an attack, identify its source and mitigate it by applying firewall rules and possibly rerouting traffic through a DoS protection service.2, source 2 You can also ask your internet service provider whether there is an outage on its end, or whether its network is the target of the attack and you are an indirect victim.2, source 2

How can you reduce the damage of a DDoS attack?

No way exists to completely avoid becoming a target of a DoS or DDoS attack, but administrators can take proactive steps to reduce the effects of an attack on their network.2, source 2 A determined attacker will nearly always be able to send more traffic than most organizations could cope with unaided.6, source 6 To mitigate denial of service attacks successfully, you may need to call on one or more service providers for help.6, source 6 Internet service providers have varying capabilities for helping people deal with denial of service attacks: some are inherent in their networks, and others may only be available at additional cost.6, source 6

Many ISPs may offer a packet scrubbing service, directly or via a third party, that performs basic filtering of packets that appear to be intended to cause a denial of service.6, source 6 A DoS protection service detects abnormal traffic flows and redirects traffic away from your network, so that the DoS traffic is filtered out and clean traffic is passed on.2, source 2 Content delivery networks often have edge infrastructure distributed globally with multiple routes into and out of the network, which makes it very difficult to successfully DoS one.6, source 6

Content delivery networks often have capabilities to help with application-layer attacks, for example by rate limiting access to particular URLs to prevent search queries overloading backend databases.6, source 6 When a service is presented over HTTPS, a CDN provider will hold your private keys or a certificate that will be trusted as if it were yours.6, source 6 You should make sure your CDN masks or cloaks your site so that an attacker cannot discover the true origin.6, source 6 You may also want ISP-level IP allow listing, so that all requests must reach you via the CDN and an attacker cannot bypass it to target your services directly.6, source 6

Using multiple service providers may improve availability of some functions, such as DNS, network connectivity or hosting.6, source 6 You should understand when and how your service provider might limit your network access in order to protect its other clients.6, source 6

What does DDoS protection look like on a host or CDN?

Cloudflare says its DDoS Protection is available on all plans.7, source 7 Cloudflare's Autonomous DDoS Protection Edge automatically detects and mitigates DDoS attacks.8, source 8 Cloudflare analyzes traffic samples out of path, which lets it detect DDoS attacks asynchronously without causing latency or affecting performance.9, source 9 Cloudflare uses a set of dynamic rules that scan for attack patterns, known attack tools, suspicious patterns, protocol violations and requests causing large amounts of origin errors.9, source 9

Each Cloudflare DDoS rule has a predefined sensitivity level and a default action that varies with the rule's confidence that the traffic is part of an attack.9, source 9 Once attack traffic matches a rule, Cloudflare generates a real-time signature to match the attack pattern and mitigate the attack without impacting legitimate traffic.9, source 9 Cloudflare's mitigation rules are ephemeral and expire shortly after the attack has ended.9, source 9 Cloudflare says detection and mitigation of HTTP DDoS attacks at the edge using the HTTP DDoS Protection Managed rules takes up to three seconds on average.9, source 9

Cloudflare says its managed rulesets protect against a variety of DDoS attacks across layers 3/4 (network layer) and layer 7 (application layer) of the OSI model.7, source 7 Cloudflare Adaptive DDoS Protection learns your unique traffic patterns and adapts to them to provide better protection against sophisticated DDoS attacks on layer 7 and layers 3/4.8, source 8

At Contabo, in-house DDoS protection is free and activated automatically for all servers.10, source 10 Contabo's DDoS protection has limits: some attacks cannot be mitigated because of their pattern or sheer volume.10, source 10 KnownHost includes DDoS protection on all its managed product lines.11, source 11 This DDoS protection is not intended to cover Layer 7 or application layer attacks.11, source 11

Hostwinds sells DDoS protection as purchasable DDoS-protected IP addresses.12, source 12 At Hostwinds, DDoS protection is not available for Shared Hosting and Business Hosting.12, source 12 When a DDoS attack is detected on a non-protected Hostwinds IP, all traffic to the server is null routed, or thrown away, for 24 hours.12, source 12

Common questions

What does DDoS stand for?

DDoS stands for distributed denial of service. It is a denial of service technique that uses numerous hosts to perform the attack on a single target.

Is a DDoS attack the same as a DoS attack?

No. A DDoS attack is a form of DoS attack that originates from more than one source. Both types attempt to overload a website or network, but DDoS traffic is spread across multiple machines.

What is a botnet in a DDoS attack?

A botnet is a group of hijacked internet-connected devices. Attackers use these compromised devices to carry out large scale DDoS attacks. The botnet is often made available to attack-for-hire services that allow unskilled people to launch attacks.

Can you stop a DDoS attack from ever happening?

No, you cannot completely avoid becoming a target. Administrators can take proactive steps to reduce the effects of an attack on their network, such as using a DoS protection service.

What is the difference between volumetric, protocol and application DDoS attacks?

Volumetric DDoS attacks aim to consume available bandwidth. Protocol DDoS attacks exploit vulnerabilities in network protocols, and application DDoS attacks target vulnerabilities in specific applications or running services.

Does web hosting include DDoS protection?

Sometimes. Its scope varies depending on the provider and the specific plan. Some hosting providers activate automatic protection for free, while others sell it as purchasable protected IP addresses or exclude it from some plans.

Sources

Every fact on this page comes from one of these, checked before it goes live.

More guides

SSL and security

What is a firewall and how does it work?

A firewall controls the flow of network traffic between networks or hosts. Learn how it filters packets, its hardware and software forms, and what WAFs do.

· Mateo Cardenas

SSL and security

What is an SSL certificate?

An SSL certificate binds a public key to a domain name so browsers can verify the server. Learn what it holds, who issues it and how long it lasts.

· Mateo Cardenas

SSL and security

What is HTTPS?

HTTPS is an encrypted version of HTTP that uses TLS to protect all communication between a client and a server.

· Mateo Cardenas

SSL and security

What is TLS?

TLS lets a client communicate securely with a server over an untrusted network, and SSL is its precursor. Learn how it works and which versions to avoid.

· Mateo Cardenas