Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2003
    Location
    Athens/GREECE
    Posts
    180
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Hacked or not?

    Greetings from Greece,

    There seems to be a strange issue with one of our servers. Yesterday afternoon I received an e-mail from Configserver's security & firewall with the following:

    Time: Thu Jan 10 16:29:51 2008
    IP: 66.197.215.165 (server63.dedicatedusa.com)
    Account: root
    Method: password authentication
    This was an unauthorised connection from an unknown server. Immediately I logged in my server to see what has happened.....

    In /var/log/secure I saw the following:

    Jan 10 16:26:33 host5 sshd[330]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=server63.dedicatedusa.com user=root
    Jan 10 16:26:36 host5 sshd[330]: Failed password for root from 66.197.215.165 port 47306 ssh2
    Jan 10 16:27:08 host5 sshd[330]: Failed password for root from 66.197.215.165 port 47306 ssh2
    Jan 10 16:27:09 host5 sshd[331]: Connection closed by 66.197.215.165
    Jan 10 16:27:54 host5 sshd[425]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=server63.dedicatedusa.com user=root
    Jan 10 16:27:56 host5 sshd[425]: Failed password for root from 66.197.215.165 port 53151 ssh2
    Jan 10 16:29:49 host5 sshd[425]: Accepted password for root from 66.197.215.165 port 53151 ssh2
    Jan 10 16:29:49 host5 sshd[425]: pam_unix(sshd:session): session opened for user root by (uid=0)
    Jan 10 16:30:27 host5 sshd[425]: pam_unix(sshd:session): session closed for user root
    SSH (protocol 2) runs at a custom port. The things that are strange are the following:

    1) The root password consists of 15 scrambled characters and according to the logs, the user guessed the password in only 3 tries!

    2) I immediatelly changed the root password and ran rkhunter with no strange results. I did a security check on the server without finding anything strange (I also checked /usr/local/apache/domlogs all the logfiles of the hosted domains and didn't find this IP anywhere).

    3) According to /var/log/secure the user stayed online for less than a minute, but I can't see him in "last -a" command!

    12 hours have passed and nothing strange happened on the server. Suddenly Alertra sent me an e-mail that the page size of the main server's IP (default cpanel page) has changed. The changes were the following:

    Old default cPanel code sample:

    <body>
    <div id="body-content">
    <h1>Great Success <i>!</i>
    <br />
    Apache is working on your cPanel<sup>&reg;</sup> and WHM™ Server</h1>
    New default cPanel code sample:
    <body>
    <script language='JavaScript' type='text/javascript' src='vsdlu.js'></script>
    <div id="body-content">
    <h1>Great Success <i>!</i>
    <br />
    Apache is working on your cPanel<sup>&reg;</sup> and WHM™ Server</h1>
    5 minutes later Alertra notified me that the default cPanel page has changed again back to normal. Since then this happens once each hour (changing to a page with a different javascript and then after 2-3 minutes changing back).

    The file /usr/local/apache/htdocs/index.html doesn't have any javascript code as I see it and it was last changed several months ago. The server also runs PHP5 with suPHP so I don't know if a CMS exploit could apply in this occasion.

    Any ideas? Nothing else has appeared in the hosted sites and I don't know what has happened
    Last edited by gvard; 01-11-2008 at 04:42 AM.
    Sincerely,

    George Vardikos
    HyperHosting Internet Services

  2. #2
    Member Hispalab's Avatar
    Join Date
    Apr 2003
    Location
    Madrid -Spain
    Posts
    85

    Default

    If the hacker know your root password in only 3 tries!

    Think about this .... Probably they have a sniffer on your hosting network or is an "ex"... ex.wife, ex-secretary, ex-worker, ex...

    Regards,
    --
    Luis M. Rodríguez
    netmaster@hispalab.net

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2003
    Location
    Athens/GREECE
    Posts
    180
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Hello,

    No ex-* here that has or had access to this kind of information. Any ideas on what makes the index page change (or insert remotely the javascript code via a module or something) and then change back (from what does it change back, from cpanel script?)?
    Sincerely,

    George Vardikos
    HyperHosting Internet Services

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2003
    Location
    Athens/GREECE
    Posts
    180
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    I just found another user having almost the same problem (js injection in cpanel).

    http://www.webhostingtalk.com/showthread.php?p=4824615

    Any ideas?
    Sincerely,

    George Vardikos
    HyperHosting Internet Services

  5. #5
    Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    675

    Default

    What OS and kernel are you using? Did you try the history command to see what was done? It is probably a bot that logged in and ran some type of script or commands. There's a good chance it got rid of it's tracks however.
    Upload Guardian 2.0 - Sign up for our early beta
    ServerProgress - Server security, consulting and assistance

  6. #6
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2003
    Location
    Athens/GREECE
    Posts
    180
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Well, nothing can be seen in history also. As it seems it's a rootkit named Suckit, since I'm not able to create directories/files with only numbers:

    [root@host5 ~]# mkdir 2
    mkdir: cannot create directory `2': No such file or directory

    ... I'm going for a format/reinstall, unless someone knows how to remove the rootkit.
    Sincerely,

    George Vardikos
    HyperHosting Internet Services

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Dec 2003
    Location
    Athens/GREECE
    Posts
    180
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    btw, I'm using Fedora release 7 and 2.6.21 kernel, suckit gets installed in the kernel
    Sincerely,

    George Vardikos
    HyperHosting Internet Services

  8. #8
    Member
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    675

    Default

    http://www.la-samhna.de/library/rootkits/list.html

    This might help, has some information about variants. No real removal instuctions or details. Best to reload the box
    Upload Guardian 2.0 - Sign up for our early beta
    ServerProgress - Server security, consulting and assistance

Similar Threads & Tags
Similar threads

  1. Have I been hacked?
    By mattb37 in forum New User Questions
    Replies: 0
    Last Post: 05-18-2009, 05:19 PM
  2. Did I just get hacked?
    By nineseven in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-09-2009, 05:41 PM
  3. hacked need help
    By moobymoo in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 03-12-2008, 06:09 PM
  4. Getting hacked!
    By linuxnewbiedude in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-06-2005, 10:21 AM
  5. Hacked Help Me Please =*(
    By yufool in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-18-2004, 05:33 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube