hackers = rough night
What started as a quick insomnia-induced email check turned into several hours of pure terror.
I got hacked.
I had two people sign up for shell accounts yesterday... I was a little suspicious, because neither had a domain. I have had problems with people using the system to host IRC bots before, so I
generally am very skeptical of this situation. Basically, if you've got a domain with a blog on it, I'm much more comfortable
giving you a shell account. On two occasions, I think I may have lost legitimate customers because I was "overly cautious" about their domains.... So I figured I'd just let it go this time, and just watch the accounts.
Big mistake.
One was kind enough to pay $200 with what I suspect is a stolen credit card (I haven't settled the transaction)... Yesterday evening, both of these users attacked my system.
The hackers overwrote several important linux utilities with corrupted versions (presumably so that they could better hide their trails). They also managed to log passwords for 40 legitimate users through some sort of packet sniffing on the FTP, telnet, and POP3 ports.
Thanks to the incredible all-night support from the folks at rackspace (thanks, Jim!), all known security holes are now patched in the server. The two users have been locked out, and the 40 compromised passwords have been changed.
If you find that you can't log in today, that's why. Your site should continue to run, and your mailboxes will continue to work - you are just temporarily locked out. I am working to correct this as quickly as possible, but I will have to check each account manually to ensure that it hasn't been further compromised. [So far, there is no evidence that any of the accounts were actually accessed...]
Also: I do not store credit card information on the server, so there is no need to worry about that.
Here's what I'm doing to correct the problem:
- Even though the appropriate patches have been applied,
there is no guarantee that this has solved the problem.
Therefore, I will be rebuilding the system from scratch
on a new hard drive, and restoring data for all users.
(There will probably be an upgrade involved to red hat 7.1
or .2)
- CVS accounts will be moved to a separate machine
later today. Most likely, I will disable unencrypted
pserver access.
- The cornerhost site, user database, billing system, etc
will be moved to a third machine later today.
- Telnet, ssh 1 and unencrypted pop3/imap/ftp will no longer
be allowed (after a very short transition period)...
These will be replaced with ssh 2 and other
secure alternatvies.
- I will be reading linux security news sites on a daily basis
from now on. (In fact, you can expect to see a new "favorites"
feature on linkwatcher for just this reason)
- I'm going to contact the bank that issued the possibly-stolen
visa.
- I will be talking to my lawyers in the real near future.
- I will never again sell a shell account to someone who lacks an existing website, unless I can otherwise verify that they're legit.
Okay. Time to grab some coffee and start letting customers back in.
I'm really sorry about this, everyone.