guest/guestas username & password or if you were dumb enough to not set passwords at all, you could be in a spot of bother.
Then, somewhere along the line, the script just became better. What started with the standard
admin/admingrew up to trying out other username and password combinations, found more foolish people on the Internet and started keeping track of the new additions.
The log entries on your machine during an attack would be something like :
Dec 13 07:50:54 [sshd] Invalid user tei from 22.214.171.124
Dec 13 07:50:57 [sshd] Invalid user cherry from 126.96.36.199
Dec 13 07:51:01 [sshd] Invalid user nmap from 188.8.131.52
Dec 13 07:51:04 [sshd] Invalid user perl from 184.108.40.206
Dec 13 07:51:07 [sshd] Invalid user elaine from 220.127.116.11
From my sshd logs between May 2005 & today, I've had 2930 unique usernames trying to login from
takahashi. If you're curious, all the 2930 are up in alphabetical order here.
The attacks originated from the following addresses.
To be on the safe side :
- Don't have dumb accounts even for a small amount of time. A dumb account would be one with the username as the password.
- Don't run sshd unless you really need it.
- Use key based authentication only as far as possible. This eliminates the need for passwords and there is no chance of a brute force attack succeeding.
- Never have blank passwords.
- Run sshd on a non-standard port if you can afford to.
More info on ssh -> http://en.wikipedia.org/wiki/Secure_Shell
Update : Found a nice wiki page on this -> http://wiki.clug.org.za/clugwiki/index.php/Defending_Against_Brute_Force_SSH_Attacks