Transport
Layer
(in)Security

Pfeiffer Szilárd

Balasys

Bob

Craig, Eve, Mallory, Sybil, Trudy, ...

Alice

Symmetric-key algorithms

Hash algorithms

#

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

a8ae2f4a56baf78845c041c833946d00

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua

5e1e4087285a6c7c7d503332b14c5bf7

Public-key algorithms

Digital signature

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

a8ae2f4a56baf78845c041c833946d00

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

WoT vs. PKI

Primitives

TLS

protocol

_ECDHE
_RSA
_AES_128_CBC
_SHA256

key exchange

authentication

symmetric cipher

MAC

 ECDHE-RSA-AES128-SHA256 

Grades

Threat Vectors

  • Cryptographical Protocol

    • theory

    • implementation

  • Cryptographical Primitives

    • theory

    • implementation

    • performance

    • politics

Threat Vectors

  • Public Key Infrastructure

    • theory

    • implementation

  • Application Layer Protocol

  • Software

    • implementation

    • configuration

Protocol

possibly secure

insecure

SSL (2.0, 3.0)

TLS 1.2

weak

early TLS (1.0, 1.1)

secure

TLS 1.3

Best Version

Theory

POODLE

Theory

CRIME

Implementation

Heartblead

Fallback SCSV

Key Exchange

  • Forward Secrecy

    • ephemeral

    • static

  • Key Strength

  • Session Resumption

    • session id

    • session ticket

Forward Secrecy

ephemeral

static

Diffie–Hellman

(DH)

Rivest–Shamir–Adleman

(RSA)

Elliptic-curve
Diffie–Hellman
(ECDH)

Elliptic-curve

Diffie–Hellman Ephemeral
(ECDHE)

Diffie-Hellman Ephemeral

(DHE)

Forward Secrecy

Session Resumption

  • perfect forward secrecy
    • stateful vs. stateless
    • stored cryptographic parameters
    • unencrypted sending
  • speed
    • real time
    • CPU time

Primitives

  • Key Exchange

  • Authentication

  • Symmetric Cipher

  • Block Cipher Mode

  • Message Authentication Code

Supported Keys

Weakest Key

lmplementation

ROBOT

ROBOT

Vendors

Instances

Facebook

 

PayPal

F5

Citrix

Cisco

Palo Alto Networks

Symantec

FortiNet

Authentication

  • Key types
    • Digital Signature Algorithm (DSA)
    • Rivest–Shamir–Adleman (RSA)
    • Elliptic Curve DSA (ECDSA)
  • Key sizes
  • Signature algorithms

Signature Algorithm

Bulk Cipher

  • Stream Cipher
  • Block Cipher

    • secure

    • insecure

    • unused

  • Block Cipher Mode

Theory

Sweet32

Sweet32

Ratio

Instance

top 100.000

1.1%

 

top 1.000.000

0.5%

eBay

Nasdaq

Banco Mercantil

Union Bank

Ziraat Bank

Match

Walmart

Citrix

Rivest Cipher 4

MAC

  • MAC types

    • HMAC

    • UMAC

  • MAC algorithms

Politics

  • Export limited algorithms
    • key exchange
    • block cipher
    • block cipher mode

Politics

DROWN

DROWN

Ratio

Instance

top 1.000.000

25%

 

all sites

33%

 

Yahoo

Alibaba
Flickr

Samsung

NBA
Asus
Bangood

Apache

Politics

Logjam

Logjam

Ratio

Ratio

top 1.000.000 sites

8.4%

 

all sites

3.4%

SMTP servers

14.8%

 

POP3S servers

8.9%

 

IMAPS servers

8.4%

Politics

FREAK

FREAK

Ratio

14.000.000 sites

36.7%

 

US sites

35%

Instances

US government servers

Cipher Settings

  • cipher suites

    • explicit list

    • list operations

  • cipher preference

Revocation Check

  • Certificate Revocation List

  • Online Certificate Status Protocol

    • Responders

    • Stapling

  • Certificate validity period

OCSP Stapling

TLS 1.3

  • Key Exchange

  • Authentication
  • Bulk Cipher
  • Hash Algorithm
  • Session Resumption

  • Revocation Check

  • Performance

  • Support

HTTPS

  • Automatic Redirection to HTTPS

  • HSTS Preload
  • Security Headers

Solutions

  • Configuration

    • Updates

      • Snippet

      • Generators

    • Checkers

      • Online

      • Offline

  • TLS offloaders

TLS protocols

ssl.use-sslv2 = "disable"
...

Lighttpd

ssl_protocols TLSv1.2 TLSv1.3;

Nginx

SSLProtocol +TLSv1.2 +TLSv1.3

Apache

!TLSv1.1 !TLSv1.0 !TLSv1 !SSLv2 !SSLv3

Cipher Suites

ssl.cipher-list = "CipherSuiteString"

Lighttpd

ssl_ciphers CipherSuiteString

Nginx

SSLCipherSuite CipherSuiteString

Apache

HIGH:!PSK:!SRP:!aNULL:!aDSS:!kRSA:!ARIA:!CAMELLIA:!SHA:!AESCCM

Cipher Preference

honor-cipher-order = "enable"

Lighttpd

ssl_prefer_server_ciphers On;

Nginx

SSLHonorCipherOrder On

Apache

Always On

OCSP Stapling

-

Lighttpd

ssl_stapling on;

Nginx

SSLUseStapling on

Apache

Should Be On

Online Checkers

Generators

Offline Checkers

TLS offloaders

Conclusions

Questions?

Transport Layer (in)Security - Open Academy 2021

By Szilárd Pfeiffer

Transport Layer (in)Security - Open Academy 2021

Attributions: log jam by Luis Prado from the Noun Project

  • 1,105