73
PKI & Personal Digital Certificates, The Key to Securing Sensitive Electronic Communications December 2, 2010 Nicholas Davis

Pki & personal digital certificates, the key to securing sensitive electronic communications

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Pki & personal digital certificates, the key to securing sensitive electronic communications

PKI & Personal Digital Certificates, The Key to Securing Sensitive

Electronic Communications

December 2, 2010Nicholas Davis

Page 2: Pki & personal digital certificates, the key to securing sensitive electronic communications

Agenda

• Introduction

• We will eat

• We will watch movies

• We will find an error in the textbook

• We will learn

• We will chat

• We will have fun

Page 3: Pki & personal digital certificates, the key to securing sensitive electronic communications

Twix

• Twix is a candy bar made by Mars, Inc., consisting of a biscuit finger, topped with caramel and coated in milk chocolate. Being somewhat smaller in width than other confectionery bars, Twix bars are typically packaged in pairs. Twix was first produced in the UK in 1967, and introduced in the United States in 1979

Page 4: Pki & personal digital certificates, the key to securing sensitive electronic communications

OverviewWhy is electronic privacy such a hottopic these days?What is a digital certificate?What is PKI?Why are these technologies important?Trusted Root AuthoritiesUsing digital certificates for email encryptionKey Escrow, the double edged swordIntegrating digital certificates into email forSecurityHow is PKI related to SSL?Using certificates for code signing of softwareReal world issues with PKIDiscussion

Page 5: Pki & personal digital certificates, the key to securing sensitive electronic communications

Whay is Electronic Privacy Such a Hot Topic Today?

• Evolution of the Internet, commerce, banking, healthcare

• Dependence on Email• Government regulations, SOX,

HIPAA, GLB, PCI, FERPA• Public Image• Business warehousing• Industrial Espionage• The government

Page 6: Pki & personal digital certificates, the key to securing sensitive electronic communications

The Topic is More Interesting When It Affects You!

Page 7: Pki & personal digital certificates, the key to securing sensitive electronic communications

Intercepting Your Electronic Communications

Page 8: Pki & personal digital certificates, the key to securing sensitive electronic communications

Discussion Topic One• Do you think the threat of Email

eavesdropping is real?• What about the government’s argument

about Email being like a “postcard?”• Should Target be allowed to look at

Walmart emails on a public network?• Are you angry now, or just afraid?• Who has the responsibility in this

situation?

Page 9: Pki & personal digital certificates, the key to securing sensitive electronic communications

What is a Digital Certificate?

Page 10: Pki & personal digital certificates, the key to securing sensitive electronic communications

Digital Certificates Continued

Digital CertificateElectronic Passport

Good for authentication

Good non-repudiation

Proof of authorship

Proof of non-altered content

Encryption!

Better than username - password

Page 11: Pki & personal digital certificates, the key to securing sensitive electronic communications

What is in a Certificate?

Page 12: Pki & personal digital certificates, the key to securing sensitive electronic communications

Public and Private Keys

The digital certificate has two parts, aPUBLIC key and a PRIVATE keyThe Public Key is distributed toeveryoneThe Private Key is held very closelyAnd NEVER sharedPublic Key is used for encryption andverification of a digital signaturePrivate Key is used for Digital signing anddecryption

Page 13: Pki & personal digital certificates, the key to securing sensitive electronic communications

Public Key Cryptography

Page 14: Pki & personal digital certificates, the key to securing sensitive electronic communications

Getting Someone’s Public Key

The Public Key must be shared to beUsefulIt can be included as part of yourEmail signatureIt can be looked up in an LDAPDirectoryCan you think of the advantages anddisadvantages of each method?

Page 15: Pki & personal digital certificates, the key to securing sensitive electronic communications

Who Could This Public Key Possibly Belong To?

Page 16: Pki & personal digital certificates, the key to securing sensitive electronic communications

What is PKI?

• PKI is an acronym for Public Key Infrastructure

• It is the system which manages and controls the lifecycle of digital certificates

• The PKI has many features

Page 17: Pki & personal digital certificates, the key to securing sensitive electronic communications

What Is In a PKI?

• Credentialing of individuals

• Generating certificates

• Distributing certificates

• Keeping copies of certificates

• Reissuing certificates

• Revoking certificates

• Renews certificates

Page 18: Pki & personal digital certificates, the key to securing sensitive electronic communications

Credentialing

• Non technical, but the most important part of a PKI!

• A certificate is only as trustworthy as the underlying credentialing and management system

• Certificate Policies and Certificate Practices Statement

Page 19: Pki & personal digital certificates, the key to securing sensitive electronic communications

Certificate Generation and Storage

• How do you know who you are dealing with in the generation process?

• Where you keep the certificate is important

Page 20: Pki & personal digital certificates, the key to securing sensitive electronic communications

Distributing Certificates

• Can be done remotely – benefits and drawbacks

• Can be done face to face – benefits and drawbacks

Page 21: Pki & personal digital certificates, the key to securing sensitive electronic communications

Keeping Copies – Key Escrow• Benefit –

Available in case of emergency

• Drawback – Can be stolen

• Compromise is the best!

• Use Audit Trails, separation of duties and good accounting controls for key escrow

Page 22: Pki & personal digital certificates, the key to securing sensitive electronic communications

Certificate Renewal

• Just like your passport, digital certificates expire

• This is for the safety of the organization and those who do business with it

• Short lifetime – more assurance of validity but a pain to renew

• Long lifetime – less assurance of validity, but easier to manage

• Can be renewed with same keypair or new keypair depending on escrow situation

Page 23: Pki & personal digital certificates, the key to securing sensitive electronic communications

Expiration

• A rare moment for me…I get to point out and error in the textbook! (Page 418)

• A message signed with an expired private key will show as invalid to the recipient

• However, a private key can ALWAYS be used to decrypt a message, even an expired private key.

• Nobody is perfect, forgive the textbook author!

Page 24: Pki & personal digital certificates, the key to securing sensitive electronic communications

Revocation

• Just like Stefan Wahe’s dirving license, it can (and should be) be revoked prior to expiration

• CRL – Certificate Revocation List

• OCSP – Online Certificate Status Protocol

• Both are real time

• In practice, both are rarely used

Page 25: Pki & personal digital certificates, the key to securing sensitive electronic communications

Recovery• No escrow = no luck

• But with escrow it must be easy, right? !!NOT!!

• Proving identity

• Getting copy from escrow

• Secure delivery to recipient

• Complex, tempting to cut corners, but resist temptation!

• The book’s idea is even more complex!

Page 26: Pki & personal digital certificates, the key to securing sensitive electronic communications

Trusted Root Authorities

• A certificate issuer recognized by all computers around the globe

• Root certificates are stored in the computer’s central certificate store

• Requires a stringent audit and a lot of money!

Page 27: Pki & personal digital certificates, the key to securing sensitive electronic communications

It Is All About Trust

Page 28: Pki & personal digital certificates, the key to securing sensitive electronic communications

Using Certificates to Secure Email

• Best use for certificates, in my opinion

• Digital certificate provides proof that the email did indeed come from the purported sender

• Public key enables encryption and ensures that the message can only be read by the intended recipient

Page 29: Pki & personal digital certificates, the key to securing sensitive electronic communications

Secure Email is Called S/MIME

• S/MIME = Secure Multipurpose Mail Extensions

• S/MIME is the industry standard, not a point solution, unique to a specific vendor

Page 30: Pki & personal digital certificates, the key to securing sensitive electronic communications

Digital Signing of Email

• Proves that the email came from you

• Invalidates plausible denial• Proves through a checksum that the

contents of the email were not altered while in transit

• Provides a mechanism to distribute your public key

Page 31: Pki & personal digital certificates, the key to securing sensitive electronic communications

Digital Signatures Do Not Prove When a Message or Document Was Signed

You need a neutral third party time stamping service, similar to how hostages often have their pictures taken in front of a newspaper to prove they are still alive!

Page 32: Pki & personal digital certificates, the key to securing sensitive electronic communications

Send Me a Signed Email, Please, I Need Your Public Key

Page 33: Pki & personal digital certificates, the key to securing sensitive electronic communications

Using a Digital Signature for Email Signing

Provides proof that theemail came from thepurported sender…Isthis email really fromVice President Cheney? Provides proof that thecontents of the emailhave not been alteredfrom the originalform…Should wereally invade Mexico?

Page 34: Pki & personal digital certificates, the key to securing sensitive electronic communications

A Digital Signature Can Be Invalid For Many Reasons

Page 35: Pki & personal digital certificates, the key to securing sensitive electronic communications

Why Is Authenticating the Sender So Important?

Page 36: Pki & personal digital certificates, the key to securing sensitive electronic communications

What if This Happens at Madison College?

Could cause harm in

a critical situation

Case Scenario

Multiple hoax emails sent with Chancellor’s name and email.

When real crisis arrives, people might not believe the warning.

It is all about trust!

Page 37: Pki & personal digital certificates, the key to securing sensitive electronic communications

Digital Signing Summary

• Provides proof of the author• Testifies to message integrity• Valuable for both individual or

mass email• Supported by most email

clients….Remember the 80-20 rule..Perfect in the enemy of good!

Page 38: Pki & personal digital certificates, the key to securing sensitive electronic communications

What Encryption Does

Encrypting data with a digital certificateSecures it end to end.• While in transit• Across the network• While sitting on email

servers• While in storage• On your desktop

computer• On your laptop computer• On a server

Page 39: Pki & personal digital certificates, the key to securing sensitive electronic communications

Encryption Protects the Data At Rest and In Transit

Physical theft from office

Physical theft from airport

Virtual theft over the network

Page 40: Pki & personal digital certificates, the key to securing sensitive electronic communications

Why Encryption is Important• Keeps private information private• HIPAA, FERPA, SOX, GLB compliance• Proprietary research• Human Resource issues• Legal Issues• PR Issues• Industrial Espionage• Over-intrusive Government• You never know who is

listening and watching!

Page 41: Pki & personal digital certificates, the key to securing sensitive electronic communications

What does it actually look like in practice? -Sending-

Page 42: Pki & personal digital certificates, the key to securing sensitive electronic communications

What does it actually look like in practice (unlocking my private key)

-receiving-

Page 43: Pki & personal digital certificates, the key to securing sensitive electronic communications

What does it actually look like in practice?-receiving- (decrypted)

Page 44: Pki & personal digital certificates, the key to securing sensitive electronic communications

Digitally signed and verified; Encrypted

Page 45: Pki & personal digital certificates, the key to securing sensitive electronic communications

What does it look like in practice?-receiving- (intercepted)

Page 46: Pki & personal digital certificates, the key to securing sensitive electronic communications

Intercepting the Data in Transit

• How might encrypted email be a security threat to your organization?

Page 47: Pki & personal digital certificates, the key to securing sensitive electronic communications

Digital Certificates For Machines Too

• SSL – Secure Socket Layer

• Protection of data in transit

• Protection of data at rest

• Where is the greater threat?

• Our certs protect both!

Page 48: Pki & personal digital certificates, the key to securing sensitive electronic communications

Benefits of Using Digital Certificates

Provide global assurance of your identity,both internally and externally to the organizationProvide assurance of message authenticityand data integrityKeeps private information private, end toend, while in transit and storageYou don’t need to have a digital certificateTo verify someone else’s digital signatureCan be used for individual or generic mailaccounts.

Page 49: Pki & personal digital certificates, the key to securing sensitive electronic communications

The Telephone Analogy

When the

telephone was

invented, it was

hard to sell.

It needed to

reach critical

mass and then

everyone wanted

one.

Page 50: Pki & personal digital certificates, the key to securing sensitive electronic communications

That All Sounds Great in Theory, But Do I Really Need It?• The world seems

to get along just fine without digital certificates…

• Oh, really?• Let’s talk about

some recent stories

Page 51: Pki & personal digital certificates, the key to securing sensitive electronic communications

We Have Internal Threats Too @ UW-Madison!

Page 52: Pki & personal digital certificates, the key to securing sensitive electronic communications

How Do Users Feel About the Technology?

• Ease of use

• Challenges

• Changes in how they do their daily work

• Benefits

• Drawbacks

Page 53: Pki & personal digital certificates, the key to securing sensitive electronic communications

It Really Is Up To You!

• Digital certificates / PKI is not hard to implement

• It provides end to end security of sensitive communications

• It is comprehensive, not a mix of point solutions

• You are the leaders of tomorrow, make your choices count by pushing for secure electronic communications!

Page 54: Pki & personal digital certificates, the key to securing sensitive electronic communications

54

Traditional Written Signatures

Page 55: Pki & personal digital certificates, the key to securing sensitive electronic communications

Signatures - Evidence• What is a signature?• A signature is not part of the substance of a

transaction, but rather, it represents an understanding, acceptance or indication of agreement

• Evidence: A signature authenticates a person by linking the signer with the signed document. When the signer makes a mark in a distinctive manner, the writing becomes attributable to the signer.

• Example: Credit card receipt

Page 56: Pki & personal digital certificates, the key to securing sensitive electronic communications

Signatures – The Three Part Process

• Ceremony, Approval and Commitment

Page 57: Pki & personal digital certificates, the key to securing sensitive electronic communications

Signatures – The Three Part Process

• Ceremony:

• The act of signing a document calls to the signer's attention the significance of the signer's act, and thereby helps prevent reckless or careless commitments

Page 58: Pki & personal digital certificates, the key to securing sensitive electronic communications

Signatures – The Three Part Process• Approval:

• In certain contexts defined by law or custom, a signature expresses the signer's approval or authorization of the writing, or the signer's intention that it have legal effect

Page 59: Pki & personal digital certificates, the key to securing sensitive electronic communications

Signatures – The Three Part Process• Commitment:

• A signature on a written document often imparts a sense of clarity and finality to the transaction

Page 60: Pki & personal digital certificates, the key to securing sensitive electronic communications

Signatures

• Traditional signatures put the cart before the horse!

• How can you be certain that a mortgage application with Nicholas Davis’s signature was indeed signed by Nicholas Davis?

• As trusting people, we generally accept a written signature at face value

Page 61: Pki & personal digital certificates, the key to securing sensitive electronic communications

Signatures

• Trust – When the going gets tough, scoundrels can emerge, to challenge the signature on a document

• Verification against other documents – Assumes that you have access to other signed documents and assumes that signatures on those documents were not forged

Page 62: Pki & personal digital certificates, the key to securing sensitive electronic communications

Signature

• Before a signature can be trusted, we must have proof that the signature does truly belong to the signer

• This is not as easy at it sounds…..

Page 63: Pki & personal digital certificates, the key to securing sensitive electronic communications

Signatures – Credentialing Process• Credentialing – An initial method of

attestation to the truth of certain stated facts, such as identity.

• Example: Government photo ID, address verification or proof of your SSN#, are all attestation methods used to credential people

Page 64: Pki & personal digital certificates, the key to securing sensitive electronic communications

Signatures – Authentication Process• Authentication – The process of verifying

that a person is in fact who they claim to be

• Example: Showing your driver’s license to the guard at the front desk authenticates me as genuinely being Nicholas Davis

Page 65: Pki & personal digital certificates, the key to securing sensitive electronic communications

Signatures – Authorization Process• Authorization -- The granting of power or

authority to someone, to do something specific

• Example: The information system authorizes Nicholas Davis the rights to view certain files

Page 66: Pki & personal digital certificates, the key to securing sensitive electronic communications

Signatures -- Trust

• In order for a signature to be relied upon and trusted for authorization of a transaction, the individual presenting the signature must first be credentialed and then authenticated, prior to allowing them to authorize a transaction

• A three step process: Credentialing, Authentication, Authorization

• In the world of written signatures, organizations rarely credential or authenticate people

Page 67: Pki & personal digital certificates, the key to securing sensitive electronic communications

Signatures -- Trust

• A written signature, provided without a solid credentialing and authentication process, can make an organization and its customers vulnerable to fraudulent transactions

• To further protect the organization and our customers from fraud, we look to information technology and the use of digital signatures…..

Page 68: Pki & personal digital certificates, the key to securing sensitive electronic communications

Digital Signatures vs. Written Signatures

• A digital signature provides proof of:• Verified identity of the signer• Document integrity (The document has not been

altered since it was digitally signed)• Non-repudiation (the signer can’t deny signing the

document, as it was done with their digital certificate, which only they had access to)

• A written signature provides proof of:• Unverified identity of the signer• Which type of signature provides a higher degree of

trust?

Page 69: Pki & personal digital certificates, the key to securing sensitive electronic communications

Digital Signatures – A Note About Identity Theft

• As the Internet and E-Commerce continue to evolve and grow, it is important to understand what this change in business environment means

• More and more traditional business processes are being converted to online applications

• It is harder to impersonate someone in person than it is over the Internet

Page 70: Pki & personal digital certificates, the key to securing sensitive electronic communications

Digital Signatures

• Written signatures may be acceptable in person, but are impractical and risky when used in an online transaction because, we no longer can associate a face with the signature

• If our processes are going digital, so must our signatures!

Page 71: Pki & personal digital certificates, the key to securing sensitive electronic communications

Digital Signatures vs Electronic Signatures• “Electronic signature” and “Digital signature”

are not synonymous. • An electronic signature can be a symbol,

sound, or process used to sign a document or transaction.

• A digital signature, on the other hand, is a secure electronic signature which uses encryption to authenticate the entity who signed the document, encapsulate document contents to protect from unauthorized alteration and provide proof of non-repudiation

Page 72: Pki & personal digital certificates, the key to securing sensitive electronic communications

Digital Signatures vs Electronic Signatures• A digital signature is a form of an

electronic signature, but an electronic signature is not necessarily a digital signature.

• Electronic signatures at best provide only questionable proof of identity, and do not provide proof of information/message integrity or non-repudiation