Download Link Testing: Input Debugging - Network Security - Lecture Slides | CS 6262 and more Study notes Cryptography and System Security in PDF only on Docsity!
DDoS and Traceback
CS 6262 Spring 02 - Lecture
(Thursday, 1/17/2002)
Denial-of-Service (DoS) Attacks
(via Resource/bandwidth consumption)
server
malicious
legitimate
TCP Handshake
client server SYN seq=x
SYN seq=y, ACK x+
ACK y+
connection established
IP Spoofing & SYN Flood
n X establishes a TCP connection with B
assuming A’s IP address
A (^) B
X
(1) SYN
Flood
(0) predict B’s TCP seq. behavior
SYN( seq =m), src =A
SYN(seq=n)ACK(seq=m+1)
(4)ACK( seq=n+1)
DDoS Common Steps
n Initiate a scan phase in which a large number of
computers (100,000+) on the internet are probed
for known vulnerabilities.
n Exploit the vulnerabilities to compromised the
computers to gain access.
n Install attack tools on each compromised host, and
use the compromised hosts for further
scanning/compromises.
n A subset of the compromised hosts with desired
architecture/topology are chosen to form the attack
network.
n Install attack and communication tools.
n Tell the masters to “attack”.
DDoS: At Least 4 Versions
n Trinoo
u Attacker uses TCP; Masters and zombies use UDP; password authentication.
n TFN
u Attacker uses shell to invoke master; Masters and zombies use ICMP echo reply.
n TFN2K
u A Combination of UDP, ICMP, and TCP.
n Stacheldraht
u Attacker uses encrypted TCP; Masters and zombies use TCP and ICMP echo reply; rcp used for auto-update.
DDoS Example: Trinoo
n Scanning:
u Buffer overflow bus in Solaris and Linux, e.g., wu-ftpd, statd, amd, etc. u A compromised node has a shell running as root and sends back confirmation.
n Installing attack program:
u Use netcat (nc) to pipe a shell script to the shell (running as root) on the compromised host
n Attacker to master:
u TCP: Must provide password; commands: “dos IP” etc.
n Master to zombie:
u UDP: Command line includes password; commands: aaa pass IP; rsz N, etc.
DDoS: What to Do About It
n Not a whole lot!
n Prevention
n Detection
n Traceback
Traceback
n Why
u Stop the attacks
u Gather evidence for law enforcement
n Only to machines that directly generate the
attack traffics
u For the real masters/attackers: more forensic
analysis necessary
n Difficulty
u Spoofed IP source addresses
Traceback: Several Proposals
n Link Testing
n ICMP Traceback
n Probabilistic Marking
Link Testing: Input Debugging
n Victim reports to upstream router, which installs
debugging filter that reveals which upstream
router originated the traffic.
n Repeat recursively until the the ISP’s “border” is
reached.
u The upstream ISP is contacted and repeats the process.
n Considerable management overhead.
u Relying on the availability and willingness of the network operators.
Link Testing: Controlled Flooding
n Victim coerces selected hosts along the upstream
route to iterative flood each incoming link of the
router closest to the victim.
n Infer which link the attack comes from by
observing the attack packet rate changes
u Router buffers are shared.
n Repeat recursively …
n A form of DoS itself!
n Need to have a good network topology map.
The Node Append Algorithm
n Marking procedure at router R :
u For each packet w , append R to w.
n Path reconstruction procedure at victim:
u For any packet w from attacker
F Extract ( Ri , …, Rj ) from suffix of w.
n High overhead at router.
n Not enough “space” at packet.
The Node Sampling Algorithm
n Marking procedure at router R :
u For each packet w ,
F Roll the dice: let x be a random number in [0..1]. F if x < p then write R to w .node.
n Path reconstruction procedure at victim:
u For any packet w from attacker
F Let NodeTbl be a table of (node,count) F z = lookup w .node in NodeTbl F if z is not nil then increment z.count else insert ( w .node,1) in NodeTbl F Sort NodeTbl by the count field F Extract path ( Ri , …, Rj ) from ordered node fields.