I got cracked!

Lord Evermore

Diamond Member
Oct 10, 1999
9,558
0
76
I had a whole fricking thing written up, then hit a wrong key and it went to the main anandtech site, and wiped the text from the buffer.

Anyway, we apparently got cracked into tonight. Kinda fun and funny, though annoying.

My Linux machine got up and running a couple of nights ago, and I hadn't bothered to secure it or anything yet because I'm going to be wiping it out in the next few days to reinstall (partition issues). I hadn't even bothered to start playing with stuff much because I didn't want to have to do it all over again later.

So, to play from work, I had the telnet, ftp, ssh, and http ports forwarded using the LinkSys cable/dsl router, sending those ports to my box. My roommate had also been using VNC for a short time, so he was still set up as the DMZ host in the router.

We were working on some computers tonight trying to salvage useable stuff from them, and he noticed that his My Documents folder on his desktop had been renamed to 777, and he wasn't able to even click on his desktop. He rebooted, and was able to change the name. We assumed he must have just accidentally renamed it and been hitting the 7 key at the time or set something on the key. The computer itself has been having issues, so we thought that explained not being able to touch the desktop.

Then later, I brought the monitor back in for my Linux box (we'd been using it for testing servers) and plugged it in. Since I'm still new to Linux and all impressed by it, I like to check the running processes, plus it assures me that the D.Net client is still running.

This time, I noticed a lot more processes than usual, several of which I'd never seen before. There were all kinds of things running that I never did, like cron and httpd and smtpd. I KNOW cron had never been running before, and I don't think smtpd had been. Httpd was before, since the default install allows you to browse the docs in HTML in a browser. However it was now using over 14% of the CPU, which had never happened, and RC5 had always used 99.9% of the cpu time before. There were also a few other processes running I didn't recognize.

I killed all of them, got back down to pretty much no processes running. But I'd like to know how somebody got in and maybe where they came from. However I don't know enough to know where the message files go, if any, or where the screen buffer goes during boot. I read the other day that all Linux boot messsages go into a certain file, buyt I don't remember where.

I'm just glad I hadn't started making use of the machine. Still pisses me off somewhat. Almost puts me off of Linux, not because it's bad or that I think it's Linux's fault; I didn't secure it, it's my fault. But being able to access from home means running at least ssh protocol (only telnet and http had been active; ssh was installed but I was getting checksum errors at work so I went back to telnet for now). So this means I HAVE to learn how to secure the machine, and I've got precious little time as it is.

Anyway, just thought it'd be fun to tell people about. It's very odd to see that CRON is running, and not be able to find out why.
 

Soybomb

Diamond Member
Jun 30, 2000
9,506
2
81
Maybe its just me, but it doesnt sound at all like you got cracked to me. Tell me what distro and version. Alot of them will allow the http daemon to be started if someone tried to connect over that port, cron running isnt unusual either for most distros too...
 

perry

Diamond Member
Apr 7, 2000
4,018
1
0
cron is very normal to be running.

The logs are probably in /var/log. The one's you'll wanna look at are messages, secure, and maybe syslog.
 

BlkDragon6

Senior member
Jan 7, 2000
270
0
0
Wait a minute.. where did you install VNC? Not sure how hard it is to hack into a PC running VNC, but if he gave out the ip and the password to someone, then any novice with a computer could easily mess with your comp. Maybe I'm completely off.
 

Tracer

Member
Oct 9, 1999
156
0
76
I second the opinion that you probably didn't get hacked. Most of it sounds normal.

-crond lets you sechdule programs, check your crontab for anything abnormal.
-smtpd is the daemon that lets you send outgoing mail, probably sending error messages. Check your root email
-If your not running a web server, you probably shouldn't run httpd. Online docs usually work using file:// instead of http://

For some info on making your box secure check out Story1 and Link2

To disable some of those daemons check out your /etc/rc.d directory.

Tracer
 

Tracer

Member
Oct 9, 1999
156
0
76
Oh yeah, which computer did you install VNC on? I think they have a ssh wrapper or something, haven't really messed with it though. If he had it on his windows machine, he'd probably notice the mouse cursor moving on its own or some funky stuff. On a linux machine, they'd still need to crack his root account.
 

Russ

Lifer
Oct 9, 1999
21,093
3
0
Lord Evermore,

I agree with Soybomb. Cron is installed by default by most distros now, as are the other modules you mentioned. Not all processes show at all times. Cron is a perfect example as it will only show when it is performing a function.

Russ, NCNE
 

Russ

Lifer
Oct 9, 1999
21,093
3
0
BoberFett,

PSST: Don't tell anyone, but the above covers approximately 50% of my entire knowledge of Linux.:)

Russ, NCNE
 

Lord Evermore

Diamond Member
Oct 10, 1999
9,558
0
76
cron was never running at any other point ever since I installed it (I'm anal about checking running processes every few minutes when I'm logged in). Now whenever the system reboots, cron starts up along with several other processes that never did start before.

smtpd may have been started to email root about my login trying to sudo, so that may be okay, and I know httpd was running before but NOT using 15% of CPU time ever before.

Rebooting...

Okay, there are two sessions of http running. BOTH are using 15% of memory (not CPU time like I thought before). Also running is /usr/sbin/fcgi, also using 15% of memory. I don't recall either of these using so much memory before. I also KNOW that nothing was loaded before using wwwrun as the user. cron was loaded using the user nobody, which I don't recall seeing before (of course that may be normal for it, I don't know).

I'm going to open the port on it again, see what happens.