PGP from: Cryptography and Network Security

Similar documents
Cryptography and Network Security Chapter 15

Network Security Essentials Chapter 7

Chapter 6 Electronic Mail Security

Electronic Mail Security. Security. is one of the most widely used and regarded network services currently message contents are not secure

Electronic Mail Security

Authentication applications Kerberos X.509 Authentication services E mail security IP security Web security

Network Security - Secure upper layer protocols - Background. Security. Question from last lecture: What s a birthday attack? Dr.

CS549: Cryptography and Network Security

Elements of Security

CS 393 Network Security. Nasir Memon Polytechnic University Module 11 Secure

Cryptography and Security

Cryptography and Network Security

PGP - Pretty Good Privacy

WiMAX Public Key Infrastructure (PKI) Users Overview

SubmitedBy: Name Reg No Address. Mirza Kashif Abrar T079 kasmir07 (at) student.hh.se

Tutorial: Encrypted with Thunderbird and Enigmail. Author: Shashank Areguli. Published: Ed (August 9, 2014)

CS 356 Lecture 27 Internet Security Protocols. Spring 2013

GPG - GNU Privacy Guard

A Noval Approach for S/MIME

Introduction to Cryptography

Secure Client Applications

Internet Programming. Security

Cryptography and Network Security Chapter 14

An Introduction to Secure . Presented by: Addam Schroll IT Security & Privacy Analyst

Forging Digital Signatures

Prof. Sead Muftic Feng Zhang. Lecture 10: Secure Systems

Overview. SSL Cryptography Overview CHAPTER 1

to hide away details from prying eyes. Pretty Good Privacy (PGP) utilizes many

Cryptography and Network Security Chapter 14. Key Distribution. Key Management and Distribution. Key Distribution Task 4/19/2010

PGP (Pretty Good Privacy) INTRODUCTION ZHONG ZHAO

Signing and Encryption with GnuPG

IT Networks & Security CERT Luncheon Series: Cryptography

Managing and Securing Computer Networks. Guy Leduc. Chapter 3: Securing applications. Chapter goals: security in practice:

Lecture 10: 1. Secure E mail E systems. Systems. Page 1

An Introduction to Cryptography as Applied to the Smart Grid

Security. Friends and Enemies. Overview Plaintext Cryptography functions. Secret Key (DES) Symmetric Key

Message authentication and. digital signatures

Sharing Secrets Using Encryption Facility

HW/Lab 1: Security with PGP, and Crypto CS 336/536: Computer Network Security DUE 09/28/2015 (11am)

Number of relevant issues

Encrypting with KMail, Mozilla Thunderbird, and Evolution LOCK AND KEY BY FRAUKE OSTER

Authentication requirement Authentication function MAC Hash function Security of

Chapter 10. Network Security

Cryptography & Digital Signatures

Overview of CSS SSL. SSL Cryptography Overview CHAPTER

Encrypting and signing

Message Authentication Codes

Standards and Products. Computer Security. Kerberos. Kerberos

Electronic mail security. MHS (Message Handling System)

Savitribai Phule Pune University

Overview Keys. Overview

Best Practices

Secure Part II Due Date: Sept 27 Points: 25 Points

Chapter 11 Security+ Guide to Network Security Fundamentals, Third Edition Basic Cryptography

Ciphire Mail. Abstract

Key Management and Distribution

Installing your Digital Certificate & Using on MS Out Look 2007.

Network Security. Computer Networking Lecture 08. March 19, HKU SPACE Community College. HKU SPACE CC CN Lecture 08 1/23

4.1: Securing Applications Remote Login: Secure Shell (SSH) PEM/PGP. Chapter 5: Security Concepts for Networks

mod_ssl Cryptographic Techniques

Network Security. Security Attacks. Normal flow: Interruption: 孫 宏 民 Phone: 國 立 清 華 大 學 資 訊 工 程 系 資 訊 安 全 實 驗 室

Network Security. Gaurav Naik Gus Anderson. College of Engineering. Drexel University, Philadelphia, PA. Drexel University. College of Engineering

Unifying Information Security. Implementing Encryption on the CLEARSWIFT SECURE Gateway

Key Management and Distribution

GlobalSign Enterprise Solutions

NETWORK SECURITY. Farooq Ashraf. Department of Computer Engineering King Fahd University of Petroleum and Minerals Dhahran 31261, Saudi Arabia

Network Security Essentials Chapter 5

Receiving Secure from Citi For External Customers and Business Partners

Institute of Computer Technology - Vienna University of Technology. L96 - SSL, PGP, Kerberos

Signing and Encryption with GnuPG

Secured Mail through PGP Mail Gateway

Taxonomy of Security Protocol

7! Cryptographic Techniques! A Brief Introduction

1.2 Using the GPG Gen key Command

How To Encrypt With An Certificate On An From A Gmail Account On A Pc Or Mac Or Ipa (For A Pc) On A Microsoft Gmail (For An Ipa) Or Ipad (For Mac) On

Biography of Trainer. Education. Experience. Summary. TLS/SSL : Securing your website PGP : Secure your communication. Topic

Aloaha Sign! (English Version)

Ubuntu Open PGP IMPLEMENTATION. Dr. ENİS KARAARSLAN 2014

On-Core Software, LLC. 893 Sycamore Ave. Tinton Falls, NJ United States of America

How encryption works to provide confidentiality. How hashing works to provide integrity. How digital signatures work to provide authenticity and

CIPHERMAIL ENCRYPTION. CipherMail white paper

Transport Level Security

Security: PGP (Pretty Good Privacy) & PEM (Privacy-Enhanced Mail)

INTRODUCTION to CRYPTOGRAPHY & CRYPTOGRAPHIC SERVICES on Z/OS BOSTON UNIVERSITY SECURITY CAMP MARCH 14, 2003

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ MEng. Nguyễn CaoĐạt

CRYPTOG NETWORK SECURITY

Secure Socket Layer. Carlo U. Nicola, SGI FHNW With extracts from publications of : William Stallings.

The Electronic Postcard. By Daniel Herren

Introduction to Network Security. 1. Introduction. And People Eager to Take Advantage of the Vulnerabilities

Secure Shell SSH provides support for secure remote login, secure file transfer, and secure TCP/IP and X11 forwarding. It can automatically encrypt,

PKI: Public Key Infrastructure

Computer Security: Principles and Practice

CRYPTOGRAPHY AND NETWORK SECURITY

Encrypting your Communications using PGP

How To Encrypt Data With Encryption

Understanding Digital Certificates on z/os Vanguard Las Vegas, NV Session AST3 June 26th 2012

User Guide Supplement. S/MIME Support Package for BlackBerry Smartphones BlackBerry Pearl 8100 Series

Using Your PGP Tool to Update Your Address Settings for Encrypted Messaging

CS 348: Computer Networks. - Security; 30 th - 31 st Oct Instructor: Sridhar Iyer IIT Bombay

Final Exam. IT 4823 Information Security Administration. Rescheduling Final Exams. Kerberos. Idea. Ticket

Transcription:

PGP from: Cryptography and Network Security Fifth Edition by William Stallings Lecture slides by Lawrie Brown (*) (*) adjusted by Fabrizio d'amore

Electronic Mail Security Despite the refusal of VADM Poindexter and LtCol North to appear, the Board's access to other sources of information filled much of this gap. The FBI provided documents taken from the files of the National Security Advisor and relevant NSC staff members, including messages from the PROF system between VADM Poindexter and LtCol North. The PROF messages were conversations by computer, written at the time events occurred and presumed by the writers to be protected from disclosure. In this sense, they provide a first-hand, contemporaneous account of events. The Tower Commission Report to President Reagan on the Iran-Contra Affair, 1987 May 2012 PGP - S/MIME 2

Email Security Ø email is one of the most widely used and regarded network services Ø currently message contents are not secure l may be inspected either in transit l or by suitably privileged users on destination system May 2012 PGP - S/MIME 3

Email Security Enhancements Ø confidentiality l protection from disclosure Ø authentication l of sender of message Ø message integrity l protection from modification Ø non-repudiation of origin l protection from denial by sender May 2012 PGP - S/MIME 4

Pretty Good Privacy (PGP) Ø widely used de facto secure email Ø developed by Phil Zimmermann Ø selected best available crypto algs to use Ø integrated into a single program Ø on Unix, PC, Macintosh and other systems Ø originally free, now also have commercial versions available May 2012 PGP - S/MIME 5

PGP Operation Authentication 1. sender creates message 2. make SHA-1 160-bit hash of message 3. attached RSA signed hash to message 4. receiver decrypts & recovers hash code 5. receiver verifies received message hash May 2012 PGP - S/MIME 6

PGP Operation Confidentiality 1. sender forms 128-bit random session key 2. encrypts message with session key 3. attaches session key encrypted with RSA 4. receiver decrypts & recovers session key 5. session key is used to decrypt message May 2012 PGP - S/MIME 7

PGP Operation Confidentiality & Authentication Ø can use both services on same message l create signature & attach to message l encrypt both message & signature l attach RSA/ElGamal encrypted session key May 2012 PGP - S/MIME 8

PGP Operation Compression Ø by default PGP compresses message after signing but before encrypting l so can store uncompressed message & signature for later verification l because compression is non deterministic (result of compression depends upon user preferences) Ø uses ZIP compression algorithm May 2012 PGP - S/MIME 9

PGP Operation Email Compatibility Ø when using PGP will have binary data to send (encrypted message etc.) Ø however email was designed only for text Ø hence PGP must encode raw binary data into printable ASCII characters Ø uses radix-64 algorithm (aka "ASCII Armour") l l maps 3 bytes to 4 printable chars (it's the Base64 of MIME) also appends a 24-bit CRC Ø PGP also segments messages if too big May 2012 PGP - S/MIME 10

PGP Operation Summary May 2012 PGP - S/MIME 11

PGP Session Keys Ø need a session key for each message l of varying sizes: 56-bit DES, 128-bit CAST or IDEA, 168-bit Triple-DES Ø generated using ANSI X12.17 mode Ø uses random inputs taken from previous uses and from keystroke timing of user May 2012 PGP - S/MIME 12

PGP Public & Private Keys Ø since many public/private keys may be in use (by one user), need to identify which is actually used to encrypt session key in a message l l could send full public-key with every message but this is inefficient Ø rather use a key identifier (ID) based on key l l is least significant 64-bits of the key will very likely be unique Ø also use key ID in signatures May 2012 PGP - S/MIME 13

PGP Message Format May 2012 PGP - S/MIME 14

PGP Key Rings Ø each PGP user has a pair of keyrings: l public-key ring contains all the public-keys of other PGP users known to this user, indexed by key ID l private-key ring contains the public/private key pair(s) for this user, indexed by key ID & encrypted keyed from a hashed passphrase Ø security of private keys thus depends on the pass-phrase security May 2012 PGP - S/MIME 15

PGP Key Rings May 2012 PGP - S/MIME 16

PGP Message Generation May 2012 PGP - S/MIME 17

PGP Message Reception May 2012 PGP - S/MIME 18

PGP Key Management Ø rather than relying on certificate authorities Ø in PGP every user is own CA l can sign keys for users they know directly Ø forms a web of trust l l trust keys have signed can trust keys others have signed if have a chain of signatures to them Ø key ring includes trust indicators Ø users can also revoke their keys May 2012 PGP - S/MIME 19

web of trust (Zimmermann) As time goes on, you will accumulate keys from other people that you may want to designate as trusted introducers. Everyone else will each choose their own trusted introducers. And everyone will gradually accumulate and distribute with their key a collection of certifying signatures from other people, with the expectation that anyone receiving it will trust at least one or two of the signatures. This will cause the emergence of a decentralized faulttolerant web of confidence for all public keys. May 2012 PGP - S/MIME 20

PGP Trust Model Example May 2012 PGP - S/MIME 21

PGP today Ø OpenPGP is an Internet standard (RFC 4880, 2007) Ø many e-mail clients provide OpenPGPcompliant email security Ø best known implementations of OpenPGP l PGP by PGP Inc. l GNU Privacy Guard (GnuPG or GPG) by The Free Software Foundation. Open-source May 2012 PGP - S/MIME 22

EnigMail example Ø supported email clients l Mozilla Thunderbird l Mozilla SeaMonkey l Eudora 1.0 OSE l Postbox Ø GnuPG Software Ø EnigMail plugin (http://enigmail.mozdev.org) l language packs available May 2012 PGP - S/MIME 23

May 2012 PGP - S/MIME 24

S/MIME (Secure/Multipurpose Internet Mail Extensions) Ø security enhancement to MIME email l original Internet RFC822 email was text only l MIME provided support for varying content types and multi-part messages l with encoding of binary data to textual form l S/MIME added security enhancements Ø have S/MIME support in many mail agents l eg MS Outlook, Mozilla, Mac Mail etc May 2012 PGP - S/MIME 25

S/MIME Functions Ø enveloped data l encrypted content and associated keys Ø signed data l encoded message + signed digest Ø clear-signed data l cleartext message + encoded signed digest Ø signed & enveloped data l nesting of signed & encrypted entities May 2012 PGP - S/MIME 26

S/MIME Cryptographic Algorithms Ø digital signatures: DSS & RSA Ø hash functions: SHA-1 & MD5 Ø session key encryption: ElGamal & RSA Ø message encryption: AES, Triple-DES, RC2/40 and others Ø MAC: HMAC with SHA-1 Ø have process to decide which algs to use May 2012 PGP - S/MIME 27

S/MIME Messages Ø S/MIME secures a MIME entity with a signature, encryption, or both Ø forming a MIME wrapped PKCS object Ø have a range of content-types: l enveloped data l signed data l clear-signed data l registration request l certificate only message May 2012 PGP - S/MIME 28

S/MIME Certificate Processing Ø S/MIME uses X.509 v3 certificates Ø managed using a hybrid of a strict X.509 CA hierarchy & PGP s web of trust Ø each client has a list of trusted CA s certs Ø and own public/private key pairs & certs Ø certificates must be signed by trusted CA s May 2012 PGP - S/MIME 29

Certificate Authorities Ø have several well-known CA s Ø Verisign one of most widely used Ø Verisign issues several types of Digital IDs Ø increasing levels of checks & hence trust Class Identity Checks Usage 1 name/email check web browsing/email 2 + enroll/addr check email, subs, s/w validate 3 + ID documents e-banking/service access May 2012 PGP - S/MIME 30

S/MIME Enhanced Security Services Ø 3 proposed enhanced security services: l signed receipts l security labels l secure mailing lists May 2012 PGP - S/MIME 31