Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Unexplained CPU Jump
PostPosted: Sun Apr 03, 2011 8:47 pm 
Offline
Senior Newbie

Joined: Fri Feb 18, 2011 1:40 am
Posts: 5
Location: Western Australia
My CPU usage jumped from an average of 4% to 104% yesterday, and has been sitting around 104% ever since.

I've got one rails app running on there (ubuntu, nginx, passenger), which has really low traffic (this hasn't changed - about a couple of hundred requests/day).

I haven't touched anything on the server in the past week either.

Has anyone experienced anything similar?


Top
   
 Post subject:
PostPosted: Mon Apr 04, 2011 2:44 am 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 568
Website: http://www.mattnordhoff.com/
Well, does ''htop', 'top' or 'ps' say anything interesting?

104% is a very suspicious number. I bet the 100% is from something single-threaded chewing as much CPU as it can, and the other 4% is everything else.

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
 Post subject:
PostPosted: Mon Apr 04, 2011 3:53 am 
Offline
Senior Newbie

Joined: Fri Feb 18, 2011 1:40 am
Posts: 5
Location: Western Australia
Thanks mnordhoff - Yep - I have discovered that the 100% was coming from a single perl process. How it got there I have no idea. I also discovered a whole lot more. Lots of request for phpmyadmin and other setup scripts in the log files, and requests for odd domains.

Also a persistent IRCD connection from a atw.hu domain.

In short - the server has been compromised. Backed everything up, and about to rebuild.

Before I delete everything - I'd like to know how they got in though. Do you know where I could find the tell tale signs?


Top
   
 Post subject:
PostPosted: Mon Apr 04, 2011 4:18 am 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 568
Website: http://www.mattnordhoff.com/
RayS wrote:
Lots of request for phpmyadmin and other setup scripts in the log files, and requests for odd domains.

Well that's normal. Any public IP suffers a lot of attacks; the important part is whether or not they succeed.

RayS wrote:
Also a persistent IRCD connection from a atw.hu domain.

In short - the server has been compromised. Backed everything up, and about to rebuild.

OK, that's definitely not normal! Yikes.

(You're sure it's really compromised, not just an attacker attempting to connect or something?)

RayS wrote:
Before I delete everything - I'd like to know how they got in though. Do you know where I could find the tell tale signs?

Sorry, that's not something I know much about.

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
 Post subject:
PostPosted: Mon Apr 04, 2011 7:31 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
1. Back up the entire node (linode's backup service would be ideal for this)
2. Clone the node from the backup
3. Boot the node using finnix so it can't talk to the outside world
4. Check your log files

That's a good start.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group