I think that a more reasonable explanation could be that the attackers were careless about building the dictionary. If it's built by parsing files and you feed the wrong file or the parser does not work correctly you end up with a dictionary with lots of bogus entries. That seems a simpler explanation than: "The best guess is that these passwords were collected from an unhashed password database, or from a trojaned S…
Observations from two weeks of SSH brute force attacks
11–20 of 55 posts
Re: Observations from two weeks of SSH brute force attacks
#12I think that a more reasonable explanation could be that the attackers were careless about building the dictionary. If it's built by parsing files and you feed the wrong file or the parser does not work correctly you end up with a dictionary with lots of bogus entries. That seems a simpler explanation than: "The best guess is that these passwords were collected from an unhashed password database, or from a trojaned S…
Interesting idea. Assuming competence on the part of your attacker isn't as dangerous as assuming incompetence, but it can be just as mistaken.
Re: Observations from two weeks of SSH brute force attacks
#13Earlier quoted context omitted.
sure, I hope nobody is using password based authentication for SSH anyway :)
Is there an active exploit? Or are you just saying that this is the weakest form of auth for SSH?
If you have a reasonable password policy yourself, I very much doubt it will cause you any problems.
I've been attacked by these for 10 years, probably totalling millions of attempts and I have a user name in their databases but due to a sensible password, nothing has got in.
I tend to use PKI and keyboard interactive logins though.
Re: Observations from two weeks of SSH brute force attacks
#14Just move your SSH off the port 22, hide it behind another instance and/or use fail2ban. 99% of problems with SSH scans/attacks sorted
Re: Observations from two weeks of SSH brute force attacks
#15Just move your SSH off the port 22, hide it behind another instance and/or use fail2ban. 99% of problems with SSH scans/attacks sorted
Re: Observations from two weeks of SSH brute force attacks
#16Earlier quoted context omitted.
sure, I hope nobody is using password based authentication for SSH anyway :)
And I hope nobody is using key based authentication for SSH without storing the private part of their SSH key on an external smart card only, which is unlocked by an external hardware pin pad. 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.
Re: Observations from two weeks of SSH brute force attacks
#17Earlier quoted context omitted.
And I hope nobody is using key based authentication for SSH without storing the private part of their SSH key on an external smart card only, which is unlocked by an external hardware pin pad. 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.
No .. but it would damn cool if such hardware existed. Does it?
Re: Observations from two weeks of SSH brute force attacks
#18Earlier quoted context omitted.
sure, I hope nobody is using password based authentication for SSH anyway :)
And I hope nobody is using key based authentication for SSH without storing the private part of their SSH key on an external smart card only, which is unlocked by an external hardware pin pad. 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.
See, that's exactly why we don't allow password based authentication. While you can enforce strong passwords, you can't enforce that the user choose a password that is unique to your system, because you cannot know where else they may use this password.
The recent Dreamhost security disclosure is a great example. What are the chances that a contractor is using the same password for a Dreamhost shell account as they are my server? Pretty high, in my experience.
By disallowing password authentication, and requiring SSH-key auth, and requiring that contractors use a passphrase with their SSH-key, I have decreased the chances of a random break-in significantly.
Re: Observations from two weeks of SSH brute force attacks
#19I've been running a similar experiment. And noticed similar things as the author. 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, ag…
Re: Observations from two weeks of SSH brute force attacks
#20Earlier quoted context omitted.
And I hope nobody is using key based authentication for SSH without storing the private part of their SSH key on an external smart card only, which is unlocked by an external hardware pin pad. 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.
No .. but it would damn cool if such hardware existed. Does it?