Re:Observations from two weeks of SSH brute force attacks
by fjarlq on Thursday January 26, 2012 @05:58PM
(#3516355)
What exploit was it specifically?
Re:Observations from two weeks of SSH brute force attacks
by hackermom on Thursday January 26, 2012 @11:35AM
(#3514734)
In your specific case, this wouldn't have happened if your SSHd had listened to something else than port 22.
Re:Observations from two weeks of SSH brute force attacks
by Florin_Andrei on Thursday January 26, 2012 @04:33PM
(#3516097)
s/wouldn't have happened/would've been much less likely/
I had an experience about a year ago on one of my home servers that convinced me of this. It was a Debian machine that I kept religiously up to date (daily cronjob and manual checking). It only had an external SSH port, I used log2ban, and disabled all logins except for one non-root user.
I got the common ssh brute force spam. Then one day I happened to be checking logs, and noticed rootkit logs in the /root directory. My server had been hacked! Fortunately whoever had broken in had completely botched it and left traces all over the system. It looked like they had given up at some point, despite having root access.
I later discovered that the attacker had used a 0-day openssh exploit that had been released that very morning. For that time period of 24-48 hours between release and fix, my server had been hacked. I only wonder how many other servers were hacked by skilled people that didn't leave evidence behind.
So morale of the story - you can't secure anything that is publicly facing on the internet. And if you really need to do it, it requires constant vigilance, DMZs, and all that other stuff that is not worth it unless you're being paid.