132 points · by bensummers · 14y ago · 53 comments
However, I decided to run an additional experiment to contact Amazon since the IP was originating from an EC2 instance. Amazon contacted me after I filed an abuse report and said they were investigating.
A week goes by and I'm still getting hammered. So I email Amazon and asked when it will be resolved. No response. So I email again, again, and again. I finally get a response saying they have resolved it, but I'm still getting hammered from the same IP address.
So I email them once more asking - what is it exactly you have resolved?
No response.
I presume it is not in Amazon's best interest to resolve such issues as long as people are paying for their instances....
I don't like the idea that companies can turn a blind eye to illegal activity just cause they're getting a cut of the resulting profits.
Unfortunately, I wasn't expecting this, so I missed their email and only realized the problem once my linode was offline.
I wouldn't be thrilled about either linode OR amazon
Was there some other way they should have contacted you?
I was being pedantic of course. Password based SSH authentication is fine for 99% of the cases, as long as they use a "secure" password and don't leak it by writing it down or reusing it elsewhere.
MYIP=`curl http://automation.whatismyip.com/n09230945.asp`
ec2-authorize $SECGROUP -P tcp -p 22 -s $MYIP/32I 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.
A really good port knocker is your best defense against rogue attackers of an external service (because there is no defense against a 0-day). For an iptables-supported system I recommend Knockknock by Moxie Marlinspike (http://www.thoughtcrime.org/software/knockknock/).
I've noticed a few attacks that seem to be orchestrated from the same people but using different IPs.
I ask because I have two servers, one I am a client at DreamHost and I can't configure their sshd daemon, the second is my own VPS where I am root.
In the case of a shared server you can't disable password auth, which is a powerful argument for using a unique password since that system is far more likely to be compromised.
"The best guess is that these passwords were collected from an unhashed password database, or from a trojaned SSH server or client."
or
"This might be due to the brute force tool not properly interpreting comments in the dictionary file, or the attacker not understanding the comment notation"
TiganilAFloriNTeleormaN - Gypsies at Florin in Teleorman
Fum4tulP0@t3Uc1d3R4uD3T0t - Smoking can kill awfully bad