News for hackers. Stuff that matters.
Re:A Linux botnet is launching crippling DDoS attacks in exc... by elsjaako on Wednesday September 30, 2015 @02:52AM (#10302220)
What's the best way to make sure that your system isn't part of this?
Re:A Linux botnet is launching crippling DDoS attacks in exc... by gingerlime on Wednesday September 30, 2015 @03:42AM (#10302375)
As others mentioned, prevent password logins. I also recommend fail2ban[0] for completely blocking IPs after detecting repeat failed access attempts.

[0] http://www.fail2ban.org/

Re:A Linux botnet is launching crippling DDoS attacks in exc... by IE6 on Wednesday September 30, 2015 @09:14AM (#10303629)
Fail2Ban is great - I've used it for more than just blocking brute force attacks on ssh (although a real security expert might say this is the wrong tool to use).
Re:A Linux botnet is launching crippling DDoS attacks in exc... by gingerlime on Friday October 02, 2015 @03:16AM (#10317142)
Yep, I also use it to detect repeat errors on our own application logs and block offending IPs.

Fail2ban has a reasonably easy to tweak detection and blocking rules, plus lots of available ready-made ones that do the job. If you're comfortable with regular expressions (which most people on HN probably are), then it's really straight-forward to write your own rules.

The only problem I encountered with it is when you start it up and you have a huge amount of data in your log files. It can cause 100% cpu usage for a long time until it digests the whole thing...

Re:A Linux botnet is launching crippling DDoS attacks in exc... by gameboy24 on Wednesday September 30, 2015 @02:57AM (#10302233)
Re:A Linux botnet is launching crippling DDoS attacks in exc... by Tobu on Wednesday September 30, 2015 @03:17AM (#10302290)
`PermitRootLogin = without-password` in /etc/ssh/sshd_config

Same thing for non-root: `AuthenticationMethods = publickey`

And when buying a router, buy something that will get regular security updates, or where you can put OpenWRT.

Re:A Linux botnet is launching crippling DDoS attacks in exc... by bkor on Wednesday September 30, 2015 @04:24AM (#10302506)
From openssh 7.0 release notes:

  * PermitRootLogin=without-password/prohibit-password now bans all
    interactive authentication methods, allowing only public-key,
    hostbased and GSSAPI authentication (previously it permitted
    keyboard-interactive and password-less authentication if those
    were enabled).
It mentions that previously without-password it would still allow keyboard-interactive logins. Should be fairly easy to fake for a botnet!
Re:A Linux botnet is launching crippling DDoS attacks in exc... by mirimir on Wednesday September 30, 2015 @04:32AM (#10302527)
I still prefer "PermitRootLogin=no".
Re:A Linux botnet is launching crippling DDoS attacks in exc... by ATsch on Wednesday September 30, 2015 @09:33AM (#10303778)
However unrealistic it is, I still wish that open source Projects would agree on what to call things.

The /etc/sudoers NOPASSWD and sshd without-password sound like the same thing, but are far from that.

I feel like they could have named it better.

Re:A Linux botnet is launching crippling DDoS attacks in exc... by eikenberry on Wednesday September 30, 2015 @12:12PM (#10304972)
Sudoers NOPASSWD means you don't have to type the password for that feature. Sshd without-password means passwords are disabled. Not the same thing.
Re:A Linux botnet is launching crippling DDoS attacks in exc... by johnchristopher on Wednesday September 30, 2015 @03:13AM (#10302282)
I garbled my post :(

Pull the plug /s

Don't allow password-based SSH access.

https://blogs.akamai.com/2015/09/xor-ddos-threat-advisory.ht...

https://isc.sans.edu/forums/diary/XOR+DDOS+Mitigation+and+An... example (first Google result)

[deleted]
Re:A Linux botnet is launching crippling DDoS attacks in exc... by digi_owl on Wednesday September 30, 2015 @03:06AM (#10302270)
Makes one ponder the issue of monoculture...
Re:A Linux botnet is launching crippling DDoS attacks in exc... by johnchristopher on Wednesday September 30, 2015 @03:15AM (#10302288)
Sorry, I tripped up.
Re:A Linux botnet is launching crippling DDoS attacks in exc... by upofadown on Wednesday September 30, 2015 @08:12AM (#10303306)
If for some bizarre reason you allow remote root logins over ssh be sure that that password is as strong as possible. Machine generated random strings are good, at least 12 characters to be sure.

If you turn off root logins but still allow user logins the remote attacking system will have no way to detect that fact and will still attempt to brute force you.

Re:A Linux botnet is launching crippling DDoS attacks in exc... by doguozkan on Wednesday September 30, 2015 @02:58AM (#10302237)
I think monitoring your outgoing traffic would give you a clue. Also if what I read on Ars is correct, this botnet preys on weak root passwords, so disabling remote root or using keys would be great ways to protect yourself against this botnet.
Re:A Linux botnet is launching crippling DDoS attacks in exc... by mirimir on Wednesday September 30, 2015 @03:08AM (#10302273)
This! And also, in sshd_config, disable password-based authentication. But first, make sure that key-based authentication works ;)
Re:A Linux botnet is launching crippling DDoS attacks in exc... by tedunangst on Wednesday September 30, 2015 @10:06AM (#10304019)
Re:A Linux botnet is launching crippling DDoS attacks in exc... by skarap on Wednesday September 30, 2015 @03:38PM (#10306529)
Use a good password.