An End-to-End Measurement of Certificate Revocation in the Webs PKI - - PowerPoint PPT Presentation

an end to end measurement of certificate revocation in
SMART_READER_LITE
LIVE PREVIEW

An End-to-End Measurement of Certificate Revocation in the Webs PKI - - PowerPoint PPT Presentation

An End-to-End Measurement of Certificate Revocation in the Webs PKI Yabing Liu*, Will Tome*, Liang Zhang*, David Choffnes*, Dave Levin , Bruce Maggs , Alan Mislove*, Aaron Schulman , Christo Wilson* University of Maryland


slide-1
SLIDE 1

An End-to-End Measurement of Certificate Revocation in the Web’s PKI

Yabing Liu*, Will Tome*, Liang Zhang*, David Choffnes*, Dave Levin†, Bruce Maggs‡, Alan Mislove*, Aaron Schulman§, Christo Wilson*

*Northeastern University

†University of Maryland

§Stanford University

‡Duke University and Akamai Technologies

slide-2
SLIDE 2

Public Key Infrastructures (PKIs)

Website Browser

How can users truly know with whom they are communicating?

2

slide-3
SLIDE 3

Public Key Infrastructures (PKIs)

Website Browser

How can users truly know with whom they are communicating?

2

slide-4
SLIDE 4

Public Key Infrastructures (PKIs)

Website Browser

How can users truly know with whom they are communicating?

2

slide-5
SLIDE 5

Public Key Infrastructures (PKIs)

Website Browser Certificate Authority

How can users truly know with whom they are communicating?

2

slide-6
SLIDE 6

Public Key Infrastructures (PKIs)

Website Browser Certificate Authority

Vetting

How can users truly know with whom they are communicating?

2

slide-7
SLIDE 7

Public Key Infrastructures (PKIs)

Website Browser

Certificate


 is indeed BoA The owner of Certificate Authority

How can users truly know with whom they are communicating?

2

slide-8
SLIDE 8

Public Key Infrastructures (PKIs)

Website Browser

Certificate

Certificate Authority

Certificate

How can users truly know with whom they are communicating?

2

slide-9
SLIDE 9

Certificate revocation

Browser Certificate Authority Website

Certificate

What happens when a certificate is no longer valid?

3

slide-10
SLIDE 10

Certificate revocation

Browser Certificate Authority Website

Certificate

What happens when a certificate is no longer valid?

Attacker

Certificate

3

slide-11
SLIDE 11

Certificate revocation

Browser Certificate Authority

What happens when a certificate is no longer valid?

Attacker

Certificate

3

slide-12
SLIDE 12

Certificate revocation

Browser Certificate Authority

What happens when a certificate is no longer valid?

Attacker

Certificate Certificate

3

slide-13
SLIDE 13

Certificate revocation

Browser Certificate Authority

What happens when a certificate is no longer valid?

Certificate

Attacker

Certificate Certificate

Please
 revoke

Certificate
 Revocation

3

slide-14
SLIDE 14

Certificate revocation

Browser Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

What happens when a certificate is no longer valid?

Attacker

Certificate Certificate

Please
 revoke

3

slide-15
SLIDE 15

Certificate revocation

Browser Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

What happens when a certificate is no longer valid?

Attacker

Certificate Certificate

Please
 revoke

Periodically pull / query

(CRL) (OCSP)

3

slide-16
SLIDE 16

Certificate revocation

Browser

Certificate

Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

What happens when a certificate is no longer valid?

Attacker

Certificate Certificate

Please
 revoke

Periodically pull / query

(CRL) (OCSP)

3

slide-17
SLIDE 17

Certificate revocation responsibilities

4

This talk: 
 Do these entities do what they need to do? Administrators must revoke certificates
 when keys are compromised

Certificate

Certificate authorities must publish revocations
 as quickly as possible Browsers must check revocation status


  • n each connection
slide-18
SLIDE 18

Outline

5

Website admin behavior e.g., what is the frequency of revocation?

Certificate

Certificate authorities behavior e.g., how do CAs serve revocations? Client behavior e.g., do browsers check revocations?

slide-19
SLIDE 19

Dataset

Rapid7 IPv4 scans

38M certs (~1/wk for 18mos)

6

slide-20
SLIDE 20

Dataset

Rapid7 IPv4 scans

38M certs (~1/wk for 18mos)

Non-CA

38M certs

CA

1,946 certs

classify

6

slide-21
SLIDE 21

validate

Leaf Set

5M valid certs

Dataset

Rapid7 IPv4 scans

38M certs (~1/wk for 18mos)

Non-CA

38M certs

CA

1,946 certs

classify

6

slide-22
SLIDE 22

validate

Leaf Set

5M valid certs

Dataset

Rapid7 IPv4 scans

38M certs (~1/wk for 18mos)

Non-CA

38M certs

CA

1,946 certs

classify

Download revocation information daily

6

slide-23
SLIDE 23

How frequently are certificates revoked?

7

0.0 2.0 4.0 6.0 8.0 10.0 12.0 01/14 03/14 05/14 07/14 09/14 11/14 01/15 03/15 Percentage of Fresh Certs that are Revoked Date

slide-24
SLIDE 24

How frequently are certificates revoked?

7

Significant fraction of certificates revoked
 1% in steady state; more than 8% after Heartbleed

0.0 2.0 4.0 6.0 8.0 10.0 12.0 01/14 03/14 05/14 07/14 09/14 11/14 01/15 03/15 Percentage of Fresh Certs that are Revoked Date

slide-25
SLIDE 25

Are there revoked certificates being used?

8

Over 0.5% advertised certificates are revoked
 Website admins failed to update their servers

0.000 0.001 0.002 0.003 0.004 0.005 0.006 01/14 03/14 05/14 07/14 09/14 11/14 01/15 03/15 Fraction of Alive Certs that are Revoked Date

slide-26
SLIDE 26

Outline

9

Website admin behavior e.g., revocation is common ~8%

Certificate

Certificate authorities behavior e.g., how do CAs serve revocations? Client behavior e.g., do browsers check revocations?

slide-27
SLIDE 27 Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

CRLs, OCSP , and OCSP Stapling

Website Browser

Certificate

Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate Certificate

10

slide-28
SLIDE 28 Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

CRLs, OCSP , and OCSP Stapling

Website Browser

Certificate

Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate Certificate

10

slide-29
SLIDE 29 Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

CRLs, OCSP , and OCSP Stapling

Website Browser

Certificate

Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate Certificate

10

slide-30
SLIDE 30 Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

CRLs, OCSP , and OCSP Stapling

Website Browser

Certificate

Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate Certificate

10

slide-31
SLIDE 31

Cost of obtaining CRLs

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0.1 1 10 100 1000 10000 CDF CRL Size (KB)

11

slide-32
SLIDE 32

Cost of obtaining CRLs

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0.1 1 10 100 1000 10000 CDF CRL Size (KB)

76MB Apple CRL

11

slide-33
SLIDE 33

Cost of obtaining CRLs

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0.1 1 10 100 1000 10000 CDF CRL Size (KB) Raw Weighted

Most CRLs small, but large CRLs downloaded more often
 Result: 50% of certs have CRLs larger than 45KB

76MB Apple CRL

11

slide-34
SLIDE 34

CRLs from different CAs

CA Unique CRLs Certificates

  • Avg. CRL

size (KB) Total Revoked

GoDaddy

322 1,050,014 277,500 1,184.0

RapidSSL

5 626,774 2,153 34.5

Comodo

30 447,506 7,169 517.6

PositiveSSL

3 415,075 8,177 441.3

Verisign

37 311,788 15,438 205.2

CAs use only a small number of CRLs

12

slide-35
SLIDE 35

CRLs, OCSP , and OCSP Stapling

13

Website Browser Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

slide-36
SLIDE 36

CRLs, OCSP , and OCSP Stapling

13

Website Browser Certificate Authority

Certificate Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

slide-37
SLIDE 37

CRLs, OCSP , and OCSP Stapling

13

Website Browser Certificate Authority

Certificate Certificate Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

slide-38
SLIDE 38

CRLs, OCSP , and OCSP Stapling

13

Website Browser Certificate Authority

Certificate Certificate Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

slide-39
SLIDE 39

CRLs, OCSP , and OCSP Stapling

13

Website Browser Certificate Authority

Certificate Certificate Certific

Certific /

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

slide-40
SLIDE 40

OCSP prevalence

14

0.65 0.7 0.75 0.8 0.85 0.9 0.95 1 01/11 07/11 01/12 07/12 01/13 07/13 01/14 07/14 01/15 Fraction of New Certificates with Revocation Information Date Certificate Issued CRL OCSP

RapidSSL begins supporting OCSP

OCSP now universally supported

slide-41
SLIDE 41

CRLs, OCSP , and OCSP Stapling

15

Website Browser Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

slide-42
SLIDE 42

CRLs, OCSP , and OCSP Stapling

15

Website Browser Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

slide-43
SLIDE 43

CRLs, OCSP , and OCSP Stapling

15

Website Browser Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate Certific

slide-44
SLIDE 44

CRLs, OCSP , and OCSP Stapling

15

Website Browser Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate Certific

slide-45
SLIDE 45

Limited OCSP Stapling Support

  • IPv4 TLS Handshake scans by University of Michigan on 3/28/15
  • Every IPv4 server on port 443
  • Look for OCSP stapling support
  • 2.2M valid certificates
  • 5.19% served by at least one server supports OCSP Stapling
  • 3.09% served by servers that all support OCSP Stapling

16

Website admins rarely enable OCSP Stapling

slide-46
SLIDE 46

Outline

17

Website admin behavior e.g., revocation is common ~8%

Certificate

Certificate authorities behavior e.g., high cost in distributing revocation info Client behavior e.g., do browsers check revocations?

slide-47
SLIDE 47

Security vs speed in browsers

18

Website Browser

Certificate

Certificate Authority

slide-48
SLIDE 48

Security vs speed in browsers

18

Website Browser

Certificate

Certificate Authority

On the web, latency is king 
 Browsers face tension between security and speed Must contact CA to ensure cert not revoked

slide-49
SLIDE 49

Test harness

Goal: Test browser behavior under different combinations of:

  • Revocation protocols
  • Availability of revocation information
  • Chain lengths
  • EV/non-EV certificates

19

Normal Extended Validation

Implement 244 tests using fake root certificate + Javascript

  • Unique DNS name, cert chain, CRL/OCSP responder, …
slide-50
SLIDE 50

Do browsers check revocation info?

Will cover few highlights…

20

slide-51
SLIDE 51

Certificates with CRLs

Chrome: Only checks CRLs for EV certificates Firefox: Never checks CRLs Most browsers accept certificate if CRL server unavailable IE performs the most checks (!)

21

slide-52
SLIDE 52

Certificates with OCSP

Chrome: Only checks OCSP for EV certificates Firefox: Only checks intermediates for EV certificates Most browsers accept certificate if OCSP server unavailable IE again performs the most checks

22

slide-53
SLIDE 53

Web servers with OCSP Stapling

All browsers support OCSP Stapling… except Safari Chrome bug: accept any Staple on OS X, including revoked

23

slide-54
SLIDE 54

What about mobile browsers?

Mobile browsers never check Android devices request Staples …and promptly ignore them

24

slide-55
SLIDE 55

What about mobile browsers?

Mobile browsers never check Android devices request Staples …and promptly ignore them

24

No desktop or mobile browser correctly checks revocations

slide-56
SLIDE 56

Takeaways

Revocations common

~1% in steady state; more than 8% after Heartbleed

Obtaining revocation information can be expensive

CRLs large, OCSP Stapling rarely supported

Many browsers don’t bother to check revocation

Mobile browsers completely lack of revocation checking

25

slide-57
SLIDE 57

CRLSet

26

Chrome pushes out curated list of revocations, called CRLSet

Limits: filtered with reason code, size limited to 250 KB, etc.

slide-58
SLIDE 58

CRLSet

26

Chrome pushes out curated list of revocations, called CRLSet

Limits: filtered with reason code, size limited to 250 KB, etc.

Only 0.35% of all revocations appear in CRLSet Only 10.5% CRLs have any revocations covered

slide-59
SLIDE 59

CRLSet

26

Chrome pushes out curated list of revocations, called CRLSet

Limits: filtered with reason code, size limited to 250 KB, etc.

Only 0.35% of all revocations appear in CRLSet Only 10.5% CRLs have any revocations covered If we focus on revocations from popular sites (Alexa): 3.9% top 1M, 10.4% top 1K

slide-60
SLIDE 60

More results in the paper

  • Analysis of EV certificate revocation

  • Revoked but alive certificates
  • Speed of CRLSet updates

  • Improve CRLSets with Bloom Filters



 and more …

27

slide-61
SLIDE 61

Summary

  • An end-to-end measurement of certificate revocation in the web
  • Covers all parties: website administrators, CAs and browsers
  • Key findings
  • Extensive inaction with respect to certificate revocation
  • Browsers fails to check certificate revocation
  • Mobile browsers are lack of revocation checking
  • We can improve
  • CAs can maintain more small CRLs
  • Website admins can deploy OCSP stapling

28

slide-62
SLIDE 62

Summary

  • An end-to-end measurement of certificate revocation in the web
  • Covers all parties: website administrators, CAs and browsers
  • Key findings
  • Extensive inaction with respect to certificate revocation
  • Browsers fails to check certificate revocation
  • Mobile browsers are lack of revocation checking
  • We can improve
  • CAs can maintain more small CRLs
  • Website admins can deploy OCSP stapling

28

Questions?

securepki.org

slide-63
SLIDE 63

Backup Slides

29

slide-64
SLIDE 64

CRLSet coverage

30

Only 0.35% of all revocations appear in CRLSet Only 295 (10.5%) CRLs have any revocations covered

1 10 100 1000 10000 100000 Oct Nov Dec Jan Feb Mar Apr Number of Entires Added Date (2014-2015) CRL Entries CRLSet Entries

slide-65
SLIDE 65

CRLSet coverage

30

Only 0.35% of all revocations appear in CRLSet Only 295 (10.5%) CRLs have any revocations covered CRLSet only has a low coverage

1 10 100 1000 10000 100000 Oct Nov Dec Jan Feb Mar Apr Number of Entires Added Date (2014-2015) CRL Entries CRLSet Entries

slide-66
SLIDE 66

31

slide-67
SLIDE 67

31

0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 0.2 0.4 0.6 0.8 1 CRLs Fraction of Revoked Certs on CRLSet CRLSet Reason Codes All Revocations