o verview
play

O VERVIEW Applying security measure to the Internet Securing email - PDF document

4/16/18 S ECURING E MAIL WITH P RETTY G OOD P RIVACY C S C 2 4 9 A P R I L 1 7 , 2 0 1 8 O VERVIEW Applying security measure to the Internet Securing email Pretty Good Privacy Secure sockets layer, SSL Firewalls and Intrusion


  1. 4/16/18 S ECURING E MAIL WITH P RETTY G OOD P RIVACY C S C 2 4 9 A P R I L 1 7 , 2 0 1 8 O VERVIEW Applying security measure to the Internet • Securing email – Pretty Good Privacy • Secure sockets layer, SSL • Firewalls and Intrusion Detection Systems 2 1

  2. 4/16/18 E MAIL : C ONFIDENTIAL S TEP 1 q Alice wants to send confidential e-mail, m, to Bob. m m Internet Alice: 1) Generate random symmetric private key, K S 2) 3) 4) E MAIL : M ESSAGE I NTEGRITY & A UTHENTICATION q Alice wants to provide sender authentication message integrity. … How? m Internet m 2

  3. 4/16/18 E MAIL : F ULLY S ECURE q Alice wants to provide secrecy, sender authentication & message integrity. … How? m m Internet P RETTY G OOD P RIVACY (PGP) • To Activity (to act out PGP)… • Internet e-mail encryption scheme, de-facto standard. • Uses • Symmetric key cryptography • Public key cryptography • Hash function • Digital signature • Provides • Secrecy • Sender authentication • Integrity 3

  4. 4/16/18 SSL: S ECURE S OCKETS L AYER • Provides • Confidentiality • Integrity • Authentication • Original goals: • Encryption (especially credit-card numbers) • Web-server authentication • Optional client authentication • Minimum effort doing business with new merchant • Available to all TCP applications • Secure socket interface R ECALL : S OCKET P ROGRAMMING Application layer communication via the transport layer goal: build client/server applications that communicate using sockets socket: door between application process and transport protocol application application socket controlled by process process app developer transport transport controlled network network by OS link link Internet physical physical 8 4

  5. 4/16/18 SERVER socket() CLIENT socket() bind() TCP bind() listen() F LOW connect accept() C HART send() recv() send() recv() 9 SSL: S ECURE S OCKETS L AYER • Provides transport layer security to any TCP-based application using SSL services. • Security services: • Server authentication • Data encryption • Client authentication 5

  6. 4/16/18 SSL: C OULD B E B ASED ON PGP - K A . . - - K A (H(m)) K A ( ) m H( ) K S . + K S ( ) + m Internet . + K B ( ) K S + K B (K S ) + K B Ø But want to send byte streams Ø Want certificate exchange to be part of protocol handshake phase B ASIC SSL: A S IMPLE S ECURE C HANNEL 1. Handshake: Alice and Bob use their certificates and private keys to authenticate each other and exchange shared secret 2. Key Derivation: Alice and Bob use shared secret to derive set of keys – master key 3. Data Transfer: Data to be transferred is broken up into a series of records 4. Connection Closure: Special messages to securely close connection à Section 8.5.2 for more details 6

  7. 4/16/18 R ECALL : TCP C ONNECTION M ANAGEMENT Connection Set Up: client server setup Step 1: client sends TCP SYN SYN segment SYNACK setup Step 2: server receives SYN and replies with SYNACK ACK Step 3: client receives SYNACK and replies with ACK Connection (1) SSL: H ANDSHAKE • Bob establishes TCP T C P S Y N connection to Alice TCP SYNACK • Authenticates Alice via T C P A C CA signed certificate K S S L h • Creates, encrypts (using e l l o Alice’s public key), & e t a c f i i r t e c sends master secret key to Alice create • nonce exchange not Master K (MS) + decrypt shown A Secret using K A – (MS) to get MS 7

  8. 4/16/18 (2) SSL: K EY D ERIVATION • Alice, Bob use shared secret (MS) to generate four keys: • E B : Bob à Alice data encryption key • E A : Alice à Bob data encryption key • M B : Bob à Alice MAC key (the secret ‘bit pattern’) • M A : Alice à Bob MAC key • Encryption and MAC algorithms negotiable between hosts • Why 4 keys? (3) SSL: D ATA R ECORDS • Encrypt data in a constant stream as we write it to TCP? … does not work because - • Where would we put the MAC? • Instead, break stream into series of records • Each record carries a MAC • Receiver can act on each record as it arrives length data MAC 8

  9. 4/16/18 (3) SSL: D ATA TRANSFER b 1 b 2 b 3 … b n TCP byte stream M B d . block n bytes together compute H( ) MAC E B d H(d) . encrypted, H( ) SSL MAC, SSL seq. # H(d) d seq. # SSL record Type Ver Len d H(d) format unencrypted encrypted using E B C HAPTER 8 T OPICS 8.1 What is network security? 8.2 Principles of cryptography 8.3 Message integrity 8.4 Securing e-mail 8.5 Securing TCP connections: SSL 8.6 Network layer security: IPsec 8.7 Securing wireless LANs 8.8 Operational security: firewalls and IDS 9

  10. 4/16/18 N ETWORK S ECURITY ( SUMMARY ) Security Objectives…... • cryptography (symmetric and public) • message integrity • end-point authentication Used for numerous security scenarios • secure email (PGP) • secure transport (SSL) • Operational Security: firewalls and IDS F IREWALLS q Isolate an organization’s internal network from Internet, allowing some packets to pass, blocking others. q Which attacks are prevented? public administered network Internet firewall 10

  11. 4/16/18 S TATELESS P ACKET F ILTERING 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 S TATELESS P ACKET F ILTERING : M ORE E XAMPLES q Where is a firewall implemented? Policy Firewall Setting No outside Web access. Drop all outgoing packets to any IP address, port 80 No incoming TCP connections, except Drop all incoming TCP SYN packets to any IP except 130.207.244.203, port 80 those for institution’s public Web server only. Prevent Web-radios from eating up Drop all incoming UDP packets - except DNS and router broadcasts. the available bandwidth. Prevent your network from being used Drop all ICMP packets going to a for a smurf DoS attack. “broadcast” address (eg 130.207.255.255). Prevent your network from being Drop all outgoing ICMP TTL expired traffic tracerouted 11

  12. 4/16/18 L IMITATIONS OF F IREWALLS • IP spoofing: router can’t know if data “really” comes from claimed source • 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. I NTRUSION D ETECTION S YSTEMS • 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 12

  13. 4/16/18 N ETWORK S ECURITY (S UMMARY ) Basic techniques… • cryptography (symmetric and public) • message integrity • end-point authentication … used in many different security scenarios • secure email • secure transport (SSL) Operational Security: firewalls and IDS 13

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend