security evaluation of dual- stack systems€¦ · motivation 3/15/2016 #6 „this simply means...

31
www.ernw.de Security Evaluation of Dual- Stack Systems Troopers 2016 Patrik Fehrenbach Prof Dr. Friedbert Kaspar / Dipl. Ing. (BA) Christopher Scheuring

Upload: others

Post on 23-Aug-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Security Evaluation of Dual-Stack Systems

Troopers 2016

Patrik Fehrenbach

Prof Dr. Friedbert Kaspar / Dipl. Ing. (BA) Christopher Scheuring

Page 2: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Disclaimer¬ There will be a lot of

numbers,charts....

¬ They could be wrong

¬ ...I did my best so they are not

3/15/2016 #2

Page 3: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Talk Roadmap¬ About dualstack

¬ Motivation

¬ Previous work

¬ Results

¬ Conclusion

3/15/2016 Thesis Presentation #3

Page 4: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

About Dualstack

3/15/2016 Thesis Presentation #4

Dual-StackDomain: Google.com

IPv6 : 2a00:1450:400a:805::1008{...}

IPv4: 109.193.193.104{...}

Security?

Page 5: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Motivation

¬ RFC 7381 -Enterprise IPv6 Deployment Guidelines

3/15/2016 Thesis Presentation #5

„It should be noted that in a dual-stack network,

the security implementation for both IPv4 and

IPv6 needs to be considered, in addition to

security considerations related to the interaction

of (and transition between) the two, while they

coexist.“

Page 6: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Motivation

3/15/2016 #6

„This simply means that all routers and hosts operating in a

dual-stack environment with both protocol families enabled

(even if by default) must have a congruent security policy for

both protocol versions. For example, permit TCP ports 80

and 443 to all web servers and deny all other ports to the

same servers must be implemented both for IPv4 and IPv6.“

¬ RFC 7381 -Enterprise IPv6 Deployment Guidelines

Page 7: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Well...

3/15/2016 #7

What if they haven‘t?

Page 8: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Attack scenario

3/15/2016 #8

Port:804438080222321

62.159.96.70

2003:60:4010:1090::13

Portscan IPv4

80,443

Portscan IPv6

21,22,23,80,8080,443

Page 9: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

How?

¬ 1. Write a script

¬ 2. Get a list of domains

¬ 3. Scan them

¬ 4. Store them

¬ 5. Analyse them

3/15/2016 #9

Page 10: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Getting a list of suitable Targets

¬ Alexa Top 1 Million

¬ Frequently used

¬ (should) be wellmaintained

¬ CSV

3/15/2016 #10

1,google.com2,facebook.com3,youtube.com4,baidu.com5,yahoo.com{...}

Page 11: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Let‘s sum it up

¬ 1 Million Domains

¬ Full TCP Port Scan (65535 Ports)

¬ Version detection

¬ Product detection

3/15/2016 #11

Page 12: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Procedure

3/15/2016 Thesis Presentation #12

Server with MySQL Database

Scanner.py

Alexa Top 1 Million

{Google.com},{Facebook.com}

...

socket.getaddrinfo()

IPv6 IPv4

Port,Service,Version Port,Service,Version

Insert domain, IPv4, Port, Service, Version

Insert domain, IPv4, Port, Service,Version nmap.threadnmap.thread

Page 13: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Ethical Considerations

¬ We have responded to every abuse mail

¬ We only used RFC compliant SYN-ACK packets

¬ We believe this research contributes to IPv6 security

¬ We want to make the world a safer place

3/15/2016 #13

Page 14: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Results (Some Numbers)

3/15/2016 Thesis Presentation #14

57,168 Domains

114,336 IP Adresses

976,998 Open Ports (IPv4&IPv6)

___________________________

1,148,502 Total Datasets

204,877 Open Ports on IPv6

- 102840 (80,443)

772,121 Open Ports on IPv4

- 106409 (80,443)

Page 15: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Parity (same amount of ports on IPv4 & IPv6)

3/15/2016 #15

Page 16: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Discrepancies

3/15/2016 #16

Deviant amount ofPorts

More on IPv6 compared to IPv4

More on IPv4 compared to IPv6

Page 17: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Cloudflare

¬ About 40% of the found IPv6 addresses belong to CF

¬ Only Web-Ports open (80,443,8080)

¬ Excluded from the statistics

3/15/2016 #17

Page 18: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Most used Ports on IPv6

3/15/2016 #18

Page 19: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Most used Ports on IPv4

3/15/2016 #19

Page 20: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Most targeted Ports by Akami Technologies

3/15/2016 Thesis Presentation #20

Page 21: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Results on this Research

3/15/2016 Thesis Presentation #21

Page 22: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Percentage

3/15/2016 #22

Page 23: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Results (Telnet on IPv4/IPv6)

3/15/2016 Thesis Presentation #23

IPv6 ->

<- IPv4

Page 24: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Results (SQL-Servers on IPv4/IPv6)

3/15/2016 #24

Page 25: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Looking a bit closer: MySQL

3/15/2016 #25

*MariaDB version numbers follow the MySQL'snumbering scheme up to version 5.5.

Page 26: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Results (SSH-Servers on IPv4/IPv6

3/15/2016 #26

Page 27: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Looking a bit closer : OpenSSH

3/15/2016 #27

Page 28: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Recommandation

¬ Always check both IPv4 and IPv6

¬ Check yourself using our script (soon on github.com)

¬ Check your security devices for IPv6 support

3/15/2016 #28

Page 29: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Conclusion

¬ IPv4 Ports are about six times more open as they are on IPv6

¬ 40% of the dual-stack hosts belong to Cloudflare CDN

¬ There is a higher Patch-Level of MySQL on IPv6

¬ Potentially vulnerable Ports are more likely to find on IPv4

¬ IPv6 is there and use it

3/15/2016 #29

Page 30: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Don‘t forget to lock the Backdoor (Dec. 2015)

Mark Allman

3/15/2016 #30

Page 31: Security Evaluation of Dual- Stack Systems€¦ · Motivation 3/15/2016 #6 „This simply means that all routers and hosts operating in a dual-stack environment with both protocol

www.ernw.de

Questions?

3/15/2016 #31

@itsecurityguard https://www.insinuator.net/