Asfws2014 tproxy

14
Applicaon Security Forum - 2014 Western Switzerland 05-66 November 2014 - Y-Parc / Yverdon-les-Bains hp://www.appsec-forum.ch TProxy Transparent interception of TCP traffic Bertrand Mesot & Sylvain Heiniger Objecf Sécurité SA

description

s

Transcript of Asfws2014 tproxy

Page 1: Asfws2014 tproxy

Application Security Forum - 2014Western Switzerland

05-66 November 2014 - Y-Parc / Yverdon-les-Bainshttp://www.appsec-forum.ch

TProxyTransparent interception of TCP traffic

Bertrand Mesot & Sylvain HeinigerObjectif Sécurité SA

Page 2: Asfws2014 tproxy

A work in progress

2

Page 3: Asfws2014 tproxy

What we try to achieve

3

Page 4: Asfws2014 tproxy

Get in the middle

4

Bridging– Physical access to cables

– Beware of 802.1x security

ARP spoofing

Page 5: Asfws2014 tproxy

Redirect traffic towards TProxy

5

iptables -t mangle -A PREROUTING

-p tcp --dport 80 -j TPROXY --on-port 9080

--tproxy-mark 0x1/0x1

Page 6: Asfws2014 tproxy

TProxy: intercepted connections

6

Page 7: Asfws2014 tproxy

TProxy internals

7

Page 8: Asfws2014 tproxy

TProxy: intercepted messages

8

Page 9: Asfws2014 tproxy

TProxy: message editors

9

Hexadecimal

Wireshark dissection

Page 10: Asfws2014 tproxy

RDP downgrade attack

10

0x03 → 128-bit RC4 0x01 → 40-bit RC4

Page 11: Asfws2014 tproxy

TProxy: SSL/TLS

11

Page 12: Asfws2014 tproxy

IMAP STARTTLS

12

AHRwcm94eUBzeWx2YWluaGVpbmlnZXIuY2gAI3A0c1N3MFJkIQ==

[email protected]#p4sSw0Rd!

Page 13: Asfws2014 tproxy

Tools, languages & toolkits

13

Tools

Languages

Toolkits

Page 14: Asfws2014 tproxy

Merci/Thank you!

Contact:[email protected]://www.objectif-securite.chSlides:

http://slideshare.net/ASF-WS/presentations

14