turning active tls scanning to eleven

23

Upload: sba-research

Post on 21-Jan-2018

256 views

Category:

Internet


8 download

TRANSCRIPT

Page 1: Turning Active TLS Scanning to Eleven
Page 2: Turning Active TLS Scanning to Eleven

TURNING ACTIVE TLS SCANNING TO ELEVEN

Wilfried Mayer, Martin SchmiedeckerIFIP SEC 2017, Rome 29.5.2017

2016 - SBA Research gGmbH

Page 3: Turning Active TLS Scanning to Eleven

Turning Active TLS Scanning to Eleven

• Scans the full TLS Cipher Suite configuration• Evaluated new methods and approaches• Improvement: 3.2 times faster

6% connections

Page 4: Turning Active TLS Scanning to Eleven

TLS ScanningMeasure the state of the TLS ecosystem

• Fundament of today‘s web security• Need to know the current state

• Existing projects: scans.io / censys / SSLTest• Existing tools: zmap / masscan / SSLyze

• Efficiently scan the state?• What is the state?

2016 - SBA Research gGmbH

Page 5: Turning Active TLS Scanning to Eleven

TLS ScanningTools and Cipher Suites

• zmap / masscanEfficiently scan all hosts once

• SslyzeScan all cipher suites of hosts

• SSLTestScan one public host intense

2016 - SBA Research gGmbH

Page 6: Turning Active TLS Scanning to Eleven

TLS ScanningTLS Handshake

2016 - SBA Research gGmbH

Page 7: Turning Active TLS Scanning to Eleven

TLS ScanningCipher Suites

2016 - SBA Research gGmbH

Page 8: Turning Active TLS Scanning to Eleven

ApproachesDefined Requirements

• Time• Parallelization• Connections• Completeness

2016 - SBA Research gGmbH

Page 9: Turning Active TLS Scanning to Eleven

ApproachesExisting approach: „Naive“

• 1 cipher suite / request• All requests at the same time

2016 - SBA Research gGmbH

Page 10: Turning Active TLS Scanning to Eleven

ApproachesConnection optimal

• Request include cipher suites with unknown result• Requests serialized

2016 - SBA Research gGmbH

Page 11: Turning Active TLS Scanning to Eleven

ApproachesBased on cryptographic primitives

• Request groups cipher suites• Multiple requests at the same time• Multiple rounds necessary

2016 - SBA Research gGmbH

Page 12: Turning Active TLS Scanning to Eleven

ApproachesBased on existing results

• Multiple parallel rounds of requests• Find configurations with highest probability

Page 13: Turning Active TLS Scanning to Eleven

Existing DataFull TLS Cipher Suite Scan from 2015

• No Need for Black Chambers: Testing TLS in the E-mail Ecosystem at Large

• Internet-wide scan of TLS cipher suite configurations

• SSLyze (naive approach) used~10 billion TLS handshakes~20 million IP/port results

2016 - SBA Research gGmbH

Page 14: Turning Active TLS Scanning to Eleven

Existing DataPatterns in Cipher Suite Usage

Most-used cipher suite patterns for HTTPS,• Internet-wide scan in Aug. 2015• Even higher percentage for other protocols (SMTP)

2016 - SBA Research gGmbH

Page 15: Turning Active TLS Scanning to Eleven

Existing DataCoverage + Patterns

Host coverage by number of patterns

2016 - SBA Research gGmbH

Page 16: Turning Active TLS Scanning to Eleven

Tests

• Simulated with existing results

• Experimental testing with active scanning

2016 - SBA Research gGmbH

Page 17: Turning Active TLS Scanning to Eleven

ResultsSimulation

With the state of TLS scanned 2015

C … Average number of connectionsR … Average number of rounds

2016 - SBA Research gGmbH

Page 18: Turning Active TLS Scanning to Eleven

ResultsExperimental

2016 - SBA Research gGmbH

Page 19: Turning Active TLS Scanning to Eleven

ResultsExperimental

2016 - SBA Research gGmbH

Page 20: Turning Active TLS Scanning to Eleven

ResultsAlexa Top10k

• Scanned Alexa and Umbrella Top10k hosts• Compared Patterns• Mozilla SSL Configuration Generator

2016 - SBA Research gGmbH

Page 21: Turning Active TLS Scanning to Eleven

Discussion

● Ethics„poor trade-off in terms of good Internet citizenship versus lessons that can be learned“ [Holz et al.]

● Other factors of optimizationBandwidth usage, TCP/IP settings, parallelization

● TLS 1.3.

2016 - SBA Research gGmbH

Page 22: Turning Active TLS Scanning to Eleven

Conclusion

● New approaches to TLS Cipher Suite scanning

● Performance gain● 3.2 times faster● 6% of the connections

● Implemented & Evaluated

2016 - SBA Research gGmbH

Page 23: Turning Active TLS Scanning to Eleven

Wilfried Mayer

SBA Research gGmbHFavoritenstraße 16, 1040 [email protected]