• No results found

chapter8_DoS.pdf

N/A
N/A
Protected

Academic year: 2020

Share "chapter8_DoS.pdf"

Copied!
22
0
0

Loading.... (view fulltext now)

Full text

(1)

Computer Security:

Computer Security:

Principles and Practice

Principles and Practice

First Edition First Edition

by William Stallings and Lawrie Brown by William Stallings and Lawrie Brown

Lecture slides by Lawrie Brown Lecture slides by Lawrie Brown

Chapter 8 –

(2)

Denial of Service

Denial of Service

denial of servicedenial of service (DoS) an action that prevents or (DoS) an action that prevents or

impairs the authorized use of networks, systems, or impairs the authorized use of networks, systems, or

applications by exhausting resources such as central applications by exhausting resources such as central

processing units (CPU), memory, bandwidth, and processing units (CPU), memory, bandwidth, and

disk space disk space

attacksattacks

 network bandwidthnetwork bandwidth  system resourcessystem resources

 application resourcesapplication resources

(3)

Classic

Classic

Denial of Service Attacks

Denial of Service Attacks

 can use simple flooding pingcan use simple flooding ping

 from higher capacity link to lowerfrom higher capacity link to lower

 causing loss of trafficcausing loss of traffic

(4)

Classic

(5)

Source Address Spoofing

Source Address Spoofing

 use forged source addressesuse forged source addresses

 given sufficient privilege to “raw sockets”given sufficient privilege to “raw sockets”  easy to createeasy to create

 generate large volumes of packetsgenerate large volumes of packets

directed at targetdirected at target

 with different, random, source addresseswith different, random, source addresses

 cause same congestioncause same congestion

 responses are scattered across Internetresponses are scattered across Internet

(6)

SYN Spoofing

SYN Spoofing

 other common attackother common attack

 attacks ability of a server to respond to future attacks ability of a server to respond to future

connection requests

connection requests

 overflowing tables used to manage themoverflowing tables used to manage them

(7)
(8)
(9)

SYN Spoofing Attack

SYN Spoofing Attack

 attacker often uses eitherattacker often uses either

 random source addressesrandom source addresses

 or that of an overloaded serveror that of an overloaded server

 to block return of (most) reset packetsto block return of (most) reset packets

 has much lower traffic volumehas much lower traffic volume

(10)

Types of Flooding Attacks

Types of Flooding Attacks

 classified based on network protocol usedclassified based on network protocol used

 ICMP FloodICMP Flood

 uses ICMP packets, e.g. echo requestuses ICMP packets, e.g. echo request  typically allowed through, some requiredtypically allowed through, some required

 UDP FloodUDP Flood

 alternative uses UDP packets to some portalternative uses UDP packets to some port

 TCP SYN FloodTCP SYN Flood

(11)

Distributed

Distributed

Denial of Service Attacks

Denial of Service Attacks

 have limited volume if single source usedhave limited volume if single source used

 multiple systems allow much higher traffic multiple systems allow much higher traffic

volumes to form a Distributed

volumes to form a Distributed Denial of Denial of

Service (DDoS) Attack

Service (DDoS) Attack

 often compromised PC’s / workstationsoften compromised PC’s / workstations

 zombies with backdoor programs installedzombies with backdoor programs installed  forming a botnetforming a botnet

(12)
(13)

Reflection Attacks

Reflection Attacks

 use normal behavior of networkuse normal behavior of network

 attacker sends packet with spoofed source attacker sends packet with spoofed source

address being that of target to a server

address being that of target to a server

 server response is directed at targetserver response is directed at target

 if send many requests to multiple servers, if send many requests to multiple servers,

response can flood target

response can flood target

various protocols e.g. UDP or TCP/SYNvarious protocols e.g. UDP or TCP/SYN

 ideally want response larger than requestideally want response larger than request

(14)

Reflection Attacks

Reflection Attacks

 further variation creates a self-contained loop further variation creates a self-contained loop

between intermediary and target

between intermediary and target

(15)
(16)

DNS Amplification Attacks

DNS Amplification Attacks

 use DNS requests with spoofed source use DNS requests with spoofed source

address being the target

address being the target

 exploit DNS behavior to convert a small exploit DNS behavior to convert a small

request to a much larger response

request to a much larger response

 60 byte request to 512 - 4000 byte response60 byte request to 512 - 4000 byte response

 attacker sends requests to multiple well attacker sends requests to multiple well

connected servers, which flood target

connected servers, which flood target

(17)

DoS Attack Defenses

DoS Attack Defenses

 high traffic volumes may be legitimatehigh traffic volumes may be legitimate

 result of high publicity, e.g. “slash-dotted”result of high publicity, e.g. “slash-dotted”  or to a very popular site, e.g. Olympics etcor to a very popular site, e.g. Olympics etc

 or legitimate traffic created by an attackeror legitimate traffic created by an attacker

three lines of defense against (D)DoS:three lines of defense against (D)DoS:

 attack prevention and preemptionattack prevention and preemption  attack detection and filteringattack detection and filtering

(18)

Attack Prevention

Attack Prevention

 block spoofed source addressesblock spoofed source addresses

 on routers as close to source as possibleon routers as close to source as possible  still far too rarely implementedstill far too rarely implemented

 rate controls in upstream distribution netsrate controls in upstream distribution nets

 on specific packets types on specific packets types

 e.g. some ICMP, some UDP, TCP/SYNe.g. some ICMP, some UDP, TCP/SYN

 use modified TCP connection handlinguse modified TCP connection handling

 use SYN cookies when table fulluse SYN cookies when table full

(19)

Attack Prevention

Attack Prevention

 block IP directed broadcastsblock IP directed broadcasts

 block suspicious services & combinationsblock suspicious services & combinations

 manage application attacks with “puzzles” to manage application attacks with “puzzles” to

distinguish legitimate human requests

distinguish legitimate human requests

 good general system security practicesgood general system security practices

 use mirrored and replicated servers when use mirrored and replicated servers when

high-performance and reliability required

(20)

Responding to Attacks

Responding to Attacks

 need good incident response planneed good incident response plan

 with contacts for ISP with contacts for ISP

 needed to impose traffic filtering upstreamneeded to impose traffic filtering upstream  details of response processdetails of response process

 have standard filters have standard filters

 ideally have network monitors and IDSideally have network monitors and IDS

(21)

Responding to Attacks

Responding to Attacks

 identify type of attackidentify type of attack

 capture and analyze packets capture and analyze packets

 design filters to block attack traffic upstreamdesign filters to block attack traffic upstream  or identify and correct system/application bugor identify and correct system/application bug

 have ISP trace packet flow back to sourcehave ISP trace packet flow back to source

 may be difficult and time consumingmay be difficult and time consuming  necessary if legal action desirednecessary if legal action desired

 implement contingency planimplement contingency plan

(22)

Summary

Summary

 introduced denial of service (DoS) attacksintroduced denial of service (DoS) attacks

 classic flooding and SYN spoofing attacksclassic flooding and SYN spoofing attacks

 ICMP, UDP, TCP SYN floodsICMP, UDP, TCP SYN floods

 distributed denial of service (DDoS) attacksdistributed denial of service (DDoS) attacks

 reflection and amplification attacksreflection and amplification attacks

 defenses against DoS attacksdefenses against DoS attacks

References

Related documents

While DoS attack use number of computers to direct an attack a single server, DDoS is an acronym used for distributed denial of service attacks.. It is a distributed attack in a

Data, application and services non- availability can be imposed through Denial of Service (DOS) or Distributed Denial of Service (DDOS) attacks and both cloud service

Intrusion Detection, Network Management, Security Management, Denial Of Service, Distributed Denial Of Service Attacks, Trinoo, TFN,

Distributed Denial of Service (DDoS) attack can create big problem to the networks and it is one of most serious attacks. DDoS attacks are conducted with primary intent

In specific, this paper deals with Distributed Denial of Service Attacks (DDOS) on the distributed cloud servers and also provides an effective solution to prevent those attacks

Distributed Denial of Service (DDoS) attack can create big problem to the networks and it is one of most serious attacks. DDoS attacks are conducted with primary intent

This white paper contains information in order to help you understand how Distributed Denial of Service (DDoS) attacks are orchestrated, recognize programs used to facilitate

  often used to launch distributed denial of service (DDoS) attacks..   exploits known flaws in