CS 640: Introduction to Computer Networks Aditya Akella Lecture 25 – Network Security.

Slides:



Advertisements
Similar presentations
Network and Application Attacks Contributed by- Chandra Prakash Suryawanshi CISSP, CEH, SANS-GSEC, CISA, ISO 27001LI, BS 25999LA, ERM (ISB) June 2006.
Advertisements

IUT– Network Security Course 1 Network Security Firewalls.
1 Topic 2 – Lesson 4 Packet Filtering Part I. 2 Basic Questions What is packet filtering? What is packet filtering? What elements are inside an IP header?
Computer Security and Penetration Testing
Are you secured in the network ?: a quick look at the TCP/IP protocols Based on: A look back at “Security Problems in the TCP/IP Protocol Suite” by Steven.
FIREWALLS. What is a Firewall? A firewall is hardware or software (or a combination of hardware and software) that monitors the transmission of packets.
Suneeta Chawla Web Security Presentation Topic : IP Spoofing Date : 03/24/04.
Security Part Two: Attacks and Countermeasures. Flashback: Internet design goals 1.Interconnection 2.Failure resilience 3.Multiple types of service 4.Variety.
Intrusion Detection and Hackers Exploits IP Spoofing Attack Yousef Yahya & Ahmed Alkhamaisa Prepared for Arab Academy for Banking and Financial Sciences.
Firewalls and Intrusion Detection Systems
Circuit & Application Level Gateways CS-431 Dick Steflik.
Security Part One: Network Attacks and Countermeasures Xin Zhang.
FIREWALLS & NETWORK SECURITY with Intrusion Detection and VPNs, 2 nd ed. 6 Packet Filtering By Whitman, Mattord, & Austin© 2008 Course Technology.
Attack Profiles CS-480b Dick Steflik Attack Categories Denial-of-Service Exploitation Attacks Information Gathering Attacks Disinformation Attacks.
Lecture 15 Denial of Service Attacks
Introduction to Network Security
1 Lecture 20: Firewalls motivation ingredients –packet filters –application gateways –bastion hosts and DMZ example firewall design using firewalls – virtual.
FIREWALL TECHNOLOGIES Tahani al jehani. Firewall benefits  A firewall functions as a choke point – all traffic in and out must pass through this single.
1 Chapter 6 Network Security Threats. 2 Objectives In this chapter, you will: Learn how to defend against packet sniffers Understand the TCP, UDP, and.
Firewalls CS432. Overview  What are firewalls?  Types of firewalls Packet filtering firewalls Packet filtering firewalls Sateful firewalls Sateful firewalls.
Hafez Barghouthi. Model for Network Access Security (our concern) Patrick BoursAuthentication Course 2007/20082.
CS426Fall 2010/Lecture 361 Computer Security CS 426 Lecture 36 Perimeter Defense and Firewalls.
1 Figure 5-4: Drivers of Performance Requirements: Traffic Volume and Complexity of Filtering Performance Requirements Traffic Volume (Packets per Second)
Packet Filtering. 2 Objectives Describe packets and packet filtering Explain the approaches to packet filtering Recommend specific filtering rules.
FIREWALL Mạng máy tính nâng cao-V1.
TCP/IP Vulnerabilities. Outline Security Vulnerabilities Denial of Service Worms Countermeasures: Firewalls/IDS.
Computer Security: Principles and Practice First Edition by William Stallings and Lawrie Brown Lecture slides by Lawrie Brown Chapter 8 – Denial of Service.
January 2009Prof. Reuven Aviv: Firewalls1 Firewalls.
Firewalls. Evil Hackers FirewallYour network Firewalls mitigate risk Block many threats They have vulnerabilities.
Chapter 6: Packet Filtering
By Anonymous Student. Outline  Security vulnerabilities  Denial-of-Service (DoS) and Distributed-Denial-of- Service (D-DoS)  Firewalls  Intrusion.
Security. Security Threats  Impersonation  Pretend to be someone else to gain access to information or services  Lack of secrecy  Eavesdrop on data.
Defense Techniques Sepehr Sadra Tehran Co. Ltd. Ali Shayan November 2008.
Internet and Intranet Fundamentals Class 9 Session A.
Firewalls Nathan Long Computer Science 481. What is a firewall? A firewall is a system or group of systems that enforces an access control policy between.
Packet Filtering Chapter 4. Learning Objectives Understand packets and packet filtering Understand approaches to packet filtering Set specific filtering.
CS426Network Security1 Computer Security CS 426 Network Security (1)
Security Part One: Attacks and Countermeasures Dejian Ye, Liu Xin : F08 security1.
Network Security. 2 SECURITY REQUIREMENTS Privacy (Confidentiality) Data only be accessible by authorized parties Authenticity A host or service be able.
Firewall Tutorial Hyukjae Jang Nc lab, CS dept, Kaist.
© 2006 Cisco Systems, Inc. All rights reserved. Cisco IOS Threat Defense Features.
CS526Topic 18: Network Security1 Information Security CS 526 Network Security (1)
Denial of Service Attacks
Chapter 7 Denial-of-Service Attacks Denial-of-Service (DoS) Attack The NIST Computer Security Incident Handling Guide defines a DoS attack as: “An action.
Karlstad University Firewall Ge Zhang. Karlstad University A typical network topology Threats example –Back door –Port scanning –…–…
Lesson 7: Network Security and Attacks. Computer Security Operational Model Protection = Prevention+ (Detection + Response) Access Controls Encryption.
Security fundamentals Topic 10 Securing the network perimeter.
TCP Security Vulnerabilities Phil Cayton CSE
Chapter 8 Network Security Thanks and enjoy! JFK/KWR All material copyright J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking:
DoS/DDoS attack and defense
Firewalls A brief introduction to firewalls. What does a Firewall do? Firewalls are essential tools in managing and controlling network traffic Firewalls.
Computer Network Security Dr. X. OSI stack… again.
Firewalls. Overview of Firewalls As the name implies, a firewall acts to provide secured access between two networks A firewall may be implemented as.
Presentation on ip spoofing BY
Polytechnic University Firewall and Trusted Systems Presented by, Lekshmi. V. S cos
1 Lecture A.2: Security Problems in TCP/IP r Reference: Security Problems in the TCP/IP Protocol Suite : by Steve Bellovin r R-services r Source-routing.
Security fundamentals
Executive Director and Endowed Chair
Outline Basics of network security Definitions Sample attacks
Introduction to Network Security
Port Scanning (based on nmap tool)
Firewall – Survey Purpose of a Firewall Characteristic of a firewall
* Essential Network Security Book Slides.
Firewalls Purpose of a Firewall Characteristic of a firewall
Firewalls By conventional definition, a firewall is a partition made
دیواره ی آتش.
Session 20 INST 346 Technologies, Infrastructure and Architecture
Outline Basics of network security Definitions Sample attacks
Presentation transcript:

CS 640: Introduction to Computer Networks Aditya Akella Lecture 25 – Network Security

The Road Ahead Security Vulnerabilities DoS and D-DoS Firewalls

Security Vulnerabilities Security Problems in the TCP/IP Protocol Suite – Steve Bellovin, 1989 Attacks on Different Layers –IP Attacks –ICMP Attacks –Routing Attacks –TCP Attacks –Application Layer Attacks

Why the Flaws? TCP/IP was designed for connectivity –Had its origins in an innocent world –Assumed to have lots of trust –Security not intrinsic to design Host implementation vulnerabilities –Software bugs –Some elements in the specification were left to the implementers

Security Flaws in IP The IP addresses are filled in by the originating host –Address spoofing Using source address for authentication –r-utilities (rlogin, rsh, rhosts etc..) Interne t C A B S Can A claim it is B to the server S? ARP Spoofing Can C claim it is B to the server S? Much harder Source Routing?

Security Flaws in IP IP fragmentation attack –End hosts need to keep the fragments till all the fragments arrive Traffic amplification attack –IP allows broadcast destination –Problems?

Ping Flood Attacking System Internet Broadcast Enabled Network Victim System

ICMP Attacks No authentication ICMP redirect message –Can cause the host to switch gateways Man in the middle attack, sniffing ICMP destination unreachable –Can cause the host to drop connection Many more… – php

Routing Attacks Distance Vector Routing –Announce 0 distance to all other nodes Blackhole traffic Eavesdrop Link State Routing –Can drop links randomly –Can claim direct link to any other router –A bit harder to attack than DV BGP –ASes can announce arbitrary prefix –ASes can alter path –Could even happen due to misconfigurations

TCP Attacks Issues? –Server needs to keep waiting for ACK y+1 –Server recognizes Client based on IP address/port and y+1 Client Server SYN xSYN y | ACK x+1 ACK y+1

TCP Layer Attacks TCP SYN Flooding –Exploit state allocated at server after initial SYN packet –Send a SYN and don’t reply with ACK –Server will wait for 511 seconds for ACK –Finite queue size for incomplete connections (1024) –Once the queue is full it doesn’t accept requests

TCP Layer Attacks TCP Session Hijack –When is a TCP packet valid? Address/Port/Sequence Number in window –How to get sequence number? Sniff traffic Guess it –Many earlier systems had predictable ISN –Inject arbitrary data to the connection

TCP Layer Attacks TCP Session Poisoning –Send RST packet Will tear down connection –Do you have to guess the exact sequence number? Anywhere in window is fine For 64k window it takes 64k packets to reset About 15 seconds for a T1

Application Layer Attacks Applications don’t authenticate properly Authentication information in clear –FTP, Telnet, POP DNS insecurity –DNS poisoning –DNS zone transfer

An Example Shimomura (S) Trusted (T) Mitnick Finger showmount –e Send 20 SYN packets to S Attack when no one is around What other systems it trusts? Determine ISN behavior Showmount -e SYN

An Example Shimomura (S) Trusted(T) Mitnick showmount –e Send 20 SYN packets to S SYN flood T Attack when no one is around What other systems it trusts? Determine ISN behavior T won’t respond to packets Syn flood X

An Example Shimomura (S) trusted (T) Mitnick (M) showmount –e Send 20 SYN packets to S SYN flood T Send SYN to S spoofing as T Send ACK to S with a guessed number Attack when no one is around What other systems it trusts? Determine ISN behavior T won’t respond to packets S assumes that it has a session with T X SYN SYN|ACK ACK

An Example Shimomura (S) Trusted (T) Mitnick showmount –e Send 20 SYN packets to S SYN flood T Send SYN to S spoofing as T Send ACK to S with a guessed number Send “echo + + > ~/.rhosts” Attack when no one is around What other systems it trusts? Determine ISN behavior T won’t respond to packets S assumes that it has a session with T Give permission to anyone from anywhere X ++ > rhosts

Denial of Service Objective  make a service unusable, usually by overloading the server or network Consume host resources –TCP SYN floods –ICMP ECHO (ping) floods Consume bandwidth –UDP floods –ICMP floods

Denial of Service Crashing the victim –Ping-of-Death –TCP options (unused, or used incorrectly) Forcing more computation –Taking slow path in processing of packets

Simple DoS Attacker Victim The Attacker usually spoofed source address to hide origin Easy to block

Coordinated DoS Attacker Victim Attacker The first attacker attacks a different victim to cover up the real attack The Attacker usually spoofed source address to hide origin Harder to deal with

Distributed DoS Attacker Handler Agent Victim

Distributed DoS The handlers are usually very high volume servers –Easy to hide the attack packets The agents are usually home users with DSL/Cable –Already infected and the agent installed Very difficult to track down the attacker How to differentiate between DDoS and Flash Crowd? –Flash Crowd  Many clients using a service legitimately Slashdot Effect Victoria Secret Webcast –Generally the flash crowd disappears when the network is flooded –Sources in flash crowd are clustered Also, requests have a pattern

DDoS Defenses Network Capabilities –Destination explicitly decides whether or not to allow packets –Indicate decision by inserting “capabilities” in packets –Routers en route check for valid capabilities in subsequent packets –Issues? Traffic Scrubbers –Sink all traffic to a back-end –Scrub, scrub, scrub –Issues?

Firewalls Lots of vulnerabilities on hosts in network Users don’t keep systems up to date –Lots of patches –Lots of exploits in wild (no patch for them) Solution? –Limit access to the network Don’t trust outsiders Trust insiders(!!!) –Put firewalls across the perimeter of the network

Firewalls (contd…) Firewall inspects traffic through it Has a pre-defined policy Allows traffic specified in the policy Drops everything else Two Types –Packet Filters, Proxies Internet Internal Network Firewall

Packet Filters Packet filter selectively passes packets from one network interface to another Usually done within a router between external and internal networks –screening router Can be done by a dedicated network element –packet filtering bridge –harder to detect and attack than screening routers

Packet Filters Contd. Data Available –IP source and destination addresses –Transport protocol (TCP, UDP, or ICMP) –TCP/UDP source and destination ports –ICMP message type –Packet options (Fragment Size etc.) Actions Available –Allow the packet to go through –Drop the packet (Notify Sender/Drop Silently) –Alter the packet (NAT?) –Log information about the packet

Packet Filters Contd. Example filters –Block all packets from outside except for SMTP servers –Block all traffic to a list of domains –Block all connections from a specified domain

Typical Firewall Configuration Internet Intranet DMZ X X Internal hosts can access DMZ and Internet External hosts can access DMZ only, not Intranet DMZ hosts can access Internet only Advantages? – If a service gets compromised in DMZ it cannot affect internal hosts

Example Firewall Rules Stateless packet filtering firewall Rule  (Condition, Action) Rules are processed in top-down order –If a condition satisfied for a packet – action is taken –All rules checked

Sample Firewall Rule Dst Port Allow Yes Any > TCP22 TCP> 1023 ExtIntOutSSH-2 IntExtInSSH-1 Dst Addr Proto Ack Set? Action Src Port Src Addr DirRule Allow SSH from external hosts to internal hosts –Two rules Inbound and outbound –How to know a packet is for SSH? Inbound: src-port>1023, dst-port=22 Outbound: src-port=22, dst-port>1023 Protocol=TCP –Ack Set? –Problems? SYN SYN/ACK ACK ClientServer

Default Firewall Rules Egress Filtering –Outbound traffic from external address  Drop –Benefits? Ingress Filtering –Inbound Traffic from internal address  Drop –Benefits? Default Deny –Why? Any Dst Port AnyDenyAny IntAnyIntInIngress DenyAny ExtAnyExtOutEgress AnyDenyAny Default Dst Addr Proto Ack Set? Action Src Port Src Addr DirRule

Packet Filters Advantages –Transparent to application/user –Simple packet filters can be efficient Disadvantages –Usually fail open –Very hard to configure the rules –Doesn’t have enough information to take actions Does port 22 always mean SSH? Who is the user accessing the SSH? What is the fix?

Alternatives Stateful packet filters –Keep the connection states –Easier to specify rules – connection level –More popular –Problems? State explosion State for UDP/ICMP?

Alternatives Proxy Firewalls –Two connections instead of one –Either at transport level SOCKS proxy –Or at application level HTTP proxy Requires applications (or dynamically linked libraries) to be modified to use the proxy

Proxy Firewall Data Available –Application level information –User information Advantages? –Better policy enforcement –Better logging –Fail closed Disadvantages? –Doesn’t perform as well –One proxy for each application –Client modification

Summary TCP/IP security vulnerabilities –Spoofing –Flooding attacks –TCP session poisoning DOS and D-DOS Firewalls –Packet Filters –Proxy