Denial of Service
CS 161 Fall 2021 - Lecture 34
Computer Science 161
Popa and Weaver
Announcements
2
Computer Science 161
Popa and Weaver
Last Time: DNSSEC
3
Computer Science 161
Popa and Weaver
Today: Denial of Service and Firewalls
4
Computer Science 161
Popa and Weaver
Denial of Service (DoS)
5
Computer Science 161
Popa and Weaver
Availability and Denial of Service (DoS)
6
Computer Science 161
Popa and Weaver
DoS in the News
7
| |
Cloudflare thwarts 17.2M rps DDoS attack — the largest ever reported | |
Omer Yoachimik | 8/19/2021 |
Earlier this summer, Cloudflare’s autonomous edge DDoS protection systems automatically detected and mitigated a 17.2 million request-per-second (rps) DDoS attack, an attack almost three times larger than any previous one that we're aware of. For perspective on how large this attack was: Cloudflare serves over 25 million HTTP requests per second on average. This refers to the average rate of legitimate traffic in 2021 Q2. So peaking at 17.2 million rps, this attack reached 68% of our Q2 average rps rate of legitimate HTTP traffic. [Nick’s comment: Cloudflare serves a huge fraction of the Internet web traffic. So this is basically “targeting a single site, 25% of the entire web traffic on the Internet!”] |
Computer Science 161
Popa and Weaver
DoS in the News
8
| |
Powerful New DDoS Method Adds Extortion | |
Brian Krebs | 3/2/2018 |
Attackers have seized on a relatively new method for executing distributed denial-of-service (DDoS) attacks of unprecedented disruptive power, using it to launch record-breaking DDoS assaults over the past week. Now evidence suggests this novel attack method is fueling digital shakedowns in which victims are asked to pay a ransom to call off crippling cyberattacks. On March 1, DDoS mitigation firm Akamai revealed that one of its clients was hit with a DDoS attack that clocked in at 1.3 Tbps, which would make it the largest publicly recorded DDoS attack ever. The type of DDoS method used in this record-breaking attack abuses a legitimate and relatively common service called “memcached” (pronounced “mem-cash-dee”) to massively amp up the power of their DDoS attacks. |
Computer Science 161
Popa and Weaver
DoS in the News
9
| |
DDoS makes a phishing e-mail look real | |
Munir Kotadia | November 8, 2006 |
Just as Internet users learn that clicking on a link in an e-mail purporting to come from their bank is a bad idea, phishers seem to be developing a new tactic -- launch a DDoS attack on the Web site of the company whose customers they are targeting and then send e-mails "explaining" the outage and offering an "alternative" URL. |
Computer Science 161
Popa and Weaver
DoS Attacks: Strategies
10
Computer Science 161
Popa and Weaver
DoS Attacks: Strategies
11
Bottleneck
Computer Science 161
Popa and Weaver
DoS Targets
12
Computer Science 161
Popa and Weaver
Application-Level DoS
13
Computer Science 161
Popa and Weaver
Application-Level DoS
14
Computer Science 161
Popa and Weaver
Resource Consumption
15
int fd = open('/tmp/junk');
char buf[4096];
while (1) { write(fd, buf, 4096); };
while (1) { malloc(1000000000); }
while (1) { fork(); }
Exhausts filesystem space
Exhausts RAM
Exhausts processing threads
while (1) {
int fd = open(random_file());
write(fd, "abcde", 5);
close(fd);�}
Exhausts disk I/O operations
Computer Science 161
Popa and Weaver
Algorithmic Complexity Attacks
16
Computer Science 161
Popa and Weaver
Example Algorithmic Complexity Attacks
17
Computer Science 161
Popa and Weaver
Application-Level DoS: Defenses
18
Computer Science 161
Popa and Weaver
Application-Level DoS: Defenses
19
Computer Science 161
Popa and Weaver
Network-Level DoS
20
Computer Science 161
Popa and Weaver
Network-Level DoS
21
Computer Science 161
Popa and Weaver
Distributed Denial-of-Service (DDoS)
22
Victim
Attacker
Attacker
Attacker
Attacker
Attacker
Attacker
Computer Science 161
Popa and Weaver
Amplified Denial-of-Service
23
Attacker
DNS Name Server
Victim
From: Victim, To: Server
request
From: Server, To: Victim
RESPONSE
Computer Science 161
Popa and Weaver
Amplified Denial-of-Service
24
Computer Science 161
Popa and Weaver
Network-Level DoS: Defenses
25
Computer Science 161
Popa and Weaver
Network-Level DoS: Defenses
26
Computer Science 161
Popa and Weaver