Technical Discussion
  >> Security Related Issues


Register (or login) on our website and you will not see this ad.


Pages in this thread: 1 | 2 | 3 | (show all)   Print Thread
Standard User deleted
(deleted) Fri 14-Feb-14 17:16:47
Print Post

NTP DDoS attacks


[link to this post]
 
I got bit this week... was on holiday and when getting home, my Internet allowance was used up - 27GB in 2 days.

To cut a long story short, it was my fault - years ago I had a server with the NTP pool. Trouble was, I never changed the conf, so it was always open.

Anyway, after sorting that out, and locking down the door, I was still being hit by 100's of requests a minute.

The only way out was to get an IP change - sorted.

Here is a mail I got - please read to make sure you don't get hit by this - your ISP may not be so good to help out:

==================================

The following free online tool can be used to check your IP address:
http://support.ntp.org/ntpq.php

Administrators:
1. If you run ntpd, upgrading to the latest version, which removes the
"monlist" command that is used for these attacks; alternately, disabling the
monitoring function by adding "disable monitor" to your /etc/ntp.conf file.
2. Setting the NTP installation to act as a client only. With ntpd, that can
be done with "restrict default ignore" in /etc/ntp.conf; other daemons
should have a similar configuration option. More information on configuring
different devices can be found here:
https://www.team-cymru.org/ReadingRoom/Templates/sec...
3. Adjusting your firewall or NTP server configuration so that it only
serves your users and does not respond to outside IP addresses.

If you don't mean to run a public NTP server, we recommend #1 and #2. If you
do mean to run a public NTP server, we recommend #1, and also that you
rate-limit responses to individual source IP addresses -- silently
discarding those that exceed a low number, such as one request per IP
address per second. Rate-limit functionality is built into many
recently-released NTP daemons, including ntpd, but needs to be enabled; it
would help with different types of attacks than this one.

Fixing open NTP servers is important; with the 400x+ amplification factor of
NTP DRDoS attacks -- one 40-byte-long request usually generates 18252 bytes
worth of response traffic -- it only takes one machine on an unfiltered 1
Gbps link to create a 450+ Gbps attack!

============================================

Nick
Standard User caffn8me
(knowledge is power) Fri 14-Feb-14 17:50:53
Print Post

Re: NTP DDoS attacks


[re: deleted] [link to this post]
 
I received the same email earlier and was a bit disapponted to discover that the router IOS I updated about three weeks ago to the latest version released on 22 Nov 2013 was vulnerable.

As yet there's no fix or workaround beyond disabling NTP on the router frown

Sarah

--
If I can't drink my bowl of coffee three times daily, then in my torment, I will shrivel up like a piece of roast goat

Spiders on coffee - Badass spiders on drugs

Edited by caffn8me (Fri 14-Feb-14 17:51:21)

Standard User camieabz
(sensei) Fri 14-Feb-14 22:59:29
Print Post

Re: NTP DDoS attacks


[re: caffn8me] [link to this post]
 
Does disabling NTP on a router prevent a network behind the router from accessing NTP servers in the www?


Register (or login) on our website and you will not see this ad.

Standard User deleted
(deleted) Sat 15-Feb-14 07:26:31
Print Post

Re: NTP DDoS attacks


[re: deleted] [link to this post]
 
In reply to a post by Lethe:
https://www.team-cymru.org/ReadingRoom/Templates/sec...

Cheers for the heads up...
You might want to remove that pesky . from the URL above wink
http://www.team-cymru.org/ReadingRoom/Templates/secu... works better than yours wink
Standard User deleted
(deleted) Sat 15-Feb-14 08:45:55
Print Post

Re: NTP DDoS attacks


[re: camieabz] [link to this post]
 
No, not it my case. What should happen is that you trust everything on local network, so requests to NTP server on the Internet will be allowed to reply - but cold queries to NTP server will be dropped.

Nick
Standard User caffn8me
(knowledge is power) Sat 15-Feb-14 09:24:47
Print Post

Re: NTP DDoS attacks


[re: camieabz] [link to this post]
 
In reply to a post by camieabz:
Does disabling NTP on a router prevent a network behind the router from accessing NTP servers in the www?
Not in this case. All it does is stops the timestamp on router logs being accurate as the router's own NTP service is not running. Machines inside the router still synchronize with external NTP servers without any problem.

If you are using your router as a firewall, disabling inbound NTP - (TCP and UDP port 123) should still not affect internal synchronization. I wouldn't imagine inbound NTP would be open unless explicitly configured.

Sarah

--
If I can't drink my bowl of coffee three times daily, then in my torment, I will shrivel up like a piece of roast goat

Spiders on coffee - Badass spiders on drugs
Standard User ionic
(fountain of knowledge) Sat 15-Feb-14 10:40:44
Print Post

Re: NTP DDoS attacks


[re: caffn8me] [link to this post]
 
Surely toy can just adjust the acl on the external interfaces to prevent inbound ntp from the internet in general?
Standard User deleted
(deleted) Sat 15-Feb-14 10:50:25
Print Post

Re: NTP DDoS attacks


[re: ionic] [link to this post]
 
First of all though, does the router open port 123 anyway?

Use the check here:

http://support.ntp.org/ntpq.php

and also do a scan to see what ports are open:

http://www.t1shopper.com/tools/port-scan/

Nick
Standard User billford
(elder) Sat 15-Feb-14 11:43:37
Print Post

Re: NTP DDoS attacks


[re: deleted] [link to this post]
 
Interesting� my setup is that this computer (the "main" one on the LAN, an iMac) uses ntpd to sync with one of the NPL public time servers, everything else on the LAN (including the router) gets its time from this computer (at least, those that give me a choice of server). All using IPv4.

Your first link shows that ntpd is accessible from the internet on this machine over IPv6 but returns zeroes over IPv4. Presumably that's due to not using NAT with IPv6- the link sees the router over IPv4, this machine over IPv6.

The second link only seems to know about IPv4 and says that port 123 on the router is not open.

So the OS X firewall appears to pass incoming IPv6 ntpd requests, not sure it's worth worrying about?

Bill
A level playing field is level in both directions.

__________Fold at Home_________________Planes and Boats and ... ______________BQMs: IPv4 IPv6
Standard User caffn8me
(knowledge is power) Sat 15-Feb-14 11:50:00
Print Post

Re: NTP DDoS attacks


[re: ionic] [link to this post]
 
In reply to a post by ionic:
Surely toy can just adjust the acl on the external interfaces to prevent inbound ntp from the internet in general?
Not according to Cisco. Because NTP uses UDP it's quite easy to spoof the source address which can still result in the router being used for a DDoS attack. I'm sure they'll eventually come up with a fix.

Workaround:
There are no workarounds other than disabling NTP on the device.
<snip>

Warning: Because the feature in this vulnerability utilizes UDP as a
transport, it is possible to spoof the sender's IP address, which may defeat
access control lists (ACLs) that permit communication to these ports from
trusted IP addresses.


Sarah

--
If I can't drink my bowl of coffee three times daily, then in my torment, I will shrivel up like a piece of roast goat

Spiders on coffee - Badass spiders on drugs
Pages in this thread: 1 | 2 | 3 | (show all)   Print Thread

Jump to