NDEF-3Lesson 3 of 39 min

Denial of service and staying available

Some attackers do not want to read or change anything. They want a service to stop working. This lesson covers denial-of-service attacks and how services stay available.

Floods

Figure NDEF-3.1A flood, and a filter

requests per minute

  • real2,000
  • max10,000
1/3

On a normal result day, the college portal handles about 2,000 requests a minute from real students. It is built for about 10,000.

Step 1 of 3

Botnets

A botnet is a large group of hacked devices, called bots, that an attacker controls remotely. In 2016 the Mirai botnet took over hundreds of thousands of cameras and home routers that still used their factory passwords. In October of that year it flooded Dyn, a large company that answers DNS lookups for many websites. Because names could not be turned into addresses, popular sites were unreachable for hours in parts of the world. (One of this course’s books describes Dyn as running the root DNS servers; it did not.)

Some attacks also use amplification: sending small requests to helpful servers with the victim’s address forged as the sender, so the servers send much larger replies to the victim.

Staying available

  • Put public services behind DDoS protection services or content delivery networks (large networks of servers that hold copies of a site close to its visitors), built to absorb floods.
  • Limit how many requests one sender can make in a minute (rate limiting).
  • Avoid single points of failure: more than one server, more than one location, tested backups.
  • Change default passwords on every device, so yours never joins a botnet.

NDEF-3 counts as completed once you step through the figure to its last step.