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* *Northeastern University


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 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

How frequently are certificates revoked?

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

CRLs, OCSP , and OCSP Stapling

Website Browser

Certificate

Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate Certificate

9

slide-27
SLIDE 27

CRLs, OCSP , and OCSP Stapling

Website Browser

Certificate

Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate Certificate

9

slide-28
SLIDE 28

CRLs, OCSP , and OCSP Stapling

Website Browser

Certificate

Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate Certificate

9

slide-29
SLIDE 29

CRLs, OCSP , and OCSP Stapling

Website Browser

Certificate

Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate Certificate

9

slide-30
SLIDE 30

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)

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)

76MB Apple CRL

10

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) Raw Weighted

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

76MB Apple CRL

10

slide-33
SLIDE 33

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

11

slide-34
SLIDE 34

CRLs, OCSP , and OCSP Stapling

12

Website Browser Certificate Authority

Certificate

slide-35
SLIDE 35

CRLs, OCSP , and OCSP Stapling

12

Website Browser Certificate Authority

Certificate Certificate

slide-36
SLIDE 36

CRLs, OCSP , and OCSP Stapling

12

Website Browser Certificate Authority

Certificate Certificate Certificate

slide-37
SLIDE 37

CRLs, OCSP , and OCSP Stapling

12

Website Browser Certificate Authority

Certificate Certificate Certificate Certific

Certific /

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

slide-38
SLIDE 38

CRLs, OCSP , and OCSP Stapling

12

Website Browser Certificate Authority

Certificate Certificate Certific

Certific /

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

slide-39
SLIDE 39

OCSP prevalence

13

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

slide-40
SLIDE 40

OCSP prevalence

13

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

14

Website Browser Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

slide-42
SLIDE 42

CRLs, OCSP , and OCSP Stapling

14

Website Browser Certificate Authority

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

Certificate

slide-43
SLIDE 43

CRLs, OCSP , and OCSP Stapling

14

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

14

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

15

Website admins rarely enable OCSP Stapling

slide-46
SLIDE 46

Outline

16

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

Outline

16

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-48
SLIDE 48

What’s the concern of browsers?

17

Website Browser

Certificate

Certificate Authority

slide-49
SLIDE 49

What’s the concern of browsers?

17

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-50
SLIDE 50

Test harness

Goal: Test browser behavior under different combinations of:

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

18

Normal Extended Validation

Implement 244 tests using fake root certificate + Javascript

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

Do browsers check revocations?

Supports CRLs Desktop: Mobile: Supports OCSP Desktop: Mobile: Supports OCSP Stapling Desktop: Mobile:

19

slide-52
SLIDE 52

Do browsers check revocations?

Supports CRLs Desktop: Mobile: Supports OCSP Desktop: Mobile: Supports OCSP Stapling Desktop: Mobile:

19

✗ ✗ ✗ ✗ ~

EV

  • nly
slide-53
SLIDE 53

Do browsers check revocations?

Supports CRLs Desktop: Mobile: Supports OCSP Desktop: Mobile: Supports OCSP Stapling Desktop: Mobile:

19

✗ ✗ ✗ ✗ ~

EV

  • nly

✗ ✗ ✗ ~

EV

  • nly
slide-54
SLIDE 54

Do browsers check revocations?

Supports CRLs Desktop: Mobile: Supports OCSP Desktop: Mobile: Supports OCSP Stapling Desktop: Mobile:

19

✗ ✗ ✗ ✗ ~

EV

  • nly

✗ ✗ ✗ ~

EV

  • nly

✗ ✗ ✗ ✗

slide-55
SLIDE 55

20

Check intermediate Revocation unavailable Desktop:

Do browsers check intermediates?

Desktop: Mobile: Mobile:

slide-56
SLIDE 56

20

Check intermediate Revocation unavailable Desktop:

Do browsers check intermediates?

Desktop: Mobile: Mobile:

✗ ✗ ✗

EV EV OCSP

slide-57
SLIDE 57

20

Check intermediate Revocation unavailable Desktop:

Do browsers check intermediates?

Desktop: Mobile: Mobile:

✗ ✗ ✗

EV EV OCSP

✗ ✗ ✗ ✗

EV CRL CRL

slide-58
SLIDE 58

20

Check intermediate Revocation unavailable Desktop:

Do browsers check intermediates?

Desktop: Mobile: Mobile:

✗ ✗ ✗

EV EV OCSP

✗ ✗ ✗ ✗

EV CRL CRL

No browser correctly checks all revocations

slide-59
SLIDE 59

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

21

slide-60
SLIDE 60

CRLSet

22

Chrome pushes out list of select revocations, called CRLSet Chromium developers only state: The full list [of covered CRLs] isn’t public CRLs on the list are fetched infrequently Entries in the CRL are filtered by reason code. Size limited to 250 KB

1 2 3 4

slide-61
SLIDE 61

CRLSet coverage

23

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

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 CDF Fraction of CRLs’ Entries in CRLSet CRLSet Reason Codes

slide-62
SLIDE 62

CRLSet coverage

23

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

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 CDF Fraction of CRLs’ Entries in CRLSet CRLSet Reason Codes

slide-63
SLIDE 63

More results in the paper

  • Analysis of EV certificate revocation

  • Revoked but alive certificates
  • Improve CRLSets with Bloom Filters



 and more …

24

slide-64
SLIDE 64

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

25

slide-65
SLIDE 65

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

25

Questions?

securepki.org