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

Similar documents
A S B

Firewalls and Intrusion Detection

CS 640 Introduction to Computer Networks. Network security (continued) Key Distribution a first step. Lecture24

Firewalls. Chapter 3

Overview of Network Security The need for network security Desirable security properties Common vulnerabilities Security policy designs

Content Distribution Networks (CDN)

Chapter 9 Firewalls and Intrusion Prevention Systems

Internet Firewall CSIS Internet Firewall. Spring 2012 CSIS net13 1. Firewalls. Stateless Packet Filtering

Computer Security CS 426 Lecture 36. CS426 Fall 2010/Lecture 36 1

CS5008: Internet Computing

Introduction of Intrusion Detection Systems

Firewalls. Firewalls. Idea: separate local network from the Internet 2/24/15. Intranet DMZ. Trusted hosts and networks. Firewall.

ΕΠΛ 674: Εργαστήριο 5 Firewalls

CMPT 471 Networking II

Dos & DDoS Attack Signatures (note supplied by Steve Tonkovich of CAPTUS NETWORKS)

Firewalls. Test your Firewall knowledge. Test your Firewall knowledge (cont) (March 4, 2015)

Firewalls, IDS and IPS

CSE331: Introduction to Networks and Security. Lecture 12 Fall 2006

CS 356 Lecture 19 and 20 Firewalls and Intrusion Prevention. Spring 2013

20-CS X Network Security Spring, An Introduction To. Network Security. Week 1. January 7

SECURING APACHE : DOS & DDOS ATTACKS - I

What is a Firewall? A choke point of control and monitoring Interconnects networks with differing trust Imposes restrictions on network services

CS 356 Lecture 16 Denial of Service. Spring 2013

INTRODUCTION TO FIREWALL SECURITY

Intruders and viruses. 8: Network Security 8-1

1. Introduction. 2. DoS/DDoS. MilsVPN DoS/DDoS and ISP. 2.1 What is DoS/DDoS? 2.2 What is SYN Flooding?

Chapter 5. Figure 5-1: Border Firewall. Firewalls. Figure 5-1: Border Firewall. Figure 5-1: Border Firewall. Figure 5-1: Border Firewall

Firewalls. Securing Networks. Chapter 3 Part 1 of 4 CA M S Mehta, FCA

ΕΠΛ 475: Εργαστήριο 9 Firewalls Τοίχοι πυρασφάλειας. University of Cyprus Department of Computer Science

HOW TO PREVENT DDOS ATTACKS IN A SERVICE PROVIDER ENVIRONMENT

allow all such packets? While outgoing communications request information from a

CSE 4482 Computer Security Management: Assessment and Forensics. Protection Mechanisms: Firewalls

TECHNICAL NOTE 06/02 RESPONSE TO DISTRIBUTED DENIAL OF SERVICE (DDOS) ATTACKS

CSCI 4250/6250 Fall 2015 Computer and Networks Security

TCP/IP Security Problems. History that still teaches

Overview. Firewall Security. Perimeter Security Devices. Routers

Network Security. Tampere Seminar 23rd October Overview Switch Security Firewalls Conclusion

Firewalls. Ola Flygt Växjö University, Sweden Firewall Design Principles

Firewalls. Ingress Filtering. Ingress Filtering. Network Security. Firewalls. Access lists Ingress filtering. Egress filtering NAT

Lecture slides by Lawrie Brown for Cryptography and Network Security, 5/e, by William Stallings, Chapter 22 Firewalls.

Proxy Server, Network Address Translator, Firewall. Proxy Server

Denial of Service Attacks

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme. Firewall

Firewalls P+S Linux Router & Firewall 2013

FIREWALLS. Firewall: isolates organization s internal net from larger Internet, allowing some packets to pass, blocking others

JK0 015 CompTIA E2C Security+ (2008 Edition) Exam

We will give some overview of firewalls. Figure 1 explains the position of a firewall. Figure 1: A Firewall

CIT 480: Securing Computer Systems. Firewalls

Firewalls, Tunnels, and Network Intrusion Detection

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

Malicious Programs. CEN 448 Security and Internet Protocols Chapter 19 Malicious Software

Security Technology White Paper

Chapter 15. Firewalls, IDS and IPS

Networking for Caribbean Development

Chapter 8 Security Pt 2

Final exam review, Fall 2005 FSU (CIS-5357) Network Security

Distributed Systems. Firewalls: Defending the Network. Paul Krzyzanowski

Security vulnerabilities in the Internet and possible solutions

IPv6 SECURITY. May The Government of the Hong Kong Special Administrative Region

A host-based firewall can be used in addition to a network-based firewall to provide multiple layers of protection.

Network Security. Chapter 3. Cornelius Diekmann. Version: October 21, Lehrstuhl für Netzarchitekturen und Netzdienste Institut für Informatik

How To Protect Your Firewall From Attack From A Malicious Computer Or Network Device

Firewalls and System Protection

Botnets. Botnets and Spam. Joining the IRC Channel. Command and Control. Tadayoshi Kohno

Virtual private network. Network security protocols VPN VPN. Instead of a dedicated data link Packets securely sent over a shared network Internet VPN

A Very Incomplete Diagram of Network Attacks

Secure Software Programming and Vulnerability Analysis

- Introduction to Firewalls -

FIREWALL AND NAT Lecture 7a

co Characterizing and Tracing Packet Floods Using Cisco R

10 Configuring Packet Filtering and Routing Rules

Network Security. Chapter 9. Attack prevention, detection and response. Attack Prevention. Part I: Attack Prevention

Firewalls. Network Security. Firewalls Defined. Firewalls

CSE 3482 Introduction to Computer Security. Denial of Service (DoS) Attacks

Solution of Exercise Sheet 5

Firewalls, Tunnels, and Network Intrusion Detection. Firewalls

Security+ Guide to Network Security Fundamentals, Fourth Edition. Chapter 6 Network Security

Midterm. Name: Andrew user id:

How To Set Up An Ip Firewall On Linux With Iptables (For Ubuntu) And Iptable (For Windows)

Distributed Denial of Service (DDoS)

Module II. Internet Security. Chapter 7. Intrusion Detection. Web Security: Theory & Applications. School of Software, Sun Yat-sen University

Security: Attack and Defense

Cryptography and network security

Network Security in Practice

CSCE 465 Computer & Network Security

Firewalls. Ahmad Almulhem March 10, 2012

Abstract. Introduction. Section I. What is Denial of Service Attack?

CaptIO Policy-Based Security Device

Firewalls, NAT and Intrusion Detection and Prevention Systems (IDS)

CIT 480: Securing Computer Systems. Firewalls

Configuring Personal Firewalls and Understanding IDS. Securing Networks Chapter 3 Part 2 of 4 CA M S Mehta, FCA

Network Security: 30 Questions Every Manager Should Ask. Author: Dr. Eric Cole Chief Security Strategist Secure Anchor Consulting

Firewall Design Principles Firewall Characteristics Types of Firewalls

Attack and Defense Techniques 2

Brocade NetIron Denial of Service Prevention

Chapter 8 Network Security

Transcription:

Flashback: Internet design goals Security Part Two: Attacks and Countermeasures 1. Interconnection 2. Failure resilience 3. Multiple types of service 4. Variety of networks 5. Management of resources 6. Cost-effective 7. Low entry-cost 8. Accountability for resources Where is security? Why did they leave it out? Designed for connectivity Network designed with implicit trust No bad guys Can t security requirements be provided at the edge? Encryption, Authentication etc. End-to-end arguments in system design Security Vulnerabilities At every layer in the protocol stack! Network-layer attacks IP-level vulnerabilities Routing attacks Transport-layer attacks TCP vulnerabilities Application-layer attacks 1

IP-level vulnerabilities Routing attacks IP addresses are provided by the source Spoofing attacks! Use of IP address for authentication e.g.,.rhosts allows remote login without explicit password authentication Some IP features that have been exploited Fragmentation Broadcast for traffic amplification Divert traffic to malicious nodes Black-hole attack Eavesdropping How to implement routing attacks? Distance-Vector Announce low-cost routes BGP vulnerabilities Prefix hijacking Path alteration TCP-level attacks Session Hijack SYN-Floods Implementations create state at servers before connection is fully established Limited # slots get exhausted Session hijack Pretend to be a trusted host Sequence number guessing Session resets Close a legitimate connection Malicious (M) 1.SYN (ISN_M) SRC = M 2.SYN(ISN_S1), ACK(ISN_M) Server First send a legitimate SYN to server Trusted (T) 2

Session Hijack Where do the problems come from? Malicious (M) 1.SYN (ISN_M) SRC = T 3.ACK(ISN_S2) SRC = T Server 2.SYN(ISN_S2), ACK(ISN_M) Using ISN_S1 from earlier connection guess ISN_S2! Needs to prevent T from RST-ing Trusted (T) Protocol-level vulnerabilities Implicit trust assumptions in design Implementation vulnerabilities Both on routers and end-hosts Incomplete specifications Often left to the imagination of programmers Outline Security Vulnerabilities Denial of Service Worms Countermeasures: Firewalls/IDS Denial of Service Make a service unusable, usually by overloading the server or network Disrupt service by taking down hosts E.g., ping-of-death Consume host-level resources E.g., SYN-floods Consume network resources E.g., UDP/ICMP floods 3

Simple DoS Backscatter Analysis Attacker usually spoofs source address to hide origin Aside: Backscatter Analysis Works when the traffic results in replies from the victim E.g. TCP SYN, ICMP ECHO Useful for understanding attacks Attacker Lots of traffic Victim Attacker is sending spoofed TCP SYN packets to www.haplessvictim.com With spoofed address chosen at random My network sees TCP SYN-ACKs from www.haplessvictim.com at rate R What is the rate of the attack? Assuming addresses chosen are uniform (2^32/ Network Address space) * R Distributed DoS Distributed DoS Attacker Handler Handler Agent Agent Agent Agent Agent Victim Handlers are usually high volume servers Easy to hide the attack packets Agents are usually home users with DSL/Cable Already infected and the agent installed Very difficult to track down the attacker Multiple levels of indirection! Aside: How to distinguish DDoS from a Flash Crowd? Flash Crowd Many clients using a service Slashdot Effect 4

Smurf Attack Reflector Attack Attacker Internet Attacking System Agent Agent Src = Victim Destination = Reflector Reflector Reflector Reflector Reflector Reflector Victim System Broadcast Enabled Network Victim Src = Reflector Destination = Victim Unsolicited traffic at victim from legitimate hosts Outline Security, Vulnerabilities Denial of Service Worms Countermeasures: Firewalls/IDS Worm Overview Self-propagate through network Typical Steps in Worm Propagation Probe host for vulnerable software Exploit the vulnerability E.g., Sends bogus input (for buffer overflow) Attacker can do anything that the privileges of the buggy program allow Launches copy of itself on compromised host Spread at exponential rate 10M hosts in < 5 minutes Hard to deal with manual intervention 5

Worm Spreading model Worm growth Slow-start, Exponential phase, Slow decay Worm Spreading Model Why is the growth function like this? Let R be the scan-rate Let f be the fraction of vulnerable hosts infected at time t Probing Techniques Random Scanning Local Subnet Scanning Routing Worm Pre-generated Hit List Topological Random Scanning 32 bit number is randomly generated and used as the IP address Aside: IPv6 worms will be different E.g., Slammer and Code Red I Hits black-holed IP space frequently Only 28.6% of IP space is allocated Aside: can track worms by monitoring unused addresses Honeypots 6

Subnet Scanning Generate last 1, 2, or 3 bytes of IP address randomly Code Red II and Blaster Some scans must be completely random to infect whole internet Routing Worm BGP information can tell which IP address blocks are allocated This information is publicly available http://www.routeviews.org/ http://www.ripe.net/ris/ Hit List Hit list of vulnerable machines is sent with payload Determined before worm launch by scanning Gives the worm a boost in the slow start phase Skips the phase that follows the exponential model Infection rate looks linear in the rapid propagation phase Can avoid detection by the early detection systems Topological Uses info on the infected host to find the next target Morris Worm used /etc/hosts,.rhosts Email address books P2P software usually store info about peers that each host connects to 7

Some proposals for countermeasures Outline Better software safeguards Static analysis and array bounds checking (lint/e-fence) Safe versions of library calls gets(buf) -> fgets(buf, size,...) sprintf(buf,...) -> snprintf(buf, size,...) Host-level solutions E.g., Memory randomization, Stack guard Host-diversity Avoid same exploit on multiple machines Network-level: IP address space randomization Make scanning ineffective Rate-limiting: Contain the rate of spread Dynamic quarantine: Isolate infected hosts Content-based filtering: signatures in packet payloads Security, Vulnerabilities Denial of Service Worms Countermeasures: Firewalls/IDS Firewalls Firewalls (contd ) Lots of vulnerabilities on hosts in network Users don t keep systems up to date Lots of patches Zero-day exploits Solution Limit access to the network Put firewalls across the perimeter of the network Firewall inspects traffic through it Allows traffic specified in the policy Drops everything else Two Types Packet Filters, Proxies Internet Firewall Internal Network 8

Packet Filters Selectively passes packets from one network interface to another Usually done within a router between external and internal network What to filter based on? Packet Header Fields IP source and destination addresses Application port numbers ICMP message types/ Protocol options etc. Packet contents (payloads) Packet Filters: Possible Actions Allow the packet to go through Drop the packet (Notify Sender/Drop Silently) Alter the packet (NAT?) Log information about the packet Some examples Typical Firewall Configuration Block all packets from outside except for SMTP servers Block all traffic to/from a list of domains Ingress filtering Drop all packets from outside with addresses inside the network Egress filtering Drop all packets from inside with addresses outside the network 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 Internet X X Intranet DMZ 9

Firewall implementation Stateless packet filtering firewall Rule (Condition, Action) Rules are processed in top-down order If a condition satisfied action is taken Sample Firewall Rule Allow SSH from external hosts to internal hosts Two rules Inbound and outbound Client Server How to know a packet is for SSH? Inbound: src-port>1023, dst-port=22 SYN Outbound: src-port=22, dst-port>1023 Protocol=TCP SYN/ACK Ack Set? Problems? ACK Rule SSH-1 Dir In Src Addr Ext Src Port > 1023 Dst Addr Int Dst Port 22 Proto TCP Ack Set? Action Allow SSH-2 Out Int 22 Ext > 1023 TCP Yes Alow Packet Filters Alternatives 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? Stateful packet filters Keep the connection states Easier to specify rules Problems? State explosion State for UDP/ICMP? Proxy Firewalls Two connections instead of one Either at transport level SOCKS proxy Or at application level HTTP proxy 10

Intrusion Detection Systems Firewalls allow traffic only to legitimate hosts and services Traffic to the legitimate hosts/services can have attacks Solution? Intrusion Detection Systems Monitor data and behavior Report when identify attacks Classes of IDS What type of analysis? Signature-based Anomaly-based Where is it operating? Network-based Host-based Design questions.. Why is it so easy to send unwanted traffic? Worm, DDoS, virus, spam, phishing etc Where to place functionality for stopping unwanted traffic? Edge vs. Core Routers vs. Middleboxes Redesign Internet architecture to detect and prevent unwanted traffic? Summary Security vulnerabilities are real! Protocol or implementation or bad specs Poor programming practices At all layers in protocol stack DoS/DDoS Resource utilization Worm Exponential spread Scanning strategies Firewall/IDS Counter-measures to protect hosts Fail-open vs. Fail-close? 11

Default Firewall Rules Proxy Firewall Egress Filtering Outbound traffic from external address Drop Benefits? Ingress Filtering Inbound Traffic from internal address Drop Benefits? Default Deny Why? Rule Dir Src Addr Src Port Dst Addr Dst Port Proto Ack Set? Action 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 Egress Out Ext Ext Deny Ingress Defaul t In Int Int Deny Deny Signature-based IDS Anomaly-based IDS Characteristics Uses known pattern matching to signify attack Advantages? Widely available Fairly fast Easy to implement Easy to update Disadvantages? Cannot detect attacks for which it has no signature Characteristics Uses statistical model or machine learning engine to characterize normal usage behaviors Recognizes departures from normal as potential intrusions Advantages? Can detect attempts to exploit new and unforeseen vulnerabilities Can recognize authorized usage that falls outside the normal pattern Disadvantages? Generally slower, more resource intensive compared to signature-based IDS Greater complexity, difficult to configure Higher percentages of false alerts 12

Network-based IDS Characteristics NIDS examine raw packets in the network passively and triggers alerts Advantages? Easy deployment Unobtrusive Difficult to evade if done at low level of network operation Disadvantages? Fail Open Different hosts process packets differently NIDS needs to create traffic seen at the end host Need to have the complete network topology and complete host behavior Host-based IDS Characteristics Runs on single host Can analyze audit-trails, logs, integrity of files and directories, etc. Advantages More accurate than NIDS Less volume of traffic so less overhead Disadvantages Deployment is expensive What happens when host get compromised? 13