• No results found

DNS amplification attacks

N/A
N/A
Protected

Academic year: 2021

Share "DNS amplification attacks"

Copied!
22
0
0

Loading.... (view fulltext now)

Full text

(1)

DNS amplification attacks

Matsuzaki Yoshinobu

<[email protected]>

(2)

DNS amplification attacks

• Attacks using IP spoofed dns query

– generating a traffic overload

– bandwidth attack

– similar to ‘smurf attacks’

• Components are:

– IP spoofing

– DNS amp

(3)

IP spoofing + DNS amp

• IP spoofing

– IP spoofed dns query

– to use reflections

• DNS amp

– UDP (no 3way handshake)

– good amplification ratio =~ 60

(4)

reflection

IP spoofed packet reflector Sender src: victim dst: reflector victim repl y pa cket dst: src: refle victim ctor

(5)

amplification

1. multiple replies

Sender

2. bigger reply

(6)

DNS amplification

ANY ?xxx.example.com DNS Sender xxx.example.com IN TXT XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX

(7)

DNS amplification attack

IP spoofed DNS queries DNS replies victim DNS DNS DNS DNS Attacker

(8)

attack relations

DNS DNS DNS victim Command&Control DNS DNS stub-resolvers full-resolvers root-servers tld-servers example-servers IP spoofed DNS queries botnet

(9)

view of bot #1

bot #1

Internet

size: =~60bytes

src IP: victim(IP spoofed) dst IP: various(DNS amp) protocol: udp

src port: various dst port: 53

QR: standard query QNAME: (specific one)

DNS queries DNS DNS DNS • performance degradation • traffic overload

(10)

view of bot #2

• a bot behind NAT box

bot #2

Internet

src IP: victim(IP spoofed) dst IP: various(DNS amp)

NAT

src IP: various(DNS amp) dst IP: NAT Router

src IP: NAT Router

dst IP: various(DNS amp) • NAT table saturation

• ICMP unreach generation

DNS query – after NAT

DNS query – before NAT DNS reply

(11)

view of stub-resolver

DNS stub-resolver DNS full-resolvers DNS queries size: =~4000bytes (ip fragmented) src IP: stub-resolver dst IP: victim bot#2(NAT) QNAME: (specific one)

DNS replies Internet • victim • bot#2(NAT) size: =~60bytes src IP: victim bot#2(NAT) dst IP: stub-resolver QNAME: (specific one)

• performance degradation • traffic overload

• if the stub-resolver works as a no-cache mode, all of

(12)

view of full-resolver

DNS full-resolver DNS • root-servers • tld-servers • example-servers size: ~4000bytes (ip fragmented) src IP: full-resolver dst IP: victim bot#2(NAT) stub-resolver QNAME: (specific one)

DNS replies Internet DNS queries • victim • bot#2(NAT) • stub-resolvers size: =~60bytes src IP: victim bot#2 stub-resolver dst IP: full-resolver QNAME: (specific one)

• performance degradation • traffic overload

• if the TTL of the RR is short, # of queries to the

(13)

view of victim

victim Internet size: =~4000bytes (ip fragmented) src IP: full-resolvers stub-resolvers dst IP: victim DNS replies DNS DNS DNS • traffic overload

(14)

solutions

IP spoofed dns queries Attacker dns repl ies victim discard recursive DNS queries from external

=

Disable Open Recursive DNS resolvers

DNS

drop IP spoofed packets =

(15)

Disable Open Recursive DNS

• There are many ‘open relay’ resolvers.

– ISP cache servers

– customers’ dns servers

(16)

Source Address Validation

• BCP38/RFC2827

– All providers of Internet connectivity are urged

to implement filtering described in this

document to prohibit attackers from using

forged source addresses...

(17)

IIJ/AS2497’s case

• IIJ to Introduce Source Address Validation to

all its Connectivity Services

– http://www.iij.ad.jp/en/pressrelease/2006/0308.html

(18)

IIJ’s policy

peer ISP upstream ISP

customer ISP multi homed static customer single homed static customer IIJ/AS2497

uRPF strict mode uRPF loose mode

(19)

CISCO uRPF configuration

uRPF strict mode

interface GigabitEthernet0/0

ip verify unicast source reachable-via rx

uRPF loose mode

interface GigabitEthernet0/0

(20)

Juniper uRPF configuration

uRPF strict mode

interface { ge-0/0/0 { unit 0 { family inet {

rpf-check;

} } } }

uRPF loose mode

interface { ge-0/0/0 { unit 0 { family inet {

rpf-check { mode loose; }

(21)

reference

• AL-1999.004 – DoS attacks using the DNS

– http://www.auscert.org.au/render.html?it=80

• The Continuing DoS Threat Posed by DNS Recursion

– http://www.us-cert.gov/reading_room/DNS-recursion033006.pdf

• SAC008 – DNS Distributed DDoS Attacks

http://www.icann.org/committees/security/dns-ddos-advisory-31mar06.pdf

(22)

References

Related documents

The regular meeting of the Pleasant Valley School District Board of Education was called to order by President MiChelle Palmer on Thursday, March 13, 2008 at 8:04 p.mH.

DNS Operations root DNS Servers user DNS Servers (example.com) TLD DNS Servers www.example.com Queries Query Query Query Referral Answer Referral DNS Operations.  Authoritative

Challenge 1: DNS servers are not aware of the application state in the balanced servers Challenge 2: DNS servers are not aware of the load information from the balanced servers

DNS cache poisoning attacks are in the wild Providers of DNS servers (ISC, Microsoft, Cisco, Infoblox, etc.) patch their code.. Nearly all DNS implementations (BIND,

If the appropriate IP address is not located in the user’s local DNS cache, the OS issues a query to the ISP’s DNS servers (or the user’s organization’s DNS servers).. The ISP

OPRM20030302D_069.ai Hydrate Plug Flowline GLIV1 GLIV2 Methanol Line GLR Topside Pressure To Production Riser To Subsea Manifold Gas Lift

missible levels of monetary aggregation for the Euro area. We find that the Euro area mone­  tary  assets  in  M2  and  M3  are  weakly  separable  and 

Criticism of tobacco must be mystifying to the millions of central and south American Indians who regard it as a gift from the gods. They smoked probably for thousands of years