crypto in the world • normally appears between a browser and web server • used to secure TCP based apps • evolutionary brother of SSL • SHOULD be the protocol being used when you see > The Fuck’s TLS?
developed by Netscape • Feb 1995 - SSL 2.0 along with Netscape Navigator • 1995 - PCT specification from MS • 1996 - SSL 3.0 Total redesign by Netscape et al • Demand for standardisation - IETF • 1999 - TLS 1.0 (RFC 2246) - upgrade of SSL 3.0 • 2006 - TLS 1.1 • 2008 - TLS 1.2 - the good shit • 2011 - Latest TLS RFC 6176 • TLS 1.3 - DRAFT
Client Server Server Cert Client Server Server Hello Done Client Server Pre Master Secret Client Server Client Server Change Cipher Spec Finished Message
Client Server Server Cert Client Server Server Hello Done Client Server Pre Master Secret Client Server Client Server Change Cipher Spec Finished Message Client Server Change Cipher Spec
Client Server Server Cert Client Server Server Hello Done Client Server Pre Master Secret Client Server Client Server Change Cipher Spec Finished Message Client Server Change Cipher Spec Client Server Finished Message
output (digest) • d = F (i) • digest = function (input) • (block of nbits from arbitrary len output)digest should have the properties: • if d=F(i) and an attacker obtains d & f they cannot work out a new i (i1) so that d=F(i1) (Pre-image resistance) • given input i you cannot find another input i1 such that F(i) = F(i1) (Second Pre-Image resistance) (collision) - d = digest - F= function - i = input
100 minutes (1hr 40m) • Not as neat as M0 block (larger than 512-bits) • Theoretical collision attacks against SHA1 (HashClash) • Bruce Schneier (2012) recommended moving to SHA2/SHA3
• for TLS it’s fucked… • IMPLICIT trust of Root & Intermediate certs • No good revocation system • For 50K ANYONE can become a CA • If you have a root or intermediate cert you can spoof any websites cert.. • ROOT CAs hacked Comodo (2011), DigiNotar (2011), VeriSign (2010)
multiple DEFCON talks on the subject • SSLSniff & SSLStrip • Projects to decentralise CAs (tack.io, convergence.io) • TOR hidden services now have TLS Certs • Imperial Violet (blog) - Google crypto/ network engineer