1 IPsec Youngjip Kim 2004. 05. 24. 2 Objective Providing interoperable, high quality, cryptographically-based security for IPv4 and IPv6 Services  Access.

Slides:



Advertisements
Similar presentations
IP Security have considered some application specific security mechanisms –eg. S/MIME, PGP, Kerberos, SSL/HTTPS however there are security concerns that.
Advertisements

CS470, A.SelcukIPsec – AH & ESP1 CS 470 Introduction to Applied Cryptography Instructor: Ali Aydin Selcuk.
Internet Security CSCE 813 IPsec
IPSec In Depth. Encapsulated Security Payload (ESP) Must encrypt and/or authenticate in each packet Encryption occurs before authentication Authentication.
IPSec: Authentication Header, Encapsulating Security Payload Protocols CSCI 5931 Web Security Edward Murphy.
IP Security. n Have a range of application specific security mechanisms u eg. S/MIME, PGP, Kerberos, SSL/HTTPS n However there are security concerns that.
Security at the Network Layer: IPSec
Network Security Essentials Chapter 8 Fourth Edition by William Stallings Lecture slides by Lawrie Brown.
Network Layer Security: IPSec
Cryptography and Network Security Chapter 16 Fourth Edition by William Stallings Lecture slides by Lawrie Brown.
IP SECURITY – Chapter 16 IP SECURITY – Chapter 16 Security Mechanisms: – S/MIME, PGP client/server - Kerberos web access - Secure Sockets Layer network.
ECE 454/CS 594 Computer and Network Security Dr. Jinyuan (Stella) Sun Dept. of Electrical Engineering and Computer Science University of Tennessee Fall.
1 Lecture 15: IPsec AH and ESP IPsec introduction: uses and modes IPsec concepts –security association –security policy database IPsec headers –authentication.
Henric Johnson1 Ola Flygt Växjö University, Sweden IP Security.
Henric Johnson1 Chapter 6 IP Security. Henric Johnson2 Outline Internetworking and Internet Protocols IP Security Overview IP Security Architecture Authentication.
IP Security IPSec 2 * Essential Network Security Book Slides. IT352 | Network Security |Najwa AlGhamdi 1.
IP Security. Overview In 1994, Internet Architecture Board (IAB) issued a report titled “Security in the Internet Architecture”. This report identified.
CSCE 715: Network Systems Security Chin-Tser Huang University of South Carolina.
Crypto – chapter 16 - noack Introduction to network stcurity Chapter 16 - Stallings.
1 IP Security Outline of the session –IP Security Overview –IP Security Architecture –Key Management Based on slides by Dr. Lawrie Brown of the Australian.
IP Security. n Have a range of application specific security mechanisms u eg. S/MIME, PGP, Kerberos, SSL/HTTPS n However there are security concerns that.
Cryptography and Network Security
Chapter 6 IP Security. Outline Internetworking and Internet Protocols (Appendix 6A) IP Security Overview IP Security Architecture Authentication Header.
IP Security. IPSEC Objectives n Band-aid for IPv4 u Spoofing a problem u Not designed with security or authentication in mind n IP layer mechanism for.
IP Security. n Have a range of application specific security mechanisms u eg. S/MIME, PGP, Kerberos, SSL/HTTPS n However there are security concerns that.
IP Security. n Have a range of application specific security mechanisms u eg. S/MIME, PGP, Kerberos, SSL/HTTPS n However there are security concerns that.
IP Security: Security Across the Protocol Stack
IP Security Lawrence Taub IPSEC IP security — security built into the IP layer Provides host-to-host (or router-to-router) encryption and.
Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
CSCE 715: Network Systems Security
SMUCSE 5349/49 IP Sec. SMUCSE 5349/7349 Basics Network-level: all IP datagrams covered Mandatory for next-generation IP (v6), optional for current-generation.
Information management 1 Groep T Leuven – Information department 1/26 IPSec IP Security (IPSec)
/IPsecurity.ppt 1 - Chapter 6 of William Stallings. Network Security Essentials (2nd edition). Prentice Hall.
IPSec IPSec provides the capability to secure communications across a LAN, across private and public wide area networks (WANs) and across the Internet.
Karlstad University IP security Ge Zhang
IPsec Introduction 18.2 Security associations 18.3 Internet Security Association and Key Management Protocol (ISAKMP) 18.4 Internet Key Exchange.
IP Security.  In CERTs 2001 annual report it listed 52,000 security incidents  the most serious involving:  IP spoofing intruders creating packets.
Chapter 6 IP Security. We have considered some application specific security mechanisms in last chapter eg. S/MIME, PGP, Kerberos however there are security.
IPSec ● IP Security ● Layer 3 security architecture ● Enables VPN ● Delivers authentication, integrity and secrecy ● Implemented in Linux, Cisco, Windows.
IP Security: Security Across the Protocol Stack. IP Security There are some application specific security mechanisms –eg. S/MIME, PGP, Kerberos, SSL/HTTPS.
1 Chapter 6 IP Security. 2 Outline Internetworking and Internet Protocols (Appendix 6A) IP Security Overview IP Security Architecture Authentication Header.
Chapter 8 IP Security MSc. NGUYEN CAO DAT Dr. TRAN VAN HOAI.
IP security Ge Zhang Packet-switched network is not Secure! The protocols were designed in the late 70s to early 80s –Very small network.
IPSec and TLS Lesson Introduction ●IPSec and the Internet key exchange protocol ●Transport layer security protocol.
1 IPv6 Security & QoS Babu Ram Dawadi. 2 Outline IP Security Overview IP Security Architecture Authentication Header Encapsulating Security Payload Combinations.
Encapsulated Security Payload Header ● RFC 2406 ● Services – Confidentiality ● Plus – Connectionless integrity – Data origin authentication – Replay protection.
1 Lecture 13 IPsec Internet Protocol Security CIS CIS 5357 Network Security.
Internet Security CSCE 813 IPsec. CSCE813 - Farkas2 TCP/IP Protocol Stack Application Layer Transport Layer Network Layer Data Link Layer.
Authentication Header ● RFC 2402 ● Services – Connectionless integrity – Data origin authentication – Replay protection – As much header authentication.
1 IPSec: Security at the IP Layer Rocky K. C. Chang 15 March 2007.
Cryptography and Network Security (CS435) Part Thirteen (IP Security)
IPSec  general IP Security mechanisms  provides  authentication  confidentiality  key management  Applications include Secure connectivity over.
IPSec – IP Security Protocol By Archis Raje. What is IPSec IP Security – set of extensions developed by IETF to provide privacy and authentication to.
IPSec is a suite of protocols defined by the Internet Engineering Task Force (IETF) to provide security services at the network layer. standard protocol.
1 IPSec: An Overview Dr. Rocky K. C. Chang 4 February, 2002.
CSCE 715: Network Systems Security Chin-Tser Huang University of South Carolina.
Network Layer Security Network Systems Security Mort Anvari.
8-1Network Security Virtual Private Networks (VPNs) motivation:  institutions often want private networks for security.  costly: separate routers, links,
IP Security (IPSec) Authentication Header (AH) Dr Milan Marković.
@Yuan Xue CS 285 Network Security IP Security Yuan Xue Fall 2013.
Presentaion on ipsecurity Presentaion given by arun saraswat To lavkush sharma sir arun saraswat1.
第六章 IP 安全. Cryptography and Network Security Third Edition by William Stallings Lecture slides by Lawrie Brown.
UNIT 7- IP Security 1.IP SEC 2.IP Security Architecture
CSE 4905 IPsec.
Chapter 18 IP Security  IP Security (IPSec)
Internet and Intranet Fundamentals
IT443 – Network Security Administration Instructor: Bo Sheng
IPSec IPSec is communication security provided at the network layer.
Presentation transcript:

1 IPsec Youngjip Kim

2 Objective Providing interoperable, high quality, cryptographically-based security for IPv4 and IPv6 Services  Access control  connectionless integrity  data origin authentication  protection against replays  Confidentiality  Limited traffic flow confidentiality

3 Implementation Points Implemented between IP layer and other upper later Implemented in a host or a security gateway (router or firewall)  Integration of IPsec into the native IP implementation  Bump-in-the-stack (BITS)  Bump-in-the-wire (BITW)

4 IPsec Scenario

5 Components Policy  Security Policy Database (SPD)  Security Association (SA)  Security Association Database (SAD) Protocol  IP Authentication Header (AH)  Encapsulating Security Payload (ESP)  Internet Key Exchange (IKE)

6 SPD (1/3) Contains policy entries  processing type, selectors, SA specification Specified for inbound and outbound traffic Consulted during the processing of all traffic, including non-IPsec traffic Three processing choices  Discard, bypass IPsec or apply IPsec

7 SPD (2/3) Selectors  Destination IP Address(es)  Source IP Address(es)  Name (User ID or System name)  Data sensitivity level  Transport Layer Protocol  Source and Destination Ports  IPv6 Class  IPv6 Flow Label  IPv4 Type of Service

8 SPD (3/3) SA specification  IPsec protocol (AH, ESP)  Modes (Transport, Tunnel)  Algorithms (Encryption algorithms, Authentication algorithms)

9 SA A one-way relationship between sender an d receiver that affords security for traffic fl ow Defined by 3 parameters:  Security Parameters Index (SPI)  IP Destination Address (Endpoints of the SA)  Security Protocol Identifier Has a number of other parameters  SEQ no, AH & EH info, lifetime etc Have a database of Security Associations Manual and Automated Techniques

10 SAD Each entry defines the parameters associated with one SA  Sequence Number Counter  Anti_replay window  AH Authentication algorithm, keys  ESP Encryption algorithm, keys  ESP Authentication algorithm, keys  Lifetime of SA  IPsec Protocol Mode

11 AH (1/3) Provides connectionless integrity, data origin authentication and optional anti- replay service

12 AH (2/3) Autentication Data  Integrity Check Value  Authentication algorithm HMAC-MD5-96, HMAC-SHA-1-96  Input of authentication algorithm IP header fields except mutable and unpredictable fields  E.g. TOS, Flags, Fragment Offset, TTL and Header Checksum are mutable in the case of IPv4 AH header (Authentication Data field is set to zero) Entire upper-level protocol data (immutable). Padding

13 AH (3/3) Transport and Tunnel Modes

14 ESP (1/4) Provides confidentiality and limited traffic flow confidentiality Provides connectionless integrity, data origin authentication and optional anti- replay service

15 ESP (2/4) Encryption  Payload Data, Padding, Pad Length and Next Header are encrypted  Payload Data Transport mode : original upper lay protocol information Tunnel mode : entire original IP datagram  Padding may be used to provide partial traffic flow confidentiality  Algorithm 3DES, RC5, IDEA, 3IDEA, CAST, Blowfish, etc.

16 ESP (3/4) Authentication  ICV computed over the ESP packet minus the Authentication Data  Length of the ICV must be specified by authentication algorithm specification  Algorithm HMAC-MD5-96, MHAC-SHA-1-96, etc.  Can’t protect IP header in transport mode

17 ESP (4/4) Transport and Tunnel Modes

18 Anti-replay Service (AH, ESP)

19 Fragmentation (AH, ESP) Inbound  Before AH or ESP processing, fragments must be resembled Outbound  Transport mode : Before AH or ESP processing, fragments must be resembled  Tunnel mode : AH or ESP processing is applied to a fragmented IP packet

20 Combining Security Associations

21 IKE ISAKMP/Oakley  ISAKMP : Framework for authentication and key exchange  Oakley : key exchange protocol based on the Diffie-Hellman algorithm General purpose key exchange protocol  Generates SAs, refresh them and delete them  Generates a symmetric key for a session  Used by not only IPsec but also other protocols who need SAs as well Does not use Public Key Infrastructure  man-in-the-middle attack is possible

22 IKE Exchanges  Phase I Establish a secure channel (ISAKMP SA) Authenticate computer identity  Phase II Establishes a secure channel between computers intended for the transmission of data (IPsec SA)

23 IKE – Phase I Authenticated with signatures  Main Mode

24 IKE – Phase I  Aggressive Mode Authenticated with public key encryption Authenticated with a revised mode of public key encryption Authenticated with a pre-shared key

25 IKE – Phase I SKEYID_d  prf(SKEYID, g^xy | CKY-I | CKY-R | 0) SKEYID_a  prf(SKEYID, SKEYID_d | g^xy | CKY-I | CKY-R | 1) SKEYID_e  prf(SKEYID, SKEYID_a | g^xy | CKY-I | CKY-R | 2)

26 IKE – Phase II Quick Mode  All traffic is encrypted using the ISAKMP Security Association  Each quick mode negotiation results in two IPsec Security Associations (one inbound, one outbound)

27 IKE – Phase II KEYMAT = K1 | K2 | K3 |...  K1 = prf(SKEYID_d, [ g(qm)^xy | ] protocol | SPI | Ni_b | Nr_b)  K2 = prf(SKEYID_d, K1 | [ g(qm)^xy | ] protocol | SPI | Ni_b | Nr_b)  K3 = prf(SKEYID_d, K2 | [ g(qm)^xy | ] protocol | SPI | Ni_b | Nr_b

28 IKE2-Exchanges (1/3) IKE_SA_INIT  SKEYSEED = prf(Ni | Nr, g^ir)  {SK_d | SK_ai | SK_ar | SK_ei | SK_er | SK_pi | SK_pr } = prf+ (SKEYSEED, Ni | Nr | SPIi | SPIr)

29 IKE2-Exchanges (2/3) IKE_AUTH

30 IKE2-Exchanges (3/3) IKE_CHILD_SA  KEYMAT = prf+(SK_d, Ni | Nr )  KEYMAT = prf+(SK_d, g^ir | Ni | Nr )

31 Reference RFC Security Architectures for IP RFC IP Authentication Header RFC IP Encapsulating Security Payload RFC The Internet Key Exchange William Stallings, Cryptography and Network Security: Principles and Practice, 3nd ed., Prentice Hall, 2003, pp