Deciding where DDoS protection was needed, and where it was not

A criticality-led DDoS review that spent effort on the services that had to stay up and let the rest ride out an attack.

Challenge

A run of DDoS attacks hit ISPs, and some of their customers. I reviewed the business's exposure to this kind of attack. The question was not how to stop every attack. It was which services could not be allowed to fail, and how to bridge the gap between an attack being detected and being mitigated.

Approach

  • Ranked services by criticality. I informed the assessment with ISO 22301 and asked which services had to keep running. DNS was critical, for customers and for the business. SMTP is store and forward, so it tolerates delay. RADIUS is only needed when a connection is made, so it tolerates an outage. Both already had their own resilience models.
  • Built DNS to resist attack. I had argued for Anycast when I designed the customer resolvers, and configured it myself. When the authoritative servers were rebuilt, I took the same design there. Servers absorb the attack while others keep answering. A cloud-based DNS service sat alongside as extra resilience.
  • Checked exposure. Every service had its exposure reviewed and was hardened where it needed to be.
  • Looked at traffic before and after the transit links. Before the links, I worked out how to move traffic to a scrubbing service and what that process required. Inside the network, I set sensible limits for particular protocols against particular ranges.
  • Automated the first response. A traffic inspection platform detected traffic types and thresholds. When a threshold tripped, it applied a profile that blocked the popular DDoS protocols.
  • Added finer control. I helped develop a real-time blackhole system, which dropped traffic internally by dropping routes using BGP. It worked on all traffic, not only the protocols the automatic profile knew about. It let us limit the blast radius of an attack before the traffic went to scrubbing, with finer control than the profile gave.
  • Detected attacks two ways. Nagios alerted on dropped packets and NetFlow showed what the attack was. Checks ran at intervals, so there was a delay. Attacks tend to build up rather than arrive all at once, which gave that delay some room.

Outcome

  • DNS was designed to survive attack from the start. The cloud DNS fallback was never needed.
  • Attacks did arrive. The ones that caused problems for DSL customers but not for the business were blocked internally. The scrubbing service was used from time to time.