Chair for Network Architectures and Services Department of Informatics TU München Prof. Carle. Network Security. Chapter 9

Similar documents
Network Security. Chapter 0. Attacks and Attack Detection

Chair for Network Architectures and Services Department of Informatics TU München Prof. Carle. Network Security. Chapter 9

Chair for Network Architectures and Services Department of Informatics TU München Prof. Carle. Network Security. Chapter 11

Chair for Network Architectures and Services Department of Informatics TU München Prof. Carle. Network Security. Chapter 8

Configuring attack detection and prevention 1

Internet Layers. Physical Layer. Application. Application. Transport. Transport. Network. Network. Network. Network. Link. Link. Link.

Configuring attack detection and prevention 1

Chapter 7. Denial of Service Attacks

Denial of Service and Distributed Denial of Service Attacks

Denial of Service (DoS)

Distributed Denial of Service (DDoS)

Our Narrow Focus Computer Networking Security Vulnerabilities. Outline Part II

Network Security (NetSec)

Network Security. Thierry Sans

ELEC5616 COMPUTER & NETWORK SECURITY

Attack Prevention Technology White Paper

COMPUTER NETWORK SECURITY

Network Security. Tadayoshi Kohno

Basic Concepts in Intrusion Detection

CSE 565 Computer Security Fall 2018

Ping of death Land attack Teardrop Syn flood Smurf attack. DOS Attack Methods

The Protocols that run the Internet

Means for Intrusion Detection. Intrusion Detection. INFO404 - Lecture 13. Content

NETWORK SECURITY. Ch. 3: Network Attacks

DENIAL OF SERVICE ATTACKS

CSE 565 Computer Security Fall 2018

Flashback.. Internet design goals. Security Part One: Attacks and Countermeasures. Why did they leave it out? Security Vulnerabilities

AN TOÀN LỚP 4: TCP/IP ATTACKS NGUYEN HONG SON PTITHCM

Denial of Service. Serguei A. Mokhov SOEN321 - Fall 2004

20-CS Cyber Defense Overview Fall, Network Basics

Intrusion Detection System (IDS) IT443 Network Security Administration Slides courtesy of Bo Sheng

Internet Protocol and Transmission Control Protocol

Single Network: applications, client and server hosts, switches, access links, trunk links, frames, path. Review of TCP/IP Internetworking

International Journal of Scientific & Engineering Research, Volume 7, Issue 12, December ISSN

Computer Security: Principles and Practice

HP High-End Firewalls

Table of Contents. 1 Intrusion Detection Statistics 1-1 Overview 1-1 Displaying Intrusion Detection Statistics 1-1

Denial of Service. EJ Jung 11/08/10

Network Security. Evil ICMP, Careless TCP & Boring Security Analyses. Mohamed Sabt Univ Rennes, CNRS, IRISA Thursday, October 4th, 2018

CSC 574 Computer and Network Security. TCP/IP Security

Distributed Systems. 29. Firewalls. Paul Krzyzanowski. Rutgers University. Fall 2015

Network Security Protocols NET 412D

INTRODUCTION ON D-DOS. Presentation by RAJKUMAR PATOLIYA

DDoS Testing with XM-2G. Step by Step Guide

2. INTRUDER DETECTION SYSTEMS

Chapter 10: Denial-of-Services

Layer 4: UDP, TCP, and others. based on Chapter 9 of CompTIA Network+ Exam Guide, 4th ed., Mike Meyers

A Software Tool for Network Intrusion Detection

Data Communication. Chapter # 5: Networking Threats. By: William Stalling

Unit 4: Firewalls (I)

CSE Computer Security (Fall 2006)

Distributed Systems. 27. Firewalls and Virtual Private Networks Paul Krzyzanowski. Rutgers University. Fall 2013

Our Narrow Focus Computer Networking Security Vulnerabilities. IP-level vulnerabilities

Basic NAT Example Security Recitation. Network Address Translation. NAT with Port Translation. Basic NAT. NAT with Port Translation

Security+ Guide to Network Security Fundamentals, Fourth Edition. Network Attacks Denial of service Attacks

TCP Overview Revisited Computer Networking. Queuing Disciplines. Packet Drop Dimensions. Typical Internet Queuing. FIFO + Drop-tail Problems

HP High-End Firewalls

ANALYSIS AND EVALUATION OF DISTRIBUTED DENIAL OF SERVICE ATTACKS IDENTIFICATION METHODS

DDoS and Traceback 1

Denial of Service (DoS) attacks and countermeasures

Computer and Network Security

ICMP. Routing TCP. Sequence Number Guessing Attack

Your projected and optimistically projected grades should be in the grade center soon o Projected: Your current weighted score /30 * 100

Dan Boneh, John Mitchell, Dawn Song. Denial of Service

Authors: Mark Handley, Vern Paxson, Christian Kreibich

DDoS PREVENTION TECHNIQUE

EXPERIMENTAL STUDY OF FLOOD TYPE DISTRIBUTED DENIAL-OF- SERVICE ATTACK IN SOFTWARE DEFINED NETWORKING (SDN) BASED ON FLOW BEHAVIORS

Lecture 33. Firewalls. Firewall Locations in the Network. Castle and Moat Analogy. Firewall Types. Firewall: Illustration. Security April 15, 2005

CYBER ATTACKS EXPLAINED: PACKET SPOOFING

Firewalls, Tunnels, and Network Intrusion Detection

Master Course Computer Networks IN2097

CSc 466/566. Computer Security. 18 : Network Security Introduction

Master Course Computer Networks IN2097

Networking interview questions

Computer Security and Privacy

Multivariate Correlation Analysis based detection of DOS with Tracebacking

Chapter 4. Network Security. Part I

Chapter 16 Attack Mitigation and Countermeasures

IBM i Version 7.3. Security Intrusion detection IBM

Configuring Flood Protection

A Review on ICMPv6 Vulnerabilities and its Mitigation Techniques: Classification and Art

Cloudflare Advanced DDoS Protection

ACS / Computer Security And Privacy. Fall 2018 Mid-Term Review

9th Slide Set Computer Networks

Computer Security: Principles and Practice

PROTECTING INFORMATION ASSETS NETWORK SECURITY

A TWO LEVEL ARCHITECTURE USING CONSENSUS METHOD FOR GLOBAL DECISION MAKING AGAINST DDoS ATTACKS

Denial of Service. Eduardo Cardoso Abreu - Federico Matteo Bencic - Pavel Alexeenko -

Security Engineering. Lecture 16 Network Security Fabio Massacci (with the courtesy of W. Stallings)

Intruders. significant issue for networked systems is hostile or unwanted access either via network or local can identify classes of intruders:

Overview. Computer Network Lab, SS Security. Type of attacks. Firewalls. Protocols. Packet filter

Towards Intelligent Fuzzy Agents to Dynamically Control the Resources Allocations for a Network under Denial of Service Attacks

Overview of Firewalls. CSC 474 Network Security. Outline. Firewalls. Intrusion Detection System (IDS)

R (2) Implementation of following spoofing assignments using C++ multi-core Programming a) IP Spoofing b) Web spoofing.

Configuring IP Services

Internetwork Expert s CCNA Security Bootcamp. Common Security Threats

Video Streaming with the Stream Control Transmission Protocol (SCTP)

9. Security. Safeguard Engine. Safeguard Engine Settings

Introduction to Computer Security

Internet Security: Firewall

Transcription:

Chair for Network Architectures and Services Department of Informatics TU München Prof. Carle Network Security Chapter 9 Attacks and Attack Detection (Prevention, Detection and Response)

Attacks and Attack Detection Have you ever been attacked (in the IT security sense)? What kind of attacks do you know? Network Security, WS 2014/15, Chapter 9 2

Part I: Attack Prevention Part 0: Attacks Part I: Attack Prevention Part II: Attack Detection Part III: Response Mechanisms Network Security, WS 2014/15, Chapter 9 3

Attacks by Impact Disruptive: The goal is to fully deny the victim s service to its clients Degrading: A portion of the victim s resources (e.g. 30%) are occupied by the attackers. Can remain undetected for a signification time period Customers experience slow response times or now service during high load periods. Customers go to an other Service Provider. Leakage of data Confidential data, passwords, password files, keys, Control Being able to command a machine (may not interfere with normal operation) Network Security, WS 2014/15, Chapter 9 4

System Vulnerabilities Origin of attacks: Remote attacks: attacker breaks into a machine connected to same network, usually through flaw in software Local attacks: malicious user gains additional privileges on a machine (usually administrative) Attacking techniques against a system: Buffer overflow: Intentional manipulation of program state by causing an area of memory to be written beyond its allocated limits Race condition: Exploiting non-atomic execution of a series of commands by inserting actions that were unforeseen by the programmer Exploiting trust in program input / environment: It is often possible to maliciously craft input / environment variables to have deleterious side effects Programmers are often unaware of this Network Security, WS 2014/15, Chapter 9 5

Scans and Port Scans Scans A scan is an active attack to obtain information about a network and its systems. The attacker contacts machines and requests information in a systematic way and analyzes the result. Port Scan: scan is to see which ports are open on a machine Can leak info about Network Topology Operating System Applications and Application Versions Used to Use information for subsequent attacks Network Security, WS 2014/15, Chapter 9 6

Denial of Service attacks What is Denial of Service? Denial of Service (DoS) attacks aim at denying or degrading legitimate users access to a service or network resource, or at bringing down the servers offering such services Network Security, WS 2014/15, Chapter 9 7

Denial of Service Attacking Techniques Resource destruction (disabling services): Hacking into systems Making use of implementation weaknesses as buffer overflow Deviation from proper protocol execution Resource depletion by causing: Storage of (useless) state information High traffic load (requires high overall bandwidth from attacker) Expensive computations ( expensive cryptography!) Resource reservations that are never used (e.g. bandwidth) Origin of malicious traffic: Genuineness of source addresses: either genuine or forged Number of sources: single source, or multiple sources (Distributed DoS, DDoS) Network Security, WS 2014/15, Chapter 9 8

Examples: Resource Destruction (ancient) Ping-of-Death: Maximum size of TCP/IP packet is 65536 bytes Oversized packet may crash, freeze, reboot system Teardrop: Fragmented packets are reassembled using the Offset field. Overlapping Offset fields might cause system to crash. Normal Behavior Take-Home Message: Only a few packets can be sufficient to bring down a system. Teardrop Attack Network Security, WS 2014/15, Chapter 9 9

Resource Depletion Example 1: Abusing ICMP Two main reasons make ICMP particular interesting for attackers: It may be addressed to broadcast addresses Routers respond to it The Smurf attack - ICMP echo request to broadcast: An attacker sends an ICMP echo request to a broadcast address with the source addressed forged to refer to the victim local broadcast: 255.255.255.255; directed broadcast: (191.128.0.0/24) 191.128.0.255 Routers (often) allow ICMP echo requests to broadcast addresses All devices in the addressed network respond to the packet The victim is flooded with replies to the echo request With this technique, the network being abused as an (unaware) attack amplifier is also called a reflector network:... Network Security, WS 2014/15, Chapter 9 10

Resource Depletion with Distributed DoS (1) Attacker Victim Category Overwhelming the victim with traffic Attacker intrudes multiple systems by exploiting known flaws Attacker installs DoSsoftware: Root Kits are used to hide the existence of this software DoS-software is used for: Exchange of control commands Launching an attack Coordinating the attack Network Security, WS 2014/15, Chapter 9 11

Resource Depletion with Distributed DoS (2) Masters Slaves Attacker Victim The attacker classifies the compromised systems in: Master systems Slave systems Master systems: Receive command data from attacker Control the slaves Slave systems: Launch the proper attack against the victim During the attack there is no traffic from the attacker Control Traffic Attack Traffic Network Security, WS 2014/15, Chapter 9 12

Resource Depletion with CPU Exhaustion Category CPU exhaustion by causing expensive computations: Here: attacking with bogus authentication attempts Attacker attacker requests for connection with server server asks client for authentication attacker sends false digital signature, server wastes resources verifying false signature Victim The attacker usually either needs to receive or guess some values of the second message, that have to be included in the third message for the attack to be successful Also, the attacker, must trick the victim repeatedly to perform the expensive computation in order to cause significant damage Be aware of DoS-Risks when introducing security functions into protocols!!! Network Security, WS 2014/15, Chapter 9 13

Part I: Attack Prevention Part 0: Attacks Part I: Attack Prevention Part II: Attack Detection Part III: Response Mechanisms Network Security, WS 2014/15, Chapter 9 14

Attack Prevention Prevention: All measures taken in order to avert that an attacker succeeds in realizing a threat Examples: Cryptographic measures: encryption, computation of modification detection codes, running authentication protocols, etc. Firewall techniques: packet filtering, service proxying, etc. Preventive measures are by definition taken before an attack takes place Attention: it is generally impossible to prevent every potential attack! Network Security, WS 2014/15, Chapter 9 15

Prevention: Defense Techniques Against DoS Attacks (1) Defenses against disabling services: Hacking defenses: Good system administration Firewalls, logging & intrusion detection systems Implementation weakness defenses: Code reviews, stress testing, etc. Protocol deviation defenses: Fault tolerant protocol design Error logging & intrusion detection systems DoS-aware protocol design : Be aware of possible DoS attacks when reassembling packets Do not perform expensive operations, reserve memory, etc., before authentication Network Security, WS 2014/15, Chapter 9 16

Prevention: Defense Techniques Against DoS Attacks (2) Defenses against resource depletion: Generally: Rate Control (ensures availability of other functions on same system) i.e. a potential reason to implement QoS mechanisms Accounting & Billing ( if it is for free, why not use it excessively? ) Identification and punishment of attackers Authentication of clients plays an important role for the above measures Memory exhaustion: stateless protocol operation Concerning origin of malicious traffic: Defenses against single source attacks: Disabling of address ranges (helps if addresses are valid) Defenses against forged source addresses: Ingress Filtering at ISPs (incoming packets from outside of ISP with IP source address from ISP blocked) Egress Filtering (block outgoing packets with source address from other network) Verify source of traffic (e.g. with exchange of cookies ) Widely distributed DoS:??? Network Security, WS 2014/15, Chapter 9 17

Example: TCP SYN Flood Attack (1) The TCP protocol Header: IP header 0 Source Port Sequence Number Destination Port TCP header 4 bit TCP header length 6 bit unused Piggyback Acknowledgement U R G A C K E O M R S T S Y N F I N Window Checksum Urgent Pointer Options (0 or more 32-bit-words) Data... Network Security, WS 2014/15, Chapter 9 18

Example: TCP SYN Flood Attack (2) TCP 3-Way Handshake: The client sends a TCP SYN message seq number = x (chosen by the client) client ACK flag = 0 SYN seq=x SYN flag = 1 The server sends a TCP SYN ACK seq number = y (chosen by the server) ack number = x + 1 ACK flag = 1 SYN flag = 1 The client sends a CONNECT ACK ACK y+1 seq number = x + 1 ack number = y + 1 ACK flag = 1 SYN flag = 0 The handshake ensures that both sides are ready to transmit data. SYN seq=y, ACK x+1 server connection established Network Security, WS 2014/15, Chapter 9 19

Example: TCP SYN Flood Attack (3) D E Attacker Victim Connection Table A B C D E... A B C TCP SYN packets with forged source addresses ( SYN Flood ) TCP SYN ACK packet to assumed initiator ( Backscatter ) No response comes back. Too many half-opened connections. The backlog queue (connection table) fills up. Legitimate users can not establish a TCP connection with the server. Network Security, WS 2014/15, Chapter 9 20

Example: TCP SYN Flood Protection Anti-spoofing features E.g. Ingress / Egress filtering Load Balancing and replication of resources: The attack will pass unnoticed. With a sufficient number of attackers the server can still be saturated. TCP stack tweaking Increase backlog size limited by the kernel memory of the server (each entry ~600 Bytes) Decrease waiting time for the third packet of the TCP handshake helps but has drawback that slower clients cannot connect SYN cookies (see subsequently) Network Security, WS 2014/15, Chapter 9 21

Example: SYN Flood Protection with TCP SYN cookies (1) SYN cookies are a particular choice of the initial seq number by the server. The server generates the initial sequence number α such as: α = h(k, S SYN ) K: a secret key, changed over time S SYN : source addr of the SYN packet h is a cryptographic hash function. At arrival of the ACK message, the server calculates α again. Then, it verifies if the ack number is correct. If yes, it assumes that the client has sent a SYN message recently and it is considered as normal behavior. client SYN seq=x SYN seq= α, ACK x+1 server No resources are allocated here ACK α +1 connection established Network Security, WS 2014/15, Chapter 9 22

Example: SYN Flood Protection with TCP SYN cookies (2) Advantages: The server does not need to allocate resources after the first SYN packet. The client does not need to be aware that the server is using SYN cookies. SYN cookies don t requires changes in the specification of the TCP protocol. Disadvantages: Calculating α is CPU power consuming. Moved the vulnerability from memory overload to CPU overload. TCP options can not be negotiated (e.g. large window option) Use only when an attack is assumed. Is vulnerable to cryptoanalysis: even if h is a secure function the sequence numbers generated by the server may be predicted after receiving/ hijacking a sufficient number of cookies. The secret code need to be changed regularly, e.g. by including a timestamp. N.B. SYN cookies are integrated in the Linux Kernel with MD5 as hash function. top 5 bits: t mod 32, where t is a 32-bit time counter that increases every 64 seconds; next 3 bits: an encoding of an MSS selected by the server in response to the client's MSS; bottom 24 bits: a server-selected secret function of the client IP address and port number, the server IP address and port number, and t. Network Security, WS 2014/15, Chapter 9 23

Attack Prevention, Detection and Response Part 0: Attacks Part I: Attack Prevention Part II: Attack Detection Part III: Response Mechanisms Network Security, WS 2014/15, Chapter 9 24

Part II: Attack Detection Introduction Host IDS vs. Network IDS Knowledge-based Detection Anomaly Detection Network Security, WS 2014/15, Chapter 9 25

Introduction Prevention is not sufficient in practice What can be attained with intrusion detection? Detection of attacks and attackers Detection of system misuse (includes misuse by legitimate users) Limitation of damage (if response mechanisms exist) Gain of experience in order to improve preventive measures Deterrence of potential attackers Network Security, WS 2014/15, Chapter 9 26

Introduction (2) Intrusion Definition 1 An Intrusion is unauthorized access to and/or activity in an information system. Definition 2 (more general) Any set of actions that attempt to compromise the integrity, confidentiality or availability of a resource. [HLM91] As seen in Definition 2, the term Intrusion is often used in the literature to characterize any kind of attacks. Intrusion Detection All measures taken to recognize an attack while or after it occurred Examples: Recording and analysis of audit trails On-the-fly traffic monitoring and intrusion detection. Network Security, WS 2014/15, Chapter 9 27

Attack Detection: Classification Classification by the scope of the detection: Host-based Intrusion Detection Systems (HIDS) Network- based Intrusion Detection Systems (NIDS) Classification by detection strategy: Knowledge-based detection Anomaly detection Hybrid attack detection Network Security, WS 2014/15, Chapter 9 28

Part II: Attack Detection Introduction Host IDS vs. Network IDS Knowledge-based Detection Anomaly Detection Network Security, WS 2014/15, Chapter 9 29

Host Intrusion Detection Systems (HIDS) Use information available on a system, e.g. OS-Logs, application-logs, timestamps Can easily detect attacks by insiders, as modification of files, illegal access to files, installation of Trojans or root kits Drawbacks: Has to be installed on every system. The attack packets can not be detected before they reach the victim Host-based IDS are helpless against bandwidth saturation attacks. Network Security, WS 2014/15, Chapter 9 30

Network Intrusion Detection Systems (NIDS) Use information provided by the network, mainly packets sniffed from the network layer. Often used at the edges of the (sub-)networks (ingress/egress points) Can detect known attack signatures, port scans, invalid packets, attacks on application layer, DDoS, spoofing attacks Uses signature detection (stateful), protocol decoding, statistical anomaly analysis, heuristical analysis Internet NIDS Network Security, WS 2014/15, Chapter 9 31

Part II: Attack Detection Introduction Host IDS vs. Network IDS Knowledge-based Detection Anomaly Detection Network Security, WS 2014/15, Chapter 9 32

Knowledge-based Attack Detection (1) Idea: Store signatures of attacks in a database Each communication is monitored and compared with database entries to discover occurrence of attacks. The database is occasionally updated with new signatures. Hand detected human Advantage: Known attacks can be reliably detected. Hardly false positives (see below for the definition of false positives ) Drawbacks: Only known attacks can be detected. Slight variations of known attacks are not detected. Different appellations for Knowledge-based attack detection in the literature pattern-based signature-based misuse-based. Network Security, WS 2014/15, Chapter 9 33

Knowledge-based Attack Detection (2) Patterns can be specified at each protocol level Network protocol (e.g. IP, ICMP) Transport protocol (e.g. TCP, UDP) Application protocol (e.g. HTTP, SMTP) Example of a rule in the IDS Snort (http://www.snort.org/) alert tcp $HOME_NET any -> any 9996 \ (msg:"sasser ftp script to transfer up.exe"; \ content:" 5F75702E657865 "; depth:250; flags:a+; classtype: miscactivity; \ sid:1000000; rev:3) Fragment of Sasser located Sasser 5F75702E657865 Network Security, WS 2014/15, Chapter 9 34

Part II: Attack Detection Introduction Host IDS vs. Network IDS Knowledge-based Detection Anomaly Detection Network Security, WS 2014/15, Chapter 9 35

Anomaly Detection (1) Anomaly detection systems include a model of normal system behavior such as: normal traffic dynamics expected system performance The current state of the network is compared with the models to detect anomalies. If the current state differs from the normal behavior by a threshold then an alarm is raised. Anomalies can be detected in Traffic behavior Protocol behavior Application behavior Network Security, WS 2014/15, Chapter 9 36

Anomaly Detection (2) A formal definition: [Tapidor04] An anomaly detection system is a pair δ = (M,D), where: M is the model of normal behavior. D is similarity measure that allows obtaining, giving an activity record, the degree of deviation (or likeness) that such activities have with regard to the model M. Source: [Tapiador04] Network Security, WS 2014/15, Chapter 9 37

Simple Anomaly Detection Performance Metrics of your system E.g. number of requests Define a normal operational interval for the metric. Anomaly if metric outside of interval ( fixed threshold ). E.g. number of requests > 200 requests per second Cons: Legitimate change of system over time, e.g. usage increases over the years ( success is no attack) No inclusion of periodic changes (e.g. daily and weekly changes in use) and trend changes (usage increases 8 % in year) as above Network Security, WS 2014/15, Chapter 9 38

Other options Time series (of performance metrics) Change detection in time series The assumption is that an attack changes the system comparably rapidly. A resource depletion attacker will not slowly increase bandwidth for a year until succeeding. Change detection Ignore single outliers Respond quickly once multiple values indicate change Basis usually a function that amplifies the change. f( ) = Network Security, WS 2014/15, Chapter 9 39

CUSUM CUSUM (cumulative sum) is a change detection function S(0) = 0 S(t) = max(0, S(t-1) + x(t) m k s) with x input stream and m a mean and s a standard deviation and k a factor. The consequence is that S = 0 whenever average or small values S small whenever single or few large values occur S large whenever many large values occur at some moment in time Detection if S(t) > threshold h h can be adaptable to a mean + k2 std dev where k2>k CUSUM x Network Security, WS 2014/15, Chapter 9 40

CUSUM Example (Bytes in an ISP network) Blue dots: Change detected Green: threshold Red: CUSUM Holt-Winters takes into account periodic and seasonal effects From Gerhard Münz. Traffic Anomaly Detection and Cause Identification Using Flow- Level Measurements. PhD thesis, Technische Universität München, June 2010. Network Security, WS 2014/15, Chapter 9 41

Anomaly Detection (2) Pros Might recognize some unknown attacks as well Cons False-positive (see definition below) rate might be high Definitions: A false positive means the attack detection system raises an alarm while the behavior is legitimate. A false negative means that an attack happens while it is classified by the attack detection system as normal behavior. If the threshold for raising an alarm is set too low, the false positive rate is too high. If the threshold is set too high, the attack detection system is insensitive. Network Security, WS 2014/15, Chapter 9 42

Detection Quality Source: [Tapiador04] Network Security, WS 2014/15, Chapter 9 43

Anomaly Detection (3) Challenges Modeling Internet traffic is not easy Data collection issues Collection is expensive, collecting the right information is important Anomalies can have different reasons Network Operation Anomalies caused, e.g. by a link failure or a configuration change In modern data centers, migration of a virtual machine Flash Crowd Anomalies rapid rise in traffic flows due to a sudden interest in a specific services (for instance, a new software path in a repository server or a highly interesting content in a Web site) Network Abuse Anomalies such as DoS flood attacks and port scans Network Security, WS 2014/15, Chapter 9 44

Attack Prevention, Detection and Response Part 0: Attacks Part I: Attack Prevention Part II: Attack Detection Part III: Response Mechanisms Network Security, WS 2014/15, Chapter 9 45

Response Strategies Packet Filtering Kill Connections Rate Limiting Congestion control Pushback Tracking Traceback techniques Re-configuration of the monitoring environment Redirection Network Security, WS 2014/15, Chapter 9 46

Response Strategies: Packet Filtering Attack packets are filtered out and dropped. Challenges How to distinguish between legitimate packets (the good packets) and illegitimate packets (the bad packets). Attacker s packet might have spoofed source addresses Filterable attacks If the flood packets are not critical for the service offered by the victim, they can be filtered. Example: UDP flood or ICMP request flood on a web server. Non-filterable attacks The flood packets request legitimate services from the victim. Examples include HTTP request flood targeting a Web server CGI request flood DNS request flood targeting a name server Filtering all the packets would be an immediate DoS to both attackers and legitimate users. Network Security, WS 2014/15, Chapter 9 47

Response Strategies: Kill Connection Kill Connection TCP connections can be killed using RST packets that are sent to both connection end points The RST packet requires correct sequence/ acknowledgement numbers. Otherwise it is ignored. Limitation: this response is possible only for connection-oriented protocols Network Security, WS 2014/15, Chapter 9 48

References [HLM91] [Mirkovic2004] [Tapidor2004] Heberlein, Levitt und Mukherjeeh. A method to detect intrusive activity in a networked environment. In Proceedings of the 14th National Computer Security Conference, 1991. J. Mirkovic and P. Reiher, "A Taxonomy of DDoS Attack and DDoS Defense Mechanisms," ACM SIGCOMM Computer Communication Review, vol. 34, April 2004, pp. 39-53. J. M. Estevez-Tapiador, P. Garcia-Teodoro, and J. E. Diaz-Verdejo, "Anomaly detection methods in wired networks: a survey and taxonomy," Computer Communications, vol. 27, July 2004, pp. 1569-1584. Network Security, WS 2014/15, Chapter 9 49