CSE 484 / CSE M 584 Computer Security: SSL/TLS TA: - - PowerPoint PPT Presentation

cse 484 cse m 584 computer security ssl tls
SMART_READER_LITE
LIVE PREVIEW

CSE 484 / CSE M 584 Computer Security: SSL/TLS TA: - - PowerPoint PPT Presentation

CSE 484 / CSE M 584 Computer Security: SSL/TLS TA: Adrian Sham adrsham@cs Original slides from Franzi LogisDcs Lab 1 Final due TOMORROW (5pm).


slide-1
SLIDE 1

CSE ¡484 ¡/ ¡CSE ¡M ¡584 ¡

Computer ¡Security: ¡ SSL/TLS ¡

TA: ¡Adrian ¡Sham ¡ adrsham@cs ¡ Original ¡slides ¡from ¡Franzi ¡

slide-2
SLIDE 2

LogisDcs ¡

  • Lab ¡1 ¡Final ¡due ¡TOMORROW ¡(5pm). ¡
  • Office ¡hours: ¡Friday, ¡9:30-­‑10:30am, ¡CSE ¡218 ¡
  • For ¡quickest ¡response ¡from ¡TAs ¡before ¡5pm ¡

tomorrow, ¡email ¡all ¡of ¡us: ¡ ¡ ¡ cse484-­‑tas@cs.washington.edu ¡

  • Homework ¡#2 ¡out ¡now ¡(crypto), ¡due ¡on ¡

Friday, ¡5/8, ¡5pm. ¡

slide-3
SLIDE 3

SSL/TLS ¡in ¡an ¡encrypted ¡nutshell ¡

  • Used ¡to ¡provide ¡security ¡over ¡a ¡insecure ¡

network ¡

  • SSL ¡originally ¡developed ¡by ¡Netscape, ¡SSL ¡3.0 ¡

released ¡1996 ¡

  • TLS ¡1.2 ¡is ¡the ¡latest ¡standard ¡defined ¡2008 ¡
slide-4
SLIDE 4

Snapshot ¡from ¡chrome ¡

slide-5
SLIDE 5

Security ¡in ¡SSL/TLS ¡

  • Building ¡a ¡secure ¡system ¡is ¡complex, ¡things ¡can ¡

go ¡wrong. ¡

  • Computers ¡get ¡more ¡powerful, ¡a_ackers ¡get ¡
  • smarter. ¡
  • What ¡are ¡the ¡some ¡of ¡the ¡a_ack ¡vectors? ¡

– User ¡ – Browser ¡ – Crypto ¡library ¡ – Server ¡ – CerDficate ¡Authority ¡

slide-6
SLIDE 6

User ¡

  • Browser ¡warnings ¡oaen ¡ignored ¡
slide-7
SLIDE 7

User ¡

  • Outdated ¡browsers ¡

Wikipedia ¡ 2015 ¡March ¡ % ¡Usage ¡ Chrome ¡ 63.7% ¡ IE ¡ 7.7% ¡ Firefox ¡ 22.1% ¡ Safari ¡ 3.9% ¡ Opera ¡ 1.5% ¡ h_p://www.w3schools.com/browsers/browsers_stats.asp ¡

slide-8
SLIDE 8

SSL ¡User ¡Interface ¡A_acks ¡

[Figures ¡thanks ¡to ¡Elie ¡Bursztein] ¡

slide-9
SLIDE 9

SSL ¡User ¡Interface ¡A_acks ¡

[Figures ¡thanks ¡to ¡Elie ¡Bursztein] ¡

slide-10
SLIDE 10

SSL ¡User ¡Interface ¡A_acks ¡

[Figures ¡thanks ¡to ¡Elie ¡Bursztein] ¡

slide-11
SLIDE 11

SSL ¡Strip ¡A_ack ¡

[Figures ¡thanks ¡to ¡Elie ¡Bursztein. ¡See ¡also ¡h_p://www.thoughtcrime.org/soaware/sslstrip/.] ¡

slide-12
SLIDE 12

SSL ¡Strip ¡A_ack ¡

[Figures ¡thanks ¡to ¡Elie ¡Bursztein. ¡See ¡also ¡h_p://www.thoughtcrime.org/soaware/sslstrip/.] ¡

slide-13
SLIDE 13

SSL ¡Strip ¡A_ack ¡

  • MiDgated ¡by ¡HTTP ¡Strict ¡Transport ¡Security ¡

(HSTS), ¡which ¡tells ¡the ¡web ¡browser ¡to ¡use ¡

  • nly ¡h_ps ¡
  • If ¡user ¡visiDng ¡site ¡the ¡first ¡Dme, ¡this ¡may ¡be ¡

intercepted ¡

  • Modern ¡browsers ¡“pre-­‑loaded” ¡with ¡list ¡of ¡

HSTS ¡sites ¡

slide-14
SLIDE 14

CerDficate ¡Authority ¡

  • A ¡group ¡of ¡companies ¡responsible ¡for ¡

cerDfying ¡public ¡keys ¡

  • Browsers ¡pre-­‑configured ¡with ¡100+ ¡trusted ¡

CAs ¡

  • If ¡public ¡key ¡is ¡signed ¡by ¡one ¡of ¡these ¡CAs ¡and ¡

common ¡name ¡matches ¡domain ¡name, ¡ cerDficate ¡is ¡accepted ¡

slide-15
SLIDE 15

Can ¡you ¡trust ¡the ¡cerDficates? ¡

  • CAs ¡can ¡also ¡be ¡hacked, ¡and ¡issue ¡rogue ¡

cerDficates ¡

  • Breaches ¡allowed ¡fraudulent ¡issue ¡of ¡

cerDficates ¡for ¡domains ¡like ¡mail.google.com ¡

  • Secret ¡keys ¡used ¡to ¡idenDfy ¡service ¡providers ¡

can ¡be ¡stolen, ¡such ¡as ¡due ¡to ¡Heartbleed ¡

  • CerDficate ¡RevocaDon ¡Lists ¡can ¡help ¡
slide-16
SLIDE 16

CerDficate ¡Transparency ¡

  • Developed ¡by ¡Ben ¡Laurie ¡and ¡Adam ¡Langley ¡in ¡

response ¡to ¡DigiNotar ¡intrusion ¡

  • Allows ¡for ¡the ¡monitoring ¡of ¡SSL ¡cerDficate ¡

issued ¡by ¡CAs ¡either ¡by ¡mistake ¡or ¡maliciously ¡ acquired ¡

  • Allows ¡owner ¡of ¡domain ¡to ¡monitor ¡

cerDficates ¡being ¡issued ¡

slide-17
SLIDE 17

Soaware ¡

  • Server ¡side ¡soaware ¡may ¡be ¡difficult ¡to ¡

configure ¡

  • Cryptographic ¡libraries ¡may ¡have ¡bugs ¡
slide-18
SLIDE 18

Debian ¡OpenSSL ¡PRNG ¡bug ¡

  • Following ¡lines ¡removed ¡

MD_Update(&m, ¡buf, ¡j); ¡/*Purify ¡complains*/ ¡

  • Due ¡to ¡warnings ¡from ¡Valgrind ¡and ¡Purify ¡

about ¡uniniDalized ¡data ¡

  • Result: ¡the ¡only ¡random ¡value ¡used ¡is ¡the ¡

process ¡id, ¡with ¡a ¡max ¡of ¡32,768 ¡

slide-19
SLIDE 19

Forward ¡secrecy ¡

  • What ¡happens ¡if ¡your ¡private ¡key ¡is ¡

compromised? ¡

  • Use ¡algorithms ¡with ¡forward ¡secrecy ¡
  • Prevents ¡a_acker ¡from ¡using ¡stolen ¡private ¡

key ¡to ¡decrypt ¡previous ¡communicaDons ¡

  • Example: ¡RSA ¡with ¡DHE ¡
slide-20
SLIDE 20

Some ¡tools ¡

  • SSL ¡Server ¡Test ¡: ¡www.ssllabs.com/ssltest/ ¡
  • Performs ¡an ¡analysis ¡of ¡the ¡configuraDon ¡of ¡

SSL ¡web ¡server ¡

  • Tells ¡you ¡which ¡browser ¡is ¡supported ¡with ¡

your ¡crypto ¡choices ¡

  • SSLMate: ¡sslmate.com ¡
  • Automate ¡cerDficate ¡renewal/issuance ¡from ¡

command ¡line ¡

slide-21
SLIDE 21

h_p://xkcd.com/424/ ¡