Slow Loris

Slowloris is an Application Layer attack which operates by utilizing partial HTTP requests. The attack functions by opening connections to a targeted Web server and then keeping those connections open as long as it can.

Slowloris is a DDoS attack tool used to perform layer-7 DDoS attacks to take down web infrastructure

Slow Loris-1754938633785.webp

Methodology

  1. Opening Connections: The attacker opens a large number of HTTP connections to the target web server.
  2. Partial Requests: The attacker sends incomplete HTTP requests (header data only, without completing the body). These incomplete requests keep the connection open but aren’t immediately processed by the server because the HTTP headers aren’t fully received.
  3. Keep-Alive Header: The attack uses the Keep-Alive HTTP header, which tells the server to maintain the connection open for a longer period of time, even though the request isn’t completed. This effectively ties up server resources for extended periods.
  4. Maintain Connections: Slowloris keeps the connections open by periodically sending small amounts of data to the server to prevent it from timing out or closing the connection. This keeps the server waiting for the full request, thus blocking legitimate traffic from getting through.
  5. Exhausting Connections: Over time, the server accumulates many incomplete requests, filling up the available connection pool. When the connection pool is exhausted, new legitimate connections can no longer be established, leading to a Denial of Service (DoS), where legitimate users cannot access the website or services.