Organisations defend against a Slowloris attack by limiting how long servers will wait for complete requests, capping concurrent connections, and using infrastructure that can absorb or front-end malformed connection floods. Monitor for many slow, incomplete HTTP sessions from the same sources or patterns. Tuning request and header timeouts is usually the first control.
How Slowloris Defense Actually Works
Slowloris is not a volume flood in the classic sense, it is a connection exhaustion tactic. The attacker keeps many HTTP sessions open by sending headers or request fragments very slowly, which ties up worker threads, file descriptors, or proxy resources. Defense therefore focuses on making “slow and incomplete” requests expensive for the attacker and cheap for the server.
The most effective controls are timeout discipline, connection limits, and front-end infrastructure that can absorb or terminate malformed sessions before they reach the origin. In practice, this means tuning request-header and request-body timeouts, limiting keep-alive abuse, and ensuring the web tier does not let one incomplete session monopolise capacity.
What To Tune First in Web and Reverse-Proxy Layers
The first place to look is the component that actually holds the connection open. If the web server, load balancer, or reverse proxy waits too long for headers, a Slowloris pattern can consume capacity without ever completing a valid request. Tightening those waits is usually the fastest and least disruptive hardening step.
Connection caps matter just as much as timeouts. Per-IP limits, per-virtual-host limits, and global concurrent-connection ceilings reduce the blast radius of a single source or botnet node. If your edge stack supports it, put the throttling and timeout logic at the front door rather than relying on the application server to discover the problem late.
Infrastructure choices also change the outcome. A CDN, reverse proxy, or scrubbing service can terminate abusive sessions closer to the attacker, while anycast and distributed front ends can spread the load so one site does not become the bottleneck. For broader DDoS planning, DDoS Protection Guide covers the same front-end controls in a wider mitigation runbook.
How to Spot Slow Connections Before They Become an Outage
Slowloris is most visible in the shape of the traffic, not the content. Look for many half-open or very long-lived HTTP sessions, repeated header stalls, low request completion rates, and a concentration of incomplete connections from the same source ranges, user agents, or access patterns. These signals often appear before user-facing errors start to spike.
Detection should be tied to resource exhaustion, because the real failure condition is not the slow request itself but the depletion of concurrency. If you see thread pools, connection tables, or proxy workers flattening while actual request throughput stays low, you are likely looking at an application-layer exhaustion pattern rather than a normal traffic surge.
For incident handling, keep an eye on whether the pressure is at the edge or at the origin. If the reverse proxy is absorbing the attack cleanly, the origin may look healthy even while the front door is at risk. That distinction matters when deciding whether to block sources, raise timeouts, or move traffic behind stronger front-end protection.
Risk and Threat Considerations
Slowloris is attractive because it exploits an assumption many web stacks still make: that clients will finish requests promptly. When that assumption is wrong, a relatively small number of slow sessions can consume disproportionately large amounts of server capacity and create a denial of service without high bandwidth.
Failure mechanism: The attacker holds connection state open just long enough to consume workers, sockets, or proxy slots, then repeats the pattern across many sessions or sources. If timeouts are lenient and connection limits are loose, the service can degrade even when normal request volume is modest.
Impact: Users experience stalled logins, failed page loads, or complete unavailability, and the service may be forced into emergency throttling or restart actions. In environments with shared front ends, the attack can also mask itself as ordinary latency until capacity is already exhausted.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
CIS Controls v8, NIST CSF 2.0, NIST SP 800-53 Rev 5 and OWASP ASVS set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| CIS Controls v8 | CIS-12 — Network Infrastructure Management | Tighten network and perimeter handling to reduce connection exhaustion exposure. |
| Recommendation — Harden edge capacity and timeout settings to limit slow-connection abuse. | ||
| NIST CSF 2.0 | PR.DS-10 — Availability and Resilience | Slowloris is an availability attack that degrades service resilience. |
| Recommendation — Tune service timeouts and front-end limits to preserve availability under connection floods. | ||
| NIST SP 800-53 Rev 5 | SC-5 — Denial-of-Service Protection | Slowloris is a denial-of-service pattern requiring connection and resource protections. |
| Recommendation — Apply DoS protections that cap sessions and resist resource exhaustion. | ||
| OWASP ASVS | V13 — Configuration | Server and proxy timeout configuration directly determines Slowloris exposure. |
| Recommendation — Set strict request and connection timeout configurations for web-facing components. | ||
Practitioner Guidance
What to prioritise: Start with the control that closes the longest-lived incomplete sessions, then verify that the proxy or load balancer enforces its own ceilings before traffic reaches the application tier. If only the origin is hardened, an attacker can often shift the pressure outward and keep the service unstable.
What to verify: Confirm the environment has separate timeout behaviour for headers, body uploads, and idle keep-alive connections, because a single generic timeout often leaves one of those paths too permissive. Also verify that monitoring can distinguish completed requests from stalled sessions, not just total request count.
Practitioner takeaway: Slowloris defense is mostly about refusing to keep expensive state for incomplete requests, so the best posture combines short time-to-complete rules with front-end capacity controls and clear visibility into stalled connections.
Related resources from NHI Mgmt Group
- How should organisations defend against attack-as-a-service identity fraud?
- What should organisations do first when they are trying to defend against common attack paths instead of only headline-grabbing threats?
- How can organisations defend against the Kaseya VSA attack?
- How can organisations defend against a SolarWinds-style supply chain attack?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 19, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org