Chapter 6 Network Security

Slides:



Advertisements
Similar presentations
Chapter 8 Network Security
Advertisements

Network Security7-1 Chapter 7 Network Security Computer Networking: A Top Down Approach Featuring the Internet, 2 nd edition. Jim Kurose, Keith Ross Addison-Wesley,
Working Connection Computer and Network Security - SSL, IPsec, Firewalls – (Chapter 17, 18, 19, and 23)
Security in Networks (Part 2) CPSC 363 Computer Networks Ellen Walker Hiram College (Includes figures from Computer Networking by Kurose & Ross, © Addison.
IPsec Internet Headquarters Branch Office SA R1 R2
Firewalls and Intrusion Detection Systems
K. Salah 1 Chapter 31 Security in the Internet. K. Salah 2 Figure 31.5 Position of TLS Transport Layer Security (TLS) was designed to provide security.
8: Network Security Security. 8: Network Security8-2 Chapter 8 Network Security A note on the use of these ppt slides: We’re making these slides.
Chapter 8 Network Security Computer Networking: A Top Down Approach, 5 th edition. Jim Kurose, Keith Ross Addison-Wesley, April 2009.
8-1 What is network security? Confidentiality: only sender, intended receiver should “understand” message contents m sender encrypts message m receiver.
بسم الله الرحمن الرحيم NETWORK SECURITY Done By: Saad Al-Shahrani Saeed Al-Smazarkah May 2006.
1DT014/1TT821 Computer Networks I Chapter 8 Network Security
Review and Announcement r Ethernet m Ethernet CSMA/CD algorithm r Hubs, bridges, and switches m Hub: physical layer Can’t interconnect 10BaseT & 100BaseT.
8-1 Chapter 8 Security Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
8-1 Chapter 8 Security Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 A note on the use of these.
24-1 Last time □ Message Integrity □ Authentication □ Key distribution and certification.
8: Network Security8-1 Security in the layers. 8: Network Security8-2 Secure sockets layer (SSL) r Transport layer security to any TCP- based app using.
FIREWALL Mạng máy tính nâng cao-V1.
Network Security7-1 Today r Collect Ch6 HW r Assign Ch7 HW m Ch7 #2,3,4,5,7,9,10,12 m Due Wednesday Nov 19 r Continue with Chapter 7 (Security)
Investigators have published numerous reports of birds taking turns vocalizing; the bird spoken to gave its full attention to the speaker and never vocalized.
1-1 1DT066 Distributed Information System Chapter 8 Network Security.
Firewalls A note on the use of these ppt slides:
1 WEP Design Goals r Symmetric key crypto m Confidentiality m Station authorization m Data integrity r Self synchronizing: each packet separately encrypted.
Chapter 8 Network Security A note on the use of these ppt slides: We’re making these slides freely available to all (faculty, students, readers). They’re.
ICT 6621 : Advanced NetworkingKhaled Mahbub, IICT, BUET, 2008 Lecture 12 Network Security (2)
Ch 8. Security in computer networks Myungchul Kim
8-1 Chapter 8 Security Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 part 4: Securing IP.
Network Security Introduction Light stuff – examples with Alice, Bob and Trudy Serious stuff - Security attacks, mechanisms and services.
1-1 1DT066 Distributed Information System Chapter 8 Network Security.
Firewall Tutorial Hyukjae Jang Nc lab, CS dept, Kaist.
8-1 Chapter 8 Security Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 part 5: Mobile security,
Chapter 8 Network Security Thanks and enjoy! JFK/KWR All material copyright J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking:
Introduction1-1 Data Communications and Computer Networks Chapter 6 CS 3830 Lecture 28 Omar Meqdadi Department of Computer Science and Software Engineering.
1 Network Security Basics. 2 Network Security Foundations: r what is security? r cryptography r authentication r message integrity r key distribution.
8: Network Security8-1 Chapter 8 Network Security A note on the use of these ppt slides: We’re making these slides freely available to all (faculty, students,
Network Security7-1 Today r Reminder Ch7 HW due Wed r Finish Chapter 7 (Security) r Start Chapter 8 (Network Management)
Network Security7-1 Today r Reminders m Ch6 Homework due Wed Nov 12 m 2 nd exams have been corrected; contact me to see them r Start Chapter 7 (Security)
+ Security. + What is network security? confidentiality: only sender, intended receiver should “understand” message contents sender encrypts message receiver.
8: Network Security 8-1 IPsec: Network Layer Security r network-layer secrecy: m sending host encrypts the data in IP datagram m TCP and UDP segments;
Chapter 8 Network Security Thanks and enjoy! JFK/KWR All material copyright J.F Kurose and K.W. Ross, All Rights Reserved Computer Networking:
Network Security7-1 Firewalls isolates organization’s internal net from larger Internet, allowing some packets to pass, blocking others. firewall.
K. Salah1 Security Protocols in the Internet IPSec.
8: Network Security8-1 Chapter 8 Network Security A note on the use of these ppt slides: We’re making these slides freely available to all (faculty, students,
Polytechnic University Firewall and Trusted Systems Presented by, Lekshmi. V. S cos
Network security 1. Security taxonomy Physical security Resource exhaustion - DDoS system/network vulnerabilities Key-based security.
Last time Message Integrity Authentication
IPSec Detailed Description and VPN
IPSecurity.
Security in the layers 8: Network Security.
Firewalls firewall Isolates organization’s internal net from larger Internet, allowing some packets to pass, blocking others. administered network public.
CSE 4905 IPsec.
IT443 – Network Security Administration Instructor: Bo Sheng
What is network security?
CSE 4905 Network Security Overview
Dimitris Palyvos Giannas Utilizing Kurose-Ross Slides, 7th Global Ed.
Slides have been taken from:
Chapter 8 roadmap 8.1 What is network security?
Network Security Basics
Chapter 8 Network Security
Chapter 8: Network Security
Virtual Private Networks (VPNs)
1DT057 Distributed Information System Chapter 8 Network Security
TCP/IP Protocol Suite1 Lecturer 8. TCP/IP Protocol Suite2 INTRODUCTION We are living in the information age. We need to keep information about every aspect.
Review and Announcement
Firewalls By conventional definition, a firewall is a partition made
Introduction to Network Security
Chapter 8 Network Security
Chapter 8 Network Security
Session 20 INST 346 Technologies, Infrastructure and Architecture
Presentation transcript:

Chapter 6 Network Security Computer Networking: A Top Down Approach , 4th edition. Jim Kurose, Keith Ross Addison-Wesley, July 2007. 6: Network Security

Chapter 6: Network Security Chapter goals: understand principles of network security: cryptography and its many uses beyond “confidentiality” authentication message integrity security in practice: firewalls and intrusion detection systems security in application, transport, network, link layers 6: Network Security

Chapter 6 roadmap 6.1 What is network security? 6.2 Principles of cryptography 6.3 Message integrity 6.4 End point authentication 6.5 Securing e-mail 6.6 Securing TCP connections: SSL 6.7 Network layer security: IPsec 6.6 Securing wireless LANs 6.9 Operational security: firewalls and IDS 6: Network Security

What is network security? Confidentiality: only sender, intended receiver should “understand” message contents sender encrypts message receiver decrypts message Authentication: sender, receiver want to confirm identity of each other Message integrity: sender, receiver want to ensure message not altered (in transit, or afterwards) without detection Access and availability: services must be accessible and available to users 6: Network Security

Friends and enemies: Alice, Bob, Trudy well-known in network security world Bob, Alice (lovers!) want to communicate “securely” Trudy (intruder) may intercept, delete, add messages Alice Bob channel data, control messages secure sender secure receiver data data Trudy 6: Network Security

Who might Bob, Alice be? … well, real-life Bobs and Alices! Web browser/server for electronic transactions (e.g., on-line purchases) on-line banking client/server DNS servers routers exchanging routing table updates other examples? 6: Network Security

There are bad guys (and girls) out there! Q: What can a “bad guy” do? A: a lot! eavesdrop: intercept messages actively insert messages into connection impersonation: can fake (spoof) source address in packet (or any field in packet) hijacking: “take over” ongoing connection by removing sender or receiver, inserting himself in place denial of service: prevent service from being used by others (e.g., by overloading resources) more on this later …… 6: Network Security

Chapter 6 roadmap 6.1 What is network security? 6.2 Principles of cryptography 6.3 Message integrity 6.4 Securing TCP connections: SSL 6.5 Network layer security: IPsec 6.6 Securing wireless LANs 6.7 Operational security: firewalls and IDS 6: Network Security

The language of cryptography Alice’s encryption key Bob’s decryption key K A K B encryption algorithm plaintext ciphertext decryption algorithm plaintext symmetric key crypto: sender, receiver keys identical public-key crypto: encryption key public, decryption key secret (private) 6: Network Security

Symmetric key cryptography substitution cipher: substituting one thing for another monoalphabetic cipher: substitute one letter for another plaintext: abcdefghijklmnopqrstuvwxyz ciphertext: mnbvcxzasdfghjklpoiuytrewq E.g.: Plaintext: bob. i love you. alice ciphertext: nkn. s gktc wky. mgsbc Q: How hard to break this simple cipher?: brute force (how hard?) other? 6: Network Security

Chapter 6 roadmap 6.1 What is network security? 6.2 Principles of cryptography 6.3 Message integrity 6.4 Securing TCP connections: SSL 6.5 Network layer security: IPsec 6.6 Securing wireless LANs 6.7 Operational security: firewalls and IDS 6: Network Security

Secure sockets layer (SSL) provides transport layer security to any TCP-based application using SSL services. e.g., between Web browsers, servers for e-commerce (shttp) security services: server authentication, data encryption, client authentication (optional) Application Application SSL sublayer SSL socket TCP TCP TCP socket IP IP TCP API TCP enhanced with SSL 6: Network Security

SSL: three phases 1. Handshake: Bob establishes TCP connection to Alice authenticates Alice via CA(Certificate Authority) signed certificate creates, encrypts (using Alice’s public key), sends master secret key to Alice nonce exchange not shown TCP SYN TCP SYNACK TCP ACK SSL hello certificate create Master Secret (MS) KA+(MS) decrypt using KA- to get MS Nonce: number (R) used only once –in-a-lifetime 6: Network Security

SSL: three phases 2. Key Derivation: Alice, Bob use shared secret (MS) to generate 4 keys: EB: Bob->Alice data encryption key EA: Alice->Bob data encryption key MB: Bob->Alice MAC (Message Authentication Code) key MA: Alice->Bob MAC (Message Authentication Code) key encryption and MAC algorithms negotiable between Bob, Alice why 4 keys? 2 encryption keys used to encrypt data 2 MAC to verify the identity of the data. 6: Network Security

. . SSL: three phases 3. Data transfer TCP byte stream MB b1b2b3 … bn MB: Bob->Alice MAC (Message Authentication Code) key MB block n bytes together d H( ) . compute MAC EB d H(d) H( ) . encrypt d, MAC, SSL seq. # SSL seq. # d H(d) EB : Bob->Alice data encryption key SSL record format Type Ver Len d H(d) unencrypted encrypted using EB 6: Network Security

Chapter 6 roadmap 6.1 What is network security? 6.2 Principles of cryptography 6.3 Message integrity 6.4 End point authentication 6.5 Securing e-mail 6.6 Securing TCP connections: SSL 6.7 Network layer security: IPsec 6.6 Securing wireless LANs 6.9 Operational security: firewalls and IDS 6: Network Security

IPsec: Network Layer Security network-layer secrecy: sending host encrypts the data in IP datagram TCP and UDP segments; ICMP and SNMP messages. network-layer authentication destination host can authenticate source IP address two principal protocols: authentication header (AH) protocol encapsulation security payload (ESP) protocol for both AH and ESP, source, destination handshake: create network-layer logical channel called a security association (SA) each SA(Security Association) unidirectional. uniquely determined by: security protocol (AH or ESP) source IP address 32-bit connection ID 6: Network Security

Authentication Header (AH) Protocol provides source authentication, data integrity, no confidentiality(not encrypted) AH header inserted between IP header, data field. protocol field: 51 intermediate routers process datagrams as usual AH header includes: connection identifier authentication data: source- signed message digest calculated over original IP datagram. next header field: specifies type of data (e.g., TCP, UDP, ICMP) IP header data (e.g., TCP, UDP segment) AH header 6: Network Security

ESP Protocol provides secrecy, host authentication, data integrity. data, ESP trailer encrypted. next header field is in ESP trailer. ESP authentication field is similar to AH authentication field. Protocol = 50. authenticated encrypted ESP header ESP trailer ESP authent. IP header TCP/UDP segment 6: Network Security

Chapter 6 roadmap 6.1 What is network security? 6.2 Principles of cryptography 6.3 Message integrity 6.4 End point authentication 6.5 Securing e-mail 6.6 Securing TCP connections: SSL 6.7 Network layer security: IPsec 6.6 Securing wireless LANs 6.9 Operational security: firewalls and IDS 6: Network Security

IEEE 602.11 security war-driving: drive around Bay area, see what 602.11 networks available? More than 9000 accessible from public roadways 65% use no encryption/authentication packet-sniffing and various attacks easy! securing 602.11 encryption, authentication first attempt at 602.11 security: Wired Equivalent Privacy (WEP): a failure current attempt: 602.11i 6: Network Security

Wired Equivalent Privacy (WEP): authentication as in protocol ap4.0 host requests authentication from access point access point sends 126 bit nonce host encrypts nonce using shared symmetric key access point decrypts nonce, authenticates host no key distribution mechanism authentication: knowing the shared key is enough 6: Network Security

WEP data encryption host/AP share 40 bit symmetric key (semi-permanent) host appends 24-bit initialization vector (IV) to create 64-bit key 64 bit key used to generate stream of keys, kiIV kiIV used to encrypt ith byte, di, in frame: ci = di XOR kiIV IV(Initialization Vector) and encrypted bytes, ci sent in frame 6: Network Security

602.11 WEP encryption Sender-side WEP encryption 24-bit initialization vector (IV) Sender-side WEP encryption 6: Network Security

Breaking 602.11 WEP encryption security hole: 24-bit IV, one IV per frame, -> IV’s eventually reused IV transmitted in plaintext -> IV reuse detected attack: Trudy causes Alice to encrypt known plaintext d1 d2 d3 d4 … Trudy sees: ci = di XOR kiIV Trudy knows ci di, so can compute kiIV Trudy knows encrypting key sequence k1IV k2IV k3IV … Next time IV is used, Trudy can decrypt! 6: Network Security

602.11i: improved security numerous (stronger) forms of encryption possible provides key distribution uses authentication server separate from access point 6: Network Security

602.11i: four phases of operation STA: client station AP: access point AS: Authentication server wired network 1 Discovery of security capabilities STA and AS mutually authenticate, together generate Master Key (MK). AP servers as “pass through” 2 3 STA derives Pairwise Master Key (PMK) 3 AS derives same PMK, sends to AP 4 STA, AP use PMK to derive Temporal Key (TK) used for message encryption, integrity 6: Network Security

EAP: extensible authentication protocol EAP: end-end client (mobile) to authentication server protocol EAP sent over separate “links” mobile-to-AP (EAP over LAN) AP to authentication server (RADIUS over UDP) wired network EAP TLS EAP EAP over LAN (EAPoL) RADIUS IEEE 602.11 UDP/IP 6: Network Security

Radius Server Radius is a server for remote user authentication and accounting. Its primary use is for Internet Service Providers, though it may as well be used on any network that needs a centralized authentication and/or accounting service for its workstations. 6: Network Security

Chapter 6 roadmap 6.1 What is network security? 6.2 Principles of cryptography 6.3 Message integrity 6.4 End point authentication 6.5 Securing e-mail 6.6 Securing TCP connections: SSL 6.7 Network layer security: IPsec 6.6 Securing wireless LANs 6.9 Operational security: firewalls and IDS 6: Network Security

Firewalls firewall isolates organization’s internal net from larger Internet, allowing some packets to pass, blocking others. administered network public Internet firewall 6: Network Security

Firewalls: Why prevent denial of service attacks: SYN flooding: attacker establishes many bogus TCP connections, no resources left for “real” connections prevent illegal modification/access of internal data. e.g., attacker replaces CIA’s homepage with something else allow only authorized access to inside network (set of authenticated users/hosts) three types of firewalls: stateless packet filters stateful packet filters application gateways 6: Network Security

Stateless packet filtering Should arriving packet be allowed in? Departing packet let out? internal network connected to Internet via router firewall router filters packet-by-packet, decision to forward/drop packet based on: source IP address, destination IP address TCP/UDP source and destination port numbers ICMP message type TCP SYN and ACK bits 6: Network Security

Stateless packet filtering: example example 1: block incoming and outgoing datagrams with IP protocol field = 17 and with either source or dest port = 23. all incoming, outgoing UDP flows and telnet connections are blocked. example 2: Block inbound TCP segments with ACK=0. prevents external clients from making TCP connections with internal clients, but allows internal clients to connect to outside. 6: Network Security

Stateless packet filtering: more examples Policy Firewall Setting No outside Web access. Drop all outgoing packets to any IP address, port 60 No incoming TCP connections, except those for institution’s public Web server only. Drop all incoming TCP SYN packets to any IP except 130.207.244.203, port 60 Prevent Web-radios from eating up the available bandwidth. Drop all incoming UDP packets - except DNS and router broadcasts. Prevent your network from being used for a smurf DoS attack. Drop all ICMP packets going to a “broadcast” address (eg 130.207.255.255). Prevent your network from being tracerouted Drop all outgoing ICMP TTL expired traffic 6: Network Security

Access Control Lists ACL: table of rules, applied top to bottom to incoming packets: (action, condition) pairs action source address dest protocol port flag bit allow 222.22/16 outside of TCP > 1023 60 any ACK UDP 53 --- ---- deny all 6: Network Security

Stateful packet filtering stateless packet filter: heavy handed tool admits packets that “make no sense,” e.g., dest port = 60, ACK bit set, even though no TCP connection established: action source address dest protocol port flag bit allow outside of 222.22/16 TCP 60 > 1023 ACK stateful packet filter: track status of every TCP connection track connection setup (SYN), teardown (FIN): can determine whether incoming, outgoing packets “makes sense” timeout inactive connections at firewall: no longer admit packets 6: Network Security

Stateful packet filtering ACL augmented to indicate need to check connection state table before admitting packet action source address dest proto port flag bit check conxion allow 222.22/16 outside of TCP > 1023 60 any ACK x UDP 53 --- ---- deny all 6: Network Security

Application gateways gateway-to-remote host telnet session host-to-gateway telnet session filters packets on application data as well as on IP/TCP/UDP fields. example: allow select internal users to telnet outside. application gateway router and filter 1. require all telnet users to telnet through gateway. 2. for authorized users, gateway sets up telnet connection to dest host. Gateway relays data between 2 connections 3. router filter blocks all telnet connections not originating from gateway. 6: Network Security

Limitations of firewalls and gateways IP spoofing: router can’t know if data “really” comes from claimed source if multiple app’s. need special treatment, each has own app. gateway. client software must know how to contact gateway. e.g., must set IP address of proxy in Web browser filters often use all or nothing policy for UDP. tradeoff: degree of communication with outside world, level of security many highly protected sites still suffer from attacks. 6: Network Security

Intrusion detection systems packet filtering: operates on TCP/IP headers only no correlation check among sessions IDS: intrusion detection system deep packet inspection: look at packet contents (e.g., check character strings in packet against database of known virus, attack strings) examine correlation among multiple packets port scanning network mapping DoS attack 6: Network Security

Intrusion detection systems multiple IDSs: different types of checking at different locations IDS Sensor application gateway firewall Internet internal network Web server IDS sensors DNS server FTP server demilitarized zone 6: Network Security

Network Security (summary) Basic techniques…... cryptography (symmetric and public) message integrity end-point authentication …. used in many different security scenarios secure email secure transport (SSL) IP sec 602.11 Operational Security: firewalls and IDS 6: Network Security