Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Web Hosting


Advertisements:




SuperbHosting.net & Arvixe.com have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for BigResource.com.







How-to - Rootkit Scan (trojan Etc)


What is a rootkit? The following link is a very good read to answer that question.

http://linux.oreillynet.com/pub/a/li...4/rootkit.html

In Summary, a rootkit is a trojan installed on your Linux server after someone has broken into it. These files are used to cover the hackers tracks, and to give the hacker tools to do more dirty work from your server.

Usage:

1. su - (change to root user)
2. mkdir /usr/local/chkrootkit
3. wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz
4. tar -xvzf chkrootkit.tar.gz
5. cd chkrootkit*
6. cp * /usr/local/chkrootkit
7. cd /usr/local/chkrootkit
8. make sense

Now scan your system:

1. cd /usr/local/chkrootkit
2. ./chkrootkit

chkrootkit may from time to time give false positives. If you ever get a positive or "infected hit" scan a second time. If you do get a positive hit, google the hit to research the issue and steps to correct.

Part 2 - automated chkrootkit, and emailed results.

I'm lazy, and like my server to do the work for me so I have it scan every day, and email me the results.

Usage:

1. vi /etc/cron.daily/chkrootkit
2. add the following code.

Code:
#!/bin/bash
(cd /usr/local/chkrootkit; ./chkrootkit -q 2>&1 | mail -s "Daily chkrootkt scan" you@yourdomain.com)
3. chmod 0755 /etc/cron.daily/chkrootkit

This will email you@yourdomain.com every morning with your chkrootkit results. the -q option will only show you exploits.

Removal:

If you don't like getting the emails or just want to remove this from your server:

1. rm /etc/cron.daily/chkrootkit
2. rm -rf /usr/local/chkrootkit

All files will now be deleted from your server.


View Complete Thread with Replies

Sponsored Links:

Related Forum Messages:
In Rootkit Hunter Scan
how to correct it?

Code:
---------------------- Start Rootkit Hunter Scan ----------------------
Warning: Checking for prerequisites [ Warning ]
The file of stored file properties (rkhunter.dat) does not exist, and so must be created. To do this type in 'rkhunter --propupd'.
Warning: WARNING! It is the users responsibility to ensure that when the '--propupd' option
is used, all the files on their system are known to be genuine, and installed from a
reliable source. The rkhunter '--check' option will compare the current file properties
against previously stored values, and report if any values differ. However, rkhunter
cannot determine what has caused the change, that is for the user to do.

One or more warnings have been found while checking the system.

Please check the log file (/var/log/rkhunter/rkhunter.log)

View Replies!   View Related
What To Use To Scan For Trojan?
We have a client claming that she gets a Trojan warming when she trys to access her website but using the Trojan scan in cpanel doesn't show anything.

What can we use to scan for Trojan?

View Replies!   View Related
Scan Virus On Sever?
Is this possible we can scan virus on the account on server?

View Replies!   View Related
Advisable To Have Security Scan By Someone?
Is it advisable to have someone scan your server setup, ie the firewall? If so, what is used to scan the firewall?

View Replies!   View Related
How I Can Do Shell Scan In My Server
i have server and i want to do shell scan and delete the shell

View Replies!   View Related
Windows Server Scan
I am not much familiar with windows server scan. How can I do full scan on the server? I want to make sure that server is secure.

View Replies!   View Related
Rootkit :: No Rootcheck_files
2009/05/19 03:15:01 ossec-rootcheck: No rootcheck_files file: './db/rootkit_files.txt'
2009/05/19 03:15:01 ossec-rootcheck: No rootcheck_trojans file: './db/rootkit_trojans.txt'

How can i 'fix' this?

View Replies!   View Related
Rootkit Hunter
how i can install rootkit hunter on centOs?

and is it different with CHKROOTKIT?

View Replies!   View Related
Free Server Securiy Scan
Any body knows of free server security scan for my dedicated?

View Replies!   View Related
Security Updates/Scan For VPS
to install secuity patches for each VPS hosted on single host or appling it to host running multiple VPS is enough.

Does same applies to firewall related software..Use it for individual VPS on single host?

View Replies!   View Related
Port Scan Attacked On Users
[url]

[url]

One of my users posted this in the forum saying my server is scanning his computer. His this serious? Do I have virus? Should i be worried? Well i am kinda worried. I tried googling it, but i can't seem to figure the right keywords for a good result.

View Replies!   View Related
What Is Best Rootkit-detector And Firewall
I was following this guide: url]

It's very nice but, 4 years old. So now I am wondering what is best rookit detector, and what is best firewall for centOS 5.

View Replies!   View Related
Rootkit Hunter Installation
I was thinking of getting one of our server admins to install the Rootkit Hunter.

Would this have any effect on our server resources and stability.

Im trying to be more security minded after afew weeks ago when our server was hijacked, and I dont want to go through this again.

View Replies!   View Related
To Scan A Linux Box For Xss Scripts
What's the best way to do a daily check for xss scripts injected into php and html files on a linux box?

I am referring to stuff like framer.z
[url]
which essentially has a telltail signature of

<script>eval(unescape("%77%69...
Is there anything for linux that keeps up with those kinds of script signatures?

I doubt CSF or Clam looks for that kind of stuff, right?

View Replies!   View Related
Other Rootkit Finders & IDS
other options over chkrootkit and rkhunter since they are pretty outdated, and so far have found:

Curuncula:
[url]

Unhide:
[url]

View Replies!   View Related
AV, Anti-RootKit, And Firewall For Dedi
trying to secure my new server that will be opening for shared hosting.

So far I've found:

CHKRootKit, RKHunter, and ClamAV

As for Firewall, I've setup CSF but my question is, what is a good setting for blocking SYN Floods without blocking clients who might be browsing their site and, using DA, and FTP.

In the past I've used:

iptables -A INPUT -p tcp --syn -m limit --limit 1/s --limit-burst 3 -j DROP
iptables -A INPUT -p tcp --syn -m limit --limit 3/s --limit-burst 5 -j DROP
and took down some pretty big attacks, but it was very touchy.

View Replies!   View Related
How Can I Get Rootkit Hunter To Email Me The Results
How can I get rootkit hunter to email me the results?

I tried
MAILTO=me@mydomain
0 0 * * * /root/rkhunter-1.3.2/files/rkhunter --cronjob
and
MAILTO=me@mydomain 0 0 * * * /root/rkhunter-1.3.2/files/rkhunter --cronjob

But it is not sending the email, nothing even show up in my exim_mainlog.

View Replies!   View Related
Security: Rootkit/rkhunter/rootcheck
For securities purposes whats best to install?

Feel free to suggest any others.

Server is running cpanel

View Replies!   View Related
Rootkit Detection On A Windows VPS
My Windows VPS has come under heavy attack by hackers trying to get through MSFTPSVC for the past month and they finally managed to somehow get in 2 days ago. Somehow, the "Allow anonymous login" setting was selected in my FTP settings and they got in.

They even managed to turn off my firewall. I guessing they used a buffer overflow or some other Windows Server 2003 weakness that was fixed in SP2 (too bad SP2 is'nt supported by SWSoft yet).

The attacks began less than 1 week after I had signed up with Virpus. I did'nt even have my domain name pointing to the server or a site up when the first set of dictionary attacks began. How common is that 0_0 ?

Anyway, since I now know they've gotten in I've run a virus check and everything looks clean but I really want to run some kind of root kit detection software. I've tried everything suggested on the antirootkit website but none of them seem to work on a VPS.

View Replies!   View Related
How Can I Stop The Rootkit Hunter False Positives
How can I stop the rootkit hunter false positives?

It is alerting on these, on a fresh OS install:

Checking for prerequisites [ Warning ]
/usr/bin/groups [ Warning ]
/usr/bin/ldd [ Warning ]
/usr/bin/whatis [ Warning ]
/sbin/ifdown [ Warning ]
/sbin/ifup [ Warning ]

View Replies!   View Related
Rootkit, Someboy Get Full Access. Want To Test To Find Out What Software It Is.
Possible root kit, what can I do?

Sorry for the long post, but I need some feedback.

One of the main reasons that I went from a windows dedicated server to a VPS was because I had several attacks on my server that cost lots of time and money. The only reason to these attacks was that it has to be a root kit in one of the programs I used on my server.

I have used SolarVPS for over 6 months now, and have used most of the same software I used on my dedicated server. I have not had any attacks or somebody gaining access to my VPS.

Last week I got a new Windows VPS from JaguarPC. I installed the same software as always (I will list the software later) and day two of my new VPS somebody had full access, had created a new admin user, installed Utorrent, downloaded and uploaded over 10 GB of movies and music before I discovered the security issue.

Beside my normal software I had downloaded a free downloadmanager, so I could download my plesk backup files faster than on a single download connection. That was the only other software beside my normal software.

But I never used that download manager on my dedicated server, but the same thing happened there also. A user got full access, created a new admin user for remote desktop, etc. I also use different password for the different VPS/DS/hosting plans, but some parts of the main level password is the same.
Last time the user was names support, this time the user was named Dave

I change password often, this year I have changed my password 4-5 times. I have different password for different levels on my VPS/servers. On password for Admin, one for Plesk, one for FTP access to my sites, one for e-mail, one for MySQL etc etc.

I have changed OS at home from XP to Vista, and have only installed 100% secure programs at my home computer. I have not installed one free program or any cracks, warez etc. I also use different antivirus and anti spyware software at home. So the problem can most likely not be at my home computers.

My current software I use on my VPS’s are: (I have some more, but that was the software I used on new VPS)

WinRar 3.61 from [url]
Bandwidth monitor Pro from [url]
Weblog Expert 4.1 from [url]
And the only software I don’t use on my VPS at SolarVPS:
Free Download Manager from [url]

The strange thing is that last time, over 6-7 months ago when I had all the problems with my dedicated server, I traced the IP the hackers had used to login to my DS to Germany.

This time on my new VPS the person has to be from Germany or on country they speak German. The mp3s and the movies where almost all in German.

My plan for the future:

I think I will buy a new VPS plan to test my software. Install one and one software, and see when somebody get access to my VPS. I have to use a provider that offer free OS reloads, so I can reload the OS after I have tested one and one of my programs.
Do anybody know about any companies that allow me to get free OS reloads and provide a Windows 2003 server?

Or will the backup function in VZPP work as OS reload if I take a backup of my new clean VPS and then install software. If it is a rootkit, and I restore, will the rootkit go away? If yes, I can use all providers with VZPP.

And do I have to tell the company what I have planned to do? A rootkit on my VPS will not affect other VPS, so they can get the same rootkit, or the main server?

View Replies!   View Related
Trojan C99Shell
I just installed zen cart on my webhosting and after few days later i saw some file written like core1405.php and when i open to view the file it is actually trojan c99shell.

I have deleted all of the core file. Now how can i prevent it from happen again? Cause it is too much work to clean up the hosting server.

View Replies!   View Related
LKM Trojan?
I just installed a fresh copy of centos 4.5, updated some programs and installed chkrootkit. When i run # ./chkproc, it shows the following output:

# ./chkproc
You have 14 process hidden for readdir command
You have 14 process hidden for ps command

Searching for LKM trojans shows the following output:
# ./chkrootkit -x lkm

EXE 9994: /usr/sbin/named
CWD 9995: /var/named
EXE 9995: /usr/sbin/named
CWD 9996: /var/named
EXE 9996: /usr/sbin/named
CWD 9997: /var/named
EXE 9997: /usr/sbin/named
CWD 9998: /var/named
EXE 9998: /usr/sbin/named
CWD 26293: /var/lib/mysql
EXE 26293: /usr/sbin/mysqld
CWD 26294: /var/lib/mysql
EXE 26294: /usr/sbin/mysqld
CWD 26295: /var/lib/mysql
EXE 26295: /usr/sbin/mysqld
CWD 26296: /var/lib/mysql
EXE 26296: /usr/sbin/mysqld
CWD 26297: /var/lib/mysql
EXE 26297: /usr/sbin/mysqld
CWD 26298: /var/lib/mysql
EXE 26298: /usr/sbin/mysqld
CWD 26299: /var/lib/mysql
EXE 26299: /usr/sbin/mysqld
CWD 26300: /var/lib/mysql
EXE 26300: /usr/sbin/mysqld

When i stop mysql and named, and run # ./chkrootkit -x lkm again, it doesn't show anything. When i turn mysql and named back on, it starts complaining about compromises again.

Can it be a false alarm, or should i really be worried? What do you advise me to do now?

View Replies!   View Related
Trojan :: How To Clean Server?
my whm Trojan scanner found 23 possible Trojans.

how can i clean my server?

View Replies!   View Related
Trojan-Downloader.JS.Psyme.hz
I have an hosting account at OXEO.com and I have trojan problems on all my websites

The index files of all my websites show a Trojan program called Trojan-Downloader.JS.Psyme.hz

I checked my websites on Google and Google is warning users for this kind of problems for one of my websites

Does anybody here has experienced the same problem?

View Replies!   View Related
15 POSSIBLE Trojan Detected WHM
i have an site on my server when i open it the kaspersky anti viruss detect there is an trojan in this site .. ( see the picture in the attachment )

and i checked the server from the whm and there is result 15 POSSIBLE Trojans Detected

How i can solve this ?? and remove this trojans .

View Replies!   View Related
Trojan :: 687 POSSIBLE Trojans?
I just ran a scan for trojan horses in WHM and it came up with "687 POSSIBLE Trojans". WTH? Are these real trojan horses? If so, how do I remove them?

View Replies!   View Related
How To Remove Virus/Trojan
how can I remove a Virus/Trojan from my website?

View Replies!   View Related
PHP.Backdoor.Trojan
As usually I do monthly scan to all files on my site,today I download all backup site into my PC,then scanning them using Norton Antivirus and on one site files Norton detected PHP.Backdoor.Trojan.

I take a look file location and found current file with name xTgsj78Jn.txt

Then I go to my server where site hosted,and i go to the directory and found file above stay on there,I try many time to delete it but always get an error message "Permission denied",I try to change permission but always returned an error.

When deleted it i use command rm -r with root access,then I do ls -l and found details file like below.

-rwxrwxrwx 1 nobody nobody 137787 Mar 19 20:14 xTgsj78Jn.txt*

Please help me to delete this file.

FYI this file uploaded to my hosting file site.

View Replies!   View Related
Possible Trojan List By WHM - Do I Need To Worry?
I ran the Trojan scan in WHM and it came up with the list below. I have a strong feeling WHM is mis-reporting these as trojans, but I thought I would ask the experts here:

Scan for Trojan Horses

Appears Clean

/dev/stderr

Scanning for Trojan Horses.....

Possible Trojan - /usr/bin/cpan
Possible Trojan - /usr/bin/instmodsh
Possible Trojan - /usr/bin/prove
Possible Trojan - /usr/bin/xmlcatalog
Possible Trojan - /usr/bin/xmllint
Possible Trojan - /usr/bin/xml2-config
Possible Trojan - /usr/lib/libxml2.la
Possible Trojan - /usr/bin/mysqlhotcopy
Possible Trojan - /usr/bin/Wand-config
Possible Trojan - /usr/bin/animate
Possible Trojan - /usr/bin/compare
Possible Trojan - /usr/bin/composite
Possible Trojan - /usr/bin/conjure
Possible Trojan - /usr/bin/convert
Possible Trojan - /usr/bin/display
Possible Trojan - /usr/bin/identify
Possible Trojan - /usr/bin/import
Possible Trojan - /usr/bin/mogrify
Possible Trojan - /usr/bin/montage
Possible Trojan - /usr/bin/curl-config
Possible Trojan - /usr/bin/curl
Possible Trojan - /usr/lib/libcurl.so.3.0.0
Possible Trojan - /usr/lib/python2.3/site-packages/libxml2mod.la
Possible Trojan - /usr/lib/python2.3/site-packages/libxml2mod.so
Possible Trojan - /usr/sbin/pureauth
25 POSSIBLE Trojans Detected

Is there anything that looks fishy here?

View Replies!   View Related
Websites Infected With Trojan How To Solve?
i see my websites are infected with some trojan.

there are some iframe tag simlilar to this in all index files

<iframe src="http://traff<<removed>>.cn/in.cgi?27" width=100 height=80></iframe>
any idea how might this iframe inserted in my codes.

i have tried to format my systems and remove all saved ftp passwords , but still this virus is comming back and the strange thing is i have website on different servers infected with same virus
any idea how this is happened and how to avoide this?

View Replies!   View Related
Trojan-Downloader.JS.Psyme.hz Remover
can any body help me with the Trojan-Downloader.JS.Psyme.hz remover?

i can't find an remover for linux server for this trojan.

View Replies!   View Related
Trojan-Clicker.HTML.Iframe.g In My Website? What Is This??
I have a website and all works fine, but an user said me that uses kaspersky said me my website has an trojan i don't understand how this is possible, and i'l really worried.

the trojan that appears to my user is:

Trojan-Clicker.HTML.Iframe.g

someone know why i have this trojan?

Now the users refuses to open my website!! i'm more than worried

this is an printscreen of the error: ...

View Replies!   View Related
Trojan Detected On Initial Load Of Site
I have 2 reseller accounts with one provider, and in the last several days I have noticed that when you visit the site for the first time, my AV software detects a trojan on the site, but the code & html files are 100% clean!

I'm suspecting that there is something being injected into the scripts from the server daemons that's either running or something else.

Anyone have any suggestions?

View Replies!   View Related
Trojan-Clicker.HTML.IFrame.amh
I am not that technically proficient so I have to resort to shared hosting solutions...I am currently with Bluehost.

Problem: I have a small site with minimal needs in terms of storage and bandwidth, but the site is controversial and gets hacked and attacked a lot.

I need a shared hosting provider which ranks higher than most in terms of security.

Recently the site was attacked such that any user going to the site was infected with Trojan horse viruses.

Donno if it's useful or not but here are the files from my PC antivirus which was infected when I went to the site with IE:


File generated by Rogers Online Protection Anti-Virus

C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE5PG8E0SM0gifimg[1].htm Trojan-Clicker.HTML.IFrame.amh
Deleted 11/5/2009 12:21:25 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE5GC9JZWI3gifimg[2].htm Trojan-Clicker.HTML.IFrame.amh
Deleted 11/5/2009 12:21:27 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE5QBPA1ELgifimg[1].htm Trojan-Clicker.HTML.IFrame.amh
Deleted 11/5/2009 12:21:27 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE56SLECSUQgifimg[5].htm Trojan-Clicker.HTML.IFrame.amh
Deleted 11/5/2009 12:21:28 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE5EKTEAS82gifimg[5].htm Trojan-Clicker.HTML.IFrame.amh
Deleted 11/5/2009 12:21:28 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE5P5098OY4gifimg[4].htm Trojan-Clicker.HTML.IFrame.amh
Deleted 11/5/2009 12:21:29 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE5IPGNWAB0gifimg[1].htm Trojan-Clicker.HTML.IFrame.amh
Deleted 11/5/2009 12:21:30 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE55VT8B104gifimg[1].htm Trojan-Clicker.HTML.IFrame.amh
Deleted 11/5/2009 12:21:30 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE543XUDX83gifimg[2].htm Trojan-Clicker.HTML.IFrame.amh
Quarantined 11/5/2009 12:21:31 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet
FilesContent.IE56SLECSUQgifimg[5].htm Trojan-Clicker.HTML.IFrame.amh
Quarantined 11/5/2009 12:22:18 AM
C:Documents and SettingsuserLocal SettingsTemporary Internet

View Replies!   View Related
Prevent Of Execution Trojan Shell Scripts, Like R57shell And Other?
Which configuration for php and server that prevent execute shell scripts?

Which funstions you recommend to disable?

Like shell_exec, passthru, proc_open, proc_close, proc_get-status, proc_nice, proc_terminate, exec, system, suexec, popen, pclose, dl, ini_set, virtual, set_time_limit

View Replies!   View Related
/tmp/clamav-77e7bfdbb2d3872b/test2.exe: Trojan.Taskkill.A FOUND
What is the mining of following lines in temp folder. If i have been check daily /tmp folder
many /tmp/clamav are presented in mail server, and occupied the large amount of space in temp folder

/tmp/clamav-77e7bfdbb2d3872b/test1.exe: Worm.Mydoom.U FOUND

/tmp/clamav-77e7bfdbb2d3872b/test2.exe: Trojan.Taskkill.A FOUND

/tmp/clamav-77e7bfdbb2d3872b/test3.exe: Worm.Nyxem.D FOUND

/tmp/malware.zip: Infected.Archive FOUND

View Replies!   View Related
Trojan Activity - Running Perl With High CPU Usage, With User Apache
Running programs named Perl with Heavy CPU usage, with the ownership of user apache.

We found the problem on Fedora 3 and Fedora 6.

In our case, it was the result of a Trojan activity.

Quick Solution

Check the cron jobs of user apache
crontab -u apache -e
*/1 * * * * perl /tmp/.tmp/tmpfile
delete the cronjob entry.
Also delete the file /tmp/.tmp/tmpfile
also added "apache" to the file /etc/cron.deny

That's all

Problem and solution in detail....

View Replies!   View Related
Antivirus/trojan Remover/worms Remover For Servers?
You buy an anti virus for your computer , you run it it checks and get rid of Trojans and worms

OK fine

what about a dedicated server or vps?

how do you do that? what product people use to run and anti virus and get rid of all those worms and Trojans?

View Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved