Author Topic: DNS Amplification Maybe?  (Read 706 times)

0 Members and 2 Guests are viewing this topic.

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
DNS Amplification Maybe?
« on: February 25, 2014, 05:20:14 am »
Ok, so some of you have heard about my recent experience with a Nigerian 419er and how he's been unsuccessfully DDoSing me for literally days(I turned off my firewall for a second to see that he's surely still goin at it).

Then today suddenly my internet went out again. I noticed in wireshark that I was receiving absolutely nothing but outbound DNS requests to two different IP's, but many different name servers. After some basic network troubleshooting and about 1000 more DNS requests, all outbound, I started thinking that this was a DNS amplification attack. Seems there isn't much one can do about such attacks. At least, according to le interweb. I tried a couple different iptables rules to no avail. I don't understand DNS amplification as well as I should, but I guess iptables doesn't do much against this.

Anyway, after some time of almost calling it quits because I was tired and feeling stupid, I went it to my router to poke around. I noticed that in the settings I had it set to a static DNS address. All I did was switch that to get dynamically from ISP, as well as my IP address, and suddenly everything went back to normal. Does this make sense?
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline Fl0urite

  • /dev/null
  • *
  • Posts: 15
  • Cookies: -16
    • View Profile
Re: DNS Amplification Maybe?
« Reply #1 on: February 25, 2014, 05:46:50 am »
Ok, so some of you have heard about my recent experience with a Nigerian 419er and how he's been unsuccessfully DDoSing me for literally days(I turned off my firewall for a second to see that he's surely still goin at it).

Then today suddenly my internet went out again. I noticed in wireshark that I was receiving absolutely nothing but outbound DNS requests to two different IP's, but many different name servers. After some basic network troubleshooting and about 1000 more DNS requests, all outbound, I started thinking that this was a DNS amplification attack. Seems there isn't much one can do about such attacks. At least, according to le interweb. I tried a couple different iptables rules to no avail. I don't understand DNS amplification as well as I should, but I guess iptables doesn't do much against this.

Anyway, after some time of almost calling it quits because I was tired and feeling stupid, I went it to my router to poke around. I noticed that in the settings I had it set to a static DNS address. All I did was switch that to get dynamically from ISP, as well as my IP address, and suddenly everything went back to normal. Does this make sense?
Yes it does, your ISP has a DNS pointer to your IP that looks sort of like this:
Code: [Select]
insertrandomshithere.cg.shawcable.net
Your attacker was attacking this DNS pointer (which was dumb) with a dns amplification attack
If you feel my post was interesting or stood out, give me a cookie!

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: DNS Amplification Maybe?
« Reply #2 on: February 25, 2014, 06:56:47 am »
Ok, so some of you have heard about my recent experience with a Nigerian 419er and how he's been unsuccessfully DDoSing me for literally days(I turned off my firewall for a second to see that he's surely still goin at it).

Then today suddenly my internet went out again. I noticed in wireshark that I was receiving absolutely nothing but outbound DNS requests to two different IP's, but many different name servers. After some basic network troubleshooting and about 1000 more DNS requests, all outbound, I started thinking that this was a DNS amplification attack. Seems there isn't much one can do about such attacks. At least, according to le interweb. I tried a couple different iptables rules to no avail. I don't understand DNS amplification as well as I should, but I guess iptables doesn't do much against this.

Anyway, after some time of almost calling it quits because I was tired and feeling stupid, I went it to my router to poke around. I noticed that in the settings I had it set to a static DNS address. All I did was switch that to get dynamically from ISP, as well as my IP address, and suddenly everything went back to normal. Does this make sense?
Let me cut this straight.
A 'DNS amplification attack' works by requesting a packet from a server (pref UDP) and spoof the source address.
Thus the tradeoff between request size and response has to be positive.
1kb in 10kb out, stuff like that.

But I  do not really believe you can see this traffic on the LAN side, if you do something is really off.
Unless you have some fancy bridged modem setup, the modem's firewalling functions should drop the packets from the outside when they obviously where not initiated by the LAN side, there is simply no open port to allow the connections in, in most cases only the NAT table would be responsible for these open ports.
Since the port was triggered from the inside you should not have any internal traffic.
Modem logging is a different thing.
It can flatline by having to drop a lot of UDP traffic, Ive seen modems crying for this reason.
« Last Edit: February 25, 2014, 06:57:37 am by proxx »
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline s1l3nc3

  • Serf
  • *
  • Posts: 33
  • Cookies: -11
    • View Profile
Re: DNS Amplification Maybe?
« Reply #3 on: March 19, 2014, 04:53:02 am »
DNS is one technology that i haven't bothered to look in to much even though i have multiple lectures that i didn't attend related to the subject

either way this attack sounds rather good and it is always better to set your dns server to dynamically allocate i guess

but i wonder weather or not if you had dnscrypt ( http://www.opendns.com/about/innovations/dnscrypt/ )if it would of made difference
01101000 01110101 01101110 01100111 01110010 01111001 00110110 00110010